hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65551e3323413306bf702fb22bb9d8c2f05f776c | 950 | cpp | C++ | minic/src/unity_build.cpp | waldnercharles/MiniC | a8a86d3174bc54acd24fc1df0bdba6e9eac0cc5d | [
"Unlicense"
] | null | null | null | minic/src/unity_build.cpp | waldnercharles/MiniC | a8a86d3174bc54acd24fc1df0bdba6e9eac0cc5d | [
"Unlicense"
] | null | null | null | minic/src/unity_build.cpp | waldnercharles/MiniC | a8a86d3174bc54acd24fc1df0bdba6e9eac0cc5d | [
"Unlicense"
] | null | null | null | #define DEBUG
//#define __STDDEF_H
//#define NULL nullptr
#define UNICODE
//#define NOMINMAX
//#define WIN32_LEAN_AND_MEAN
//#include <Windows.h>
//#include "minic/assert.h"
//#include "minic/iterator.cpp"
//#include "minic/asset.cpp"
#include "minic/allocator.cpp"
#include "minic/array.cpp"
#include "minic/fp.cpp... | 22.619048 | 67 | 0.746316 | waldnercharles |
6563063c513fae945c8ac37b92c43d6b188b9467 | 444 | cpp | C++ | timus/volume-08/deer_is_better.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | timus/volume-08/deer_is_better.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | timus/volume-08/deer_is_better.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
unsigned int distance;
unsigned int segment;
unsigned int time;
cin >> distance >> segment >> time;
cout << dista... | 16.444444 | 62 | 0.59009 | Rkhoiwal |
6563e87603f7e3c4145b407a2e90c2706d9b908c | 2,919 | cpp | C++ | src/ugawg_linear.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2019-01-23T03:37:18.000Z | 2021-08-24T02:20:29.000Z | src/ugawg_linear.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 67 | 2019-01-29T15:35:42.000Z | 2021-08-17T20:42:40.000Z | src/ugawg_linear.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2019-01-14T21:33:32.000Z | 2021-08-10T11:35:24.000Z | #include <Omega_h_adapt.hpp>
#include <Omega_h_file.hpp>
#include <Omega_h_for.hpp>
#include <Omega_h_mesh.hpp>
#include <Omega_h_metric.hpp>
#include <Omega_h_timer.hpp>
#include <iostream>
using namespace Omega_h;
template <Int dim>
static void set_target_metric(Mesh* mesh) {
auto coords = mesh->coords();
auto... | 30.40625 | 79 | 0.617335 | joshia5 |
6564348f804bb5186886f277ee233dde963d32bb | 1,353 | cpp | C++ | kernel/Panic.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | 10 | 2022-01-25T13:05:42.000Z | 2022-02-08T21:26:19.000Z | kernel/Panic.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | null | null | null | kernel/Panic.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | null | null | null | #include "Panic.hpp"
#include "Renderer/Framebuffer.hpp"
#include "Renderer/Colors.hpp"
#include "Renderer/FontRenderer.hpp"
#include "Utils/String.hpp"
#include <cstdint>
#include <cstdarg>
#include <cwctype>
#include "Printf.hpp"
uint32_t oldbgcolor = 0;
uint32_t oldfgcolor = 0;
void PRINTF_API(1, 2) INTERRUPT_CALL... | 23.736842 | 80 | 0.699926 | brightprogrammer |
6565b59898e1a7f3f2a7dd8f1fde50826b5722d1 | 1,399 | cpp | C++ | SimpleDivX/ConfigData.cpp | StefH/SimpleDivX | 9740b4e2e497dbb602a907ea4328c0be59651a55 | [
"MIT"
] | 1 | 2020-08-01T18:29:50.000Z | 2020-08-01T18:29:50.000Z | SimpleDivX/ConfigData.cpp | StefH/SimpleDivX | 9740b4e2e497dbb602a907ea4328c0be59651a55 | [
"MIT"
] | null | null | null | SimpleDivX/ConfigData.cpp | StefH/SimpleDivX | 9740b4e2e497dbb602a907ea4328c0be59651a55 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include ".\configdata.h"
#include "SimpleDivX_Defines.h"
#include "SimpleDivXBatch.h"
#include "EncodingInfo.h"
#include "ProgramInfo.h"
IMPLEMENT_SERIAL( CConfigData, CObject, 1 )
#define SIMPLEDIVXDATA "SimpleDivX.dat"
CConfigData::CConfigData(void)
{
status = 0;
}
CConfigData::~CConfigDa... | 13.851485 | 72 | 0.659042 | StefH |
65676e872a2109ed5045430324f27a18bd427c15 | 535 | hpp | C++ | driver/includes.hpp | justvmexit/dumpr | 35da30e9488281b22e133ef24413f61a9cbb2356 | [
"MIT"
] | 5 | 2021-12-14T19:44:21.000Z | 2022-03-27T05:47:52.000Z | driver/includes.hpp | justvmexit/dumpr | 35da30e9488281b22e133ef24413f61a9cbb2356 | [
"MIT"
] | 1 | 2021-12-07T02:24:14.000Z | 2021-12-07T02:24:14.000Z | driver/includes.hpp | justvmexit/dumpr | 35da30e9488281b22e133ef24413f61a9cbb2356 | [
"MIT"
] | 3 | 2021-12-19T09:45:35.000Z | 2022-02-16T08:48:46.000Z | #pragma once
#include <ntifs.h>
#include <ntddk.h>
#include <windef.h>
#include <wdf.h>
#include <stdlib.h>
#include <cstdint>
extern "C" {
NTSTATUS NTAPI MmCopyVirtualMemory(PEPROCESS SourceProcess, PVOID SourceAddress, PEPROCESS TargetProcess, PVOID TargetAddress, SIZE_T BufferSize, KPROCESSOR_MODE PreviousMode, s... | 38.214286 | 197 | 0.820561 | justvmexit |
656b2024b7089cde8cf15499175bb80ee7973bfd | 11,803 | cpp | C++ | tests/board/test_board_n6000.cpp | OPAE/opae-sdk | 7140533d5383e144aeedda9e8cf63fe24854af33 | [
"BSD-3-Clause"
] | 220 | 2017-09-02T20:07:11.000Z | 2022-03-01T03:53:35.000Z | tests/board/test_board_n6000.cpp | OPAE/opae-sdk | 7140533d5383e144aeedda9e8cf63fe24854af33 | [
"BSD-3-Clause"
] | 1,335 | 2017-11-05T03:02:55.000Z | 2022-03-29T23:14:06.000Z | tests/board/test_board_n6000.cpp | OPAE/opae-sdk | 7140533d5383e144aeedda9e8cf63fe24854af33 | [
"BSD-3-Clause"
] | 80 | 2017-09-01T21:28:16.000Z | 2022-03-09T08:04:05.000Z | // Copyright(c) 2021, Intel Corporation
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the ... | 29 | 103 | 0.719139 | OPAE |
656bbb95608bc2c47e955579a486b94b43e1c833 | 2,909 | hpp | C++ | src/sched/entry/reduce_local_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/entry/reduce_local_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/entry/reduce_local_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016-2019 Intel Corporation
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 w... | 33.436782 | 87 | 0.5868 | mshiryaev |
656e762bab26c7999315130917ac0178909947b2 | 2,459 | cpp | C++ | leetcode/biweekly/14.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/biweekly/14.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/biweekly/14.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: November 30, 2019
Successful submissions : 1
Time expiration :
Not Solved : 3
Wrong Answer/ Partial result :
link: https://leetcode.com/contest/biweekly-contest-14
****************************************************/
#include <iostream>
#include <vector>
#... | 18.488722 | 96 | 0.46645 | bvbasavaraju |
656f03be2c41f33f631981698d9900f2099aa36a | 533 | cpp | C++ | src/main.cpp | huffman/StackManagerQt | 5d80db97bb814a0671a2e0c8693c5ec5cc3968f9 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | huffman/StackManagerQt | 5d80db97bb814a0671a2e0c8693c5ec5cc3968f9 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | huffman/StackManagerQt | 5d80db97bb814a0671a2e0c8693c5ec5cc3968f9 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// StackManagerQt/src
//
// Created by Mohammed Nafees on 06/27/14.
// Copyright (c) 2014 High Fidelity. All rights reserved.
//
#include <QApplication>
#include "AppDelegate.h"
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
QApplication::setApplicationName("Stack Manager... | 22.208333 | 72 | 0.703565 | huffman |
656f07b57b021a7a8d40016dd8b4c051b78990dd | 2,185 | cpp | C++ | problems/codeforces/1286/b-numbers-on-tree/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codeforces/1286/b-numbers-on-tree/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codeforces/1286/b-numbers-on-tree/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
template <typename Fun>
class y_combinator_result {
Fun fun_;
public:
template <typename T>
explicit y_combinator_result(T&& fun) : fun_(std::forward<T>(fun)) {}
templa... | 22.760417 | 74 | 0.473227 | brunodccarvalho |
65760d71a043bc74cd989c0bb75750197972ff2f | 1,587 | hpp | C++ | rabbit/Array.hpp | atria-soft/rabbit | 685dd2bca8c3ad439e9bd84cfe08f85aa20ef81e | [
"MIT"
] | null | null | null | rabbit/Array.hpp | atria-soft/rabbit | 685dd2bca8c3ad439e9bd84cfe08f85aa20ef81e | [
"MIT"
] | null | null | null | rabbit/Array.hpp | atria-soft/rabbit | 685dd2bca8c3ad439e9bd84cfe08f85aa20ef81e | [
"MIT"
] | null | null | null | /**
* @author Alberto DEMICHELIS
* @author Edouard DUPIN
* @copyright 2018, Edouard DUPIN, all right reserved
* @copyright 2003-2017, Alberto DEMICHELIS, all right reserved
* @license MPL-2 (see license file)
*/
#pragma once
#include <rabbit/RefCounted.hpp>
#include <rabbit/ObjectPtr.hpp>
#include <etk/Vector.hp... | 29.943396 | 69 | 0.669187 | atria-soft |
6576d83882ba429861ee9ffcefc5817c9711e71b | 1,873 | cpp | C++ | libgramtools/tests/prg/test_make_data_structures.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/tests/prg/test_make_data_structures.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/tests/prg/test_make_data_structures.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "prg/make_data_structures.hpp"
#include "submod_resources.hpp"
using namespace gram::submods;
TEST(GetNumVarSites, NoSites) {
auto prg_raw = encode_prg("c");
auto prg_info = generate_prg_info(prg_raw);
auto result = prg_info.num_variant_sites;
uint64_t expected = 0;
EXPECT... | 31.216667 | 79 | 0.665777 | bricoletc |
6577a19c54a56c76d4937f07ad16369689f1900e | 17,117 | cpp | C++ | engine/src/renderer/DefaultShader.cpp | targodan/gameProgramming | 5c0b36bee271dca65636d0317324a2bb786613f0 | [
"MIT"
] | 1 | 2019-07-14T11:32:30.000Z | 2019-07-14T11:32:30.000Z | engine/src/renderer/DefaultShader.cpp | targodan/gameProgramming | 5c0b36bee271dca65636d0317324a2bb786613f0 | [
"MIT"
] | null | null | null | engine/src/renderer/DefaultShader.cpp | targodan/gameProgramming | 5c0b36bee271dca65636d0317324a2bb786613f0 | [
"MIT"
] | null | null | null | #include "DefaultShader.h"
#include "../WTFException.h"
namespace engine {
namespace renderer {
string DefaultShader::createFlatVertexShader(vec3 color) {
return "#version 330\n"
"#extension GL_ARB_explicit_attrib_location : require\n"
"#extension GL_ARB_... | 48.216901 | 226 | 0.456096 | targodan |
657a3dbd72ca798ffa6802b2f5be1829fc1d3617 | 6,992 | cpp | C++ | src/task.cpp | tusur-coex/coex-plugin-task-skype | f5523f280ee62d67a65069a1bc2f9ad9de382dee | [
"MIT"
] | 1 | 2016-06-17T17:58:18.000Z | 2016-06-17T17:58:18.000Z | src/task.cpp | tusur-coex/coex-plugin-task-skypewin | f5523f280ee62d67a65069a1bc2f9ad9de382dee | [
"MIT"
] | 5 | 2016-06-02T10:38:10.000Z | 2016-06-18T06:16:42.000Z | src/task.cpp | forensictool/forensictool-plugin-skype | f5523f280ee62d67a65069a1bc2f9ad9de382dee | [
"MIT"
] | 1 | 2016-06-04T05:25:46.000Z | 2016-06-04T05:25:46.000Z | #include "task.h"
#include "writerMessagesSkype.h"
#include <QString>
#include <iostream>
TaskSkype::TaskSkype() {
m_bDebug = false;
};
QString TaskSkype::help() {
return "\t--debug - viewing debug messages";
};
QString TaskSkype::name() {
return "Skype";
};
QStringList TaskSkype::authors() {
QStringList listAu... | 39.954286 | 143 | 0.555492 | tusur-coex |
657f62ca5883be9a309c40597cf0fb4353e7496a | 2,959 | cpp | C++ | SchoolProject/ques-11.cpp | CodingTux/CPP_Practice | 802b374546815a2d82e80949c076579ece939f92 | [
"Unlicense"
] | null | null | null | SchoolProject/ques-11.cpp | CodingTux/CPP_Practice | 802b374546815a2d82e80949c076579ece939f92 | [
"Unlicense"
] | null | null | null | SchoolProject/ques-11.cpp | CodingTux/CPP_Practice | 802b374546815a2d82e80949c076579ece939f92 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <stdlib.h>
using namespace std;
///Please fix bugs if any DON'T THINK I'M GONNA DO IT FOR YOU GUYS...
int choice; ///Global Variable...cause i'm very Lazy :p
int siz;
void whatToDoSelector(int arr[]);
void menu(int arr[]);
void binarySearch(int arr[], int num){
system(... | 20.406897 | 92 | 0.459277 | CodingTux |
6583a350b3284ec1046e0d6f46805618f2d2afc8 | 1,919 | hpp | C++ | applications-linked-lists/sorted-merge.hpp | arsharaj/data-structures-and-algorithms | c978b1038b69156b7298f8cc278cf34c08474663 | [
"MIT"
] | null | null | null | applications-linked-lists/sorted-merge.hpp | arsharaj/data-structures-and-algorithms | c978b1038b69156b7298f8cc278cf34c08474663 | [
"MIT"
] | 1 | 2021-11-12T19:24:53.000Z | 2021-11-12T19:24:53.000Z | applications-linked-lists/sorted-merge.hpp | arsharaj/data-structures-and-algorithms | c978b1038b69156b7298f8cc278cf34c08474663 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2020 Arsharaj Chauhan
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, copy, modify, merge, publi... | 28.220588 | 97 | 0.661803 | arsharaj |
6583d8b595c01ddb5428db6fb12fb602cd4996ef | 2,492 | cpp | C++ | Source/HTTPServer/Source/StatusCode.cpp | KamilKZ/SimpleHTTPServer | fc61717e8edcc39ad42690ecd59ee81b5948279a | [
"MIT"
] | 1 | 2016-06-01T11:40:04.000Z | 2016-06-01T11:40:04.000Z | Source/HTTPServer/Source/StatusCode.cpp | KamilKZ/SimpleHTTPServer | fc61717e8edcc39ad42690ecd59ee81b5948279a | [
"MIT"
] | null | null | null | Source/HTTPServer/Source/StatusCode.cpp | KamilKZ/SimpleHTTPServer | fc61717e8edcc39ad42690ecd59ee81b5948279a | [
"MIT"
] | null | null | null | #include <HTTPServer/StatusCode.hpp>
namespace HTTP
{
namespace StatusCode
{
API_EXPORT const StatusCode Continue(100, "Continue", "You should've be seeing this");
API_EXPORT const StatusCode SwitchingProtocols(101, "Switching Protocols", "You should've be seeing this");
API_EXPORT const StatusCode OK(200, "O... | 71.2 | 142 | 0.774478 | KamilKZ |
6585b968f34f028bc1efd61dfa55d7ecdc8031c5 | 3,388 | cpp | C++ | #98_validate-binary-search-tree/validate-binary-search-tree.cpp | o-oppang/lets-solve-algorithm | 9983a112736ce48bbd309a9af16d1fd68b9420da | [
"MIT"
] | null | null | null | #98_validate-binary-search-tree/validate-binary-search-tree.cpp | o-oppang/lets-solve-algorithm | 9983a112736ce48bbd309a9af16d1fd68b9420da | [
"MIT"
] | null | null | null | #98_validate-binary-search-tree/validate-binary-search-tree.cpp | o-oppang/lets-solve-algorithm | 9983a112736ce48bbd309a9af16d1fd68b9420da | [
"MIT"
] | null | null | null | /**
* 98. Validate Binary Search Tree ( Medium )
* Given a binary tree, determine if it is a valid binary search tree (BST).
*
* Assume a BST is defined as follows:
*
* The left subtree of a node contains only nodes with keys less than the node's key.
* The right subtree of a node contains only nodes with keys... | 31.37037 | 134 | 0.603896 | o-oppang |
658ef48fe3ef235b4f1e7a0c9b05775447292bac | 2,116 | cpp | C++ | solutions/160-E-Intersection-of-Two-Linked-Lists/main.cpp | ARW2705/leet-code-solutions | fa551e5b15f5340e5be3b832db39638bcbf0dc78 | [
"MIT"
] | null | null | null | solutions/160-E-Intersection-of-Two-Linked-Lists/main.cpp | ARW2705/leet-code-solutions | fa551e5b15f5340e5be3b832db39638bcbf0dc78 | [
"MIT"
] | null | null | null | solutions/160-E-Intersection-of-Two-Linked-Lists/main.cpp | ARW2705/leet-code-solutions | fa551e5b15f5340e5be3b832db39638bcbf0dc78 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include "../../utilities/singly-linked-node.hpp"
#include "../../utilities/print-success.cpp"
std::stack<ListNode*> getStack(ListNode* node) {
std::stack<ListNode*> stack;
while (node) {
stack.push(node);
node = node->next;
}
return stack;
}
ListNode* getIntersect... | 21.591837 | 65 | 0.609168 | ARW2705 |
6591652da513b7286f0fee88d222e5f2d6ddc2ca | 288 | cpp | C++ | p/5k/5733/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | p/5k/5733/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | p/5k/5733/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
char str[105];
scanf("%s", str);
int n = strlen(str);
for (int i = 0; i < n; i++) {
if (isalpha(str[i])) {
putchar(toupper(str[i]));
} else {
putchar(str[i]);
}
}
putchar('\n');
return 0;
} | 16 | 31 | 0.5 | josedelinux |
6597fedfb754eae35e903246240d6cadb5b2117d | 762 | cpp | C++ | Common/Packets/CGUseGem.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Common/Packets/CGUseGem.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Common/Packets/CGUseGem.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "stdafx.h"
#include "CGUseGem.h"
BOOL CGUseGem::Read(SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read((CHAR*)&m_GemBagIndex,sizeof(BYTE));
iStream.Read((CHAR*)&m_EquipBagIndex,sizeof(BYTE));
iStream.Read((CHAR*)&m_Platform,sizeof(ObjID_t));
return TRUE;
__LEAVE_FUNCTION
return FALSE;
}
... | 17.318182 | 56 | 0.750656 | hackerlank |
659a4e7ecfa46554a72bb3400b8cfce1dd3f36b9 | 1,636 | cpp | C++ | revere/source/font_catalog.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null | revere/source/font_catalog.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null | revere/source/font_catalog.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null |
#include "font_catalog.h"
#include "roboto.c"
font_catalog load_fonts(ImGuiIO& io)
{
font_catalog f;
ImFontConfig font_cfg;
font_cfg.FontDataOwnedByAtlas = false;
f.roboto_black = io.Fonts->AddFontFromMemoryTTF(Roboto_Black_ttf, Roboto_Black_ttf_len, 18.0, &font_cfg);
f.roboto_black_it... | 65.44 | 132 | 0.782396 | TroyDL |
659b14a9f7c89f748ecb533a43e5c631cbcff65d | 408 | hpp | C++ | src/scenes/editor/toolbox/tool/pipette.hpp | Firstbober/MPS | 998436b223842b089f0c048b3e7d5676a7688c67 | [
"MIT"
] | 9 | 2018-05-15T06:03:51.000Z | 2022-01-30T01:23:24.000Z | src/scenes/editor/toolbox/tool/pipette.hpp | Firstbober/MPS | 998436b223842b089f0c048b3e7d5676a7688c67 | [
"MIT"
] | 5 | 2018-06-28T16:48:04.000Z | 2021-06-05T21:24:32.000Z | src/scenes/editor/toolbox/tool/pipette.hpp | Firstbober/MPS | 998436b223842b089f0c048b3e7d5676a7688c67 | [
"MIT"
] | 9 | 2018-05-03T19:40:54.000Z | 2021-06-05T17:54:32.000Z | #pragma once
#include "tool.hpp"
class Pipette : public Tool{
int x, y;
int mouseX,mouseY;
bool isMoved;
float opacity;
int pixel,pixel_prev;
float scaleMul;
public:
void init();
void eventMouseMove(int x, int y);
void eventMouseDown();
void eventMouseUp();
bool pushEvent(S... | 18.545455 | 38 | 0.634804 | Firstbober |
659df78d72b9ba1ad35ee4b91e4ad7f17b671e98 | 931 | hpp | C++ | include/InfoBar.hpp | jhpy1024/GameOfLife | 580d91c6a5de1d28baee3029493d663f51b79ce2 | [
"MIT"
] | 1 | 2018-01-16T08:44:07.000Z | 2018-01-16T08:44:07.000Z | include/InfoBar.hpp | jhpy1024/GameOfLife | 580d91c6a5de1d28baee3029493d663f51b79ce2 | [
"MIT"
] | null | null | null | include/InfoBar.hpp | jhpy1024/GameOfLife | 580d91c6a5de1d28baee3029493d663f51b79ce2 | [
"MIT"
] | null | null | null | #ifndef INFO_BAR_HPP
#define INFO_BAR_HPP
#include <SFML/Graphics.hpp>
class InfoBar : public sf::Drawable, public sf::Transformable
{
public:
InfoBar(const sf::Vector2f& position, const sf::Vector2f& size);
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
void handleMousePre... | 20.688889 | 80 | 0.717508 | jhpy1024 |
4f1e0d3b7f1edeacc659229bfeb1f2fa129b491a | 569 | hh | C++ | Mu2eUtilities/inc/PointLinePCA_XYZ.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | Mu2eUtilities/inc/PointLinePCA_XYZ.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | Mu2eUtilities/inc/PointLinePCA_XYZ.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z | #ifndef Mu2eUtilities_PointLinePCA_XYZ_hh
#define Mu2eUtilities_PointLinePCA_XYZ_hh
#include "Offline/DataProducts/inc/GenVector.hh"
namespace mu2e {
class PointLinePCA_XYZ{
public:
PointLinePCA_XYZ( XYZVectorF const& point,
XYZVectorF const& start ,
XYZVectorF const& end... | 20.321429 | 55 | 0.680141 | resnegfk |
4f1f69be99d1e8ac219e52436245cde23f751932 | 3,584 | cpp | C++ | src/util/simplexnoise.cpp | therocode/featherkit | 8631c9acb0fef6c5039783173ef173ec9488f53b | [
"Zlib"
] | 22 | 2015-01-13T10:49:38.000Z | 2020-12-23T15:25:59.000Z | src/util/simplexnoise.cpp | therocode/featherkit | 8631c9acb0fef6c5039783173ef173ec9488f53b | [
"Zlib"
] | 27 | 2015-01-11T03:47:27.000Z | 2015-12-10T17:52:17.000Z | src/util/simplexnoise.cpp | therocode/featherkit | 8631c9acb0fef6c5039783173ef173ec9488f53b | [
"Zlib"
] | 7 | 2015-09-18T15:06:45.000Z | 2020-02-19T15:12:34.000Z | #include <fea/util/simplexnoise.hpp>
#include <cmath>
namespace fea
{
float raw_noise_2d(float x, float y, const uint8_t* perm)
{
const float F2 = 0.5f * (std::sqrt(3.0f) - 1.0f);
float s = (x + y) * F2;
int32_t i = fast_floor(x + s);
int32_t j = fast_floor(y + s);
const float G2 = (3.0f - std::sqrt(3.0f... | 24.216216 | 90 | 0.482143 | therocode |
4f20ca4d28f5fbc4aa7519498cda6cfd8b34e30b | 7,289 | cpp | C++ | src/fs.cpp | crptec/sinovate | 345a81f99ec7e624e0ec244a7dbe1ebb3698c347 | [
"MIT"
] | 149 | 2021-03-21T18:04:20.000Z | 2021-07-01T21:14:39.000Z | src/fs.cpp | crptec/sinovate | 345a81f99ec7e624e0ec244a7dbe1ebb3698c347 | [
"MIT"
] | 366 | 2015-01-08T05:10:17.000Z | 2022-03-07T02:30:03.000Z | src/fs.cpp | crptec/sinovate | 345a81f99ec7e624e0ec244a7dbe1ebb3698c347 | [
"MIT"
] | 110 | 2015-01-03T17:00:15.000Z | 2022-02-13T15:31:08.000Z | // Copyright (c) 2017-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <fs.h>
#ifndef WIN32
#include <cstring>
#include <fcntl.h>
#include <string>
#include <sys/file.h>
#include <sys/ut... | 28.251938 | 168 | 0.642475 | crptec |
4f2233693305aec1333e790bfa68af5d3d0cae2e | 13,891 | hpp | C++ | saga/impl/packages/namespace/namespace_entry_cpi.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/impl/packages/namespace/namespace_entry_cpi.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/impl/packages/namespace/namespace_entry_cpi.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | #ifndef SAGA_IMPL_PACKAGES_DATA_NAMESPACE_NAMESPACEENTRY_CPI_HPP
#define SAGA_IMPL_PACKAGES_DATA_NAMESPACE_NAMESPACEENTRY_CPI_HPP
#if defined(__WAVE__) && defined(SAGA_CREATE_PREPROCESSED_FILES)
#pragma wave option(preserve: 2, line: 0, output: "preprocessed/namespace_entry_cpi.hpp")
#endif
// Copyright (c) 2005-2009... | 45.996689 | 114 | 0.648549 | saga-project |
4f22e5ea66fa010845908e3275ef065ff55c2f89 | 10,996 | cpp | C++ | src/pd/painter.cpp | mtribiere/Pixel-dungeon-CPP | ed930aaeefd1f08eed73ced928acae6e1fe34fa4 | [
"MIT"
] | null | null | null | src/pd/painter.cpp | mtribiere/Pixel-dungeon-CPP | ed930aaeefd1f08eed73ced928acae6e1fe34fa4 | [
"MIT"
] | null | null | null | src/pd/painter.cpp | mtribiere/Pixel-dungeon-CPP | ed930aaeefd1f08eed73ced928acae6e1fe34fa4 | [
"MIT"
] | null | null | null | #include "painter.h"
#include "level.h"
#include "../engine/util.h"
#include "room.h"
#include "terrain.h"
#include <algorithm>
void Painter::set(Level* level, int cell, int value)
{
level->map[cell] = value;
}
void Painter::set(Level* level, int x, int y, int value)
{
set(level, x + y * Level::WIDTH,... | 22.813278 | 106 | 0.554292 | mtribiere |
4f2412604bc12d4180278b36476c278a54a5af02 | 15,816 | cpp | C++ | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IHttpFileInfo/cpp/GetLastModifiedTime.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 90 | 2017-06-13T19:56:04.000Z | 2022-03-15T16:42:09.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IHttpFileInfo/cpp/GetLastModifiedTime.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 453 | 2017-05-22T18:00:05.000Z | 2022-03-30T21:07:55.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IHttpFileInfo/cpp/GetLastModifiedTime.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 343 | 2017-05-26T08:57:30.000Z | 2022-03-25T23:05:04.000Z | // <Snippet11>
#pragma warning( disable : 4290 )
#pragma warning( disable : 4530 )
#define _WINSOCKAPI_
#include <windows.h>
#include <io.h>
#include <sal.h>
#include <httpserv.h>
#include <string>
using namespace std;
// The CConvert class mirrors the Convert class that is
// defined in the .NET Framework. It conv... | 30.125714 | 77 | 0.59111 | mitchelsellers |
4f25631cbce5f6a9dc8c9de229b764e5db614fb7 | 22,036 | cc | C++ | app/fpn_eval/src/main.cc | Vertical-Beach/ai-edge-contest4 | 4b5211a9adb383756acade42c8a8b104f6fd7363 | [
"Apache-2.0"
] | 3 | 2021-02-13T05:16:10.000Z | 2022-03-08T16:00:02.000Z | app/fpn_eval/src/main.cc | Vertical-Beach/ai-edge-contest4 | 4b5211a9adb383756acade42c8a8b104f6fd7363 | [
"Apache-2.0"
] | null | null | null | app/fpn_eval/src/main.cc | Vertical-Beach/ai-edge-contest4 | 4b5211a9adb383756acade42c8a8b104f6fd7363 | [
"Apache-2.0"
] | null | null | null | /**
* © Copyright (C) 2016-2017 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 40.883117 | 139 | 0.574741 | Vertical-Beach |
4f27bba831e202a4893eef9b49bc7fc1d3ddde4f | 54,658 | cpp | C++ | dali-toolkit/internal/controls/table-view/table-view-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/controls/table-view/table-view-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/controls/table-view/table-view-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 31.704176 | 163 | 0.632552 | zyndor |
4f281778434e31bcb916752075846cc817a668a9 | 2,996 | cpp | C++ | TMuffin/Engine/ExportFunction.cpp | thirty30/Muffin | 06db87761be740408457728a40d95cdc8ec05108 | [
"MIT"
] | 5 | 2019-10-06T02:41:59.000Z | 2020-10-10T13:07:26.000Z | TMuffin/Engine/ExportFunction.cpp | thirty30/Muffin | 06db87761be740408457728a40d95cdc8ec05108 | [
"MIT"
] | null | null | null | TMuffin/Engine/ExportFunction.cpp | thirty30/Muffin | 06db87761be740408457728a40d95cdc8ec05108 | [
"MIT"
] | null | null | null | #include "ExportFunction.h"
#include "Engine.h"
#include "Camera/CCamera.h"
#include "Camera/CCameraManager.h"
#include "Graphics/SkyBox/CSkyBox.h"
#include "Graphics/CGraphicsWorld.h"
#include "Audio/CAudioManager.h"
tbool TMuffin_Initialize(n32 a_nWinWidth, n32 a_nWinHigh, const tcchar* a_strWinName)
{
return Muffi... | 31.536842 | 120 | 0.829105 | thirty30 |
4f2953e4cca8da8ff74b1b78672a5fad7262224e | 3,828 | cpp | C++ | divi/src/walletBackupCreator.cpp | domob1812/Divi | dc7fd7bf9028ed9e256d6ac5ba5d529c21f566dd | [
"MIT"
] | 1 | 2021-08-14T10:13:46.000Z | 2021-08-14T10:13:46.000Z | divi/src/walletBackupCreator.cpp | domob1812/Divi | dc7fd7bf9028ed9e256d6ac5ba5d529c21f566dd | [
"MIT"
] | null | null | null | divi/src/walletBackupCreator.cpp | domob1812/Divi | dc7fd7bf9028ed9e256d6ac5ba5d529c21f566dd | [
"MIT"
] | 1 | 2021-12-28T15:53:49.000Z | 2021-12-28T15:53:49.000Z | #include "walletBackupCreator.h"
#include <utiltime.h>
#include <util.h>
#include <boost/foreach.hpp>
#include <db.h>
#include <iostream>
#include <ui_interface.h>
WalletBackupCreator::WalletBackupCreator (
int numberOfBackups,
I_FileSystem& fileSystem,
std::string dataDirectory,
std::string walletFile... | 30.141732 | 102 | 0.676855 | domob1812 |
4f2994bfc744616ba8181f8edd2ffe0a28458aa1 | 1,595 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/mpi/detail/ignore_oprimitive.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | ios/Pods/boost-for-react-native/boost/mpi/detail/ignore_oprimitive.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | ios/Pods/boost-for-react-native/boost/mpi/detail/ignore_oprimitive.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | // (C) Copyright 2005 Matthias Troyer
// Use, modification and distribution is subject to 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)
// Authors: Matthias Troyer
#ifndef BOOST_MPI_DETAIL_IGNORE_OPRIMITIVE_HPP
#define BOOST_MP... | 25.31746 | 78 | 0.722257 | Harshitha91 |
4f2bb81099a2086e74ada2212cd835f289ae4cf4 | 6,850 | cxx | C++ | vtkm/exec/arg/testing/UnitTestFetchArrayNeighborhoodIn.cxx | rushah05/VTKm_FP16 | 487819a1dbdd8dc3f95cca2942e3f2706a2514b5 | [
"BSD-3-Clause"
] | 14 | 2019-10-25T03:25:47.000Z | 2022-01-19T02:14:53.000Z | vtkm/exec/arg/testing/UnitTestFetchArrayNeighborhoodIn.cxx | rushah05/VTKm_FP16 | 487819a1dbdd8dc3f95cca2942e3f2706a2514b5 | [
"BSD-3-Clause"
] | 2 | 2020-11-18T16:50:34.000Z | 2022-01-21T13:31:47.000Z | vtkm/exec/arg/testing/UnitTestFetchArrayNeighborhoodIn.cxx | rushah05/VTKm_FP16 | 487819a1dbdd8dc3f95cca2942e3f2706a2514b5 | [
"BSD-3-Clause"
] | 5 | 2020-10-02T10:14:35.000Z | 2022-03-10T07:50:22.000Z | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... | 36.827957 | 100 | 0.613723 | rushah05 |
4f2cae4effb4e0781b0c6286c1c50bfd54dd43d0 | 57,621 | cpp | C++ | src/pal/src/sync/cs.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | 1 | 2015-05-22T14:11:51.000Z | 2015-05-22T14:11:51.000Z | src/pal/src/sync/cs.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | null | null | null | src/pal/src/sync/cs.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | null | null | null | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
///////////////////////////////////////////////////////////////////////////////
//
// File:
// cs.cpp
//
// Purpose:
// Implementation of critical sectio... | 35.900935 | 102 | 0.612155 | CyberSys |
4f2cb27bb8f497c5abebacc5166c3337eaff3307 | 843 | cpp | C++ | aws-cpp-sdk-mobile/source/model/UpdateProjectRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-mobile/source/model/UpdateProjectRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-mobile/source/model/UpdateProjectRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mobile/model/UpdateProjectRequest.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/utils/memory/... | 22.184211 | 69 | 0.725979 | perfectrecall |
4f2de5fbcab4d8c9ebe97043e6bdd58abe41c99c | 4,303 | cpp | C++ | modules/etc/texture_loader_pkm.cpp | dsrw/godot | 61ea011e05dd182351eef1e59ab14cd26bbd73a1 | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | 222 | 2018-09-10T17:52:03.000Z | 2022-03-24T04:55:19.000Z | modules/etc/texture_loader_pkm.cpp | dsrw/godot | 61ea011e05dd182351eef1e59ab14cd26bbd73a1 | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | 27 | 2022-01-11T06:12:37.000Z | 2022-03-29T01:07:53.000Z | modules/etc/texture_loader_pkm.cpp | dsrw/godot | 61ea011e05dd182351eef1e59ab14cd26bbd73a1 | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | 26 | 2019-04-12T11:21:26.000Z | 2022-03-11T00:20:53.000Z | /*************************************************************************/
/* texture_loader_pkm.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 37.417391 | 130 | 0.571694 | dsrw |
4f2f798b00bd27c5bce82676977ae7149df73e71 | 24,566 | cpp | C++ | src/Gaffer/PlugAlgo.cpp | fbhradec/gaffer | eda6eaf44a5506af781488e914e9c6f6318c081c | [
"BSD-3-Clause"
] | null | null | null | src/Gaffer/PlugAlgo.cpp | fbhradec/gaffer | eda6eaf44a5506af781488e914e9c6f6318c081c | [
"BSD-3-Clause"
] | null | null | null | src/Gaffer/PlugAlgo.cpp | fbhradec/gaffer | eda6eaf44a5506af781488e914e9c6f6318c081c | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2014, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided... | 27.758192 | 132 | 0.662013 | fbhradec |
4f2fbc013c92468ce006df901b3dc1e143ad673c | 1,875 | hpp | C++ | doc/quickbook/oglplus/quickref/dsa/vertex_attrib.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 2 | 2017-06-09T00:28:35.000Z | 2017-06-09T00:28:43.000Z | doc/quickbook/oglplus/quickref/dsa/vertex_attrib.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | null | null | null | doc/quickbook/oglplus/quickref/dsa/vertex_attrib.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 8 | 2017-01-30T22:06:41.000Z | 2020-01-14T17:24:36.000Z | /*
* Copyright 2014-2015 Matus Chochlik. 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)
*/
//[oglplus_dsa_vertex_array_attrib
namespace oglplus {
#if GL_VERSION_4_5 || GL_ARB_direct_state_access
class DSAVe... | 22.321429 | 68 | 0.753067 | highfidelity |
4f316722ea38d3b2b8d049d7f32aa018644c78f9 | 162 | hpp | C++ | GpLog.hpp | ITBear/GpLog | 207b3fa77240af28ff82f174629816018468dcad | [
"Apache-2.0"
] | null | null | null | GpLog.hpp | ITBear/GpLog | 207b3fa77240af28ff82f174629816018468dcad | [
"Apache-2.0"
] | null | null | null | GpLog.hpp | ITBear/GpLog | 207b3fa77240af28ff82f174629816018468dcad | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Consumers/GpLogConsumers.hpp"
#include "Formatters/GpLogFormatters.hpp"
#include "Utils/GpLogUtils.hpp"
#include "GpLogBuilder.hpp"
| 23.142857 | 42 | 0.771605 | ITBear |
4f31de15de5566e66722bda4ef0ca0e3c8adddf6 | 4,749 | hh | C++ | src/mmutil_select.hh | causalpathlab/mmutilR | 292a70f89336c7563b2fa9f1f62e59d219739e24 | [
"MIT"
] | 1 | 2021-07-23T07:49:10.000Z | 2021-07-23T07:49:10.000Z | src/mmutil_select.hh | YPARK/mmutilR | ede9948fe9a0124b9f417d010b7a376dff64ebb9 | [
"MIT"
] | 2 | 2022-01-18T22:07:44.000Z | 2022-03-10T16:58:34.000Z | src/mmutil_select.hh | YPARK/mmutilR | ede9948fe9a0124b9f417d010b7a376dff64ebb9 | [
"MIT"
] | null | null | null | #include "mmutil.hh"
#include "mmutil_stat.hh"
#include "mmutil_bgzf_util.hh"
#include "mmutil_util.hh"
#include "mmutil_index.hh"
#include "mmutil_io.hh"
#include <algorithm>
#include <functional>
#include <string>
#include <unordered_set>
#ifndef MMUTIL_SELECT_HH_
#define MMUTIL_SELECT_HH_
/**
@param mtx_file
... | 27.77193 | 77 | 0.64961 | causalpathlab |
4f39ab25f33aab4ed0bdd19b57e1d44869ba9bad | 6,123 | cpp | C++ | test/sources/tools/match/test-group.cpp | Kartonagnick/tools-match | ec27ca94a031e04f072f8366bde2d567c29134c8 | [
"MIT"
] | null | null | null | test/sources/tools/match/test-group.cpp | Kartonagnick/tools-match | ec27ca94a031e04f072f8366bde2d567c29134c8 | [
"MIT"
] | 7 | 2021-02-05T20:45:04.000Z | 2021-03-09T15:12:14.000Z | test/sources/tools/match/test-group.cpp | Kartonagnick/tools-match | ec27ca94a031e04f072f8366bde2d567c29134c8 | [
"MIT"
] | null | null | null |
// [2021y-02m-05d] Idrisov Denis R.
#include <mygtest/test-list.hpp>
#ifdef TEST_TOOLS_MATCH_GROUP
#include <tools/match/group.hpp>
#define TEST_CASE_NAME tools
#define TEST_NUMBER(n) match_group_##n
namespace me = ::TEST_CASE_NAME;
//==============================================================================
... | 24.991837 | 80 | 0.594317 | Kartonagnick |
4f3b4abe74977c98ba0884406eb41f62c0371972 | 744 | cpp | C++ | solutions/187.repeated-dna-sequences.253515083.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/187.repeated-dna-sequences.253515083.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/187.repeated-dna-sequences.253515083.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
vector<string> findRepeatedDnaSequences(string s) {
vector<string> ans;
if (s.size() < 10)
return ans;
unordered_map<long long int, int> map;
unordered_map<char, int> encode = {{'A', 1}, {'C', 2}, {'G', 3}, {'T', 4}};
long long int h = 1;
long long int p = 1e9 +... | 24 | 79 | 0.467742 | satu0king |
4f3d8678d82dc91e80240b48fa851dfd6fd7b0ff | 6,037 | hpp | C++ | src/backend/opencl/kernel/morph.hpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | 4 | 2015-12-16T09:41:32.000Z | 2018-10-29T10:38:53.000Z | src/backend/opencl/kernel/morph.hpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | 3 | 2015-11-15T18:43:47.000Z | 2015-12-16T09:43:14.000Z | src/backend/opencl/kernel/morph.hpp | pavanky/arrayfire | f983a79c7d402450bd2a704bbc1015b89f0cd504 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 33.91573 | 82 | 0.536856 | ckeitz |
4f3e81372f09ba59e55576ccd22b0aadaeef3962 | 2,470 | cpp | C++ | Trabalho1_CG/engine/src/camera.cpp | 47Balboa/CG | 1398ae37fe8d52248efd2534848f51fe15a19f96 | [
"MIT"
] | 1 | 2020-11-14T20:10:52.000Z | 2020-11-14T20:10:52.000Z | Trabalho1_CG/engine/src/camera.cpp | 47Balboa/CG | 1398ae37fe8d52248efd2534848f51fe15a19f96 | [
"MIT"
] | null | null | null | Trabalho1_CG/engine/src/camera.cpp | 47Balboa/CG | 1398ae37fe8d52248efd2534848f51fe15a19f96 | [
"MIT"
] | 1 | 2021-05-30T16:55:35.000Z | 2021-05-30T16:55:35.000Z | #include "headers/camera.h"
float deslA = float(2 * (M_PI) / 16.0);
float deslB = float((M_PI) / 10.0);
// responsavel por inicializar a camera.
Camera::Camera() {
camPosition = new Point(5.0, 5.0, 5.0);
lookPoint = new Point(0.0, 0.0, 0.0);
titl = new Point(0.0f, 1.0f, 0.0f);
alfa = beta = 0.0;
dist = 8.6f;
}
... | 23.52381 | 94 | 0.675709 | 47Balboa |
4f3f31a4c59c671068bb6f4fc395f2682f353719 | 253,253 | cpp | C++ | src/core/Frontend.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | 2 | 2021-03-24T22:11:27.000Z | 2021-05-07T06:51:04.000Z | src/core/Frontend.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | src/core/Frontend.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | #define FORCE_PC_SCALING
#define WITHWINDOWS
#define WITHDINPUT
#include "common.h"
#ifndef PS2_MENU
#include "crossplatform.h"
#include "platform.h"
#include "Frontend.h"
#include "Font.h"
#include "Pad.h"
#include "Text.h"
#include "main.h"
#include "RwHelper.h"
#include "Timer.h"
#include "Game.h"
#include "DMAudio.... | 37.254045 | 297 | 0.73025 | gameblabla |
4f3fd3b9026e1bdd9e65bbbf17431c749e9254ef | 1,808 | hpp | C++ | include/boost/spirit/iterator/position_iterator_fwd.hpp | dstrigl/mcotf | 92a9caf6173b1241a2f9ed45cd379469762b7178 | [
"BSL-1.0"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | include/boost/spirit/iterator/position_iterator_fwd.hpp | dstrigl/mcotf | 92a9caf6173b1241a2f9ed45cd379469762b7178 | [
"BSL-1.0"
] | null | null | null | include/boost/spirit/iterator/position_iterator_fwd.hpp | dstrigl/mcotf | 92a9caf6173b1241a2f9ed45cd379469762b7178 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2006 Tobias Schwinger
Copyright (c) 2002-2006 Hartmut Kaiser
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying... | 31.719298 | 89 | 0.615044 | dstrigl |
4f425a192d854d1a445168fc2446794b75e3215c | 11,164 | cpp | C++ | QuantExt/test/blackvariancesurfacesparse.cpp | PiotrSiejda/Engine | 8360b5de32408f2a37da5ac3ca7b4e913bf67e9f | [
"BSD-3-Clause"
] | null | null | null | QuantExt/test/blackvariancesurfacesparse.cpp | PiotrSiejda/Engine | 8360b5de32408f2a37da5ac3ca7b4e913bf67e9f | [
"BSD-3-Clause"
] | null | null | null | QuantExt/test/blackvariancesurfacesparse.cpp | PiotrSiejda/Engine | 8360b5de32408f2a37da5ac3ca7b4e913bf67e9f | [
"BSD-3-Clause"
] | 1 | 2022-02-07T02:04:10.000Z | 2022-02-07T02:04:10.000Z | /*
Copyright (C) 2019 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 40.893773 | 115 | 0.617879 | PiotrSiejda |
4f4c1ff57e5c81af749253f7588a26ce3b03094a | 35,098 | cpp | C++ | src/qt/qmake/generators/makefiledeps.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T20:49:09.000Z | 2015-03-16T20:49:09.000Z | src/qt/qmake/generators/makefiledeps.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/qmake/generators/makefiledeps.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake application of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL... | 36.446521 | 123 | 0.448544 | martende |
4f4e283295606eedac7b16d65824079da45d6cb5 | 862 | cc | C++ | src/job_server/job_handlers/job_handler.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 12 | 2017-11-05T21:02:58.000Z | 2022-03-28T23:11:51.000Z | src/job_server/job_handlers/job_handler.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 11 | 2017-01-05T18:11:41.000Z | 2019-11-01T12:40:55.000Z | src/job_server/job_handlers/job_handler.cc | krzyk240/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 6 | 2016-12-25T11:22:34.000Z | 2020-10-20T16:03:51.000Z | #include "src/job_server/job_handlers/job_handler.hh"
#include "sim/jobs/job.hh"
#include "src/job_server/main.hh"
using sim::jobs::Job;
namespace job_server::job_handlers {
void JobHandler::job_canceled() {
STACK_UNWINDING_MARK;
mysql.prepare("UPDATE jobs SET status=?, data=? WHERE id=?")
.bind_and... | 27.806452 | 84 | 0.704176 | varqox |
4f4e6389223987dbc6a42c6cb74bad32d1c59ffe | 410 | cpp | C++ | src/Game/JavaScriptApp.cpp | pixelpicosean/mural | d6fbacbce2da39af25b44cd5861030573ca8709a | [
"Unlicense",
"MIT"
] | 33 | 2016-03-26T01:16:49.000Z | 2022-02-23T10:46:31.000Z | src/Game/JavaScriptApp.cpp | pixelpicosean/mural | d6fbacbce2da39af25b44cd5861030573ca8709a | [
"Unlicense",
"MIT"
] | 4 | 2015-10-06T01:32:27.000Z | 2015-10-06T01:35:41.000Z | src/Game/JavaScriptApp.cpp | pixelpicosean/mural | d6fbacbce2da39af25b44cd5861030573ca8709a | [
"Unlicense",
"MIT"
] | 14 | 2016-01-02T18:03:10.000Z | 2022-01-29T03:47:53.000Z | //
// JavaScriptApp.cpp
// Mural
//
// Created by Sean on 10/22/15.
//
//
#include "JavaScriptApp.hpp"
JavaScriptApp::JavaScriptApp() {
jsContext = duk_create_heap_default();
}
JavaScriptApp::~JavaScriptApp() {
duk_destroy_heap(jsContext);
}
static void register_MuImage(duk_context *jsContext) {
duk_push_g... | 15.769231 | 54 | 0.72439 | pixelpicosean |
4f4e895bec194a85ce445f437043005bbcc3e7ef | 493 | hpp | C++ | Noxis/Sprite.hpp | mr-linch/noxis | 7b8015bc36f478a81aafa3fb7ef84156ff642343 | [
"MIT"
] | null | null | null | Noxis/Sprite.hpp | mr-linch/noxis | 7b8015bc36f478a81aafa3fb7ef84156ff642343 | [
"MIT"
] | 3 | 2017-07-28T12:56:52.000Z | 2017-07-28T12:56:52.000Z | Noxis/Sprite.hpp | mr-linch/noxis | 7b8015bc36f478a81aafa3fb7ef84156ff642343 | [
"MIT"
] | null | null | null | #pragma once
#include "ns.hpp"
#include "Node.hpp"
#include <string>
NOXIS_NS_BEGIN;
class Texture;
class Renderer;
class Sprite : public Node {
Texture *texture;
public:
/**
* @brief Load sprite by path
*/
Sprite(const std::string &path, Node *parent = nullptr);
/**
* @brief Load ... | 15.40625 | 60 | 0.638945 | mr-linch |
4f523bde93bd4b27c3820e60c214b7900ae1bd5e | 7,433 | cpp | C++ | Game/Source/App.cpp | UriKurae/PlatformerGame | a4ff867c8e1eac4df4086c16f7b50bd2ce320926 | [
"MIT"
] | 1 | 2020-10-07T10:42:49.000Z | 2020-10-07T10:42:49.000Z | Game/Source/App.cpp | UriKurae/PlatformerGame | a4ff867c8e1eac4df4086c16f7b50bd2ce320926 | [
"MIT"
] | null | null | null | Game/Source/App.cpp | UriKurae/PlatformerGame | a4ff867c8e1eac4df4086c16f7b50bd2ce320926 | [
"MIT"
] | null | null | null | #include "App.h"
#include "Window.h"
#include "Input.h"
#include "Render.h"
#include "Fonts.h"
#include "Textures.h"
#include "Audio.h"
#include "Map.h"
#include "EntityManager.h"
#include "SceneManager.h"
#include "Pathfinding.h"
#include "Defs.h"
#include "Log.h"
#include <iostream>
#include <sstream>
// Construc... | 18.041262 | 151 | 0.640118 | UriKurae |
4f5342d750c5ffda6e6e5e1937ca7d0cfe0a6f8e | 1,893 | hpp | C++ | render/include/storm/render/pipeline/RenderPassDescription.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 17 | 2019-02-12T14:40:06.000Z | 2021-12-21T12:54:17.000Z | render/include/storm/render/pipeline/RenderPassDescription.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | null | null | null | render/include/storm/render/pipeline/RenderPassDescription.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 2 | 2019-02-21T10:07:42.000Z | 2020-05-08T19:49:10.000Z | // Copyright (C) 2021 Arthur LAURENT <arthur.laurent4@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level of this distribution
#pragma once
/////////// - STL - ///////////
#include <vector>
/////////// - StormKit::core - ///////////
#include <storm/core/Has... | 32.637931 | 89 | 0.672478 | Arthapz |
4f534b57fa6b44542a5f864d69198af1bff27b1f | 2,286 | hpp | C++ | ql/time/calendars/mexico.hpp | reder2000/QuantLib | 1d58c3859a0872722aa570283c6571aeb64f6f39 | [
"BSD-3-Clause"
] | null | null | null | ql/time/calendars/mexico.hpp | reder2000/QuantLib | 1d58c3859a0872722aa570283c6571aeb64f6f39 | [
"BSD-3-Clause"
] | 2 | 2020-12-28T06:52:54.000Z | 2021-04-07T09:41:08.000Z | ql/time/calendars/mexico.hpp | reder2000/QuantLib | 1d58c3859a0872722aa570283c6571aeb64f6f39 | [
"BSD-3-Clause"
] | null | null | null | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it ... | 31.75 | 79 | 0.646107 | reder2000 |
4f5581187d1018ad704ae31538a7144ac2b0c5ef | 216 | cpp | C++ | PRACTICE/seriesX1.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | PRACTICE/seriesX1.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | PRACTICE/seriesX1.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int testCases,x,i;
long int result;
cin>>testCases;
while(testCases--)
{
cin>>x;
result=((x*x*x)+x);
cout<<result<<endl;
}
} | 13.5 | 27 | 0.555556 | prasantmahato |
4f57322c8be696f55f021a6ddbf41b3c29ce0109 | 85,664 | cpp | C++ | mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp | Kvarnefalk/llvm-project | 8b5f5798aaa24074609d151ea906d114cf5337c2 | [
"Apache-2.0"
] | 1 | 2021-02-17T04:40:38.000Z | 2021-02-17T04:40:38.000Z | mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp | Kvarnefalk/llvm-project | 8b5f5798aaa24074609d151ea906d114cf5337c2 | [
"Apache-2.0"
] | null | null | null | mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp | Kvarnefalk/llvm-project | 8b5f5798aaa24074609d151ea906d114cf5337c2 | [
"Apache-2.0"
] | null | null | null | //===- mlir-linalg-ods-gen.cpp - Linalg ODS generation from math form -----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 35.281713 | 86 | 0.626471 | Kvarnefalk |
4f57f215b3901633f5add7a4e1fc35148c099e66 | 3,807 | cpp | C++ | src/ripple/protocol/impl/BuildInfo.cpp | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | null | null | null | src/ripple/protocol/impl/BuildInfo.cpp | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | null | null | null | src/ripple/protocol/impl/BuildInfo.cpp | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | null | null | null | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | 27.388489 | 80 | 0.520357 | Py9595 |
4f58ea592e68e55ee75ef24fc4230d0e6362d51e | 5,465 | cpp | C++ | libs/spirit/repository/test/karma/subrule.cpp | anarthal/boost-unix-mirror | 8c34eb2fe471d6c3113c680c1fbef29e7a8063a0 | [
"BSL-1.0"
] | 106 | 2015-08-07T04:23:50.000Z | 2020-12-27T18:25:15.000Z | libs/spirit/repository/test/karma/subrule.cpp | anarthal/boost-unix-mirror | 8c34eb2fe471d6c3113c680c1fbef29e7a8063a0 | [
"BSL-1.0"
] | 130 | 2016-06-22T22:11:25.000Z | 2020-11-29T20:24:09.000Z | Libs/boost_1_76_0/libs/spirit/repository/test/karma/subrule.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 41 | 2015-07-08T19:18:35.000Z | 2021-01-14T16:39:56.000Z | // Copyright (c) 2001-2010 Hartmut Kaiser
// Copyright (c) 2009 Francois Barel
//
// 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)
#include <boost/config/warning_disable.hpp>
#include <boost/detail/lightweight_t... | 29.224599 | 80 | 0.526624 | anarthal |
4f5a88805eb6699012adc8c240d45d64c730b2d9 | 32,197 | cc | C++ | tensorflow/lite/kernels/transpose_conv_test.cc | massimobernava/tensorflow | 0a68ff9a205e14dd80fa0c51a0f6954d965f825e | [
"Apache-2.0"
] | 1 | 2022-03-29T11:36:50.000Z | 2022-03-29T11:36:50.000Z | tensorflow/lite/kernels/transpose_conv_test.cc | massimobernava/tensorflow | 0a68ff9a205e14dd80fa0c51a0f6954d965f825e | [
"Apache-2.0"
] | 1 | 2020-08-01T05:40:12.000Z | 2020-08-01T05:40:12.000Z | tensorflow/lite/kernels/transpose_conv_test.cc | massimobernava/tensorflow | 0a68ff9a205e14dd80fa0c51a0f6954d965f825e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020 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... | 39.798517 | 80 | 0.583967 | massimobernava |
4f5dc340417125c53fd371fd0fb4fc5db39e028d | 5,008 | cc | C++ | compator/road/distidxloader.cc | yuchenECNU/VTree | 32f98206b85cc9ac96f352c346c6316cf81efdca | [
"Unlicense"
] | null | null | null | compator/road/distidxloader.cc | yuchenECNU/VTree | 32f98206b85cc9ac96f352c346c6316cf81efdca | [
"Unlicense"
] | null | null | null | compator/road/distidxloader.cc | yuchenECNU/VTree | 32f98206b85cc9ac96f352c346c6316cf81efdca | [
"Unlicense"
] | null | null | null | /* ----------------------------------------------------------------------------
Author: Ken C. K. Lee
Email: cklee@cse.psu.edu
Web: http://www.cse.psu.edu/~cklee
Date: Jan, 2008
Copyright(c) Ken C. K. Lee 2008
This program is for non-commerical use only.
This program builds a distanc... | 31.3 | 79 | 0.465855 | yuchenECNU |
4f5e749457807efbcd4e88ab5680aae845e0f9fa | 1,061 | hpp | C++ | Kronos/src/Kronos/Application.hpp | razerx100/Kronos | 37ee8a63a7b47a9046e1a17dd64ef69ea3d4e798 | [
"Apache-2.0"
] | null | null | null | Kronos/src/Kronos/Application.hpp | razerx100/Kronos | 37ee8a63a7b47a9046e1a17dd64ef69ea3d4e798 | [
"Apache-2.0"
] | null | null | null | Kronos/src/Kronos/Application.hpp | razerx100/Kronos | 37ee8a63a7b47a9046e1a17dd64ef69ea3d4e798 | [
"Apache-2.0"
] | null | null | null | #ifndef __APPLICATION_HPP__
#define __APPLICATION_HPP__
#include "Core.hpp"
#include "Window.hpp"
#include "LayerStack.hpp"
#include "Events/Event.hpp"
#include "Events/ApplicationEvent.hpp"
#include "Events/KeyEvent.hpp"
#include "Events/MouseEvent.hpp"
#include "Log.hpp"
#include "Renderer/Renderer.hpp"
... | 24.674419 | 57 | 0.713478 | razerx100 |
4f60b3c775dfa9083074815d99c2eef2498907ad | 34,809 | cpp | C++ | src/Native/Runtime/RuntimeInstance.cpp | OceanYan/corert | bc9671edca37502794c01647215519d4254d3ad4 | [
"MIT"
] | null | null | null | src/Native/Runtime/RuntimeInstance.cpp | OceanYan/corert | bc9671edca37502794c01647215519d4254d3ad4 | [
"MIT"
] | null | null | null | src/Native/Runtime/RuntimeInstance.cpp | OceanYan/corert | bc9671edca37502794c01647215519d4254d3ad4 | [
"MIT"
] | null | null | null | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "common.h"
#include "CommonTypes.h"
#include "CommonMacros.h"
#include "daccess.h"
#include "PalRedhawkCommo... | 33.631884 | 151 | 0.652676 | OceanYan |
4f60bffbea5a49d327875527f745a419e50b9cd6 | 4,972 | cc | C++ | aku/Lattice.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | aku/Lattice.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | aku/Lattice.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | #include "Lattice.hh"
Lattice::Lattice()
{
resize(0, 0, 0);
}
void
Lattice::reset()
{
for (int f = 0; f < m_frames; f++) {
if (m_ranges[f].unused())
break;
reset_frame(f);
}
}
void
Lattice::resize(int frames, int positions, int block_size)
{
m_cells.resize(frames);
m_ranges.resize(frames);
... | 23.67619 | 80 | 0.617056 | phsmit |
4f6142310a48ea745dfa45240e0435f07882e0c3 | 2,588 | hh | C++ | server/core/internal/admin.hh | mariadb-ThienLy/MaxScale | 0ba6fb79b930ba90c544594e3580fc46054f6666 | [
"MIT"
] | null | null | null | server/core/internal/admin.hh | mariadb-ThienLy/MaxScale | 0ba6fb79b930ba90c544594e3580fc46054f6666 | [
"MIT"
] | null | null | null | server/core/internal/admin.hh | mariadb-ThienLy/MaxScale | 0ba6fb79b930ba90c544594e3580fc46054f6666 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2026-01-04
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 21.566667 | 85 | 0.612056 | mariadb-ThienLy |
4f6156a2f90a788b6d0b20117d25ab155a13d878 | 4,994 | cpp | C++ | independent_cng/src/spl_sqrt.cpp | zhang-ray/audio-processing-module | 3e779965e1316dbc07c1bd5c547646de8c4350bb | [
"BSD-3-Clause"
] | 25 | 2018-10-11T10:43:52.000Z | 2021-11-28T12:43:40.000Z | independent_cng/src/spl_sqrt.cpp | zhang-ray/audio-processing-module | 3e779965e1316dbc07c1bd5c547646de8c4350bb | [
"BSD-3-Clause"
] | 1 | 2018-08-25T14:55:07.000Z | 2018-08-25T14:55:07.000Z | independent_cng/src/spl_sqrt.cpp | zhang-ray/audio-processing-module | 3e779965e1316dbc07c1bd5c547646de8c4350bb | [
"BSD-3-Clause"
] | 7 | 2018-08-20T11:32:14.000Z | 2021-11-10T07:07:42.000Z | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 25.479592 | 90 | 0.515819 | zhang-ray |
4f6255012e9a049ee51ccc1ee4608839014d214e | 69,397 | cxx | C++ | TENDER/TenderSupplies/AliEMCALTenderSupply.cxx | aknospe/AliPhysics | bf2fb13800e25e98a1848ddc893301bb9da3828b | [
"BSD-3-Clause"
] | null | null | null | TENDER/TenderSupplies/AliEMCALTenderSupply.cxx | aknospe/AliPhysics | bf2fb13800e25e98a1848ddc893301bb9da3828b | [
"BSD-3-Clause"
] | null | null | null | TENDER/TenderSupplies/AliEMCALTenderSupply.cxx | aknospe/AliPhysics | bf2fb13800e25e98a1848ddc893301bb9da3828b | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 32.158017 | 139 | 0.650172 | aknospe |
4f693392a5ae36989618897b08f67bc7b7a73e3a | 4,586 | cpp | C++ | src/Implement/RequestHandler.cpp | Jazz86/Group4 | d48f610b57cbd01f8b072416036c1e64acbdc88d | [
"BSD-3-Clause"
] | null | null | null | src/Implement/RequestHandler.cpp | Jazz86/Group4 | d48f610b57cbd01f8b072416036c1e64acbdc88d | [
"BSD-3-Clause"
] | 19 | 2021-04-13T07:23:39.000Z | 2021-06-29T04:43:15.000Z | src/Implement/RequestHandler.cpp | Jazz86/Group4 | d48f610b57cbd01f8b072416036c1e64acbdc88d | [
"BSD-3-Clause"
] | 3 | 2021-04-06T09:05:56.000Z | 2021-04-13T10:08:15.000Z | // Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "RequestHandler.h"
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include "FileOp... | 36.110236 | 80 | 0.657436 | Jazz86 |
4f6b6094454a9da7a3d6e3df839cf7a1e71ccae1 | 1,173 | hpp | C++ | common/include/cleantype/details/cleantype_fp/fp_interact.hpp | ChronoCube/AM225 | 6e0789095f59eeb426c9e4ae9b600be0c04eca61 | [
"MIT"
] | 81 | 2018-12-21T22:44:48.000Z | 2022-01-01T22:14:59.000Z | common/include/cleantype/details/cleantype_fp/fp_interact.hpp | ChronoCube/AM225 | 6e0789095f59eeb426c9e4ae9b600be0c04eca61 | [
"MIT"
] | null | null | null | common/include/cleantype/details/cleantype_fp/fp_interact.hpp | ChronoCube/AM225 | 6e0789095f59eeb426c9e4ae9b600be0c04eca61 | [
"MIT"
] | 8 | 2018-12-24T12:15:44.000Z | 2021-06-16T19:19:51.000Z | // This file is part of cleantype: Clean Types for C++
// Copyright Pascal Thomet - 2018
// Distributed under the Boost Software License, Version 1.0. (see LICENSE.md)
#pragma once
#include <functional>
#include <iostream>
#include <iterator>
namespace cleantype_fp_interact
{
template <typename F>
std::functi... | 27.928571 | 88 | 0.556692 | ChronoCube |
4f6c6cacb3a43bb61bc4dd168dea64f8f9968a95 | 347 | cpp | C++ | start_point/hiker.tests.cpp | cyber-dojo-start-points/gplusplus-assert | 4389a864871bde913d9bbbbd404f03aa54409f7f | [
"BSD-2-Clause"
] | null | null | null | start_point/hiker.tests.cpp | cyber-dojo-start-points/gplusplus-assert | 4389a864871bde913d9bbbbd404f03aa54409f7f | [
"BSD-2-Clause"
] | null | null | null | start_point/hiker.tests.cpp | cyber-dojo-start-points/gplusplus-assert | 4389a864871bde913d9bbbbd404f03aa54409f7f | [
"BSD-2-Clause"
] | null | null | null | #include "hiker.hpp"
#include <cassert>
#include <iostream>
namespace
{
void test_global_function()
{
assert(answer() == 42);
}
void test_instance_method()
{
assert(hiker().answer() == 42);
}
}
int main()
{
test_global_function();
test_instance_method();
std::cout ... | 14.458333 | 39 | 0.585014 | cyber-dojo-start-points |
4f6c702697b5852adefb8f08819a5e69936771e5 | 81,959 | cpp | C++ | ghost/src/stats/statsdota.cpp | m-unkel/OHSystem | 4aa16eddf3a446ac6a1e7897adc2e6d8e69a8976 | [
"Apache-2.0"
] | 2 | 2016-06-15T09:16:49.000Z | 2017-07-25T11:05:16.000Z | ghost/src/stats/statsdota.cpp | m-unkel/OHSystem | 4aa16eddf3a446ac6a1e7897adc2e6d8e69a8976 | [
"Apache-2.0"
] | 2 | 2016-06-21T10:23:37.000Z | 2016-06-21T11:04:39.000Z | ghost/src/stats/statsdota.cpp | m-unkel/OHSystem | 4aa16eddf3a446ac6a1e7897adc2e6d8e69a8976 | [
"Apache-2.0"
] | 2 | 2016-06-16T17:21:18.000Z | 2018-07-01T13:12:19.000Z | /**
* Copyright [2013-2014] [OHsystem]
*
* We spent a lot of time writing this code, so show some respect:
* - Do not remove this copyright notice anywhere (bot, website etc.)
* - We do not provide support to those who removed copyright notice
*
* OHSystem is free software: You can redistribute it and/or modify
* it un... | 65.253981 | 1,330 | 0.38989 | m-unkel |
4f6e330884ab0ae26b1a29d792da3fc5a9aff545 | 194 | cpp | C++ | c++/lec1_jan27/counter.cpp | vyomshm/rust-programming | 2942f1684b961e15d8ab92227ba83361828e1e4d | [
"Unlicense"
] | null | null | null | c++/lec1_jan27/counter.cpp | vyomshm/rust-programming | 2942f1684b961e15d8ab92227ba83361828e1e4d | [
"Unlicense"
] | null | null | null | c++/lec1_jan27/counter.cpp | vyomshm/rust-programming | 2942f1684b961e15d8ab92227ba83361828e1e4d | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char** argv) {
int n = 10;
cout << "Number daal : \n";
cin >> n;
int i = 0;
while(i <= n) {
cout << i << endl;
i++;
}
}
| 12.125 | 33 | 0.520619 | vyomshm |
4f6f00859496f3c26048d787615729a386b36663 | 3,777 | hpp | C++ | SuperReads_RNA/global-1/SuperReadsR/include/skip_list_map.hpp | wrf/stringtie | 2e99dccd9a2e2ce51cfddcb3896984fa773697f7 | [
"MIT"
] | 255 | 2015-02-18T20:27:23.000Z | 2022-03-18T18:55:35.000Z | SuperReads_RNA/global-1/SuperReadsR/include/skip_list_map.hpp | wrf/stringtie | 2e99dccd9a2e2ce51cfddcb3896984fa773697f7 | [
"MIT"
] | 350 | 2015-03-11T14:24:06.000Z | 2022-03-29T03:54:10.000Z | SuperReads_RNA/global-1/SuperReadsR/include/skip_list_map.hpp | wrf/stringtie | 2e99dccd9a2e2ce51cfddcb3896984fa773697f7 | [
"MIT"
] | 66 | 2015-02-19T00:21:38.000Z | 2022-03-30T09:52:23.000Z | /* SuperRead pipeline
* Copyright (C) 2012 Genome group at University of Maryland.
*
* 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 3 of the
* License, or (at your option... | 38.540816 | 99 | 0.692348 | wrf |
4f703c8d19beffeacbe6d5f3a2da15a4d55eb5b5 | 4,371 | cpp | C++ | bt-maxsat/mcs.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | bt-maxsat/mcs.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | bt-maxsat/mcs.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | #include "mcs.hpp"
#include <vector>
#include <cassert>
#include "utils.hpp"
#include "graph.hpp"
namespace triangulator {
namespace mcs {
std::vector<int> Mcs(const Graph& graph) {
std::vector<int> order(graph.n());
static std::vector<int> label;
static std::vector<char> rm;
static std::vector<std::vector<... | 29.14 | 95 | 0.554793 | Laakeri |
4f71dae7f6dd5b08d7a0290cee6a62620cf7145c | 693 | cpp | C++ | spoj/SMPSEQ6.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | spoj/SMPSEQ6.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | spoj/SMPSEQ6.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
#define le 105
using namespace std;
int n[le];
int m[le];
bool fnc(int key, int ct, int len, int x){
int i = ct - x, f = ct + x;
if(i < 0) i = 0;
if(f >= len) f = len - 1;
for(int c = i; c <= f; c++){
if(key == m[c]) return 1;
}
return 0;
}
int main(){
in... | 21 | 53 | 0.408369 | cosmicray001 |
4f72bd378c6ba8febc3482cee9f6fca0f28ebc22 | 3,177 | hpp | C++ | ngraph/core/include/openvino/op/roi_align.hpp | lsc31/openvino | c00b0b6ae402c781a19cacf966fd4ac379ec5370 | [
"Apache-2.0"
] | 1 | 2021-07-14T07:20:24.000Z | 2021-07-14T07:20:24.000Z | ngraph/core/include/openvino/op/roi_align.hpp | lsc31/openvino | c00b0b6ae402c781a19cacf966fd4ac379ec5370 | [
"Apache-2.0"
] | 35 | 2020-11-13T16:32:58.000Z | 2022-03-12T15:05:16.000Z | ngraph/core/include/openvino/op/roi_align.hpp | sungeunk/openvino | c55291d62fced468570d15594738a7db6ef31c9d | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "openvino/op/op.hpp"
namespace ov {
namespace op {
namespace v3 {
class OPENVINO_API ROIAlign : public Op {
public:
OPENVINO_OP("ROIAlign", "opset3", op::Op, 3);
BWDCMP_RTTI_DECLARATION;
enum clas... | 32.418367 | 98 | 0.647466 | lsc31 |
4f7342d0f47f28890fe3f1f7d842b32032c21894 | 9,005 | hpp | C++ | src/lua_api.hpp | Dmitry450/sfml-lua-game | 43b5c355440e913a4405fa3f44d50c4968ebe9c9 | [
"Unlicense"
] | null | null | null | src/lua_api.hpp | Dmitry450/sfml-lua-game | 43b5c355440e913a4405fa3f44d50c4968ebe9c9 | [
"Unlicense"
] | null | null | null | src/lua_api.hpp | Dmitry450/sfml-lua-game | 43b5c355440e913a4405fa3f44d50c4968ebe9c9 | [
"Unlicense"
] | null | null | null | #ifndef LUA_API_HPP
#define LUA_API_HPP
#include <lua.hpp>
#include <iostream>
#include <SFML/Graphics/Rect.hpp>
#include <SFML/System/Vector2.hpp>
#include <vector>
#include "entitymgr.hpp"
#include "entity.hpp"
#include "world.hpp"
#include "resource_holder.hpp"
#include "animation.hpp"
#include "player.hpp"
// Re... | 30.117057 | 94 | 0.708828 | Dmitry450 |
4f740d2dea703267eb20f1a1586544eafacac4f6 | 46,492 | cc | C++ | src/kudu/consensus/raft_consensus_quorum-test.cc | SuckShit/kudu | ec5d1e29e019d4e5274231ae57cc14e7a4d52a72 | [
"Apache-2.0"
] | 6 | 2020-05-12T02:18:48.000Z | 2021-04-15T20:39:21.000Z | src/kudu/consensus/raft_consensus_quorum-test.cc | toddlipcon/kudu | e5ee5e08c68c9c661ce676ad629b4ad3abf57def | [
"Apache-2.0"
] | null | null | null | src/kudu/consensus/raft_consensus_quorum-test.cc | toddlipcon/kudu | e5ee5e08c68c9c661ce676ad629b4ad3abf57def | [
"Apache-2.0"
] | null | null | null | // 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, Version 2.0 (the
// "License"); you may... | 39.736752 | 99 | 0.701691 | SuckShit |
4f78d7537f9a917aa50ebcd6fcd56688262b3b96 | 355 | hpp | C++ | src/utils/IIterrator.hpp | Vict0rynox/ft_retro | fe3ab75fb86406367837ba393e1c221133590bf4 | [
"MIT"
] | null | null | null | src/utils/IIterrator.hpp | Vict0rynox/ft_retro | fe3ab75fb86406367837ba393e1c221133590bf4 | [
"MIT"
] | null | null | null | src/utils/IIterrator.hpp | Vict0rynox/ft_retro | fe3ab75fb86406367837ba393e1c221133590bf4 | [
"MIT"
] | null | null | null | //
// Created by Victor Vasiliev on 11/4/17.
//
#ifndef FT_RETRO_IITERRATOR_HPP
#define FT_RETRO_IITERRATOR_HPP
namespace Utils
{
template <class T>
class IIterrator {
public:
virtual T curr() = 0;
virtual bool isEnd() = 0;
virtual void next() = 0;
virtual void prev() = 0;
virtual void reset() = 0;
};
}... | 16.136364 | 41 | 0.687324 | Vict0rynox |
4f7983eaa644cea5fa78e69e1ad66e2bc75d0fc2 | 27,397 | cpp | C++ | libgpos/server/src/unittest/gpos/memory/CCacheTest.cpp | soumyadeep2007/gporca | f255dea5a93a9e1fdd1b3303779866799fd13cb5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libgpos/server/src/unittest/gpos/memory/CCacheTest.cpp | soumyadeep2007/gporca | f255dea5a93a9e1fdd1b3303779866799fd13cb5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libgpos/server/src/unittest/gpos/memory/CCacheTest.cpp | soumyadeep2007/gporca | f255dea5a93a9e1fdd1b3303779866799fd13cb5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC CORP.
//
// @filename:
// CCacheTest.cpp
//
// @doc:
// Tests for CCache
//---------------------------------------------------------------------------
#include "gpos/error/CAutoTrace.h"
#incl... | 27.260697 | 126 | 0.638245 | soumyadeep2007 |
4f7a47f47f5c2936a021bdd471bcef92905fc271 | 40,660 | cpp | C++ | src/pal/src/thread/threadsusp.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | 1 | 2015-05-22T14:11:51.000Z | 2015-05-22T14:11:51.000Z | src/pal/src/thread/threadsusp.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | null | null | null | src/pal/src/thread/threadsusp.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | null | null | null | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*++
Module Name:
threadsusp.cpp
Abstract:
Implementation of functions related to threads.
Revision History:
--*/
#include "pal/corunix.hpp"
... | 32.269841 | 143 | 0.697049 | CyberSys |
4f7b0b54b537ceb2d02a0147f50c33123ddfc8ef | 1,914 | cpp | C++ | assignment07/assignment7-2.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | assignment07/assignment7-2.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | assignment07/assignment7-2.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | /*
* Problem Solving Assignment7-2 : 여행 계획 세우기
* https://www.acmicpc.net/problem/2152
*/
#include <cstdio>
#include <vector>
#include <stack>
#include <cstring>
#define MAXLEN 10001
using namespace std;
int N, M, S, T;
vector<vector<int> > G, GI, GG;
bool visited[MAXLEN];
int g_num, group[MAXLEN], g_cnt[MAXLEN], r... | 21.505618 | 58 | 0.474399 | qpakzk |
4f7c5b63f1b16711787957c7c62659cdfd576be3 | 1,656 | cpp | C++ | host/display/balance_layer.cpp | wmax351/airball-embedded | 204189922415b0f3cbef5dda14fa137e3c806a7d | [
"MIT"
] | null | null | null | host/display/balance_layer.cpp | wmax351/airball-embedded | 204189922415b0f3cbef5dda14fa137e3c806a7d | [
"MIT"
] | null | null | null | host/display/balance_layer.cpp | wmax351/airball-embedded | 204189922415b0f3cbef5dda14fa137e3c806a7d | [
"MIT"
] | null | null | null | #include "balance_layer.h"
#include <algorithm>
#include <mutex>
namespace airball {
double valid_gain(double x) {
return std::max(0.0, std::min(1.0, x));
}
balance_layer::balance_layer(
double left_gain,
double right_gain,
snd_pcm_uframes_t ramp_period) {
goal_ = {
valid_gain(left_gain),
... | 22.684932 | 70 | 0.688406 | wmax351 |
4f7ca119e6142e3d538b5b0114dd6849cbacc1a6 | 9,291 | cc | C++ | tests/unittests/stream_unittest.cc | curasystems/cef | 75bf737f56659bdc8e441b2e4e0cb8b343936dc4 | [
"BSD-3-Clause"
] | 1 | 2015-11-23T12:12:08.000Z | 2015-11-23T12:12:08.000Z | tests/unittests/stream_unittest.cc | curasystems/cef | 75bf737f56659bdc8e441b2e4e0cb8b343936dc4 | [
"BSD-3-Clause"
] | null | null | null | tests/unittests/stream_unittest.cc | curasystems/cef | 75bf737f56659bdc8e441b2e4e0cb8b343936dc4 | [
"BSD-3-Clause"
] | 1 | 2020-02-13T08:12:07.000Z | 2020-02-13T08:12:07.000Z | // Copyright (c) 2009 The Chromium Embedded Framework 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 "include/cef_stream.h"
#include "testing/gtest/include/gtest/gtest.h"
static void VerifyStreamReadBehavior(CefRefPtr<CefS... | 25.110811 | 80 | 0.695619 | curasystems |
4f80f069bca4f2900e7e1a112f4e2836fc3506a2 | 5,954 | cpp | C++ | ClientMigration/TRedirectServer/ServerMain.cpp | Fiskmans/ClientMigration | ab863986fb580b790c5918819878f86e8c5b4d6b | [
"MIT"
] | 1 | 2020-03-16T12:19:42.000Z | 2020-03-16T12:19:42.000Z | ClientMigration/TRedirectServer/ServerMain.cpp | Fiskmans/ClientMigration | ab863986fb580b790c5918819878f86e8c5b4d6b | [
"MIT"
] | null | null | null | ClientMigration/TRedirectServer/ServerMain.cpp | Fiskmans/ClientMigration | ab863986fb580b790c5918819878f86e8c5b4d6b | [
"MIT"
] | null | null | null | #include <pch.h>
#include "ServerMain.h"
#include <string>
#include <SetupMessage.h>
#include <StatusMessage.h>
#include <thread>
#include <TimeHelper.h>
#include <Random.h>
RedirectServer::RedirectServer()
{
}
RedirectServer::~RedirectServer()
{
}
#define PORT 5763
#define CLIENTPORT 5764
int CalculateBroadcast... | 21.97048 | 211 | 0.656533 | Fiskmans |
4f818a437a8353c1bc88390138b08219d790c8d8 | 3,623 | cpp | C++ | Source/VlcMedia/Private/Player/VlcMediaSource.cpp | jeirix/UnrealEngine5VLC | f74f5dde001631b2856cece61d5f5b907ae35c3c | [
"BSD-3-Clause"
] | 1 | 2022-03-23T04:35:54.000Z | 2022-03-23T04:35:54.000Z | Source/VlcMedia/Private/Player/VlcMediaSource.cpp | jeirix/UnrealEngine5VLC | f74f5dde001631b2856cece61d5f5b907ae35c3c | [
"BSD-3-Clause"
] | null | null | null | Source/VlcMedia/Private/Player/VlcMediaSource.cpp | jeirix/UnrealEngine5VLC | f74f5dde001631b2856cece61d5f5b907ae35c3c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "VlcMediaSource.h"
#include "VlcMediaPrivate.h"
#include "Vlc.h"
/* FVlcMediaReader structors
*****************************************************************************/
FVlcMediaSource::FVlcMediaSource(FLibvlcInstance* InVlcInstan... | 19.068421 | 130 | 0.606956 | jeirix |
4f8275c4bb3f7d34dc743838782eb60aee8c8ccc | 8,993 | cpp | C++ | unittests/ADT/ArrayRefTest.cpp | AlexVlx/llvm | 08ba61dfeeac3e1eccff413870340197935e28bc | [
"Apache-2.0"
] | 938 | 2015-12-03T16:45:43.000Z | 2022-03-17T20:28:02.000Z | unittests/ADT/ArrayRefTest.cpp | AlexVlx/llvm | 08ba61dfeeac3e1eccff413870340197935e28bc | [
"Apache-2.0"
] | 127 | 2015-12-03T21:42:53.000Z | 2019-11-21T14:34:20.000Z | unittests/ADT/ArrayRefTest.cpp | AlexVlx/llvm | 08ba61dfeeac3e1eccff413870340197935e28bc | [
"Apache-2.0"
] | 280 | 2015-12-03T16:51:35.000Z | 2022-01-24T00:01:54.000Z | //===- llvm/unittest/ADT/ArrayRefTest.cpp - ArrayRef unit tests -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 34.324427 | 80 | 0.650061 | AlexVlx |
4f82c566d5621dc806c3e47d3c1b0a7805c266fb | 544 | hpp | C++ | game_server/src/crank.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | 5 | 2017-07-20T10:36:23.000Z | 2018-01-30T16:18:31.000Z | game_server/src/crank.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | game_server/src/crank.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | #ifndef CRANK_HPP
#define CRANK_HPP
#include <block.hpp>
#include <action.hpp>
#include <constants.hpp>
#include <bitset>
class Crank: public Action
{
public:
virtual ~Crank() = default;
virtual void crank(Block *block);
virtual void crank_for(Block *block, int generations);
virtual CELL_TYPE crank_cell(Block *block,... | 24.727273 | 62 | 0.751838 | CellWarsOfficial |
4f82d48f28516e55c1ff7c492df0fdbd4804f3fa | 1,113 | hpp | C++ | Engine/Terrain/TRMisc.hpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Engine/Terrain/TRMisc.hpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Engine/Terrain/TRMisc.hpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #ifndef SE_INCL_TERRAIN_MISC_HPP
#define SE_INCL_TERRAIN_MISC_HPP
#ifdef PRAGMA_ONCE
#pragma once
#endif
struct SimpleTerrainTriangle
{
SimpleTerrainTriangle(void) {};
SimpleTerrainTriangle(FLOAT3D v0, FLOAT3D v1, FLOAT3D v2)
{
stt_avx[0] = v0;
stt_avx[1] = v1;
stt_avx[2] = v2;
}
FLOAT3D stt_avx... | 32.735294 | 88 | 0.718778 | openlastchaos |
4f848efdca12eb576e319aeca0a344c29bf2519a | 15,329 | hpp | C++ | ad_physics/generated/include/ad/physics/DurationSquared.hpp | hulk-mk/map | 261e7329afdc56d6f8cfb63285039764b2dc6361 | [
"MIT"
] | null | null | null | ad_physics/generated/include/ad/physics/DurationSquared.hpp | hulk-mk/map | 261e7329afdc56d6f8cfb63285039764b2dc6361 | [
"MIT"
] | null | null | null | ad_physics/generated/include/ad/physics/DurationSquared.hpp | hulk-mk/map | 261e7329afdc56d6f8cfb63285039764b2dc6361 | [
"MIT"
] | 1 | 2020-10-27T11:09:30.000Z | 2020-10-27T11:09:30.000Z | /*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/**
* Generated file
* @file
*
* Generator Version : 11.0.0-1997
*/
#p... | 26.42931 | 118 | 0.687977 | hulk-mk |
4f84ff2b6c6528f1c18a73ceb21af11c6fabb053 | 28,189 | cpp | C++ | src/coreclr/src/vm/inlinetracking.cpp | patricksadowski/runtime | aa5b2041471d7687dbddb1d275ea8a93943c43bf | [
"MIT"
] | 2 | 2020-05-27T10:46:24.000Z | 2020-05-27T10:46:27.000Z | src/coreclr/src/vm/inlinetracking.cpp | patricksadowski/runtime | aa5b2041471d7687dbddb1d275ea8a93943c43bf | [
"MIT"
] | 1 | 2020-04-24T10:03:11.000Z | 2020-04-24T10:03:11.000Z | src/coreclr/src/vm/inlinetracking.cpp | patricksadowski/runtime | aa5b2041471d7687dbddb1d275ea8a93943c43bf | [
"MIT"
] | 1 | 2020-08-04T14:01:38.000Z | 2020-08-04T14:01:38.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// =============================================================================================
// Code for tracking... | 34.930607 | 175 | 0.670971 | patricksadowski |
4f85560d8ad56dc3a326ee07f360374566820569 | 3,928 | cpp | C++ | nano/lib/locks.cpp | Srayman/nano-node | d5fd87c1f73d8e5edac33e7969c1b3d5a04d90f4 | [
"BSD-2-Clause"
] | 3 | 2020-12-24T06:32:59.000Z | 2021-01-13T17:50:51.000Z | nano/lib/locks.cpp | Ifarukcolak/nano-node | 14454a234eaef6bd7e702ce252eebd3cf7cf3181 | [
"BSD-2-Clause"
] | null | null | null | nano/lib/locks.cpp | Ifarukcolak/nano-node | 14454a234eaef6bd7e702ce252eebd3cf7cf3181 | [
"BSD-2-Clause"
] | 1 | 2021-09-21T10:57:56.000Z | 2021-09-21T10:57:56.000Z | #include <nano/lib/locks.hpp>
#include <nano/lib/utility.hpp>
#if NANO_TIMED_LOCKS > 0
namespace
{
template <typename Mutex>
void output (const char * str, std::chrono::milliseconds time, Mutex & mutex)
{
static std::mutex cout_mutex;
auto stacktrace = nano::generate_stacktrace ();
// Guard standard out to keep the... | 19.738693 | 98 | 0.691446 | Srayman |
4f863fd5b046a7c6bb13b874cc6924a29f7280ea | 442 | cpp | C++ | template/Add.cpp | jdh8/dragonite | af727ab5a1366efea917f2cb7e9b8797fa01d952 | [
"MIT"
] | null | null | null | template/Add.cpp | jdh8/dragonite | af727ab5a1366efea917f2cb7e9b8797fa01d952 | [
"MIT"
] | null | null | null | template/Add.cpp | jdh8/dragonite | af727ab5a1366efea917f2cb7e9b8797fa01d952 | [
"MIT"
] | null | null | null | #include "common.hpp"
{% from "mod/batch.cpp" import batch -%}
{% from "mod/binary.cpp" import inner, outer -%}
{% call(name, shape) batch() -%}
{% call(x, y) outer("Add", name, shape) -%}
{% set a = numpy.random.standard_cauchy(x).astype(numpy.float32) -%}
{% set b = numpy.random.standard_cauchy(... | 31.571429 | 76 | 0.565611 | jdh8 |
4f8902a93982b124df08d91dbf39706c491eb85c | 64,990 | cpp | C++ | lib/AST/Builtins.cpp | gottesmm/swift | ac57b66c99f9e5f8dd023245a28447613f74d08d | [
"Apache-2.0"
] | 2 | 2016-11-03T04:30:53.000Z | 2016-12-07T08:17:10.000Z | lib/AST/Builtins.cpp | gottesmm/swift | ac57b66c99f9e5f8dd023245a28447613f74d08d | [
"Apache-2.0"
] | 1 | 2016-08-16T17:02:01.000Z | 2016-12-14T23:46:57.000Z | lib/AST/Builtins.cpp | gottesmm/swift | ac57b66c99f9e5f8dd023245a28447613f74d08d | [
"Apache-2.0"
] | null | null | null | //===--- Builtins.cpp - Swift Language Builtin ASTs -----------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 36.926136 | 104 | 0.685105 | gottesmm |
4f8c2a7a899054765b8968b25847d31b8cc63716 | 1,026 | hpp | C++ | src/cpp/include/nodegui/QtWidgets/QSystemTrayIcon/nsystemtrayicon.hpp | NeryHenrique/nodegui | 254b6a910928f512e57bc4bfab7dfadcd2073c84 | [
"MIT"
] | 1 | 2020-07-30T15:02:17.000Z | 2020-07-30T15:02:17.000Z | src/cpp/include/nodegui/QtWidgets/QSystemTrayIcon/nsystemtrayicon.hpp | NeryHenrique/nodegui | 254b6a910928f512e57bc4bfab7dfadcd2073c84 | [
"MIT"
] | 5 | 2021-06-28T20:44:38.000Z | 2022-02-27T11:34:26.000Z | src/cpp/include/nodegui/QtWidgets/QSystemTrayIcon/nsystemtrayicon.hpp | NeryHenrique/nodegui | 254b6a910928f512e57bc4bfab7dfadcd2073c84 | [
"MIT"
] | 1 | 2020-07-29T15:00:18.000Z | 2020-07-29T15:00:18.000Z | #pragma once
#include <QSystemTrayIcon>
#include "Extras/Export/export.h"
#include "QtCore/QObject/qobject_macro.h"
#include "core/NodeWidget/nodewidget.h"
#include "napi.h"
class DLL_EXPORT NSystemTrayIcon : public QSystemTrayIcon, public EventWidget {
Q_OBJECT
EVENTWIDGET_IMPLEMENTATIONS(QSystemTrayIcon)
publi... | 29.314286 | 79 | 0.674464 | NeryHenrique |
4f8fce46adcef976365d83a5a60359ac879cc6af | 341 | cpp | C++ | src/core.initialization/Initializable.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | src/core.initialization/Initializable.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | src/core.initialization/Initializable.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | #include "Initializable.h"
using namespace nspace;
bool Initializable::initialize(){
if(_initialized){
return true;
}
_initialized = initializeObject();
if(_initialized)onObjectInitialized();
return _initialized;
};
bool Initializable::cleanup(){
cleanupObject();
_initialized = false... | 18.944444 | 41 | 0.68915 | toeb |
4f91c8e832a0b4364c360d0c57f7f065ff4ff6ba | 974 | cpp | C++ | dmengine/core/private/dmliveobject_p.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | dmengine/core/private/dmliveobject_p.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | dmengine/core/private/dmliveobject_p.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2012-2014 Xiongfa Li, <damao1222@live.com>
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
... | 24.35 | 75 | 0.743326 | damao1222 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.