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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ca4710161503f1db2410a27bdd407a14d167280 | 16,882 | cpp | C++ | graphics/cgal/STL_Extension/test/STL_Extension/test_multiset.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | 4 | 2016-03-30T14:31:52.000Z | 2019-02-02T05:01:32.000Z | graphics/cgal/STL_Extension/test/STL_Extension/test_multiset.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | graphics/cgal/STL_Extension/test/STL_Extension/test_multiset.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | // ============================================================================
//
// Copyright (c) 2005 The CGAL Consortium
//
// This software and related documentation is part of an INTERNAL release
// of the Computational Geometry Algorithms Library (CGAL). It is not
// intended for general use.
//
// -------------... | 26.29595 | 79 | 0.497512 | hlzz |
4ca622cf63d1b2b43c3daf5161c35c4a64d8b9c5 | 55 | hpp | C++ | include/scapin/scapin.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | null | null | null | include/scapin/scapin.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 4 | 2020-09-24T07:32:21.000Z | 2020-12-01T08:06:00.000Z | include/scapin/scapin.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 1 | 2020-02-02T18:05:15.000Z | 2020-02-02T18:05:15.000Z | #pragma once
#include "core.hpp"
#include "hooke.hpp"
| 11 | 20 | 0.709091 | sbrisard |
4ca792d7e9660efb0d8b18ae894764ca09b7e6e0 | 1,485 | cpp | C++ | src/lib/SKManagedClient/MOpTimeoutController.cpp | LevyForch/SilverKing | 6ab063d0f1695675271eecba723f8f1a3b4f75a5 | [
"Apache-2.0"
] | null | null | null | src/lib/SKManagedClient/MOpTimeoutController.cpp | LevyForch/SilverKing | 6ab063d0f1695675271eecba723f8f1a3b4f75a5 | [
"Apache-2.0"
] | 85 | 2021-06-30T01:20:47.000Z | 2021-09-14T01:09:41.000Z | src/lib/SKManagedClient/MOpTimeoutController.cpp | LevyForch/SilverKing | 6ab063d0f1695675271eecba723f8f1a3b4f75a5 | [
"Apache-2.0"
] | null | null | null | #include "StdAfx.h"
#include "MOpTimeoutController.h"
#include "SKAsyncOperation.h"
#include <cstddef>
#include "SKOpTimeoutController.h"
#include "MAsyncOperation.h"
using namespace System;
using namespace System::Net;
using namespace System::Runtime::InteropServices;
namespace SKManagedClient {
MOpTimeoutControll... | 27.5 | 101 | 0.785185 | LevyForch |
4ca7939ee1f48050997521e86ce834c26a8bd999 | 222 | cpp | C++ | HDUOJ/2107.cpp | LzyRapx/Competitive-Programming | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | 81 | 2018-06-03T04:27:45.000Z | 2020-09-13T09:04:12.000Z | HDUOJ/2107.cpp | Walkerlzy/Competitive-algorithm | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | null | null | null | HDUOJ/2107.cpp | Walkerlzy/Competitive-algorithm | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | 21 | 2018-07-11T04:02:38.000Z | 2020-07-18T20:31:14.000Z | #include <stdio.h>
int main()
{
int t,a,max;
while(scanf("%d",&t)!=EOF &&t!=0)
{
max=0;
while(t--)
{
scanf("%d",&a);
if(a>max)
{
max=a;
}
}
printf("%d\n",max);
}
return 0;
} | 11.684211 | 35 | 0.405405 | LzyRapx |
4ca8e2e82d9dad9ee92f27c9529e55e557fb227f | 25 | cpp | C++ | library/cpp/iterator/concatenate.cpp | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | library/cpp/iterator/concatenate.cpp | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | library/cpp/iterator/concatenate.cpp | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | #include "concatenate.h"
| 12.5 | 24 | 0.76 | jochenater |
4ca8f524968b0b8b0fc493da4b396e450d0bd1f3 | 5,060 | hxx | C++ | main/filter/source/config/cache/cacheupdatelistener.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/filter/source/config/cache/cacheupdatelistener.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/filter/source/config/cache/cacheupdatelistener.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* 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 y... | 35.138889 | 113 | 0.57668 | Grosskopf |
4cac1a7f4b7e0ef3200dd3a2e1bda64bde60bf7b | 1,841 | cpp | C++ | 2018/cpp/src/day23.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | 1 | 2021-12-04T20:55:02.000Z | 2021-12-04T20:55:02.000Z | 2018/cpp/src/day23.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | 2018/cpp/src/day23.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <sstream>
#include <get_input.hpp>
class Nanobot {
private:
int xx, yy, zz, rr;
public:
Nanobot() = default;
Nanobot(int x, int y, int z, int r)
: xx{x}, yy{y}, zz{z}, rr{r} { }
int x() const { return xx; }
int y() const ... | 21.658824 | 76 | 0.552417 | Chrinkus |
4cafa692193ad8d83d94ab89b39b484ba5870a99 | 2,582 | cpp | C++ | B2G/gecko/uriloader/exthandler/ExternalHelperAppChild.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/uriloader/exthandler/ExternalHelperAppChild.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/uriloader/exthandler/ExternalHelperAppChild.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 27.468085 | 79 | 0.583269 | wilebeast |
4cb41210ea8ee7c5d4f8c5d2a3be94488f147348 | 1,695 | cpp | C++ | questions/repeat-24435851/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 54 | 2015-09-13T07:29:52.000Z | 2022-03-16T07:43:50.000Z | questions/repeat-24435851/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | null | null | null | questions/repeat-24435851/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 31 | 2016-08-26T13:35:01.000Z | 2022-03-13T16:43:12.000Z | #include <QLabel>
#include <QHBoxLayout>
#include <QBasicTimer>
#include <QProcess>
#include <QApplication>
class Widget : public QWidget {
Q_OBJECT
QHBoxLayout m_layout;
QLabel m_label;
QBasicTimer m_timer;
QProcess m_process;
void timerEvent(QTimerEvent * ev) {
if (ev->timerId() == m_... | 27.33871 | 84 | 0.561652 | SammyEnigma |
4cb4836663a4bb1aae276b44cb043f064f7078b0 | 15,064 | cpp | C++ | Source Code/NEXTA-GUI/TLite.cpp | OSADP/DTALite-AMS | 0779e0b3f1a423823b825b88237226a3216db960 | [
"Apache-2.0"
] | 1 | 2020-12-02T05:50:34.000Z | 2020-12-02T05:50:34.000Z | Source Code/NEXTA-GUI/TLite.cpp | OSADP/DTALite-AMS | 0779e0b3f1a423823b825b88237226a3216db960 | [
"Apache-2.0"
] | null | null | null | Source Code/NEXTA-GUI/TLite.cpp | OSADP/DTALite-AMS | 0779e0b3f1a423823b825b88237226a3216db960 | [
"Apache-2.0"
] | 2 | 2020-10-16T09:26:08.000Z | 2021-11-17T06:59:51.000Z | // TLite.cpp : Defines the class behaviors for the application.
//
// Portions Copyright 2010 Xuesong Zhou (xzhou99@gmail.com)
// If you help write or modify the code, please also list your names here.
// The reason of having Copyright info here is to ensure all the modified version, as a whole, under the GPL
//... | 26.756661 | 191 | 0.716543 | OSADP |
4cb6bb1a8df280830bf45e94a50807501bdfce34 | 11,650 | cpp | C++ | src/matOptimize/transpose_vcf/transposed_vcf_to_fa.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | 67 | 2020-09-18T23:10:37.000Z | 2022-02-02T17:58:19.000Z | src/matOptimize/transpose_vcf/transposed_vcf_to_fa.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | 132 | 2020-09-21T03:11:29.000Z | 2022-03-31T23:19:14.000Z | src/matOptimize/transpose_vcf/transposed_vcf_to_fa.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | 22 | 2020-09-18T20:28:21.000Z | 2022-03-24T12:17:33.000Z | #include "../mutation_annotated_tree.hpp"
#include "src/matOptimize/tree_rearrangement_internal.hpp"
#include "transpose_vcf.hpp"
#include <algorithm>
#include <boost/program_options.hpp>
#include <boost/program_options/value_semantic.hpp>
#include <climits>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#incl... | 36.984127 | 161 | 0.587039 | abschneider |
4cb793464cc29ff53929ee5a538f85ec609d9828 | 3,614 | cpp | C++ | src/cpp/event/PeriodicEventHandler.cpp | rockstarartist/DDS-Router | 245099e5e1be584e9d37e9b16648183ab383d727 | [
"Apache-2.0"
] | 1 | 2021-11-15T08:16:58.000Z | 2021-11-15T08:16:58.000Z | src/cpp/event/PeriodicEventHandler.cpp | rockstarartist/DDS-Router | 245099e5e1be584e9d37e9b16648183ab383d727 | [
"Apache-2.0"
] | 18 | 2021-08-30T09:19:30.000Z | 2021-11-16T07:17:38.000Z | src/cpp/event/PeriodicEventHandler.cpp | rockstarartist/DDS-Router | 245099e5e1be584e9d37e9b16648183ab383d727 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 26.573529 | 103 | 0.676259 | rockstarartist |
4cb7ca5381c511d77aceb7fa90f1be690b5aae74 | 586 | cpp | C++ | LeetCode/Solutions/LC0064.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | LeetCode/Solutions/LC0064.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | LeetCode/Solutions/LC0064.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://leetcode.com/problems/minimum-path-sum/
*/
class Solution {
public:
int minPathSum(vector< vector<int> >& grid) {
int m, n;
m = grid.size();
n = grid[0].size();
int dp[m][n];
// base cases
dp[0][0] = grid[0][0];
for (int i = 1; i < m; i++)
dp[i][0] = grid[i][0] + dp[i... | 21.703704 | 66 | 0.481229 | Mohammed-Shoaib |
4cb9fbf799d1276b3e2e8c3c7446c741e780dcf1 | 7,204 | cpp | C++ | hash.cpp | grasslog/HashFile | e584a0920037ef80dd155142dc39b03e38071430 | [
"MIT"
] | 3 | 2019-08-28T14:59:21.000Z | 2019-09-11T20:01:21.000Z | hash.cpp | grasslog/HashFile | e584a0920037ef80dd155142dc39b03e38071430 | [
"MIT"
] | null | null | null | hash.cpp | grasslog/HashFile | e584a0920037ef80dd155142dc39b03e38071430 | [
"MIT"
] | 1 | 2022-01-03T07:21:59.000Z | 2022-01-03T07:21:59.000Z | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h> // access()
#include <string.h>
#include <string>
#include <unordered_map>
#include <vector>
#include <algorithm>
#include <regex>
#define HASH_FILE_PATH "/home/grasslog/tmp/IP/ip_data.dat"
#define HASH_GENERATION_PATH "/home/grasslog/tmp/... | 22.09816 | 94 | 0.605636 | grasslog |
4cbf1d8d76975a10680f733bfe3ee46c047394e4 | 5,382 | hh | C++ | netstar/port.hh | yxd886/seastar | 23792b7077e6c39aed2148ba3bf90c7de7c7295c | [
"Apache-2.0"
] | null | null | null | netstar/port.hh | yxd886/seastar | 23792b7077e6c39aed2148ba3bf90c7de7c7295c | [
"Apache-2.0"
] | null | null | null | netstar/port.hh | yxd886/seastar | 23792b7077e6c39aed2148ba3bf90c7de7c7295c | [
"Apache-2.0"
] | null | null | null | #ifndef _PORT_HH
#define _PORT_HH
#include <memory>
#include <experimental/optional>
#include "core/future.hh"
#include "core/stream.hh"
#include "core/circular_buffer.hh"
#include "core/semaphore.hh"
#include "core/queue.hh"
#include "netstar/qp_wrapper.hh"
using namespace seastar;
namespace netstar{
// A regula... | 37.636364 | 120 | 0.639911 | yxd886 |
4cc030fb1d143f231a2144a35c6ea53f9aa46167 | 362 | cpp | C++ | POO/Exercitii_examen/Exercitii/038.cpp | andrei-micuda/teme-fmi | d31c032c45e0e910d75fc05faab3681d421aac7c | [
"MIT"
] | 1 | 2020-06-07T09:45:17.000Z | 2020-06-07T09:45:17.000Z | POO/Exercitii_examen/Exercitii/038.cpp | micu01/teme-fmi | d31c032c45e0e910d75fc05faab3681d421aac7c | [
"MIT"
] | null | null | null | POO/Exercitii_examen/Exercitii/038.cpp | micu01/teme-fmi | d31c032c45e0e910d75fc05faab3681d421aac7c | [
"MIT"
] | 2 | 2020-04-09T19:27:36.000Z | 2020-06-28T17:45:14.000Z | #include<iostream>
using namespace std;
template<class X, class Y>
X f(X x, Y y)
{
// x si y sunt pointeri si nu ii poti aduna
return x+y;
}
int *f(int *x,int y)
{
return x-y;
}
int main()
{
int *a=new int(200), *b=a; // o solutie poate fi sa il facem pe b int
cout<<a+b<<"\n"; // nu se pot aduna 2 p... | 19.052632 | 73 | 0.582873 | andrei-micuda |
4cc1366aad4b0ffcf6344293f4343c7ec8545722 | 219 | cpp | C++ | compiler-rt/test/sanitizer_common/TestCases/NetBSD/uid_from_user.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | compiler-rt/test/sanitizer_common/TestCases/NetBSD/uid_from_user.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | compiler-rt/test/sanitizer_common/TestCases/NetBSD/uid_from_user.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clangxx -O0 -g %s -o %t && %run %t
#include <pwd.h>
#include <stdlib.h>
int main(void) {
uid_t nobody;
if (uid_from_user("nobody", &nobody) == -1)
exit(1);
if (nobody)
exit(0);
return 0;
}
| 12.882353 | 45 | 0.547945 | medismailben |
4cc172bcf8fda07b80f44d708011859e28dac03d | 3,615 | cpp | C++ | source/fir/Types/UnionType.cpp | zhiayang/flax | a7ead8ad3ff4ea377297495751bd4802f809547b | [
"Apache-2.0"
] | 1 | 2021-02-07T08:42:06.000Z | 2021-02-07T08:42:06.000Z | source/fir/Types/UnionType.cpp | zhiayang/flax | a7ead8ad3ff4ea377297495751bd4802f809547b | [
"Apache-2.0"
] | null | null | null | source/fir/Types/UnionType.cpp | zhiayang/flax | a7ead8ad3ff4ea377297495751bd4802f809547b | [
"Apache-2.0"
] | null | null | null | // UnionType.cpp
// Copyright (c) 2014 - 2016, zhiayang@gmail.com
// Licensed under the Apache License Version 2.0.
#include "errors.h"
#include "ir/type.h"
#include "pts.h"
namespace fir
{
// structs
UnionType::UnionType(const Identifier& name, const std::unordered_map<std::string, std::pair<size_t, Type*>>& mems... | 18.634021 | 130 | 0.665007 | zhiayang |
4cc37a5ce2af03fd72be7c3592df653c4bb64e34 | 3,424 | cpp | C++ | src/LSSS/Schur_Matrices.cpp | karannewatia/SCALE-MAMBA | 467b33a6c80050789204ea3ee3b5cf0113354f85 | [
"BSD-2-Clause"
] | 196 | 2018-05-25T11:41:56.000Z | 2022-03-12T05:49:50.000Z | src/LSSS/Schur_Matrices.cpp | karannewatia/SCALE-MAMBA | 467b33a6c80050789204ea3ee3b5cf0113354f85 | [
"BSD-2-Clause"
] | 49 | 2018-07-17T15:49:41.000Z | 2021-01-19T11:35:31.000Z | src/LSSS/Schur_Matrices.cpp | karannewatia/SCALE-MAMBA | 467b33a6c80050789204ea3ee3b5cf0113354f85 | [
"BSD-2-Clause"
] | 90 | 2018-05-25T11:41:42.000Z | 2022-03-23T19:15:10.000Z | /*
Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.
Copyright (c) 2021, COSIC-KU Leuven, Kasteelpark Arenberg 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.
All rights reserved
*/
#include "Schur_Matrices.h"
template<class T>
ostream &operator<<(ostream &... | 26.542636 | 110 | 0.539428 | karannewatia |
4cc6d8d77fb76a8f2098c58bd1faa240ff981ee2 | 333 | hpp | C++ | example/include/my_components.hpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | 7 | 2020-06-16T18:47:35.000Z | 2021-08-25T13:41:13.000Z | example/include/my_components.hpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | 15 | 2020-07-23T14:03:39.000Z | 2022-01-28T02:32:07.000Z | example/include/my_components.hpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | null | null | null | /*
* WTEngine Demo
* By: Matthew Evans
* File: my_components.hpp
*
* See LICENSE.txt for copyright information
*
* Include all custom components here.
*/
#ifndef MY_COMPONENTS_HPP
#define MY_COMPONENTS_HPP
#include "damage.hpp"
#include "energy.hpp"
#include "health.hpp"
#include "size.hpp"
#include "stars.... | 15.857143 | 44 | 0.720721 | wtfsystems |
4cc7b5ebae3b2887407e1c7365e42cefabdf25f6 | 13,970 | cpp | C++ | src/bckp/08-12/a/waves.cpp | antocreo/BYO_Master | d92e049f10775d99fc6ef8aab7093c923142e664 | [
"MIT"
] | null | null | null | src/bckp/08-12/a/waves.cpp | antocreo/BYO_Master | d92e049f10775d99fc6ef8aab7093c923142e664 | [
"MIT"
] | 1 | 2017-02-12T15:28:29.000Z | 2017-02-23T10:34:04.000Z | src/bckp/08-12/a/waves.cpp | antocreo/BYO_Master | d92e049f10775d99fc6ef8aab7093c923142e664 | [
"MIT"
] | null | null | null | //
// Mfcc_obj.cpp
// OculusRenderingBasic
//
// Created by Let it Brain on 28/03/2015.
//
//
#include "Mfcc_obj.h"
#include "maximilian.h"/* include the lib */
#include "time.h"
//-------------------------------------------------------------
Mfcc_obj::Mfcc_obj() {
}
//--------------------------------------... | 26.358491 | 175 | 0.475734 | antocreo |
4cc7f3eb8d7ef3b806956583b7acec23cb238b21 | 2,133 | cpp | C++ | CmdPacketDownload.cpp | lotusczp/XcpMaster | 47cf2df7e111e823525347faf1cc6cbca6ec3c5d | [
"MIT"
] | 1 | 2021-09-04T12:23:20.000Z | 2021-09-04T12:23:20.000Z | CmdPacketDownload.cpp | lotusczp/XcpMaster | 47cf2df7e111e823525347faf1cc6cbca6ec3c5d | [
"MIT"
] | null | null | null | CmdPacketDownload.cpp | lotusczp/XcpMaster | 47cf2df7e111e823525347faf1cc6cbca6ec3c5d | [
"MIT"
] | 1 | 2021-11-16T06:57:56.000Z | 2021-11-16T06:57:56.000Z | #include "CmdPacketDownload.h"
CmdPacketDownload::CmdPacketDownload()
: CmdPacket()
{
m_idField.append(CTO::DOWNLOAD);
m_dataField.resize(5);
}
void CmdPacketDownload::setNumberOfDataElements(uint8_t a_byNum)
{
m_dataField[0] = a_byNum;
}
uint8_t CmdPacketDownload::getNumberOfDataElements()
{
ret... | 26.6625 | 141 | 0.524144 | lotusczp |
4cc7f41de52bf5dc37c2db2d46827347bc049e87 | 7,047 | cpp | C++ | src/BabylonCpp/src/cameras/inputs/follow_camera_keyboard_move_input.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 277 | 2017-05-18T08:27:10.000Z | 2022-03-26T01:31:37.000Z | src/BabylonCpp/src/cameras/inputs/follow_camera_keyboard_move_input.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 77 | 2017-09-03T15:35:02.000Z | 2022-03-28T18:47:20.000Z | src/BabylonCpp/src/cameras/inputs/follow_camera_keyboard_move_input.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 37 | 2017-03-30T03:36:24.000Z | 2022-01-28T08:28:36.000Z | #include <babylon/cameras/inputs/follow_camera_keyboard_move_input.h>
#include <babylon/engines/engine.h>
#include <babylon/engines/scene.h>
#include <babylon/events/keyboard_event_types.h>
namespace BABYLON {
FollowCameraKeyboardMoveInput::FollowCameraKeyboardMoveInput()
: keysHeightOffsetModifierAlt{false}
... | 35.954082 | 100 | 0.660849 | samdauwe |
4cc87792db2800736bc48a6d16c62a5c8d2498e5 | 9,957 | cpp | C++ | p1-path-planning/class-quizzes/behavior-planner/behavior-planner/src/vehicle.cpp | Deborah-Digges/SDC-ND-term-3 | 23e879b6d6d0c2b3a3bb78802c50f6b023ba2076 | [
"Apache-2.0"
] | 1 | 2018-02-22T08:49:31.000Z | 2018-02-22T08:49:31.000Z | p1-path-planning/class-quizzes/behavior-planner/behavior-planner/src/vehicle.cpp | Deborah-Digges/SDC-ND-term-3 | 23e879b6d6d0c2b3a3bb78802c50f6b023ba2076 | [
"Apache-2.0"
] | null | null | null | p1-path-planning/class-quizzes/behavior-planner/behavior-planner/src/vehicle.cpp | Deborah-Digges/SDC-ND-term-3 | 23e879b6d6d0c2b3a3bb78802c50f6b023ba2076 | [
"Apache-2.0"
] | 4 | 2017-10-12T16:32:20.000Z | 2020-07-27T09:01:43.000Z | #include <iostream>
#include "vehicle.h"
#include <iostream>
#include <math.h>
#include <map>
#include <string>
#include <iterator>
/**
* Initializes Vehicle
*/
Vehicle::Vehicle(int lane, int s, int v, int a) {
this->lane = lane;
this->s = s;
this->v = v;
this->a = a;
state = "CS";
max_accel... | 25.335878 | 113 | 0.559506 | Deborah-Digges |
4cc95a026a02849a021e18ca1cf64d57ffdbea9f | 10,635 | cpp | C++ | src/RShaders.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | src/RShaders.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | src/RShaders.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | #include <RShaders.h>
#include <RDebug.h>
#include <stdexcept>
using namespace Redopera;
thread_local GLuint RRPI::current = 0;
thread_local int RRPI::count = 0;
RRPI::~RRPI()
{
--count;
if(count == 0)
{
glUseProgram(0);
current = 0;
}
}
void RRPI::setUniform(GLint loc, GLfloat v1) ... | 22.484144 | 110 | 0.653597 | chilingg |
4ccae1f6e170f819e22815cfdbf2b8839a4908f3 | 3,861 | cpp | C++ | GUIDialogs/HoldupsEditor/HoldupsEditor.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 7 | 2020-12-02T02:54:31.000Z | 2022-03-08T20:37:46.000Z | GUIDialogs/HoldupsEditor/HoldupsEditor.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 33 | 2021-03-26T12:20:18.000Z | 2022-02-23T11:37:56.000Z | GUIDialogs/HoldupsEditor/HoldupsEditor.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 6 | 2020-07-17T08:17:37.000Z | 2022-02-24T13:45:16.000Z | /* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */
#include "HoldupsEditor.h"
#include "Flowsheet.h"
#include "BaseUnit.h"
#include "BaseStream.h"
CHoldupsEditor::CHoldupsEditor(CFlowsheet* _pFlowsheet, CMaterialsDataba... | 32.445378 | 182 | 0.72805 | FlowsheetSimulation |
4ccd06ffc691d348b359b1209a8d217a74d5d192 | 3,314 | cpp | C++ | src/models/metasprite/compiler/animationcompiler.cpp | undisbeliever/untech-editor | 8598097baf6b2ac0b5580bc000e9adc3bf682043 | [
"MIT"
] | 13 | 2016-05-02T09:00:42.000Z | 2020-11-07T11:21:07.000Z | src/models/metasprite/compiler/animationcompiler.cpp | undisbeliever/untech-editor | 8598097baf6b2ac0b5580bc000e9adc3bf682043 | [
"MIT"
] | 3 | 2016-09-28T13:36:29.000Z | 2020-12-22T12:22:43.000Z | src/models/metasprite/compiler/animationcompiler.cpp | undisbeliever/untech-editor | 8598097baf6b2ac0b5580bc000e9adc3bf682043 | [
"MIT"
] | 1 | 2016-05-08T09:26:01.000Z | 2016-05-08T09:26:01.000Z | /*
* This file is part of the UnTech Editor Suite.
* Copyright (c) 2016 - 2021, Marcus Rowe <undisbeliever@gmail.com>.
* Distributed under The MIT License: https://opensource.org/licenses/MIT
*/
#include "animationcompiler.h"
#include "compiler.h"
#include <algorithm>
#include <climits>
namespace UnTech::MetaSpri... | 30.971963 | 107 | 0.643935 | undisbeliever |
4cce39a65283560fbfc63401aa9e9a8e5add1b9c | 977 | hpp | C++ | src/mbgl/layout/merge_lines.hpp | mueschm/mapbox-gl-native | b07db0f8d01f855dcd336aa1baabde94c5c1740d | [
"BSL-1.0",
"Apache-2.0"
] | 4,234 | 2015-01-09T08:10:16.000Z | 2022-03-30T14:13:55.000Z | src/mbgl/layout/merge_lines.hpp | leejing397/GeoMap | d94d3f275234ad4434858e08a6b42e72c44dc6db | [
"BSL-1.0",
"Apache-2.0"
] | 12,771 | 2015-01-01T20:27:42.000Z | 2022-03-24T18:14:44.000Z | src/mbgl/layout/merge_lines.hpp | leejing397/GeoMap | d94d3f275234ad4434858e08a6b42e72c44dc6db | [
"BSL-1.0",
"Apache-2.0"
] | 1,571 | 2015-01-08T08:24:53.000Z | 2022-03-28T06:30:53.000Z | #pragma once
#include <mbgl/tile/geometry_tile_data.hpp>
#include <unordered_map>
#include <string>
#include <vector>
namespace mbgl {
class SymbolFeature;
namespace util {
unsigned int mergeFromRight(std::vector<SymbolFeature> &features,
std::unordered_map<std::string, unsigned int> &... | 31.516129 | 89 | 0.599795 | mueschm |
4ccfa3c7fefe54828ca899648b3ef77caafbcadf | 4,344 | cpp | C++ | c++/alg/a_star.cpp | Zeyu-Li/quick_algorithm | 5fcbb18f94b49ff164c61f412cf9e13cb7d53e6e | [
"MIT"
] | 6 | 2020-12-31T14:11:45.000Z | 2021-12-07T17:44:13.000Z | c++/alg/a_star.cpp | Zeyu-Li/quick_algorithm | 5fcbb18f94b49ff164c61f412cf9e13cb7d53e6e | [
"MIT"
] | null | null | null | c++/alg/a_star.cpp | Zeyu-Li/quick_algorithm | 5fcbb18f94b49ff164c61f412cf9e13cb7d53e6e | [
"MIT"
] | 1 | 2021-01-03T00:55:11.000Z | 2021-01-03T00:55:11.000Z | /*
* A Star (A*, aka Dijkstra++) Algorithm
* using 2D euclidean distance
*
* Note A Star does not guaranteed to be the shortest path,
* just a more time efficient solution
*/
#include <algorithm>
#include <math.h>
#include <limits.h>
#include "../structs/matrix_graph.cpp"
class Graph_a_star: public Graph_m {
... | 37.128205 | 246 | 0.617403 | Zeyu-Li |
4ccfeefe86cf13c8d9689491d05a34f89814a36e | 518 | cpp | C++ | LZL/Solution/codeforces/ok/A.cpp | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | null | null | null | LZL/Solution/codeforces/ok/A.cpp | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | null | null | null | LZL/Solution/codeforces/ok/A.cpp | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | 1 | 2019-07-15T06:28:11.000Z | 2019-07-15T06:28:11.000Z | #include<iostream>
#include<algorithm>
#include<string>
#include<map>
#include<set>
#include<unordered_map>
#include<list>
#include<vector>
#include<cstdlib>
#include<utility>
#include<cstring>
const int maxn=1010;
using namespace std;
map<int,int>mp;
int m,n,tmp;
int book[maxn];
int main()
{
cin >> m >> n;
for... | 16.1875 | 32 | 0.567568 | xiyoulinuxgroup-2019-summer |
4cd0d1b5223f8d472a242c18bec54efeb8e4b809 | 5,783 | cpp | C++ | test/src/tello/tello_test.cpp | LucaRitz/tello | 3874db477cc2ad6a7127494d4321baac440ac88e | [
"Apache-2.0"
] | 3 | 2021-01-05T15:49:12.000Z | 2021-06-30T12:42:04.000Z | test/src/tello/tello_test.cpp | LucaRitz/tello | 3874db477cc2ad6a7127494d4321baac440ac88e | [
"Apache-2.0"
] | 2 | 2020-08-15T09:47:44.000Z | 2020-08-29T12:52:17.000Z | test/src/tello/tello_test.cpp | LucaRitz/tello | 3874db477cc2ad6a7127494d4321baac440ac88e | [
"Apache-2.0"
] | 2 | 2021-01-12T12:00:14.000Z | 2021-02-11T12:50:42.000Z | #include <gtest/gtest.h>
#include <tello/tello.hpp>
#include <future>
#include <tello/response/query_response.hpp>
#define TELLO_IP_ADDRESS (ip_address)0xC0A80A01 // 192.168.10.1
using tello::Command;
using tello::Tello;
using tello::Response;
using tello::QueryResponse;
using tello::Status;
using std::string;
using ... | 36.14375 | 86 | 0.721771 | LucaRitz |
4cd17cf6cce2527e963dc29a563fb19e9cbf5d27 | 2,243 | hpp | C++ | include/nbla/solver/rmsprop.hpp | daniel-falk/nnabla | 3fe132ea52dc10521cc029a5d6ba8f565cf65ccf | [
"Apache-2.0"
] | 2,792 | 2017-06-26T13:05:44.000Z | 2022-03-28T07:55:26.000Z | include/nbla/solver/rmsprop.hpp | daniel-falk/nnabla | 3fe132ea52dc10521cc029a5d6ba8f565cf65ccf | [
"Apache-2.0"
] | 138 | 2017-06-27T07:04:44.000Z | 2022-02-28T01:37:15.000Z | include/nbla/solver/rmsprop.hpp | daniel-falk/nnabla | 3fe132ea52dc10521cc029a5d6ba8f565cf65ccf | [
"Apache-2.0"
] | 380 | 2017-06-26T13:23:52.000Z | 2022-03-25T16:51:30.000Z | // Copyright 2017,2018,2019,2020,2021 Sony 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 appli... | 31.591549 | 75 | 0.727151 | daniel-falk |
4cd534a1282be84405c166bc3bae0ad98d5e6d98 | 13,272 | cpp | C++ | src/libsetuptools/Xcp_Interface_Can_J2534_Interface.cpp | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | src/libsetuptools/Xcp_Interface_Can_J2534_Interface.cpp | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | src/libsetuptools/Xcp_Interface_Can_J2534_Interface.cpp | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | #include "Xcp_Interface_Can_J2534_Interface.h"
namespace SetupTools {
namespace Xcp {
namespace Interface {
namespace Can {
namespace J2534 {
#ifdef J2534_INTFC
quint32 idFlags(Id id)
{
return (id.type == Id::Type::Ext) ? quint32(Library::TxFlags::Can29BitId) : 0;
}
void setMessageId(Library::PassThruMessage & ... | 24.623377 | 132 | 0.641426 | hgmelectronics |
4cd592b82e5b2735686d0fc75528e0e179d03dea | 3,570 | cpp | C++ | samples/GuiAPI_PropertyWin/PropertyWin.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | 3 | 2021-03-01T20:41:13.000Z | 2021-07-10T13:45:47.000Z | samples/GuiAPI_PropertyWin/PropertyWin.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | samples/GuiAPI_PropertyWin/PropertyWin.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | #include "../../include/SWEngine.h"
#pragma comment (lib,"../../lib/SWUtil.lib")
#pragma comment (lib,"../../lib/SWTypes.lib")
#pragma comment (lib,"../../lib/SWCore.lib")
#pragma comment (lib,"../../lib/SWEngine.lib")
#pragma comment (lib,"../../lib/SWGame.lib")
#pragma comment (lib,"../../lib/SWG... | 27.045455 | 93 | 0.721289 | odayibasi |
4cd6155637fc2da4bc4aafbb230baffde2de1a1f | 571 | hpp | C++ | itickable.hpp | getopenmono/pong | f0b111bd9d24aff998e41243d333989455246520 | [
"MIT"
] | null | null | null | itickable.hpp | getopenmono/pong | f0b111bd9d24aff998e41243d333989455246520 | [
"MIT"
] | null | null | null | itickable.hpp | getopenmono/pong | f0b111bd9d24aff998e41243d333989455246520 | [
"MIT"
] | null | null | null | // This software is part of OpenMono, see http://developer.openmono.com
// Released under the MIT license, see LICENSE.txt
#ifndef pong_itickable_h
#define pong_itickable_h
#include "shared-state.hpp"
/**
* All visible objects in the game implement this interface, which only
* requires that the object can be ticked ... | 27.190476 | 78 | 0.754816 | getopenmono |
4cd63f37c47041f67fc30e9ff83978c66863da00 | 1,918 | cc | C++ | src/kudu/server/rpcz-path-handler.cc | kv-zuiwanyuan/kudu | 251defb69b1a252cedd5d707d9c84b67cf63726d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/kudu/server/rpcz-path-handler.cc | kv-zuiwanyuan/kudu | 251defb69b1a252cedd5d707d9c84b67cf63726d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/kudu/server/rpcz-path-handler.cc | kv-zuiwanyuan/kudu | 251defb69b1a252cedd5d707d9c84b67cf63726d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | // Copyright 2014 Cloudera, Inc.
//
// 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 ... | 31.966667 | 98 | 0.725756 | kv-zuiwanyuan |
4cd8077f98e57886a24f4303f861b07392fda2c7 | 150 | cpp | C++ | src/util/time.cpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | 2 | 2017-02-28T22:41:54.000Z | 2020-02-13T20:54:55.000Z | src/util/time.cpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | src/util/time.cpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | #include <mbgl/util/time.hpp>
#include <mbgl/util/uv_detail.hpp>
namespace mbgl {
namespace util {
timestamp now() {
return uv_hrtime();
}
}
}
| 11.538462 | 34 | 0.68 | free1978 |
4cd970766e3328a97ef6e383458bd0685cba9b3b | 5,572 | cpp | C++ | qlogerr/src/logBlaster.cpp | nholthaus/logerr | 3dbf9f49a10d1f300c22adcbb03eb5716aba2873 | [
"MIT"
] | 3 | 2020-10-17T15:41:38.000Z | 2021-02-14T02:18:39.000Z | qlogerr/src/logBlaster.cpp | nholthaus/logerr | 3dbf9f49a10d1f300c22adcbb03eb5716aba2873 | [
"MIT"
] | null | null | null | qlogerr/src/logBlaster.cpp | nholthaus/logerr | 3dbf9f49a10d1f300c22adcbb03eb5716aba2873 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------------------------------
//
// LOGERR
//
//--------------------------------------------------------------------------------------------------
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtainin... | 42.861538 | 120 | 0.384422 | nholthaus |
4cdaf172d5c59787a3fed30b4a31288c3e7a8d74 | 8,798 | cpp | C++ | pop/src/commands/FetchEmailCommand.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/pop/src/commands/FetchEmailCommand.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/pop/src/commands/FetchEmailCommand.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2009-2013 LG Electronics, Inc.
//
// 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 require... | 30.442907 | 139 | 0.73835 | webOS-ports |
4cdb232cf55550dc35e9203912c27696145a4bb4 | 2,029 | cpp | C++ | src/meshrenderer.cpp | Sirithang/webgine | c76248fe8fe71ae4616e7b7adf66cdd873ed574a | [
"MIT"
] | 3 | 2016-04-16T14:31:41.000Z | 2018-11-06T12:06:36.000Z | src/meshrenderer.cpp | Sirithang/webgine | c76248fe8fe71ae4616e7b7adf66cdd873ed574a | [
"MIT"
] | null | null | null | src/meshrenderer.cpp | Sirithang/webgine | c76248fe8fe71ae4616e7b7adf66cdd873ed574a | [
"MIT"
] | null | null | null | #include "meshrenderer.h"
#include "vector3.h"
#include <stdio.h>
IMPLEMENT_MANAGED(MeshRenderer);
MeshRendererID meshrenderer::create(EntityID owner)
{
MeshRendererID ret = gMeshRendererManager.add();
MeshRenderer& m = getMeshRenderer(ret);
if(owner != -1)
{
m.transform = getEntity(owner)._transform;
}
else... | 21.135417 | 94 | 0.709709 | Sirithang |
4ce939de7784d2f04c97c229c5a3b89ebb102dc8 | 5,357 | cpp | C++ | Platform/BridgeRT/AllJoynProperty.cpp | alljoyn/dsb | 5f76998b1db8b6c940799f4dcc9ff47018ea1da3 | [
"Apache-2.0"
] | null | null | null | Platform/BridgeRT/AllJoynProperty.cpp | alljoyn/dsb | 5f76998b1db8b6c940799f4dcc9ff47018ea1da3 | [
"Apache-2.0"
] | null | null | null | Platform/BridgeRT/AllJoynProperty.cpp | alljoyn/dsb | 5f76998b1db8b6c940799f4dcc9ff47018ea1da3 | [
"Apache-2.0"
] | null | null | null | //
//
// IN Copyright (c) %s, Microsoft Corporation
// IN
// IN SPDX-License-Identifier: Apache-2.0 *
// IN
// IN All rights reserved. This program and the accompanying materials are
// IN made available under the terms of the Apache License, Version 2.0
// IN which accompanies this distribution, and is available at... | 27.613402 | 95 | 0.649804 | alljoyn |
4ceb6334c2f0d4876254dc3bc1f7e21a728b6cb1 | 2,115 | cpp | C++ | benchmarks/matrix_multiplication/omp.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | 3,457 | 2018-06-09T15:36:42.000Z | 2020-06-01T22:09:25.000Z | benchmarks/matrix_multiplication/omp.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | 146 | 2018-06-11T04:11:22.000Z | 2020-06-01T20:59:21.000Z | benchmarks/matrix_multiplication/omp.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | 426 | 2018-06-06T18:01:16.000Z | 2020-06-01T05:26:17.000Z | #include "matrix_multiplication.hpp"
#include <omp.h>
// matrix_multiplication_omp
// reference: https://computing.llnl.gov/tutorials/openMP/samples/C/omp_mm.c
void matrix_multiplication_omp(unsigned nthreads) {
omp_set_num_threads(nthreads);
int i, j, k;
#pragma omp parallel for private(i, j)
for(i=0; i<N;... | 24.310345 | 76 | 0.519149 | alexbriskin |
4cee0622752c595916063ee7aad0be76d335fb36 | 882 | cxx | C++ | dataclasses/private/dataclasses/I3Matrix.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | dataclasses/private/dataclasses/I3Matrix.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | dataclasses/private/dataclasses/I3Matrix.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z |
#include <icetray/serialization.h>
#include <dataclasses/I3Matrix.h>
std::ostream& I3Matrix::Print(std::ostream& oss) const{
oss << "I3Matrix:\n";
for(size_t i=0; i<size1(); i++){
oss << (i>0 ? " [" : "[[");
for(size_t j=0; j<size2(); j++){
oss << (*this)(i,j);
if(j<size2()-1)
oss << ", ";
}
oss <... | 25.941176 | 115 | 0.664399 | hschwane |
4cee78916ad6b9de425c24f5503b68fbba48399b | 3,517 | cpp | C++ | src/core/directed_acyclic_graph/Graph.cpp | balintfodor/Build3D | b735129e380a414d62a1d91556f5f52674f1f6f9 | [
"MIT"
] | null | null | null | src/core/directed_acyclic_graph/Graph.cpp | balintfodor/Build3D | b735129e380a414d62a1d91556f5f52674f1f6f9 | [
"MIT"
] | 5 | 2021-03-19T09:28:07.000Z | 2022-03-12T00:09:14.000Z | src/core/directed_acyclic_graph/Graph.cpp | balintfodor/Build3D | b735129e380a414d62a1d91556f5f52674f1f6f9 | [
"MIT"
] | 1 | 2019-12-23T16:44:49.000Z | 2019-12-23T16:44:49.000Z | #include "Graph.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <list>
#include <stdexcept>
#include "Node.h"
using namespace core::directed_acyclic_graph;
using namespace std;
GraphPtr Graph::create(const std::string& name)
{
return GraphPtr(new Graph(name));
}
Grap... | 22.544872 | 90 | 0.581177 | balintfodor |
4cf24f6d5925d61b5bbaad67b65628a56a40e5e1 | 1,311 | cpp | C++ | cpp/Euler4.cpp | feliposz/project-euler-solutions | 1aec50c4d2d86b515dc8607559575da9e4aecb3a | [
"MIT"
] | null | null | null | cpp/Euler4.cpp | feliposz/project-euler-solutions | 1aec50c4d2d86b515dc8607559575da9e4aecb3a | [
"MIT"
] | null | null | null | cpp/Euler4.cpp | feliposz/project-euler-solutions | 1aec50c4d2d86b515dc8607559575da9e4aecb3a | [
"MIT"
] | null | null | null | // Project Euler - Problem 4 solution in C++
#include<iostream>
#include<ctime>
using namespace std;
// NOTE: the multiplication of numbers larger than 4 digits could lead to
// products bigger than 2 billion (needs to use 64-bit type!)
// OBS: the original problem asks for only 3 digits (a 32-bit int would su... | 25.705882 | 91 | 0.617849 | feliposz |
4cf3a535d21e15a6f101bd7bce76f205cbd52264 | 17,035 | cpp | C++ | test/tTraceChartWidget.cpp | dbulk/ROIVert | 01c8affc4e9c94cec15563bbc74943ea66bd69f0 | [
"BSD-3-Clause"
] | null | null | null | test/tTraceChartWidget.cpp | dbulk/ROIVert | 01c8affc4e9c94cec15563bbc74943ea66bd69f0 | [
"BSD-3-Clause"
] | null | null | null | test/tTraceChartWidget.cpp | dbulk/ROIVert | 01c8affc4e9c94cec15563bbc74943ea66bd69f0 | [
"BSD-3-Clause"
] | null | null | null | #include <QMainWindow>
#include <cmath>
#include <QtTest/QtTest>
#include "tTraceChartWidget.h"
#include "widgets/TraceChartWidget.h"
#include "ChartStyle.h"
#include "opencv2/opencv.hpp"
namespace {
std::shared_ptr<TraceChartSeries> makeSeriesHelper(double xmin, double xmax, std::vector<float> yvalues, std::shar... | 37.771619 | 152 | 0.636748 | dbulk |
e0786e8c690b685a2ef440bf9c06eac8a4b4f1b7 | 1,754 | cpp | C++ | src/BFS_seq.cpp | FeLusiani/Parallel_BFS | bf5aa329a86ce2d5a3ce133516e5a2809bf42272 | [
"MIT"
] | null | null | null | src/BFS_seq.cpp | FeLusiani/Parallel_BFS | bf5aa329a86ce2d5a3ce133516e5a2809bf42272 | [
"MIT"
] | null | null | null | src/BFS_seq.cpp | FeLusiani/Parallel_BFS | bf5aa329a86ce2d5a3ce133516e5a2809bf42272 | [
"MIT"
] | null | null | null | #include <Parallel_BFS/BFS_seq.hpp>
#include <set>
#include <thread>
#include <chrono>
#include <numeric>
#include "../src/utimer.hpp"
int BFS_seq(int x, const vector<Node> &nodes)
{
unsigned long counter = 0;
vector<int> frontier{0};
frontier.reserve(nodes.size() / 2);
vector<int> next_frontier{};
... | 24.704225 | 59 | 0.559293 | FeLusiani |
e08043b2707eb73de096fd612b127feab974d601 | 16,351 | cpp | C++ | src/chainparams.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | 18 | 2018-01-31T10:02:27.000Z | 2021-04-16T14:22:31.000Z | src/chainparams.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | null | null | null | src/chainparams.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | 14 | 2018-02-11T02:07:00.000Z | 2022-03-18T10:28:06.000Z | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017-2019 The MassGrid developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "... | 46.320113 | 215 | 0.6906 | MassGrid |
e08254d83fc705762801ca6314e393389a0b3313 | 8,158 | cc | C++ | cnn/training.cc | ndnlp/cnn | aad187cda88f478a915dfd436115d573c347f9ca | [
"Apache-2.0"
] | null | null | null | cnn/training.cc | ndnlp/cnn | aad187cda88f478a915dfd436115d573c347f9ca | [
"Apache-2.0"
] | null | null | null | cnn/training.cc | ndnlp/cnn | aad187cda88f478a915dfd436115d573c347f9ca | [
"Apache-2.0"
] | null | null | null | #include "cnn/training.h"
#include "cnn/gpu-ops.h"
namespace cnn {
using namespace std;
Trainer::~Trainer() {}
float Trainer::clip_gradients() {
float gscale = 1;
if (clipping_enabled) {
float gg = model->gradient_l2_norm();
if (gg > clip_threshold) {
++clips;
gscale = clip_threshold / gg;
... | 28.425087 | 121 | 0.561535 | ndnlp |
e08513bc19bce2818256ad1d49b825828a5098ff | 9,640 | hpp | C++ | include/Avocado/backend/testing/testing_helpers.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/testing/testing_helpers.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/testing/testing_helpers.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | /*
* testing_helpers.hpp
*
* Created on: Sep 13, 2020
* Author: Maciej Kozarzewski
*/
#ifndef AVOCADO_UTILS_TESTING_HELPERS_HPP_
#define AVOCADO_UTILS_TESTING_HELPERS_HPP_
#include "../backend_defs.h"
#include "wrappers.hpp"
#include <string>
namespace avocado
{
namespace backend
{
void setMasterCont... | 33.013699 | 150 | 0.735373 | AvocadoML |
e08a66c5f0126b3828706d41ffe45b98734c2cc1 | 400 | cpp | C++ | algorithms/delete-columns-to-make-sorted.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/delete-columns-to-make-sorted.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/delete-columns-to-make-sorted.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | class Solution
{
public:
int minDeletionSize(vector<string>& A)
{
int result = 0;
for (int col = 0; col < A[0].length(); col++) {
for (int row = 0; row < A.size() - 1; row++) {
if (A[row][col] > A[row + 1][col]) {
result += 1;
b... | 22.222222 | 58 | 0.3675 | Chronoviser |
e08c79bf9f445a8ea0f14e4089ff589ecf06f4ab | 5,424 | cpp | C++ | src/Nazara/Widgets/DefaultWidgetTheme.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 11 | 2019-11-27T00:40:43.000Z | 2020-01-29T14:31:52.000Z | src/Nazara/Widgets/DefaultWidgetTheme.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T00:29:08.000Z | 2020-01-08T18:53:39.000Z | src/Nazara/Widgets/DefaultWidgetTheme.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T10:27:40.000Z | 2020-01-15T17:43:33.000Z | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Widgets module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Widgets/DefaultWidgetTheme.hpp>
#include <Nazara/Graphics/BasicMaterial.hpp>
#include <Nazara/Gr... | 45.966102 | 202 | 0.817478 | jayrulez |
e08e8562eea94dfd43c7163d9de1978d01819562 | 10,001 | cpp | C++ | obs-studio/UI/qt-wrappers.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/qt-wrappers.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/qt-wrappers.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (C) 2013 by Hugh Bailey <obs.jim@gmail.com>
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, e... | 24.693827 | 80 | 0.721828 | noelemahcz |
e08f1cafd3e31cfce506114367d2ea2fe80adb43 | 236 | cpp | C++ | src/autowiring/SystemThreadPool.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autowiring/SystemThreadPool.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autowiring/SystemThreadPool.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "SystemThreadPool.h"
using namespace autowiring;
SystemThreadPool::SystemThreadPool(void)
{}
SystemThreadPool::~SystemThreadPool(void)
{}
| 19.666667 | 65 | 0.771186 | CaseyCarter |
e094a2f52013c03c6b963811714185f8b24fdb22 | 1,630 | cpp | C++ | graph/bellman_ford (spfa).cpp | New2World/algorithm-template | ecef386e7d485ce0bd1e11de422be7a818239506 | [
"MIT"
] | null | null | null | graph/bellman_ford (spfa).cpp | New2World/algorithm-template | ecef386e7d485ce0bd1e11de422be7a818239506 | [
"MIT"
] | null | null | null | graph/bellman_ford (spfa).cpp | New2World/algorithm-template | ecef386e7d485ce0bd1e11de422be7a818239506 | [
"MIT"
] | null | null | null | /*
洛谷 P3385 - 负环
*/
#include <bits/stdc++.h>
#define MAXV 2005
#define MAXE 6005
#define inf 0x3f3f3f3f
using namespace std;
struct _edge {
int v, w, next;
_edge(){}
_edge(int v, int w, int next):v(v), w(w), next(next){}
};
int edges, n;
int head[MAXV];
int dis[MAXV], cnt[MAXV];
bool vis[MAXV];
_edge ... | 20.123457 | 58 | 0.398773 | New2World |
e09599a21109971ede4ff355f1d86b96c8bcc20a | 3,529 | cpp | C++ | src/io/field_io.cpp | lanl/shoccs | 6fd72a612e872df62749eec6b010bd1f1e5ee1e7 | [
"BSD-3-Clause"
] | null | null | null | src/io/field_io.cpp | lanl/shoccs | 6fd72a612e872df62749eec6b010bd1f1e5ee1e7 | [
"BSD-3-Clause"
] | 2 | 2022-02-18T22:43:06.000Z | 2022-02-18T22:43:19.000Z | src/io/field_io.cpp | lanl/shoccs | 6fd72a612e872df62749eec6b010bd1f1e5ee1e7 | [
"BSD-3-Clause"
] | null | null | null | #include "field_io.hpp"
#include <filesystem>
#include <fstream>
#include <iomanip>
#include "mesh/cartesian.hpp"
#include "temporal/step_controller.hpp"
#include <fmt/core.h>
#include <range/v3/range/conversion.hpp>
#include <range/v3/view/transform.hpp>
#include <sol/sol.hpp>
using namespace std::literals;
names... | 31.508929 | 90 | 0.587985 | lanl |
e096317ac142c3dbeee71b27c4f2b395f984f84f | 185 | cpp | C++ | src/main.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/main.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/main.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | #include <iostream>
#include "./common/frame.hpp"
int main()
{
Frame frame;
std::cout << "hello peter!\n";
std::cout << "Frame index = " << frame.GetIndex() << std::endl;
} | 20.555556 | 67 | 0.583784 | AleksanderSiwek |
e09825fb9b63d5e5d316b01ff3877ef012fddccb | 6,800 | cpp | C++ | mugsy-seqan/projects/tests/index/test_index_creation.cpp | kloetzl/mugsy | 8ccdf32858a7a5ab2f7b9b084d2190970feb97ec | [
"Artistic-2.0"
] | null | null | null | mugsy-seqan/projects/tests/index/test_index_creation.cpp | kloetzl/mugsy | 8ccdf32858a7a5ab2f7b9b084d2190970feb97ec | [
"Artistic-2.0"
] | null | null | null | mugsy-seqan/projects/tests/index/test_index_creation.cpp | kloetzl/mugsy | 8ccdf32858a7a5ab2f7b9b084d2190970feb97ec | [
"Artistic-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <typeinfo>
#include <time.h>
#include <cstdio>
#include <vector>
#include <time.h>
#define SEQAN_PROFILE
//#define SEQAN_DEBUG
//#define SEQAN_DEBUG_INDEX
//#define SEQAN_TEST
//#define SEQAN_TEST_SKEW3
//#define SEQAN_TEST_SKEW7
#include "test_index_cr... | 26.87747 | 79 | 0.592941 | kloetzl |
e0996f1e19cf81dd6375a52b4d420425fdbb5a8d | 14,670 | cpp | C++ | src/gbGraphics/Renderer.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/gbGraphics/Renderer.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/gbGraphics/Renderer.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | #include <gbGraphics/Renderer.hpp>
#include <gbGraphics/CommandPoolRegistry.hpp>
#include <gbGraphics/Exceptions.hpp>
#include <gbGraphics/GraphicsInstance.hpp>
#include <gbGraphics/Image2d.hpp>
#include <gbGraphics/Program.hpp>
#include <gbGraphics/Window.hpp>
#include <gbVk/CommandBuffer.hpp>
#include <gbVk/Excepti... | 47.785016 | 119 | 0.728289 | ComicSansMS |
e099947be9049bee63d6d8bfc16f75245d190291 | 15,778 | cpp | C++ | Benchmarks/Serial_code/srad/srad_v1/main.cpp | HPCCS/XAPR | 0dbd0c064ca1b858be065aef00a5260d46a60d06 | [
"MIT"
] | null | null | null | Benchmarks/Serial_code/srad/srad_v1/main.cpp | HPCCS/XAPR | 0dbd0c064ca1b858be065aef00a5260d46a60d06 | [
"MIT"
] | null | null | null | Benchmarks/Serial_code/srad/srad_v1/main.cpp | HPCCS/XAPR | 0dbd0c064ca1b858be065aef00a5260d46a60d06 | [
"MIT"
] | null | null | null | //====================================================================================================100
// UPDATE
//====================================================================================================100
// 2006.03 Rob Janiczek
// --creation of prototype version
// 2006.03 Drew Gill... | 39.743073 | 149 | 0.448219 | HPCCS |
e09b86fc2121d33e1ade788e15efcedbdb839931 | 1,088 | cxx | C++ | panda/src/mathutil/test_tri.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/mathutil/test_tri.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/mathutil/test_tri.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file test_tri.cxx
* @author... | 20.923077 | 70 | 0.634191 | cmarshall108 |
e09dbbdcdc2f01026c62c1abf1178438052b400d | 312,486 | cpp | C++ | App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs64.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs64.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs64.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.IDictionary`2<UnityEngine.UI.Graphic,System.Int32>
struct IDictionary_2_t5090CA4C4371A10E20C400FE... | 50.539544 | 432 | 0.836649 | JBrentJ |
e09e14ae609c62d2934946f9f2d2b8a22d9e074b | 1,511 | hpp | C++ | runtime/include/cloe/utility/std_extensions.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 20 | 2020-07-07T18:28:35.000Z | 2022-03-21T04:35:28.000Z | runtime/include/cloe/utility/std_extensions.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 46 | 2021-01-20T10:13:09.000Z | 2022-03-29T12:27:19.000Z | runtime/include/cloe/utility/std_extensions.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 12 | 2021-01-25T08:01:24.000Z | 2021-07-27T10:09:53.000Z | /*
* Copyright 2020 Robert Bosch GmbH
*
* 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 agre... | 27.981481 | 83 | 0.717406 | Sidharth-S-S |
e0a5a1366a0301bcd3961c26d735aca5f47aff3e | 5,817 | cpp | C++ | Felix/excelexporter_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | Felix/excelexporter_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | Felix/excelexporter_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "excelexporter.h"
#include "memory_local.h"
#include "record_local.h"
#include "felix_factory.h"
#ifdef UNIT_TEST
#include <boost/test/unit_test.hpp>
#include "ExcelInterfaceFake.h"
#include "MockListener.h"
#include "input_device_fake.h"
using namespace mem_engine ;
BOOS... | 30.296875 | 85 | 0.691937 | ultimatezen |
e0a5b466bb65e73e84ae4cb00262f06a6b3d6188 | 3,302 | hxx | C++ | main/dbaccess/source/core/inc/recovery/dbdocrecovery.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/dbaccess/source/core/inc/recovery/dbdocrecovery.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/dbaccess/source/core/inc/recovery/dbdocrecovery.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* 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 y... | 36.285714 | 127 | 0.555724 | Grosskopf |
e0a5b95c43991d01c16a814fb5da558fe1aa1535 | 1,066 | cpp | C++ | 0300/70/376b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0300/70/376b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0300/70/376b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
void answer(unsigned v)
{
std::cout << v << '\n';
}
void solve(std::vector<std::vector<unsigned>>& c, std::vector<std::vector<unsigned>>& d)
{
const size_t n = c.size();
for (size_t i = 0; i < n; ++i) {
for (size_t j = 0; j < n; ++j) {
for (size_t... | 20.113208 | 102 | 0.395872 | actium |
e0ae06e96bd09a83737f5cde9d9baeb929f5fbed | 1,456 | hpp | C++ | miopengemm/include/miopengemm/findparams.hpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 52 | 2017-06-30T06:45:19.000Z | 2021-11-04T01:53:48.000Z | miopengemm/include/miopengemm/findparams.hpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 31 | 2017-08-01T03:17:25.000Z | 2022-03-22T18:19:41.000Z | miopengemm/include/miopengemm/findparams.hpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 23 | 2017-07-17T02:09:17.000Z | 2021-11-10T00:38:19.000Z | /*******************************************************************************
* Copyright (C) 2017 Advanced Micro Devices, Inc. All rights reserved.
*******************************************************************************/
#ifndef GUARD_MIOPENGEMM_FINDPARAMS_HPP
#define GUARD_MIOPENGEMM_FINDPARAMS_HPP
#inc... | 25.103448 | 81 | 0.619505 | pruthvistony |
e0b5f2e277853f23a47ae0f36805b650aeb07a65 | 3,986 | hpp | C++ | include/native/helper/trace.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 16 | 2016-03-16T22:16:18.000Z | 2021-04-05T04:46:38.000Z | include/native/helper/trace.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 11 | 2016-03-16T22:02:26.000Z | 2021-04-04T02:20:51.000Z | include/native/helper/trace.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 5 | 2016-03-22T14:03:34.000Z | 2021-01-06T18:08:46.000Z | #ifndef __NATIVE_HELPER_TRACE_HPP__
#define __NATIVE_HELPER_TRACE_HPP__
#include <iostream>
#include <sstream>
#include <stdexcept>
#define NNATIVE_INFO(log) std::cout << __FILE__ << ":" << __LINE__ << " (INFO): " << log << "\n";
#define PROMISE_REJECT(promise, msg) ... | 46.894118 | 120 | 0.413949 | nodenative |
e0b5fc1bd5e9a7de3744a2ca413bd67df684e558 | 5,108 | cpp | C++ | src/libzerocoin/PubcoinSignature.cpp | jskitty-repos/veil | 075f51693a5ac39e4c8bf22a9f12cd851fb29a1c | [
"MIT"
] | 124 | 2018-12-25T00:01:18.000Z | 2021-12-26T19:38:43.000Z | src/libzerocoin/PubcoinSignature.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 702 | 2018-12-16T18:07:18.000Z | 2022-03-18T16:52:14.000Z | src/libzerocoin/PubcoinSignature.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 151 | 2018-12-13T07:33:34.000Z | 2022-01-29T11:35:23.000Z | /**
* @file PubcoinSignature.cpp
*
* @brief De-anonymize zerocoins for times that the integrity of the accumulators or related libzerocoin zkp's are broken.
*
* @author presstab https://github.com/presstab, random-zebra https://github.com/random-zebra
* @date April 2019
*
* @copyright Copyright 20... | 37.837037 | 158 | 0.649765 | jskitty-repos |
e0bcadff81bbf209880ba8e97c26bee6cb652e5a | 220 | cpp | C++ | chapter-13/13.50.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-13/13.50.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-13/13.50.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // When the vector<String> object does not have enough space and then processes memory reallocation, it would use move constructor instead of copy constructor of String type during the reallocation of original elements.
| 110 | 219 | 0.822727 | zero4drift |
e0bf45b25c31b20894960583a23ba34345dd005b | 1,021 | cpp | C++ | NativeLibraries/StarskyMain/StarskyMain/Dx/D3dStructWrappers.cpp | sssr33/Starsky | 2be4e0d9305adc2a3c4ac644b5f3d3a6f21614c6 | [
"MIT"
] | null | null | null | NativeLibraries/StarskyMain/StarskyMain/Dx/D3dStructWrappers.cpp | sssr33/Starsky | 2be4e0d9305adc2a3c4ac644b5f3d3a6f21614c6 | [
"MIT"
] | null | null | null | NativeLibraries/StarskyMain/StarskyMain/Dx/D3dStructWrappers.cpp | sssr33/Starsky | 2be4e0d9305adc2a3c4ac644b5f3d3a6f21614c6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "D3dStructWrappers.h"
WD3D11_SAMPLER_DESC::WD3D11_SAMPLER_DESC() {
this->Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
this->AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;
this->AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;
this->AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;
this->MinLOD = -FLT_MAX;
this->Max... | 34.033333 | 63 | 0.757101 | sssr33 |
e0c1075723abd5256e0d42e099fefe95ec613239 | 4,890 | cpp | C++ | src/Miner/Miner.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | src/Miner/Miner.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | src/Miner/Miner.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | /***
MIT License
Copyright (c) 2018 NUMERARE
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, publis... | 30.185185 | 175 | 0.714928 | JacopoDT |
e0c1e3d29163b99c6b187ec78ac6723d70324337 | 1,209 | cpp | C++ | game/server/Angelscript/ScriptAPI/ASEffects.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/server/Angelscript/ScriptAPI/ASEffects.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/server/Angelscript/ScriptAPI/ASEffects.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | #include <string>
#include <angelscript.h>
#include "extdll.h"
#include "util.h"
#include "ASEffects.h"
namespace Effects
{
void LightStyle( int iStyle, const std::string& szValue )
{
if( iStyle < 0 || iStyle >= MAX_LIGHTSTYLES )
{
Alert( at_warning, "Effects::LightStyle: Style index \"%d\" out of range [ 0, %d... | 27.477273 | 123 | 0.740281 | HLSources |
e0c1e470074d1dbfe4e01316e5a9bafb47b7a0a5 | 849 | hpp | C++ | android-28/android/hardware/SensorDirectChannel.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/hardware/SensorDirectChannel.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/hardware/SensorDirectChannel.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
namespace android::hardware
{
class Sensor;
}
namespace android::hardware
{
class SensorManager;
}
namespace android::hardware
{
class SensorDirectChannel : public JObject
{
public:
// Fields
static jint RATE_FAST();
static jint RATE_NORMAL();
static jint RATE_S... | 21.225 | 160 | 0.713781 | YJBeetle |
e0c797bb51340f30b1f49293edab194844302b38 | 380 | cpp | C++ | cpp/abc132_b/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | cpp/abc132_b/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | cpp/abc132_b/main.cpp | kokosabu/atcoder | 8d512587d234eb45941a2f6341c4dd003e6c9ad3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int p1, p2;
cin >> p1 >> p2;
int count = 0;
for(int i = 2; i < n; i++) {
int p3;
cin >> p3;
if((p1 < p2 && p2 < p3) || (p1 > p2 && p2 > p3)) {
count += 1;
}
p1 = p2;
... | 16.521739 | 58 | 0.376316 | kokosabu |
e0c8294c9304b522fa531d60176fab0b26031c6f | 1,381 | hpp | C++ | Code/Source/Plugins/CSPARSE/CsparsePlugin.hpp | christinazavou/Thea | f68293c4a4f5ddc3abda18e2e0b679bcf5163e93 | [
"BSD-3-Clause"
] | 77 | 2016-11-06T17:25:54.000Z | 2022-03-29T16:30:34.000Z | Code/Source/Plugins/CSPARSE/CsparsePlugin.hpp | christinazavou/Thea | f68293c4a4f5ddc3abda18e2e0b679bcf5163e93 | [
"BSD-3-Clause"
] | 1 | 2017-04-22T16:47:04.000Z | 2017-04-22T16:47:04.000Z | Code/Source/Plugins/CSPARSE/CsparsePlugin.hpp | christinazavou/Thea | f68293c4a4f5ddc3abda18e2e0b679bcf5163e93 | [
"BSD-3-Clause"
] | 20 | 2015-10-17T20:38:50.000Z | 2022-02-18T09:56:27.000Z | //============================================================================
//
// This file is part of the Thea toolkit.
//
// This software is distributed under the BSD license, as detailed in the
// accompanying LICENSE.txt file. Portions are derived from other works:
// their respective licenses and copyright inf... | 25.574074 | 78 | 0.648805 | christinazavou |
e0c9b1e27c248f7bfe4912a3ab7df8c1efaa2b5d | 1,530 | cpp | C++ | aws-cpp-sdk-xray/source/model/GetSamplingStatisticSummariesResult.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-xray/source/model/GetSamplingStatisticSummariesResult.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-xray/source/model/GetSamplingStatisticSummariesResult.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/xray/model/GetSamplingStatisticSummariesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#in... | 30.6 | 170 | 0.794118 | lintonv |
e0cd12763cf8f3fbd9a949e310b8e3fc3d9f61d8 | 1,490 | hpp | C++ | willow/include/popart/op/sgd2combo.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/include/popart/op/sgd2combo.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/include/popart/op/sgd2combo.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#ifndef GUARD_NEURALNET_SGD2VARUPDATECOMBOOP_HPP
#define GUARD_NEURALNET_SGD2VARUPDATECOMBOOP_HPP
#include <popart/op/sgdcombobase.hpp>
#include <popart/optimizervaluemap.hpp>
namespace popart {
enum class OptimizerReductionType;
/**
* \brief A single Op th... | 29.8 | 79 | 0.72349 | gglin001 |
e0d09ba2c574650cab87a524d00e7caadd09c1be | 11,926 | cpp | C++ | gef_abertay/graphics/scene.cpp | LadyVolk/FinalGameCMP208 | abb5cc3fa48b5fb1238ac092960a4f5ef99aa770 | [
"MIT"
] | null | null | null | gef_abertay/graphics/scene.cpp | LadyVolk/FinalGameCMP208 | abb5cc3fa48b5fb1238ac092960a4f5ef99aa770 | [
"MIT"
] | null | null | null | gef_abertay/graphics/scene.cpp | LadyVolk/FinalGameCMP208 | abb5cc3fa48b5fb1238ac092960a4f5ef99aa770 | [
"MIT"
] | null | null | null | #include <graphics/scene.h>
#include <graphics/mesh.h>
#include <graphics/mesh_data.h>
#include <graphics/texture.h>
#include <animation/skeleton.h>
#include <animation/animation.h>
#include <system/platform.h>
#include <graphics/image_data.h>
#include <assets/png_loader.h>
#include <graphics/material.h>
#include <sys... | 30.501279 | 166 | 0.702415 | LadyVolk |
e0d149acb76247d6dea93c2f9ddbdc8bdb39792d | 14,945 | cpp | C++ | chapter07/ch07_calculator.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter07/ch07_calculator.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter07/ch07_calculator.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | //
// Stroustrup - Programming Principles & Practice
//
// Chapter 7 - Simple Calculator
//
// Drill - adds sqrt and pow funcitonality
// Ex 2 - allows underscores in variable names
// Ex 3 - provides constant variabls
// Ex 4 - moves Variable related functions to Symbol_table class
// Ex 5 - Token_stream reads \n as p... | 26.831239 | 79 | 0.486852 | ClassAteam |
e0d17b5e856c41f3c85eed9cbc1cf0389de98077 | 9,040 | hpp | C++ | src/core/callers/cancer_caller.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | 1 | 2018-08-21T23:34:28.000Z | 2018-08-21T23:34:28.000Z | src/core/callers/cancer_caller.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | null | null | null | src/core/callers/cancer_caller.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2018 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#ifndef cancer_caller_hpp
#define cancer_caller_hpp
#include <vector>
#include <unordered_map>
#include <memory>
#include <functional>
#include <typeindex>
#include <boost/optional... | 45.2 | 139 | 0.746792 | alimanfoo |
e0d322d26991dcf615faf886372c7c5d821278a4 | 536 | cpp | C++ | flite/src/synthcommon/utt_utils.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/src/synthcommon/utt_utils.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/src/synthcommon/utt_utils.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | #include "flite/synthcommon/utt_utils.hpp"
cst_wave* utt_wave(cst_utterance* u)
{
if (u)
return val_wave(feat_val(u->features, "wave"));
else
return 0;
}
int utt_set_wave(cst_utterance* u, cst_wave* w)
{
feat_set(u->features, "wave", wave_val(w));
return 0;
}
const char* utt_input_tex... | 19.851852 | 59 | 0.675373 | Barath-Kannan |
e0d4c20bb3cd7196f79e0e29ec9a9fb3dafc818b | 1,400 | cpp | C++ | N0289-Game-of-Life/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0289-Game-of-Life/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0289-Game-of-Life/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | class Solution {
public:
void gameOfLife(vector<vector<int>>& board) {
int neighbors[3] = {0, 1, -1};
int rows = board.size();
int cols = board[0].size();
vector<vector<int>> copyBoard(rows, vector<int>(cols, 0));
for(int i = 0; i < rows; ++i){
for(int j = 0; j... | 31.111111 | 105 | 0.336429 | loyio |
e0dd59295496e028a229ebf6ddbe1de5f7a496b9 | 281 | cpp | C++ | tests/main.cpp | mtrempoltsev/v8capi | e8772521250a82714d734e2337f39b42be1055b9 | [
"MIT"
] | 1 | 2021-01-28T03:32:05.000Z | 2021-01-28T03:32:05.000Z | tests/main.cpp | mtrempoltsev/v8capi | e8772521250a82714d734e2337f39b42be1055b9 | [
"MIT"
] | null | null | null | tests/main.cpp | mtrempoltsev/v8capi | e8772521250a82714d734e2337f39b42be1055b9 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "../include/v8capi.h"
int main(int argc, char* argv[])
{
v8_instance* v8 = v8_new_instance(0, argv[0]);
::testing::InitGoogleTest(&argc, argv);
const auto result = RUN_ALL_TESTS();
v8_delete_instance(v8);
return result;
}
| 17.5625 | 50 | 0.654804 | mtrempoltsev |
e0de6a6f493af66a115fbbca34c3b8071981129a | 7,136 | cpp | C++ | src/apg.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/apg.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/apg.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | 2 | 2017-08-01T22:01:45.000Z | 2018-10-13T09:06:04.000Z | #include "iers2010.hpp"
/**
* @details This subroutine determines the asymmetric delay d in meters caused
* by gradients. The north and east gradients are also provided.
* They are based on Spherical Harmonics up to degree and order 9.
* If the north and east gradients are used, the... | 41.730994 | 80 | 0.548487 | whulizhen |
e0df83db432b1feb811ef98d8cdd73eadefae4a5 | 34,336 | cpp | C++ | Lib/Shared/Edif.General.cpp | kapigames/NoiseExtension | e3ce550a61f33eea4c71a050c610986ac51e3e8e | [
"MIT"
] | 2 | 2021-12-10T17:58:33.000Z | 2022-01-03T10:30:16.000Z | Lib/Shared/Edif.General.cpp | kapigames/NoiseExtension | e3ce550a61f33eea4c71a050c610986ac51e3e8e | [
"MIT"
] | 1 | 2021-12-17T21:25:14.000Z | 2021-12-17T21:25:14.000Z | Lib/Shared/Edif.General.cpp | kapigames/NoiseExtension | e3ce550a61f33eea4c71a050c610986ac51e3e8e | [
"MIT"
] | null | null | null | // ============================================================================
// Edif General:
// The following routines are used internally by Fusion, and should not need to
// be modified.
// ============================================================================
#include "Common.h"
#include "DarkEdif.h"
#if... | 34.717897 | 196 | 0.70445 | kapigames |
e0e0326b8e88fbe029704df6b7d9dc156f55ce51 | 1,068 | cpp | C++ | FPSLighting/Dependencies/DIRECTX/Utilities/Source/Sas/stdafx.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | 4 | 2019-12-09T05:28:04.000Z | 2021-02-18T14:05:09.000Z | FPSLighting/Dependencies/DIRECTX/Utilities/Source/Sas/stdafx.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | FPSLighting/Dependencies/DIRECTX/Utilities/Source/Sas/stdafx.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | 3 | 2018-10-22T11:45:38.000Z | 2020-04-24T19:52:47.000Z | //--------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "stdafx.h"
void WCharToWString( const WCHAR* source, std::wstring& dest... | 18.101695 | 88 | 0.514045 | billionare |
e0e6eb59828a6efeb85ec336ce9b9f2b9ee5c1e0 | 9,181 | cpp | C++ | Programs/UnitTests/Sources/Tests/Input/InputElementsTest.cpp | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Programs/UnitTests/Sources/Tests/Input/InputElementsTest.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Programs/UnitTests/Sources/Tests/Input/InputElementsTest.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | #include "UnitTests/UnitTests.h"
#include <Input/InputElements.h>
using namespace DAVA;
DAVA_TESTCLASS (InputElementsTestClass)
{
DAVA_TEST (InputElementsMetaDataTest)
{
// Check input element info:
// - name is not empty
// - type is correct
// - Is*InputElement meth... | 52.764368 | 185 | 0.697092 | stinvi |
e0e8493fc5c18bca91a1b5e9c7473fda9dcfbcba | 5,080 | cpp | C++ | mdsobjects/cpp/testing/MdsTreeSegments.cpp | consorzio-rfx/mdsplus | 81cdbfc759d92b101d84328e6eb7b3a6e6e22103 | [
"BSD-2-Clause"
] | null | null | null | mdsobjects/cpp/testing/MdsTreeSegments.cpp | consorzio-rfx/mdsplus | 81cdbfc759d92b101d84328e6eb7b3a6e6e22103 | [
"BSD-2-Clause"
] | null | null | null | mdsobjects/cpp/testing/MdsTreeSegments.cpp | consorzio-rfx/mdsplus | 81cdbfc759d92b101d84328e6eb7b3a6e6e22103 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved.
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 condition... | 39.076923 | 126 | 0.661024 | consorzio-rfx |
e0ea37e560cf150fa90595c4193512718d085dac | 2,457 | cpp | C++ | src/Spanish/parse/es_LanguageSpecificFunctions.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/Spanish/parse/es_LanguageSpecificFunctions.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/Spanish/parse/es_LanguageSpecificFunctions.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include "Spanish/parse/es_LanguageSpecificFunctions.h"
#include <boost/algorithm/string.hpp>
#include "Spanish/parse/es_STags.h"
bool SpanishLanguageSpecificFunctions::isHyphen(Symbol sym) {
return false... | 32.328947 | 91 | 0.805861 | BBN-E |
e0ea8b5b01f63dfd10394f0d39e0a8d94d9b14d5 | 508 | cpp | C++ | AtCoder/ABC125/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC125/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC125/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
vector<int> v(n), c(n);
rep(i, n) cin >> v[i];
rep(i, n) cin >> c[i];
int ans = 0;
for (int bit = 0; bit < (1 << n); ++bit) {
in... | 17.517241 | 47 | 0.425197 | Takumi1122 |
e0eb150b8316e273ce6b4d734e2898eb11eeb905 | 114 | cpp | C++ | 07_class_multiples/shooter.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-rdawson210 | 04d3f6b7cf8313fb0e08f9e18b760ddce097fee8 | [
"MIT"
] | null | null | null | 07_class_multiples/shooter.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-rdawson210 | 04d3f6b7cf8313fb0e08f9e18b760ddce097fee8 | [
"MIT"
] | null | null | null | 07_class_multiples/shooter.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-rdawson210 | 04d3f6b7cf8313fb0e08f9e18b760ddce097fee8 | [
"MIT"
] | null | null | null | #include "shooter.h"
Roll Shooter::shoot(Die & d1, Die & d2)
{
Roll game(d1, d2);
game.roll();
return game;
}
| 12.666667 | 39 | 0.622807 | acc-cosc-1337-spring-2019 |
e0ee7e5787f6e47fc5429ab26cc97790f25e900a | 5,883 | cpp | C++ | thirdparty/DecompROS/decomp_ros_utils/src/polyhedron_array_display.cpp | shubham-shahh/mader | 7cbe46438b348a1ad9545146734083d0b6436bd4 | [
"BSD-3-Clause"
] | 489 | 2020-03-19T15:48:17.000Z | 2022-03-31T08:22:55.000Z | thirdparty/DecompROS/decomp_ros_utils/src/polyhedron_array_display.cpp | shubham-shahh/mader | 7cbe46438b348a1ad9545146734083d0b6436bd4 | [
"BSD-3-Clause"
] | 37 | 2020-05-08T13:51:32.000Z | 2022-02-16T07:43:21.000Z | thirdparty/DecompROS/decomp_ros_utils/src/polyhedron_array_display.cpp | shubham-shahh/mader | 7cbe46438b348a1ad9545146734083d0b6436bd4 | [
"BSD-3-Clause"
] | 116 | 2020-03-19T20:37:44.000Z | 2022-03-30T03:51:21.000Z | #include "polyhedron_array_display.h"
namespace decomp_rviz_plugins {
PolyhedronArrayDisplay::PolyhedronArrayDisplay() {
mesh_color_property_ =
new rviz::ColorProperty("MeshColor", QColor(0, 170, 255), "Mesh color.",
this, SLOT(updateMeshColorAndAlpha()));
bound_color_property_... | 31.459893 | 100 | 0.703383 | shubham-shahh |
e0eef3ab40709c83448df1a7057ef93e6a255e5f | 945 | cpp | C++ | src/outils/couleur.cpp | SaladTomatOignon/RayTracing | 8e9db4d8254fb2c1ceaae9ce993c279efb063815 | [
"MIT"
] | null | null | null | src/outils/couleur.cpp | SaladTomatOignon/RayTracing | 8e9db4d8254fb2c1ceaae9ce993c279efb063815 | [
"MIT"
] | null | null | null | src/outils/couleur.cpp | SaladTomatOignon/RayTracing | 8e9db4d8254fb2c1ceaae9ce993c279efb063815 | [
"MIT"
] | null | null | null | #include "../../include/outils/couleur.h"
#include <algorithm>
using namespace std;
Couleur::Couleur() : Couleur(0, 0, 0) {
}
Couleur::Couleur(double r, double g, double b) {
this->r = r;
this->g = g;
this->b = b;
}
Couleur::Couleur(const Couleur& couleur) : Couleur(couleur.r, couleur.g, couleur.b) {
... | 20.543478 | 85 | 0.630688 | SaladTomatOignon |
e0f022253db2213e5cee83170c534bb5a71a88cd | 2,927 | hpp | C++ | RobWork/src/rw/kinematics/StateCache.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/kinematics/StateCache.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/kinematics/StateCache.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 32.522222 | 82 | 0.59549 | ZLW07 |
e0f8668c2635ebda6d94fd5bfcc97b09b9f01f0c | 5,932 | cpp | C++ | distributed-implementation/legacy-first-attempt/MctsTreeMerger.cpp | AleksanderGondek/GUT_Manycore_Architectures_MCTS | 43607dff9cee76f9a686c56e481ce1a70ad831b7 | [
"Apache-2.0"
] | 2 | 2016-12-29T22:58:49.000Z | 2018-09-17T17:15:06.000Z | distributed-implementation/legacy-first-attempt/MctsTreeMerger.cpp | AleksanderGondek/GUT_Manycore_Architectures_MCTS | 43607dff9cee76f9a686c56e481ce1a70ad831b7 | [
"Apache-2.0"
] | null | null | null | distributed-implementation/legacy-first-attempt/MctsTreeMerger.cpp | AleksanderGondek/GUT_Manycore_Architectures_MCTS | 43607dff9cee76f9a686c56e481ce1a70ad831b7 | [
"Apache-2.0"
] | null | null | null | //
// Created by agondek on 12/6/15.
//
#include <algorithm>
#include <vector>
#include "MctsTreeMerger.h"
//tmp
#include <mpi.h>
void BalanceNodes(MctsNode* local, MctsNode* remote)
{
//std::cout << "Balacing the following nodes" << std::endl;
//std::cout << "Local node: " << local->representation() << std:... | 35.100592 | 127 | 0.540121 | AleksanderGondek |
e0f8f0dc7c57c6afd4d0e07602681e3c1c61dbeb | 4,725 | hpp | C++ | Sources/ParameterSpaces/b_spline_basis_function.hpp | j042/SplineLib | db92df816b9af44f2d4f4275897f9ed3341a6646 | [
"MIT"
] | null | null | null | Sources/ParameterSpaces/b_spline_basis_function.hpp | j042/SplineLib | db92df816b9af44f2d4f4275897f9ed3341a6646 | [
"MIT"
] | null | null | null | Sources/ParameterSpaces/b_spline_basis_function.hpp | j042/SplineLib | db92df816b9af44f2d4f4275897f9ed3341a6646 | [
"MIT"
] | null | null | null | /* Copyright (c) 2018–2021 SplineLib
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, publish, distribute, ... | 55.588235 | 120 | 0.773122 | j042 |
803d6b1ca16ab147a4f4264f3eb90e79c117f22e | 2,131 | cpp | C++ | mockcpp/src/TypelessConstraintAdapter.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | 1 | 2020-02-06T07:10:19.000Z | 2020-02-06T07:10:19.000Z | mockcpp/src/TypelessConstraintAdapter.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | mockcpp/src/TypelessConstraintAdapter.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | /***
mockcpp is a generic C/C++ mock framework.
Copyright (C) <2009> <Darwin Yuan: darwin.yuan@gmail.com>
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 ... | 29.597222 | 76 | 0.602065 | danncy |
803f55a16f408b27b74d9a9bbc2bff44b2b0ebf6 | 1,403 | cpp | C++ | src/CustomThrow.cpp | terickson87/CustomThrow | 542c727cef75c96da57f6cfc2df8eed6ca40ae9e | [
"MIT"
] | null | null | null | src/CustomThrow.cpp | terickson87/CustomThrow | 542c727cef75c96da57f6cfc2df8eed6ca40ae9e | [
"MIT"
] | null | null | null | src/CustomThrow.cpp | terickson87/CustomThrow | 542c727cef75c96da57f6cfc2df8eed6ca40ae9e | [
"MIT"
] | null | null | null |
#include "CustomThrow.h"
CustomThrow::CustomThrow(const std::string& message, const std::string& fileName, unsigned int fileLineNumber)
: m_Message(message), m_FileName(fileName), m_FileLineNumber(fileLineNumber), m_FullMessage("") {
this->buildFullMessage();
}
CustomThrow::CustomThrow(const char* message, con... | 40.085714 | 110 | 0.736279 | terickson87 |
804018b7775d227c70f5f2af8ac6d14eac796ee1 | 495 | cpp | C++ | src/dioptre/keyboard/handlers/toggle_debug.cpp | tobscher/rts | 7f30faf6a13d309e4db828be8be3c05d28c05364 | [
"MIT"
] | 2 | 2015-05-14T16:07:30.000Z | 2015-07-27T21:08:48.000Z | src/dioptre/keyboard/handlers/toggle_debug.cpp | tobscher/rts | 7f30faf6a13d309e4db828be8be3c05d28c05364 | [
"MIT"
] | null | null | null | src/dioptre/keyboard/handlers/toggle_debug.cpp | tobscher/rts | 7f30faf6a13d309e4db828be8be3c05d28c05364 | [
"MIT"
] | null | null | null | #include "dioptre/keyboard/handlers/toggle_debug.h"
#include "dioptre/locator.h"
#include "dioptre/keyboard/keys.h"
namespace dioptre {
namespace keyboard {
namespace handlers {
dioptre::keyboard::Key ToggleDebug::handles() {
return dioptre::keyboard::KEY_D;
}
void ToggleDebug::update() {
auto physics =
di... | 20.625 | 72 | 0.715152 | tobscher |