max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,668 | // Copyright 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 "components/url_matcher/regex_set_matcher.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/logging.h"
#include "base... | 1,306 |
6,210 | /*
* 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 ... | 772 |
1,781 | package com.marshalchen.common.uimodule.flowtextview.models;
/**
* Created by Dean on 24/06/2014.
*/
public class Line {
public float leftBound;
public float rightBound;
}
| 64 |
605 | <reponame>kasohong/mqcloud<filename>mq-client-open/src/test/java/com/sohu/tv/mq/rocketmq/RocketMQProducerTransationTest.java
package com.sohu.tv.mq.rocketmq;
import java.util.HashMap;
import java.util.Map;
import org.apache.rocketmq.client.producer.LocalTransactionState;
import org.apache.rocketmq.client.produc... | 1,633 |
1,444 | <reponame>GabrielSturtevant/mage<filename>Mage.Sets/src/mage/cards/s/SenateGuildmage.java
package mage.cards.s;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
impo... | 640 |
852 | import FWCore.ParameterSet.Config as cms
#==============================================================================
# Sequence to make final electrons.
# In the past, this was including the seeding, but this one is directly
# imported in the reco sequences since the integration with pflow.
#======================... | 376 |
14,668 | <filename>components/autofill/core/browser/autofill_profile_validation_util.cc
// Copyright 2017 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/autofill/core/browser/autofill_profile_validation_util... | 6,470 |
510 | /* Copyright 2019-2021 Canaan 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 t... | 1,010 |
412 | <reponame>mauguignard/cbmc<filename>jbmc/regression/jbmc/LocalVarTable1/CtorLocalVar.java<gh_stars>100-1000
public class CtorLocalVar
{
public CtorLocalVar()
{
String s2 = new String("foo");
assert(true);
}
public CtorLocalVar test()
{
return new CtorLocalVar();
}
}
| 121 |
13,006 | /*******************************************************************************
* 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/LICENSE-2.0.
*
*... | 2,576 |
964 | {
"id": "23a9e2d9-8738-4556-a71c-2802b6ffa022",
"queryName": "Undefined Scope 'securityScheme' On Global 'security' Field",
"severity": "LOW",
"category": "Access Control",
"descriptionText": "Using an scope on global security field that is undefined on 'securityScheme' can be defined by an attacker",
"desc... | 153 |
777 | // Copyright 2014 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 DEVICE_HID_HID_SERVICE_WIN_H_
#define DEVICE_HID_HID_SERVICE_WIN_H_
#include <windows.h>
// Must be after windows.h.
#include <hidclass.h>
exte... | 1,103 |
353 | <filename>windows_packages_gpu/torch/include/TH/THGenerateByteType.h<gh_stars>100-1000
#ifndef TH_GENERIC_FILE
#error "You must define TH_GENERIC_FILE before including THGenerateByteType.h"
#endif
#define scalar_t uint8_t
#define accreal int64_t
#define Real Byte
#define TH_REAL_IS_BYTE
#line 1 TH_GENERIC_FILE... | 205 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java<filename>sdk/spring/azure-spring-cloud-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/cloudfoundry/AzureCfService.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.cloud.autoconfigure.cl... | 1,287 |
1,510 | <gh_stars>1000+
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.facebook.react.fabric.mounting.mountitems;
import com.facebook.react.fabric.mounting.MountingManager;
pu... | 491 |
544 | <filename>tests/test_sessions.py
# -*- coding: utf-8 -*-
import unittest
import pytest
from requests_toolbelt import sessions
from requests import Request
from . import get_betamax
class TestBasedSession(unittest.TestCase):
def test_request_with_base(self):
session = sessions.BaseUrlSession('https://http... | 888 |
496 | package org.nativescript.staticbindinggenerator.files.impl;
import org.apache.bcel.classfile.JavaClass;
import java.util.Map;
import java.util.Set;
public class ClassesCollection {
private final Map<String, JavaClass> regularClasses;
private final Set<String> nonPublicNestedClasses;
public ClassesCollec... | 246 |
493 | <reponame>SirArep/ecal
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental 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... | 1,014 |
514 | #include "test.h"
char *str = "hello\nworld";
void test(buffer_t *buf, mark_t *cur) {
mark_move_offset(cur, 11);
ASSERT("col1", 5, cur->col);
ASSERT("line1", buf->first_line->next, cur->bline);
mark_move_offset(cur, 6);
ASSERT("col2", 0, cur->col);
ASSERT("line2", buf->first_line->next, cur->... | 201 |
372 | /*
* 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, software distributed under t... | 27,772 |
884 | package com.blazebit.persistence.view.processor.model;
import com.blazebit.persistence.view.EntityViewBuilder;
import com.blazebit.persistence.view.EntityViewBuilderBase;
import com.blazebit.persistence.view.EntityViewBuilderListener;
import com.blazebit.persistence.view.EntityViewNestedBuilder;
import com.blazebit.pe... | 22,896 |
648 | {"resourceType":"DataElement","id":"ValueSet.compose.include.concept.display","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.display","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"ValueSet.compose.i... | 231 |
310 | <filename>gear/hardware/e/expert-variable-heat-hot-air-gun-kit.json
{
"name": "Expert Variable Heat Hot Air Gun Kit",
"description": "A hot air gun.",
"url": "https://www.drapertools.com/b2c/b2citmdsp.pgm?pp_skmno=14428"
} | 94 |
4,879 | <reponame>smartyw/organicmaps
#pragma once
#include "indexer/trie.hpp"
#include "coding/reader.hpp"
#include "coding/varint.hpp"
#include "base/assert.hpp"
#include "base/bits.hpp"
#include "base/macros.hpp"
#include <cstddef>
#include <cstdint>
#include <memory>
namespace trie
{
template <class ValueList, typenam... | 2,095 |
683 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.api.db;
import static org.junit.jupiter.api.Assertions.assertFalse;
import org.junit.jupiter.api.Test;
public class StatementSanitizationConfigTest {
@Test
void shouldGetFalse() {
a... | 129 |
2,989 | <filename>databus-cluster/databus-cluster-manager-impl/src/main/java/com/linkedin/databus/cluster/DatabusClusterNotifier.java
package com.linkedin.databus.cluster;
/*
*
* Copyright 2013 LinkedIn Corp. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... | 409 |
1,350 | <filename>sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteV2.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourc... | 1,301 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00875","group":"spam-2","checksum":{"type":"MD5","value":"535ae4621326594a8c9edbc33c06b408"},"text":"Received: from hq.pro-ns.net (localhost [127.0.0.1])\n\tby hq.pro-ns.net (8.12.5/8.12.5) with ESMTP id g6M4YfhY015080\n\t(version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=N... | 1,362 |
5,169 | <reponame>Gantios/Specs
{
"name": "CryptoCoding",
"version": "1.1.1",
"summary": "CryptoCoding is a superset of the NSCoding protocol that allows for simple, seamless encryption of any NSCoding-compatible object.",
"homepage": "https://github.com/nicklockwood/CryptoCoding",
"license": "zlib",
"authors": "<N... | 230 |
9,156 | <gh_stars>1000+
#!/usr/bin/env python
#
# 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, Vers... | 1,167 |
1,405 | package com.network.android.roomTap;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
import com.network.android.agent.NetworkApp;
import com.network.android.c.a.a;
public class MediaPlayerHandlerService extends ... | 730 |
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.billing.implementation;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
import com.azu... | 2,047 |
2,650 | # python3
# Copyright 2018 DeepMind Technologies 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 re... | 1,968 |
544 | <filename>XML/include/Poco/XML/Name.h
//
// Name.h
//
// Library: XML
// Package: XML
// Module: Name
//
// Definition of the Name class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef XML_Name_INCLUDED
#define XML_... | 1,052 |
317 | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 2,331 |
545 | <gh_stars>100-1000
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.tonicsystems.jarjar.transform.jar;
/**
*
* @author shevek
*/
public class DirectoryFilterJarProcesso... | 175 |
1,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,853 |
638 | <filename>library/src/main/java/com/jaredrummler/apkparser/utils/xml/CodePointTranslator.java
/*
* Copyright (c) 2015, <NAME>
* Copyright (c) 2015, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | 837 |
541 | <reponame>zimengjiang/badslam
// Copyright 2019 ETH Zürich, <NAME>
//
// 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 co... | 2,937 |
3,702 | /*
* 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, software
* distribut... | 393 |
879 | <reponame>qianfei11/zstack
package org.zstack.test.storage.primary.local;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.header.i... | 1,143 |
861 | <filename>spring-cloud-gray-client/src/main/java/cn/springcloud/gray/decision/Policy.java<gh_stars>100-1000
package cn.springcloud.gray.decision;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
/**
* @author saleson
* @date 2020-04-07 22:15
*/
@Data
@Accessors(chain = true)
public... | 261 |
819 | <filename>wrapper/symbols/crypto_stream_chacha20_xor.json
{
"name": "crypto_stream_chacha20_xor",
"type": "function",
"inputs": [
{
"name": "input_message",
"type": "unsized_buf"
},
{
"name": "nonce",
"type": "buf",
"length": "libsodium._crypto_stream_chacha20_noncebytes(... | 409 |
1,281 | <gh_stars>1000+
import logging
from sqlalchemy.sql import func
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.schema import UniqueConstraint
from config.app import db
from utils.custom_exception import DFError
from utils.resource import encrypt, decrypt
from cve_scan_registry.scan_registry.cve_scan_r... | 6,963 |
303 | <filename>tests/extmod/machine_mem.py
# This test requires root privilege, so is usually skipped
# It also assumes x86 legacy hardware (with Video BIOS present).
try:
import machine
except ImportError:
print("SKIP")
import sys
sys.exit()
try:
print(hex(machine.mem16[0xc0000]))
except OSError:
... | 131 |
333 | int main(void)
{
double result;
result = 21.0 + 21.0;
if (result > 41.9 && result < 42.1) {
return 42;
} else {
return 0;
}
}
| 84 |
4,145 | <reponame>hamjam/NeMo<gh_stars>1000+
# ! /usr/bin/python
# Copyright (c) 2020, NVIDIA CORPORATION. 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.apa... | 1,074 |
5,169 | <reponame>Ray0218/Specs<filename>Specs/Cerfing/2.0.2/Cerfing.podspec.json
{
"name": "Cerfing",
"version": "2.0.2",
"summary": "Lightweight json-based network protocol for rapid prototyping",
"description": "I like constructing simple network protocols from plist/json-safe dictionaries, and transmit them over a ... | 553 |
341 | <gh_stars>100-1000
package com.aventstack.extentreports.observer;
import com.aventstack.extentreports.observer.entity.LogEntity;
import com.aventstack.extentreports.observer.entity.ObservedEntity;
import io.reactivex.rxjava3.core.Observer;
public interface LogObserver<T extends ObservedEntity> extends ExtentObserver... | 123 |
818 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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... | 976 |
577 | <gh_stars>100-1000
//
// PRCachedURLResponse.h
// PlainReader
//
// Created by guojiubo on 14-5-8.
// Copyright (c) 2014年 guojiubo. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PRCachedURLResponse : NSObject <NSCoding>
@property (nonatomic, strong) NSURLResponse *response;
@property (nona... | 129 |
372 | <reponame>kbore/pbis-open
#include "includes.h"
BOOL
StringsAreEqual(
PCSTR pszStr1,
PCSTR pszStr2
)
{
/* If both are NULL, then they are 'equal'.
* If only one is NULL, then they are not 'equal'. */
if ( pszStr1 == NULL )
{
if ( pszStr2 == NULL )
return 1;
els... | 2,709 |
947 | /*
* Copyright 1999-2101 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 2,825 |
625 | <filename>jtransc-rt/src/java/util/stream/LongStream.java
package java.util.stream;
import java.util.*;
import java.util.function.*;
public interface LongStream extends BaseStream<Long, LongStream> {
LongStream filter(LongPredicate predicate);
LongStream map(LongUnaryOperator mapper);
<U> Stream<U> mapToObj(Long... | 758 |
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 IOS_WEB_JS_FEATURES_CONTEXT_MENU_CONTEXT_MENU_JAVA_SCRIPT_FEATURE_H_
#define IOS_WEB_JS_FEATURES_CONTEXT_MENU_CONTEXT_MENU_JAVA_SCRIPT_FEATURE_H_
... | 796 |
1,443 | {
"copyright": "<NAME>",
"url": "http://stevebanton.com",
"email": "<EMAIL>",
"format": "html",
"gravatar": true
}
| 55 |
487 | var, a, b = 12345, 4, "Beew"
my_string = ("Hello %s %s %s".format(var,
a,
b # <<<< busted
))
var2 = "Some Value" | 160 |
385 | <reponame>dengdan/Real-time-self-adaptive-deep-stereo
[
["fgc-volume-filtering-6/disp1", "fgc-volume-filtering-6/disp2", "fgc-volume-filtering-6/disp3", "fgc-volume-filtering-6/disp4", "fgc-volume-filtering-6/disp5", "fgc-volume-filtering-6/disp6","left/conv12", "left/conv11"],
["fgc-volume-filtering-5/disp1", ... | 597 |
1,269 | <filename>graph4nlp/pytorch/modules/config/graph_construction/__init__.py
import os
from ....modules.utils.config_utils import get_yaml_config
str2yaml = {
"dependency": "dependency.yaml",
"constituency": "constituency.yaml",
"ie": "ie_graph_construction.yaml",
"node_emb": "node_emb.yaml",
"node_e... | 903 |
850 | <filename>tensorflow/core/framework/tracking_allocator.cc
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/li... | 1,961 |
839 | <filename>rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/xml/stax/ElementWriter.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. The AS... | 3,402 |
5,156 | <filename>src/test/seccomp_clone_fail.c
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
static void install_filter(void) {
struct sock_filter filter[] = {
/* Load system call number from 'seccomp_data' buffer into
accumulator */
BPF_STMT(BPF_LD | BPF_W... | 741 |
1,442 | <gh_stars>1000+
#ifndef LCD_TIMING_TEST_CONTROLLER_H
#define LCD_TIMING_TEST_CONTROLLER_H
#include <escher/buffer_text_view.h>
#include <escher/solid_color_view.h>
#include <escher/view_controller.h>
#include <assert.h>
namespace HardwareTest {
//TODO Factorize with LCDData
class LCDTimingTestController : public Esc... | 536 |
794 | /*
* 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,665 |
7,158 | /*
By downloading, copying, installing or using the software you agree to this
license. If you do not agree to this license, do not download, install,
copy or use the software.
License Agreement
For Open Source Computer Vision Library
(3-clause BSD Licens... | 1,586 |
318 | <reponame>adam11grafik/maven-surefire<gh_stars>100-1000
package pkg;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.platform.suite.api.ExcludeTags;
import org.junit.platform.suite.api.IncludePackages;
import org.junit.platform.suite.api.SelectPackages;
import org.junit.runner.RunWith;
@RunWith(JUnit... | 168 |
3,799 | <reponame>semoro/androidx
/*
* Copyright 2020 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
*
* ... | 891 |
1,127 | // Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "dft_kernel_selector.h"
#include "dft_kernel_ref.h"
namespace kernel_selector {
dft_kernel_selector::dft_kernel_selector() {
Attach<DFTKernelRef>();
}
KernelsData dft_kernel_selector::GetBestKernels(const Params& params,... | 210 |
552 | <reponame>asheraryam/ETEngine<filename>Engine/source/EtEditor/Import/ColladaParser.h<gh_stars>100-1000
#pragma once
#include <EtCore/IO/XmlParser.h>
#include "ColladaDom.h"
namespace et {
namespace edit {
//----------------
// ColladaParser
//
// The goal is not to be fully compliant, but to read the necessary inf... | 1,160 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "primitive.hpp"
namespace cldnn {
/// @addtogroup cpp_api C++ API
/// @{
/// @addtogroup cpp_topo... | 817 |
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.avs.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jacks... | 1,093 |
8,629 | #include <Core/Block.h>
#include <IO/Operators.h>
#include <Common/JSONBuilder.h>
#include <Core/InterpolateDescription.h>
#include <Interpreters/convertFieldToType.h>
namespace DB
{
InterpolateDescription::InterpolateDescription(ActionsDAGPtr actions_, const Aliases & aliases)
: actions(actions_)
{
... | 454 |
918 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 3,754 |
1,656 | <filename>tests/brave/spring-cloud-sleuth-instrumentation-messaging-tests/src/test/java/org/springframework/cloud/sleuth/instrument/messaging/issues/issue_943/HelloWorldImpl.java<gh_stars>1000+
/*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License")... | 556 |
1,102 | /*
#include "actor.h"
#include "info.h"
#include "p_enemy.h"
#include "p_local.h"
#include "a_action.h"
#include "templates.h"
#include "m_bbox.h"
#include "thingdef/thingdef.h"
#include "doomstat.h"
*/
DECLARE_ACTION(A_SkullAttack)
static const PClass *GetSpawnType(DECLARE_PARAMINFO)
{
ACTION_PARAM_... | 2,524 |
575 | <reponame>Ron423c/chromium<filename>chrome/browser/chromeos/full_restore/new_user_restore_pref_handler.cc
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/full_restore/n... | 1,097 |
1,472 | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of... | 3,595 |
319 | <reponame>Celebrate-future/openimaj
/**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistr... | 5,259 |
1,708 | <reponame>wovano/pyfilesystem2
# coding: utf-8
"""``AppFS`` opener definition.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import typing
from .base import Opener
from .registry import registry
from .errors import OpenerError
if typing.TYPE... | 978 |
5,169 | {
"name": "gsafetyCocopodsTest",
"version": "0.0.2",
"summary": "this is a test of gsafety-cocopodsTest.",
"description": "I just wants test it, I do not know weather it will success",
"homepage": "https://github.com/xuyonglin1/gsafety-cocopodsTest.git",
"license": "MIT",
"authors": {
"xuyonglin": "<E... | 272 |
739 | package org.fxmisc.richtext.api;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.geometry.Pos;
import javafx.stage.Stage;
import org.fxmisc.richtext.InlineCssTextAreaAppTest;
import org.fxmisc.richtext.event.MouseOverTextEvent;
import org.junit.Ignore;
import org.junit.Test;
import java.time.Duratio... | 1,456 |
3,200 | <reponame>PowerOlive/mindspore
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 12,683 |
2,577 | <filename>model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/builder/AbstractBoundaryEventBuilder.java
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informati... | 2,165 |
743 | """
Annotate report module
"""
import os
import os.path
import re
from txtmarker.factory import Factory
from ..query import Query
from .common import Report
class Annotate(Report):
"""
Report writer for overlaying annotations on source PDFs. This format requires access to original PDFs.
"""
def _... | 2,132 |
4,002 | <filename>src/main/java/me/zeroX150/cornos/features/module/impl/misc/Debug.java<gh_stars>1000+
/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Project: Cornos
# File: Debug
# Created by constantin at 12:17, Mär 19 2021
PLEASE READ THE COPYRIGHT NOTICE IN THE PROJECT ROOT, IF EXISTENT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | 308 |
2,151 | <filename>misc/help_as_html.py<gh_stars>1000+
#!/usr/bin/env python
# Copyright 2014 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.
# Runs 'gn help' and various subhelps, and spits out html.
# TODO:
# - Handle numbered an... | 1,292 |
3,227 | #include <CGAL/Simple_cartesian.h>
#include <CGAL/point_generators_2.h>
#include <CGAL/Weights/wachspress_weights.h>
// Typedefs.
using Kernel = CGAL::Simple_cartesian<double>;
using FT = typename Kernel::FT;
using Point_2 = typename Kernel::Point_2;
using PointRange = std::vector<Point_2>;
using Creator = C... | 942 |
743 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "AdaptiveRemoteResourceInformation.g.h"
namespace winrt::AdaptiveCards::ObjectModel::Uwp::implementation
{
struct AdaptiveRemoteResourceInformation : AdaptiveRemoteResourceInformationT<AdaptiveRemo... | 243 |
505 | <filename>src/anlogicBitParser.cpp
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2020 <NAME> <<EMAIL>>
* Based on <NAME> https://github.com/mmicko/prjtang/
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <functional>
#include <cctype>
#include <iostream>
#incl... | 1,035 |
940 | #include "header.h"
struct {
int a;
int b;
} struct_from_source;
| 30 |
598 | /*
*
* 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, software
* distri... | 952 |
556 | /*
* 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 ... | 471 |
2,382 | <gh_stars>1000+
import pytest
from shapely.geometry import shape, Polygon, MultiLineString
from shapely.geometry.geo import _is_coordinates_empty
@pytest.mark.parametrize(
"geom",
[{"type": "Polygon", "coordinates": None}, {"type": "Polygon", "coordinates": []}],
)
def test_polygon_no_coords(geom):
asser... | 587 |
372 | <reponame>kbore/pbis-open
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0... | 682 |
4,184 | package se.citerus.dddsample.interfaces.tracking;
import org.apache.commons.lang.builder.ToStringBuilder;
import static org.apache.commons.lang.builder.ToStringStyle.MULTI_LINE_STYLE;
public final class TrackCommand {
/**
* The tracking id.
*/
private String trackingId;
public String getTrac... | 216 |
8,768 | /*
* Copyright (c) 2014, <NAME> <<EMAIL>irez at gmail dot com>
* 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,... | 1,681 |
488 |
int main() {
union {
int* p;
int x;
} u;
u.p = malloc( sizeof( int ));
// error, we have a memory leak now that we've overwritten p
u.x = 1943;
free( u.p );
return 0;
}
| 110 |
456 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#include <djvImage/Type.h>
namespace djv
{
namespace Image
{
inline Core::UID Data::getUID() const
{
return _uid;
}
inline bool Data::isValid() const
{
... | 1,384 |
348 | {"nom":"Athie","circ":"4ème circonscription","dpt":"Côte-d'Or","inscrits":57,"abs":25,"votants":32,"blancs":2,"nuls":1,"exp":29,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":18},{"nuance":"REM","nom":"Mme <NAME>","voix":11}]} | 97 |
474 | #import "SLGPUImageTwoInputFilter.h"
extern NSString *const LSQKGPUImageThreeInputTextureVertexShaderString;
@interface SLGPUImageThreeInputFilter : SLGPUImageTwoInputFilter
{
SLGPUImageFramebuffer *thirdInputFramebuffer;
GLint filterThirdTextureCoordinateAttribute;
GLint filterInputTextureUniform3;
... | 188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.