max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
740 | #ifndef VG_ALGORITHMS_FIND_MIN_CUT_IN_GRAPH_HPP_INCLUDED
#define VG_ALGORITHMS_FIND_MIN_CUT_IN_GRAPH_HPP_INCLUDED
/**
* \file min_cut_graph.hpp
* A randomized, probabilistic algorithm that
* finds the min cut on an undirected, weighted graph
* that holds the indices of snarls
*/
#include <vector>
#include <uti... | 1,293 |
4,145 | <filename>examples/nlp/token_classification/data/create_punctuation_capitalization_tarred_dataset.py
# Copyright (c) 2021, NVIDIA CORPORATION & 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.
# You m... | 6,239 |
2,151 | // Copyright 2016 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 "components/offline_pages/core/downloads/download_notifying_observer.h"
#include "base/memory/ptr_util.h"
#include "components/offline_pages/cor... | 1,573 |
988 | /**
* Copyright (C) 2011-2015 The XDocReport Team <<EMAIL>>
*
* All rights reserved.
*
* 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
... | 2,635 |
669 | /*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage,
* (C) 2020 MinIO, 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
... | 431 |
504 | package org.dayatang.ioc.guice;
import com.google.inject.*;
import com.google.inject.Module;
import com.google.inject.name.Names;
import org.dayatang.domain.InstanceProvider;
import java.lang.annotation.Annotation;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* 实例提供者接口的Google Guice实现。
... | 2,082 |
6,594 | <filename>code/2.7/13_enumerate.py<gh_stars>1000+
def enum_test():
my_list = ['apple', 'banana', 'grapes', 'pear']
for c, v in enumerate(my_list, 1):
print c, v
def main():
enum_test()
if __name__ == '__main__':
main()
| 102 |
1,376 | from enum import Enum
import pytest
import gino
from gino.dialects.aiomysql import AsyncEnum
pytestmark = pytest.mark.asyncio
db = gino.Gino()
class MyEnum(Enum):
ONE = "one"
TWO = "two"
class Blog(db.Model):
__tablename__ = "s_blog"
id = db.Column(db.BigInteger(), primary_key=True)
title = ... | 794 |
2,023 | def hashed_float(s):
"""returns a float in the range [0, 1) based on a hash of the string.
A given string will always return the same value, but different strings
will return very different values."""
import md5, struct
[number] = struct.unpack("<H", md5.new(s).digest()[:2])
return number / floa... | 114 |
742 | package org.support.project.web.dao;
import java.util.List;
import org.support.project.aop.Aspect;
import org.support.project.di.Container;
import org.support.project.di.DI;
import org.support.project.di.Instance;
import org.support.project.ormapping.common.SQLManager;
import org.support.project.web.dao.gen.GenRolesD... | 1,019 |
1,721 | <gh_stars>1000+
#define TEST_PARSE_FLAG kParseFullPrecisionFlag
#define TEST_NAME "RapidJSON_FullPrec (C++)"
#define TEST_CLASS RapidjsonFullPrecTest
#include "rapidjsontest.cpp"
| 67 |
776 | package act.app;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* 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... | 3,350 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/runtime/reference/softsign.hpp"
#include <openvino/core/validation_util.hpp>
#include "itt.hpp"
#include "openvino/core/attribute_visitor.hpp"
#include "openvino/op/softsign.hpp"
#include "openvino/runtime/tensor.h... | 1,458 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#ifndef _RTE_ACC100_PMD_H_
#define _RTE_ACC100_PMD_H_
#include "acc100_pf_enum.h"
#include "acc100_vf_enum.h"
#include "rte_acc100_cfg.h"
/* Helper macro for logging */
#define rte_bbdev_log(level, fmt, ...) \
rte_log(RTE_LOG_ ## le... | 8,704 |
592 | // Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
//
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
// copy, modify, and distribute this software in source code or binary form for use
// in connection with the web services and APIs provided by Facebook.
//
// As with... | 563 |
488 | /*******************************************************************************
* Copyright 2012 University of Southern California
*
* 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
*
... | 4,225 |
462 | // Copyright 2020 The Khronos® Group Inc.
#include "GLTFAssetTest.h"
#include "GLTFAsset.h"
TEST(GLTFAssetTest, RemoveUnusedSemantics) {
GLTF::Asset* asset = new GLTF::Asset();
GLTF::Scene* scene = new GLTF::Scene();
asset->scenes.push_back(scene);
asset->scene = 0;
GLTF::Node* node = new GLTF::Node();
... | 467 |
921 | <reponame>vsch/idea-markdown<gh_stars>100-1000
// Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.annotator;
import com.vladsch.md.nav.MdBundle;
import com.vladsch.md.nav.psi.element.MdRenameElemen... | 263 |
2,338 | // RUN: %clang_cc1 -fsyntax-only -verify %s
class test1 {
template <typename> friend int bar(bool = true) {} // expected-note {{previous declaration is here}}
template <typename> friend int bar(bool); // expected-error {{friend declaration specifying a default argument must be the only declaration}}
};
c... | 161 |
410 | {
"authors": [
"<NAME>",
"<NAME>"
],
"date_download": "2017-11-30T19:51:20",
"date_modify": null,
"date_publish": "2016-11-10T15:50:40",
"description": "At least two people were killed and 84 wounded when the insurgents struck with a suicide car bomb near a hotel being used by German diplomats, Afgh... | 966 |
1,076 | <reponame>kkmaity/DemoVideo
package com.allattentionhere.autoplayvideos;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Environment;
import an... | 565 |
1,484 | {"data": [{"Vulnerability": {"Description": "", "FixedIn": [], "Link": "https://security-tracker.debian.org/tracker/CVE-2011-1133", "Metadata": {}, "Name": "CVE-2011-1133", "NamespaceName": "debian:10", "Severity": "Negligible"}}, {"Vulnerability": {"Description": "", "FixedIn": [], "Link": "https://security-tracker.de... | 1,100 |
507 | <gh_stars>100-1000
# terrascript/jwt/r.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class jwt_hashed_token(terrascript.Resource):
pass
class jwt_signed_token(terrascript.... | 117 |
4,551 | <gh_stars>1000+
@LooperMode(Mode.PAUSED)
package org.robolectric.plugins.config;
import org.robolectric.annotation.LooperMode;
import org.robolectric.annotation.LooperMode.Mode;
| 68 |
344 | <filename>rsmanage/fill_practice_log_missings.py<gh_stars>100-1000
from rs_grading import do_fill_user_topic_practice_log_missings
do_fill_user_topic_practice_log_missings(db=db, settings=settings)
| 71 |
679 | <gh_stars>100-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 license... | 783 |
647 | /**
* @if Er7UtilsUseGroups
* @addtogroup Er7Utils
* @{
* @addtogroup Interface
* @{
* @endif
*/
/**
* @file
* Defines Er7UtilsDeletable methods.
*/
/*
Purpose: ()
*/
// System includes
#include <cstddef>
// Interface includes
#include "er7_utils/interface/include/alloc.hh"
// Local includes
#include ".... | 242 |
1,021 | #
# Copyright Contributors to the OpenTimelineIO project
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and rep... | 29,859 |
478 | #ifndef MAIN_HPP
#define MAIN_HPP
#include "SerialConfiguration.hpp"
extern SerialConfiguration *serialconfig;
#endif
| 43 |
575 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_NETWORK_PUBLIC_CPP_OPTIONAL_TRUST_TOKEN_PARAMS_H_
#define SERVICES_NETWORK_PUBLIC_CPP_OPTIONAL_TRUST_TOKEN_PARAMS_H_
#include "base/comp... | 963 |
2,003 | <reponame>Voilibaar/Tidal-Media-Downloader
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : searchModel.py
@Date : 2021/8/17
@Author : Yaronzz
@Version : 1.0
@Contact : <EMAIL>
@Desc :
"""
import _thread
import threading
import aigpy.stringHelper
import tidal_dl
from PyQt5.QtCore import pyqtS... | 1,430 |
1,473 | #!/usr/bin/env python
# coding=utf-8
from __future__ import division, print_function, unicode_literals
from six.moves.urllib.request import urlretrieve
import numpy as np
import tarfile
import h5py
import os
bs_data_dir = os.environ.get('BRAINSTORM_DATA_DIR', '.')
url = 'http://www.cs.toronto.edu/~kriz/cifar-10-binary... | 1,650 |
309 | #!/usr/bin/env python
# Copyright 2011-2012 OpenStack Foundation
# 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/LI... | 2,567 |
2,027 | <gh_stars>1000+
/*
* Copyright 2017-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 requi... | 2,366 |
679 | /**************************************************************
*
* 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... | 906 |
1,056 | <filename>java/java.editor/test/unit/data/org/netbeans/modules/java/editor/completion/data/GenericsMethodNoTypeParams.java
package test;
public class Test {
public X get(Y obj) {
return null;
}
}
| 81 |
6,989 | <filename>library/cpp/coroutine/engine/stack/benchmark/alloc_bm.cpp
#include <benchmark/benchmark.h>
#include <util/generic/vector.h>
#include <util/system/yassert.h>
#include <library/cpp/coroutine/engine/stack/stack_allocator.h>
#include <library/cpp/coroutine/engine/stack/stack_guards.h>
#include <library/cpp/coro... | 6,834 |
6,566 | <gh_stars>1000+
/*
* Tencent is pleased to support the open source community by making Tencent Shadow available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the Lice... | 2,271 |
675 | /*
* Copyright 2012-2014 eBay Software Foundation and selendroid committers.
*
* 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... | 736 |
9,782 | <reponame>sreekanth370/presto
/*
* 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 ... | 433 |
3,579 | package com.querydsl.core.domain2;
import com.querydsl.core.annotations.QueryEntity;
@QueryEntity
public class TenantImpl implements Tenant {
} | 47 |
1,144 | package de.metas.handlingunits.attribute.impl;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import de.metas.handlingunits.HuId;
import de.metas.handlingunits.IHandlingUnitsBL;
import de.metas.handlingunits.attribute.HUAndPIAttributes;
import de.metas.handlingunits.attr... | 5,321 |
65,488 | [{
"code": "textarea-duplicate-value",
"message": "A <textarea> can have either a value attribute or (equivalently) child content, but not both",
"start": {
"line": 1,
"column": 10,
"character": 10
},
"end": {
"line": 1,
"column": 23,
"character": 23
},
"pos": 10
}] | 120 |
1,157 | /**
* @file load_balancing.cpp Checks how Maxscale balances load
*
* - also used for 'load_balancing_pers1' and 'load_balancing_pers10' tests (with 'persistpoolmax=1' and
*'persistpoolmax=10' for all servers)
*
* - start two groups of threads: each group consists of 25 threads, each thread creates connections to
... | 1,219 |
364 | <gh_stars>100-1000
/*
* Copyright 2014-2019 <NAME>. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
//[oglplus_dsa_framebuffer_1
template <>
class __ObjectOps<__tag_DirectState, __tag_Framebuffer>
: publ... | 1,801 |
1,380 | <reponame>Passw/pmwkaa-sophia
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
int sd_schemebegin(sdscheme *c, sr *r)
{
int rc = ss_bufensure(&c->buf, r->a, sizeof(sdschemeheader));
if (ssu... | 1,256 |
19,127 | /*
* Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | 3,627 |
1,039 | <gh_stars>1000+
//
// CMHControllerHelper.h
// MHDevelopExample
//
// Created by lx on 2018/6/7.
// Copyright © 2018年 CoderMikeHe. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CMHControllerHelper : NSObject
/// 获取当前正在显示控制器
+ (UIViewController *)currentViewController;
@end
| 127 |
2,381 | package com.github.dockerjava.api.command;
import java.io.InputStream;
import com.github.dockerjava.api.exception.NotFoundException;
public interface CopyArchiveToContainerCmd extends SyncDockerCmd<Void> {
String getContainerId();
String getHostResource();
InputStream getTarInputStream();
boolean... | 775 |
582 | <gh_stars>100-1000
package com.easy.securityOauth2AuthCodeServer.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
imp... | 646 |
819 | <reponame>virdesai/stock-analysis-engine<gh_stars>100-1000
#!/usr/bin/env python
"""
Tool for inspecting cached pricing data to find common errors.
This tool uses the
`Extraction API <https://stock-analysis-engine.
readthedocs.io/en/latest/extract.html>`__ to look for dates
that are not in sync with the redis cached d... | 6,218 |
480 | <reponame>weicao/galaxysql
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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
... | 4,636 |
2,151 | <gh_stars>1000+
// Copyright (c) 2012 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 MEDIA_BASE_VECTOR_MATH_H_
#define MEDIA_BASE_VECTOR_MATH_H_
#include <utility>
#include "media/base/media_shmem_export.h"
n... | 692 |
1,738 | <reponame>jeikabu/lumberyard<filename>dev/Gems/CloudGemWebCommunicator/Code/Include/CloudGemWebCommunicator/CloudGemWebCommunicatorBus.h
/*
* 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 ... | 1,442 |
2,338 | <reponame>mkinsner/llvm
typedef int pch_int;
| 22 |
1,199 | --- te_subs.c.orig Sat Jan 17 03:31:40 2004
+++ te_subs.c Sat Jan 17 03:31:53 2004
@@ -231,7 +231,7 @@
char c;
{
if (isdigit(c)) return(c - '0' + 1);
- else if isalpha(c) return(mapch_l[c] - 'a' + 11);
+ else if (isalpha(c)) return(mapch_l[c] - 'a' + 11);
else if (fors)
{
if (c == '_') ret... | 174 |
984 | /*
* Copyright DataStax, 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 wri... | 809 |
1,756 | #ifndef MAILCORE_JAVA_IMAP_OPERATION_CALLBACK_H
#define MAILCORE_JAVA_IMAP_OPERATION_CALLBACK_H
#include <jni.h>
#include "MCBaseTypes.h"
#include "MCIMAPOperationCallback.h"
#ifdef __cplusplus
namespace mailcore {
class JavaIMAPOperationCallback : public Object, public IMAPOperationCallback {
public:
... | 281 |
8,805 | //
// KBSearchResults.h
// Keybase
//
// Created by Gabriel on 4/8/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface KBSearchResults : NSObject
@property NSString *header;
@property NSArray *results;
@property NSInteger section;
@end
| 98 |
32,544 | <reponame>DBatOWL/tutorials<gh_stars>1000+
package com.baeldung.thymeleaf.enums;
public class Widget {
private String name;
private Color color;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Color getColor() {
... | 225 |
532 | <gh_stars>100-1000
#ifndef TROPTER_TESTING_H
#define TROPTER_TESTING_H
// ----------------------------------------------------------------------------
// tropter: testing.h
// ----------------------------------------------------------------------------
// Copyright (c) 2017 tropter authors
//
// Licensed under the Apac... | 1,835 |
3,765 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.plsql.ast;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import net.sourceforge.pmd.lang.plsql.AbstractPLSQLParserTst;
public class SelectIntoWithGroupByTest extends Abs... | 672 |
4,283 | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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 ... | 1,969 |
1,338 | /*
* Copyright 2019-2020, <NAME> <<EMAIL>>.
*
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "UserUsageConditions.h"
#include "Logger.h"
// These are keys that are used to store this object's data into a BMessage
// instance.
#define KEY_COPY_MARKDOWN "copyMarkdown"
#define KE... | 676 |
310 | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: MIT
#include <CL/sycl.hpp>
#include <algorithm>
#include <iostream>
using namespace sycl;
int main() {
// Set up queue on any available device
queue Q;
// Initialize input and output memory on the host
constexpr size_t N = 256;
constexpr ... | 513 |
777 | // Copyright (c) 2012 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_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_
#define CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_
#include "base/macros... | 704 |
351 | #pragma once
#include "reverse_comparator.hpp"
template <typename T, typename C = int, typename Comp = std::less<T>> struct cnt_min {
T v;
C cnt;
cnt_min() : v(), cnt(0) {}
explicit cnt_min(T v_) : v(v_), cnt(1) {}
cnt_min(T v_, C cnt_) : v(v_), cnt(cnt_) {}
friend cnt_min operator + (const cnt_min& a, const ... | 345 |
2,338 | <reponame>mkinsner/llvm
//===- MathToSPIRV.h - Math to SPIR-V Patterns ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---... | 345 |
1,426 | package com.octo.android.robospice.springandroid.test;
import java.io.File;
import org.springframework.web.client.RestTemplate;
import android.app.Application;
import com.octo.android.robospice.SpringAndroidSpiceService;
import com.octo.android.robospice.persistence.CacheManager;
import com.octo.android.robospice.p... | 288 |
16,989 | // Copyright 2014 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 appl... | 2,393 |
2,338 | <reponame>mkinsner/llvm
struct ClassWithImplicitCtor {
int foo() { return 1; }
};
struct ClassWithDefaultedCtor {
ClassWithDefaultedCtor() = default;
int foo() { return 2; }
};
struct ClassWithOneCtor {
int value;
ClassWithOneCtor(int i) { value = i; }
};
struct ClassWithMultipleCtor {
int value;
Class... | 367 |
1,025 | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file suInterceptionFunctions.cpp
///
//============================================================================... | 6,497 |
1,743 | <filename>tests/unit/modules/test_LocalProvisioning.py
import time
import datetime
from bzt import ToolError
from bzt.engine import EXEC
from bzt.modules.provisioning import Local
from tests.unit import BZTestCase, EngineEmul
class ScenarioExecutorEmul(object):
def __init__(self):
pass
def startup(... | 2,398 |
13,006 | <gh_stars>1000+
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LI... | 574 |
32,544 | package com.baeldung.patterns.intercepting.filter.commands;
import com.baeldung.patterns.intercepting.filter.filters.FilterManager;
import com.baeldung.patterns.intercepting.filter.filters.OnIntercept;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet... | 477 |
8,767 | <reponame>monperrus/jsoup<gh_stars>1000+
/**
Contains the jsoup HTML cleaner, and safelist definitions.
*/
package org.jsoup.safety;
| 45 |
314 | package com.ys.yoosir.zzshow.mvp.ui.activities;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Too... | 3,670 |
12,278 | <reponame>cpp-pm/boost<gh_stars>1000+
//
// Copyright (c) 2018-2019, <NAME>, <EMAIL>
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// The authors gratefully acknowledge the support of
// Fraunhofer ... | 2,379 |
56,632 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "precomp.hpp"
#include "opencv2/videoio/registry.hpp"
#include "videoio_registry.hpp"
using namespace cv;
// Legac... | 828 |
601 | <reponame>Harshagracy/sp-dev-fx-webparts
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"remote-event-receiver-manager-web-part": {
"components": [
{
"entrypoint": "./lib/webparts/remoteEventReceiverManager/... | 275 |
776 | package act.xio.undertow;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* 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... | 1,218 |
619 | package com.yyquan.jzh.xmpp;
import android.annotation.TargetApi;
import android.app.ActivityManager;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.AsyncQueryHandler;
import android.content.BroadcastReceiver;
import android.content.Con... | 3,733 |
2,084 | <reponame>petrdousa/archaius
package com.netflix.config.sources;
import com.netflix.config.DynamicConfiguration;
import com.netflix.config.DynamicPropertyFactory;
import com.netflix.config.FixedDelayPollingScheduler;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import org.junit.BeforeCl... | 1,306 |
2,338 | // RUN: %check_clang_tidy %s hicpp-no-assembler %t
__asm__(".symver foo, bar@v");
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: do not use inline assembler in safety-critical code [hicpp-no-assembler]
static int s asm("spam");
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: do not use inline assembler in safety-critical c... | 199 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <IDEKit/IDEGeneratedInterfaceBasedGeniusResultsFinder.h>
@class NSMutableArray;
@interface IDESwiftGeneratedInterfaceGeniusResultsFinder : IDEGeneratedInterfaceBasedGeniusRe... | 169 |
387 | class DeserializationError(Exception):
pass
| 14 |
2,053 | void sip_header_param_test(void);
void sip_uri_parse_test(void);
void sip_uri_equal_test(void);
void sip_header_contact_test(void);
void sip_header_via_test(void);
void sip_header_cseq_test(void);
void sip_header_substate_test(void);
#if defined(_DEBUG) || defined(DEBUG)
void sip_header_test(void)
{
sip_header_param_... | 195 |
1,711 | <gh_stars>1000+
#!/usr/bin/env python
# Copyright 2015-2016 Yelp 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... | 1,541 |
457 | package denominator.route53;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;
import dagger.ObjectGraph;
import denominator.Credentials.MapCredentials;
import denominator.DNSApiManager;
import denomi... | 1,038 |
4,772 | package example.service;
import example.repo.Customer1643Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1643Service {
public Customer1643Service(Customer1643Repository repo) {}
}
| 64 |
377 | <filename>dmlab2d/lib/system/generators/pushbox/room.cc
// Copyright (C) 2020 The DMLab2D 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/licens... | 2,359 |
343 | from .base import * # NOQA
DEBUG = False
SIGNATURES_GPG_PATH = '/usr/bin/gpg1'
| 35 |
497 | <filename>app/src/main/java/us/pinguo/shareelementdemo/contacts/Contacts.java
package us.pinguo.shareelementdemo.contacts;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by huangwei on 2018/10/12.
*/
public class Contacts implements Parcelable{
public String name;
public int avatarRes... | 523 |
19,127 | <reponame>pmesnier/openssl<filename>include/openssl/store.h
/*
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the s... | 6,795 |
3,411 | <reponame>fratik/JDA
/*
* Copyright 2015 <NAME>, <NAME>, <NAME>, and the JDA contributors
*
* 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/L... | 6,499 |
13,074 | <gh_stars>1000+
package com.lmax.disruptor;
/**
* Pulls together the low-level data access and sequencing operations of {@link RingBuffer}
* @param <T> The event type
*/
public interface EventSequencer<T> extends DataProvider<T>, Sequenced
{
}
| 77 |
2,059 | <filename>lib/graph/src/types/downstream.cpp
#include "graph/types/downstream.h"
#include "graph/types/root.h"
Downstream::~Downstream()
{
for (auto r : roots)
r->removeDownstream(this);
}
void Downstream::trigger()
{
for (auto r : roots)
r->removeDownstream(this);
roots.clear();
upda... | 134 |
848 | <reponame>hito0512/Vitis-AI
/*
* Copyright 2019 Xilinx 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 ... | 5,523 |
1,006 | <reponame>eenurkka/incubator-nuttx
/****************************************************************************
* arch/arm/include/max326xx/chip.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for addition... | 3,983 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2012 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 "cc/test/fake_content_layer_client.h"
#include <algorithm>
#include <cstddef>
#include "cc/paint/paint_op_buffer... | 2,307 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.