max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
575 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuzzer/FuzzedDataProvider.h>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "content/browser/accessibility/browser_accessibi... | 2,578 |
1,056 | <filename>java/jellytools.java/test/qa-functional/src/org/netbeans/jellytools/nodes/JavaNodeTest.java
/*
* 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... | 1,305 |
4,459 | /*
* nixio - Linux I/O library for lua
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* 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.... | 2,324 |
2,211 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/extensions/renderer/xwalk_v8_utils.h"
#include "base/strings/stringprintf.h"
#include "v8/include/v8.h"
namespace xwalk {
namespace ... | 401 |
852 | #ifndef EventFilter_L1TRawToDigi_Omtf_CscPacker_H
#define EventFilter_L1TRawToDigi_Omtf_CscPacker_H
#include <string>
#include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h"
#include "DataFormats/L1TMuon/interface/OMTF/OmtfDataWord64.h"
#include "EventFilter/L1TRawToDigi/interface/OmtfLinkMappingCsc... | 250 |
799 | from typing import List, Dict
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
def main(domains: str, urls: str) -> CommandResults:
"""Checks that the urls are in the domain in the domain name.
Args:
domains: A comma separated list of domains.
... | 509 |
2,449 | # Copyright 2016 Pinterest, 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 in... | 1,524 |
783 | <reponame>fakegit/douban.fm
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import print_function
from threading import Thread
from six.moves import input
from six.moves import cPickle as pickle
from six.moves import configparser as ConfigParser
import logging
import time
import os
from doubanfm.API.log... | 3,405 |
1,253 | # -*- coding: utf-8 -*-
"""Analyzer result attribute container."""
from plaso.containers import interface
from plaso.containers import manager
class AnalyzerResult(interface.AttributeContainer):
"""Attribute container to store results of analyzers.
Analyzers can produce results with different attribute names. F... | 292 |
530 | <filename>strongbox-commons/src/main/java/org/carlspring/strongbox/net/MediaType.java
package org.carlspring.strongbox.net;
/**
* @author <NAME>
*/
@SuppressWarnings("PMD.ClassNamingConventions")
public final class MediaType
{
public static final String APPLICATION_YML_VALUE = "application/yml";
public sta... | 239 |
2,151 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 817 |
3,212 | <filename>nifi-nar-bundles/nifi-accumulo-bundle/nifi-accumulo-processors/src/main/java/org/apache/nifi/accumulo/data/AccumuloRecordConfiguration.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additio... | 1,971 |
17,703 | #include "source/exe/platform_impl.h"
#include "test/mocks/common.h"
#include "test/test_common/utility.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace Envoy {
TEST(PlatformImpl, Basic) {
PlatformImpl platform;
#ifdef __linux__
EXPECT_EQ(true, platform.enableCoreDump());
#else
EXPECT_EQ(false,... | 149 |
663 | <gh_stars>100-1000
# (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# flake8: noqa
from ..base.utils.limiter import *
| 61 |
14,425 | /**
* 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... | 1,315 |
340 | package com.vincentbrison.openlibraries.android.dualcache;
/**
* This is the LRU cache used for the RAM layer when configured to used references.
* @param <T> is the class of object stored in the cache.
*/
public class ReferenceLruCache<T> extends RamLruCache<String, T> {
private SizeOf<T> mHandlerSizeOf;
... | 335 |
370 | <gh_stars>100-1000
#pragma once
#include <ml/util/workload_manager.hpp>
#include <ml/util/data_loading.hpp>
#include <ml/util/metafile_reader.hpp>
#include <ml/util/math_util.hpp>
#include <ml/util/fastapprox/fastapprox.hpp>
#include <ml/feature/sparse_feature.hpp>
#include <ml/feature/dense_feature.hpp>
#include <ml... | 147 |
14,668 | <filename>chrome/browser/ui/views/extensions/extensions_toolbar_unittest.cc
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/extensions/extensions_toolbar_unittest.h"
#... | 2,097 |
2,151 | #include <stdint.h>
#if 0
../cube.vert
Warning, version 400 is not yet complete; most version-specific features are present, but some are missing.
Linked vertex stage:
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 55
Capability Shader
... | 5,535 |
363 | <reponame>yukihiko/hrm
/*
Author(s): <NAME>
See LICENCE.txt for licensing information.
*/
#include "gl_includes.h"
void *create_context (unsigned int imageWidth, unsigned int imageHeight, GLenum typ); // =GL_UNSIGNED_BYTE
void set_current(void *ctx);
void release_context(void *ctx);
| 99 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_POLICY_TEST_SUPPORT_REQUEST_HANDLER_FOR_PSM_AUTO_ENROLLMENT_H_
#define COMPONENTS_POLICY_TEST_SUPPORT_REQUEST_HANDLER_FOR_PSM_AUTO_ENRO... | 486 |
1,836 | #!/usr/bin/env python3
import http.client
import json
import os
import subprocess
import sys
import time
def circleci_command(method, url, body=None):
token = os.environ['CIRCLE_TOKEN']
conn = http.client.HTTPSConnection('circleci.com')
conn.request(
method,
'/api/v1.1/project/github/skiplang/skip' + u... | 441 |
573 | <reponame>Esigodini/dynarmic<gh_stars>100-1000
/* This file is part of the mp project.
* Copyright (c) 2017 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#pragma once
#include <mp/metavalue/value.h>
namespace mp {
/// Does list L contain an element which is same as type T?
template<class L, class T>
struct contai... | 223 |
370 | /*
* Copyright 2016 Netflix, 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 ag... | 8,387 |
3,673 | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... | 4,644 |
630 | <reponame>oussemanaffetyy/letter-shell
/**
* @file main.c
* @author Letter (<EMAIL>)
* @brief
* @version 0.1
* @date 2020-07-12
*
* @copyright (c) 2019 Letter
*
*/
#include "shell_port.h"
#include <stdlib.h>
#include <signal.h>
static int demoExit(int value)
{
system("stty icanon");
system("stty ec... | 345 |
333 | <filename>enricher/standard/src/main/java/io/fabric8/maven/enricher/standard/openshift/ImageChangeTriggerEnricher.java
/**
* Copyright 2016 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License.... | 2,898 |
363 |
#include <cppfs/posix/LocalFileSystem.h>
#include <cppfs/FileHandle.h>
#include <cppfs/FileWatcher.h>
#include <cppfs/AbstractFileWatcherBackend.h>
#include <cppfs/posix/LocalFileHandle.h>
#ifdef SYSTEM_LINUX
#include <cppfs/linux/LocalFileWatcher.h>
#endif
namespace cppfs
{
LocalFileSystem::LocalFileSystem(... | 386 |
6,036 | <filename>onnxruntime/core/providers/cuda/tensor/gather.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/shared_library/provider_api.h"
#include "core/providers/cuda/cuda_kernel.h"
#include "core/providers/cpu/tensor/gatherbase.h"
namespace onn... | 205 |
3,793 | <gh_stars>1000+
/*
This file is part of:
NoahFrame
https://github.com/ketoo/NoahGameFrame
Copyright 2009 - 2021 NoahFrame(NoahGameFrame)
File creator: lvsheng.huang
NoahFrame is open-source software and you can redistribute it and/or modify
it under the terms o... | 874 |
1,334 | <gh_stars>1000+
package org.mockserver.dashboard.serializers;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import com.google.common.collect.ImmutableMap;
import org.mockserver.dashboard.model.Dash... | 4,025 |
4,812 | // compile & generate coverage data using:
// clang++ -g -o test-linux_x86_64 -fsanitize=address -fsanitize-coverage=bb test.cpp ../Inputs/foo.cpp
// ASAN_OPTIONS="coverage=1" ./test-linux_x86_64 && mv test-linux_x86_64.??*.sancov test-linux_x86_64.0.sancov
// ASAN_OPTIONS="coverage=1" ./test-linux_x86_64 1 && mv test-... | 271 |
468 | <gh_stars>100-1000
#define GLI_INCLUDE_GL_NV_BINDLESS_MULTI_DRAW_INDIRECT
void glMultiDrawArraysIndirectBindlessNV(GLenum[Main] mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount);
void glMultiDrawElementsIndirectBindlessNV(GLenum[Main] mode, GLenum[Main] type, const void *indirect,... | 132 |
28,056 | package com.alibaba.json.bvtVO.ae;
import com.alibaba.fastjson.annotation.JSONType;
/**
* Created by huangliang on 17/4/12.
*/
public interface Area {
public static final String TYPE_FLOOR = "floor";
public static final String TYPE_ITEM = "item";
String getName();
}
| 101 |
732 | /* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved.
This software is licensed as OpenSource, under the Apache License, Version 2.0.
This license is available at: http://opensource.org/licenses/Apache-2.0. */
#ifndef SPOTMSGS_H
#define SPOTMSGS_H
#include "numtypes.h"
extern... | 2,510 |
1,604 | <gh_stars>1000+
package org.bouncycastle.tls.crypto.impl.bc;
import org.bouncycastle.tls.crypto.TlsAgreement;
import org.bouncycastle.tls.crypto.TlsECDomain;
public class BcX448Domain implements TlsECDomain
{
protected final BcTlsCrypto crypto;
public BcX448Domain(BcTlsCrypto crypto)
{
this.crypt... | 185 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Api
{
... | 666 |
763 | <reponame>pranavbj-amzn/batfish
package org.batfish.common.traceroute;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.collect.ImmutableList;
import java.util.List;
import java.util.Stack;
import java.util.stre... | 1,995 |
32,544 | <filename>gradle/junit5/src/test/java/com/example/CalculatorJUnit5Test.java
package com.example;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;;
public class CalculatorJUnit... | 371 |
675 | /*
* Copyright 2016 The Bazel 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 a... | 677 |
1,405 | <filename>sample4/recompiled_java/sources/tms/ft.java<gh_stars>1000+
package tms;
import android.content.IntentFilter;
import com.lenovo.safecenter.net.cache.NetConstant;
import com.tencent.tmsecure.common.ManagerCreator;
import com.tencent.tmsecure.common.TMSApplication;
import com.tencent.tmsecure.module.wupsession.... | 540 |
1,088 | /* Copyright 2020 Alibaba Group Holding Limited. 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 o... | 583 |
308 | #include "init.hpp"
#include "bugged.hpp"
#include <vpp/buffer.hpp>
// this should not give any warnings in the debug layer
// used to make sure move/copy initialization works correctly
// and does not leak resources
TEST(copy) {
auto& dev = *globals.device;
vk::BufferCreateInfo bufInfo;
bufInfo.size = 1024;
bufI... | 193 |
381 |
from pypy.objspace.fake.checkmodule import checkmodule
def test_checkmodule():
checkmodule('array')
| 34 |
1,091 | /*
* Copyright 2021-present Open Networking Foundation
*
* 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... | 1,290 |
1,127 | <filename>src/tests/functional/plugin/shared/include/behavior/ov_infer_request/inference.hpp
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <gtest/gtest.h>
#include <string>
#include "functional_test_utils/ov_plugin_cache.hpp"
#include <base/behavior_test_... | 1,353 |
305 | <reponame>securityscorecard/aws-big-data-blog<filename>aws-blog-real-time-in-memory-oltp-and-analytics-with-apache-ignite/sample/ddbStreamstoFirehose.py
from __future__ import print_function
import base64
import json
import boto3
print('Loading function')
client = boto3.client('firehose')
def lambda_handler(event, ... | 951 |
683 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.cxf;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
public class TracingStartInInterceptor extends A... | 169 |
360 | """
Copyright (c) 2020 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WI... | 5,592 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-7m9x-8qgr-fwq3",
"modified": "2022-05-13T01:02:19Z",
"published": "2022-05-13T01:02:19Z",
"aliases": [
"CVE-2014-5110"
],
"details": "Cross-site scripting (XSS) vulnerability in user/help/html/index.php in Fonality trixbox allows remote attackers to inject arbi... | 425 |
1,738 | <filename>dev/Code/Sandbox/Editor/TrackView/TrackViewUndo.cpp
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governe... | 2,607 |
313 | <filename>YBL365/Comment/ReuseView/CustomView/YBLNetWorkHudBar.h
//
// YBLNetWorkHudBar.h
// YC168
//
// Created by 乔同新 on 2017/5/1.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YBLNetWorkHudBar : UIView
+ (void)startMonitorWithVc:(UIViewController *)selfVc;
+ (void)dismi... | 173 |
575 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_TEST_STUB_RENDER_WIDGET_HOST_OWNER_DELEGATE_H_
#define CONTENT_TEST_STUB_RENDER_WIDGET_HOST_OWNER_DELEGATE_H_
#include "content/browser/r... | 375 |
535 | <reponame>tt1pjm/mynewt-core
/*
* 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... | 8,652 |
312 | /*
Copyright (c) 2014-2015, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following dis... | 641 |
310 | {
"name": "PowerTower Pro 250",
"description": "A PowerPC-based Mac clone.",
"url": "http://www.everymac.com/systems/powercc/powertower_pro/powertower_pro250.html"
} | 63 |
1,039 | #if !defined(SIMDE_TEST_MIPS_TEST_MSA_H)
#define SIMDE_TEST_MIPS_TEST_MSA_H
#include "../../../simde/mips/msa.h"
#include "../../test.h"
#if !defined(SIMDE_TEST_BARE)
#define SIMDE_TEST_DECLARE_SUITE(name) SIMDE_TEST_SUITE_DECLARE_GETTERS(HEDLEY_CONCAT(simde_test_mips_msa_simd_get_suite_,name))
#include <test/mip... | 3,479 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resou... | 1,204 |
844 | <reponame>iprinceroyy/Hacktoberfest-2020
{
"github-username": "Himanshu_Gour",
"favourite-emoji": "😂",
"favourite-music": "https://soundcloud.com/dinojames/loser",
"favourite-color": "#2e2e2e"
}
| 103 |
1,273 | <filename>src/test/java/org/broadinstitute/hellbender/tools/spark/pipelines/metrics/MeanQualityHistogramGeneratorUnitTest.java
package org.broadinstitute.hellbender.tools.spark.pipelines.metrics;
import htsjdk.samtools.SAMTag;
import htsjdk.samtools.SAMUtils;
import org.broadinstitute.hellbender.utils.read.ArtificialR... | 2,936 |
1,909 | package org.knowm.xchange.idex.service;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.knowm.xchange.idex.annotations.Api;
import org.knowm.xchange.idex.annotations.ApiOperation;
import org.knowm.xchange.idex.annotations.ApiResponse;
import org.kn... | 392 |
878 | <reponame>fansaien/parallec<gh_stars>100-1000
package io.parallec.core.main.ssh;
import io.parallec.core.ParallecResponseHandler;
import io.parallec.core.ParallelClient;
import io.parallec.core.ResponseOnSingleTask;
import io.parallec.core.TestBase;
import java.util.HashMap;
import java.util.Map;
import org.apache.h... | 1,836 |
5,169 | <filename>Specs/b/9/2/SimpleRefresh/0.0.7/SimpleRefresh.podspec.json
{
"name": "SimpleRefresh",
"version": "0.0.7",
"summary": "So simple pull to refresh framework in iOS written by Swift5",
"description": "A simple pull to refresh lib with highly customizable animation.",
"homepage": "https://github.com/qiun... | 314 |
1,483 | /*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.test.db.auth;
import org.junit.Test;
import org.lealone.db.Constants;
import org.lealone.db.api.ErrorCode;
import org.lealone.db.auth.Role;
import org.lealone.db.result.Searc... | 1,176 |
875 | /*
* src/element.c Elements
*
* Copyright (c) 2001-2013 <NAME> <<EMAIL>>
* Copyright (c) 2013 Red Hat, Inc.
*
* 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, inc... | 5,108 |
407 | package com.alibaba.sreworks.job.master.jobtrigger;
import lombok.Data;
@Data
public abstract class AbstractJobTriggerConf {
}
| 43 |
623 | <filename>tools/reviewer/aa/commands/PatchCommand.java
/*
* Copyright 2018 The StartupOS Authors.
*
* 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
*
* https://www.apache.org/licenses... | 1,114 |
430 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 1,713 |
369 | <reponame>bitigchi/MuditaOS<gh_stars>100-1000
// Copyright (c) 2017-2021, Mudit<NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <chrono>
#include <service-desktop/DesktopEvent.hpp>
namespace sdesktop::developerMode
{
class ATResponseEvent ... | 344 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-gcg2-fp7f-g9vc",
"modified": "2022-05-13T01:22:02Z",
"published": "2022-05-13T01:22:02Z",
"aliases": [
"CVE-2019-2438"
],
"details": "Vulnerability in the Oracle Web Cache component of Oracle Fusion Middleware (subcomponent: ESI/Partial Page Caching). The suppo... | 627 |
1,056 | <gh_stars>1000+
/*
* 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
* ... | 1,073 |
2,406 | <gh_stars>1000+
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "default_opset.hpp"
#include "ngraph/node.hpp"
#include "onnx_import/core/node.hpp"
namespace ngraph {
namespace onnx_import {
namespace op {
namespace set_1 {
OutputVector experimental_detectron_detection_... | 679 |
1,473 | <filename>profiler-test/src/main/java/com/navercorp/pinpoint/test/util/BiHashMap.java<gh_stars>1000+
package com.navercorp.pinpoint.test.util;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
/**
* copy & modify org.redisson.misc.BiHashMap
... | 1,242 |
527 | <filename>tests/performance/agents/metrics_collector.py
#!/usr/bin/env python3
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is locate... | 2,153 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "fieldsearcher.h"
namespace vsm {
class IntFieldSearcher : public FieldSearcher
{
public:
std::unique_ptr<FieldSearcher> duplicate() const override;
IntFieldSearcher(FieldIdT fId=0);... | 397 |
2,180 | package com.xiaojukeji.kafka.manager.bpm.common.entry.detail;
import java.util.List;
/**
* @author zhongyuankai
* @date 2020/5/18
*/
public class OrderDetailApplyTopicDTO extends AbstractOrderDetailData {
private String appId;
private String appName;
private String appPrincipals;
private Long ph... | 1,259 |
1,248 | <reponame>pajowu/pretix
# Generated by Django 2.1 on 2018-09-12 10:35
import django.db.models.deletion
from django.db import migrations, models
import pretix.base.models.devices
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0098_auto_20180731_1243_squashed_0100_item_require_ap... | 1,048 |
964 | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 2,844 |
552 | <filename>Engine/source/EtRendering/SceneStructure/Skybox.h
#pragma once
#include <EtCore/Content/AssetPointer.h>
#include <EtRendering/GraphicsTypes/EnvironmentMap.h>
namespace et {
namespace render {
//----------------------
// Skybox
//
// Data required to draw a skybox in a scene
//
struct Skybox
{
float m_Ro... | 145 |
8,657 | <filename>deps/brotli/research/sieve.cc
#include "./sieve.h"
typedef struct Slot {
uint32_t next;
uint32_t offset;
uint16_t presence;
uint16_t mark;
} Slot;
static size_t dryRun(size_t sliceLen, Slot* map, uint32_t* shortcut, size_t end,
size_t middle, uint16_t minPresence, uint16_t iteration) {
int fro... | 2,550 |
405 | <reponame>msakai/soft-dtw
import numpy as np
from scipy.optimize import approx_fprime
from sklearn.metrics.pairwise import euclidean_distances
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_almost_equal
from sdtw.path import gen_all_paths
from sdtw.distance impor... | 1,012 |
10,876 | {
"name": "nifticlib",
"version-string": "2020-04-30",
"port-version": 1,
"description": "Nifticlib is a C I/O library for reading and writing files in the nifti-1 data format.",
"homepage": "NIFTI-Imaging/nifti_clib",
"supports": "!uwp",
"dependencies": [
"zlib"
],
"default-features": [
"nift... | 346 |
458 | __author__ = '<NAME>'
| 10 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.collection.wildcard;
import java.math.BigDecimal;
import java.util.List;
import org.mapstruct.Mapper;
/**
*
* @author <NAME>
*/
@Mapper
... | 152 |
1,114 | <reponame>3096/libnx
#define NX_SERVICE_ASSUME_NON_DOMAIN
#include "service_guard.h"
#include "services/fan.h"
#include "runtime/hosversion.h"
static Service g_fanSrv;
NX_GENERATE_SERVICE_GUARD(fan);
Result _fanInitialize(void) {
return smGetService(&g_fanSrv, "fan");
}
void _fanCleanup(void) {
serviceClose... | 363 |
1,742 | <gh_stars>1000+
from .sudoku import Sudoku, sudoku
from .hexad import Minimog
| 30 |
716 | <filename>envi/tests/msp430/iclr.py
from envi.archs.msp430.regs import *
checks = [
# CLR
(
'CLR R15',
{ 'regs': [(REG_R15, 0xffff)], 'flags': [(SR_N, 0), (SR_Z, 0), (SR_C, 0), (SR_V, 0)], 'code': "0f43", 'data': "" },
{ 'regs': [(REG_R15, 0x0)], 'flags': [(SR_N, 0), (SR_Z, 0), (SR_C, 0... | 724 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-6px6-cgv7-v9vp",
"modified": "2022-05-13T01:15:59Z",
"published": "2022-05-13T01:15:59Z",
"aliases": [
"CVE-2013-2556"
],
"details": "Unspecified vulnerability in Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, and Windows 7 ... | 700 |
697 | <reponame>mahak/opsmop
# Copyright 2018 <NAME> LLC, <<EMAIL>>
#
# 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 applic... | 384 |
929 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-08-16 16:54
from __future__ import unicode_literals
from django.db import migrations
from django.db.models import OuterRef, Exists
def change_locale_bn_bd_to_bn_forwards(apps, schema_editor):
Document = apps.get_model('wiki', 'Document')
DraftRevi... | 711 |
2,706 | /* Copyright (c) 2013-2015 <NAME>
*
* 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/. */
#include "gl.h"
#include <mgba-util/math.h>
static const GLint _glVertices[]... | 1,912 |
1,405 | <gh_stars>1000+
package android.support.v4.view.accessibility;
import android.graphics.Rect;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompatApi21;
import android.support.v4.view.accessibility.Accessi... | 43,776 |
1,724 | <reponame>Rix565/skiftos-dailybuild
{
"name": "Terminal",
"comment": "An ansi capable terminal emulator.",
"icon": "console",
"command": "terminal"
} | 66 |
548 | # Copyright 2019 ZTE corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Mapping, NamedTuple, Optional, Sequence
import onnx
import onnx.utils
from . import repository
from .. import utilities
from ..models.data_format import DataFormat
from ..models.irs.onnx_model import ... | 456 |
1,544 | <gh_stars>1000+
"""
Scripts for the in-game Python system.
"""
from datetime import datetime, timedelta
from queue import Queue
import re
import sys
import traceback
from django.conf import settings
from evennia import DefaultObject, DefaultScript, ChannelDB, ScriptDB
from evennia import logger, ObjectDB
from evennia... | 10,540 |
391 | #
# Copyright (C) 2020 IBM. All Rights Reserved.
#
# See LICENSE.txt file in the root directory
# of this source tree for licensing information.
#
from unittest import mock
from unittest.mock import Mock
from test.mock_executor import MockExecutor
from test.state_mother import clai_plugins_state, clai_select_state, c... | 4,784 |
598 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from enum import Enum
from typing import Callable, Dict, List, Tuple, Union
import numpy as np
from maro.utils import clone
from maro.utils.exception.rl_toolkit_exception import StoreMisalignment
from .abs_store import AbsStore
class Overwri... | 4,436 |
421 |
// <Snippet1>
using namespace System;
using namespace System::Reflection;
public ref class MyClass
{
public:
ref class NestClass
{
public:
static int myPublicInt = 0;
};
ref struct NestStruct
{
public:
static int myPublicInt = 0;
};
};
int main()
{... | 445 |
1,338 | /*
* Copyright 1998-1999 Be, Inc. All Rights Reserved.
* Copyright 2003-2019 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef VIDEO_CONSUMER_H
#define VIDEO_CONSUMER_H
#include <Bitmap.h>
#include <BufferConsumer.h>
#include <MediaEventLooper.h>
#include <MediaNode.h>
... | 1,693 |
690 | package com.artemis.injection;
public class SharedInjectionCache extends ThreadLocal<InjectionCache> {
@Override
protected InjectionCache initialValue() {
return new InjectionCache();
}
}
| 55 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.