max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
23,901 | <reponame>deepneuralmachine/google-research
# coding=utf-8
# Copyright 2021 The Google Research 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
#
# http://www.apache.org/licenses... | 5,806 |
695 | #!~/.wine/drive_c/Python25/python.exe
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2014, <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:
#
# * Redistributions of source code must retai... | 30,263 |
439 | <filename>exercises/practice/phone-number/.meta/config.json
{
"blurb": "Clean up user-entered phone numbers so that they can be sent SMS messages.",
"authors": [
"sagarsane"
],
"contributors": [
"aadityakulkarni",
"c-thornton",
"colin-mullikin",
"FridaTveit",
"jmrunkle",
"jsertel",
... | 451 |
402 | package com.vaadin.fusion;
import java.lang.reflect.AnnotatedParameterizedType;
import java.lang.reflect.AnnotatedType;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import static org.junit.As... | 708 |
715 | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 2,264 |
763 | package org.batfish.specifier.parboiled;
import com.google.common.base.MoreObjects;
import java.util.Objects;
abstract class SetOpRoutingPolicyAstNode implements RoutingPolicyAstNode {
private final RoutingPolicyAstNode _left;
private final RoutingPolicyAstNode _right;
static SetOpRoutingPolicyAstNode create(C... | 597 |
304 | <filename>cloudnet-driver/src/main/java/de/dytanic/cloudnet/driver/event/events/module/ModulePreStartEvent.java
/*
* Copyright 2019-2021 CloudNetService team & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | 511 |
1,273 | <filename>src/main/java/org/broadinstitute/hellbender/tools/walkers/annotator/allelespecific/AlleleSpecificAnnotation.java
package org.broadinstitute.hellbender.tools.walkers.annotator.allelespecific;
import org.broadinstitute.hellbender.tools.walkers.annotator.Annotation;
/**
* This is a marker interface used to in... | 153 |
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.batchai.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.uti... | 2,881 |
3,494 | package org.libcinder.exampleapp;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.graphics.Matrix;
import android.graphics.SurfaceTexture;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
i... | 1,716 |
679 | <filename>main/qadevOOo/java/OOoRunner/src/main/java/ifc/sdb/_DataAccessDescriptor.java
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for addi... | 2,155 |
347 | <filename>backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/SyntaxError.java
package org.ovirt.engine.core.searchbackend;
import java.util.HashMap;
import java.util.Map;
public enum SyntaxError {
NO_ERROR(0),
INVALID_SEARCH_OBJECT(1),
COLON_BEFORE_SEARCH_OBJECT(2),
... | 730 |
2,151 | <reponame>zipated/src<filename>third_party/angle/src/libANGLE/renderer/null/RenderbufferNULL.cpp
//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// RenderbufferNULL.cpp:
// Implements the c... | 754 |
6,034 | <reponame>ssSlowDown/onemall<gh_stars>1000+
package cn.iocoder.mall.managementweb.controller.admin.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.vali... | 724 |
498 | <gh_stars>100-1000
package com.bizzan.bitrade.dao;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.bizzan.bitrade.entity.ExchangeOrderDetail;
import com.bizzan.bitrade.entity.ExchangeTrade;
public interface ExchangeTradeRepository extends MongoRepository<ExchangeTrade,String> {
}
| 105 |
4,054 | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "tensor_remove_update.h"
#include "tensor_partial_update.h"
#include <vespa/document/base/exceptions.h>
#include <vespa/document/datatype/tensor_data_type.h>
#include <vespa/document/fieldvalue/doc... | 2,732 |
310 | {
"name": "PHP",
"description": "An interpreted scripting language.",
"url": "https://php.net/"
} | 35 |
348 | {"nom":"Chevagny-les-Chevrières","dpt":"Saône-et-Loire","inscrits":475,"abs":86,"votants":389,"blancs":43,"nuls":6,"exp":340,"res":[{"panneau":"1","voix":256},{"panneau":"2","voix":84}]} | 81 |
458 | <reponame>swimos/swim<gh_stars>100-1000
// Copyright 2015-2021 Swim 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 ... | 1,339 |
852 | import FWCore.ParameterSet.Config as cms
#
# produce mvaComputer with all necessary ingredients
#
## import MVA trainer cfi
from TopQuarkAnalysis.TopEventSelection.TtFullHadSignalSelMVATrainer_cfi import *
## ------------------------------------------------------------------------------------------
## configuration ... | 465 |
589 | # Copyright (C) GRyCAP - I3M - UPV
#
# 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,734 |
971 | <gh_stars>100-1000
package com.ucar.datalink.worker.api.util;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* Created by lubiao on 2017/6/21.
*/
public class BatchSplitter {
/**
* 将一个list拆分为多个list,每个list的元素个数为batchSize
*
*/
public static <T> List<List<T>... | 906 |
563 | package com.gentics.mesh.core.data.schema.impl;
import static com.gentics.mesh.core.rest.error.Errors.error;
import static com.gentics.mesh.core.rest.schema.change.impl.SchemaChangeModel.ELASTICSEARCH_KEY;
import static io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST;
import java.util.Collections;
import j... | 1,272 |
2,151 | // 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.
#ifndef PPAPI_THUNK_PPB_VIDEO_DESTINATION_PRIVATE_API_H_
#define PPAPI_THUNK_PPB_VIDEO_DESTINATION_PRIVATE_API_H_
#include <stdint.h>
#include "base... | 358 |
376 | <filename>Lib/Chip/M368.hpp
#pragma once
#include <Chip/Unknown/Toshiba/M368/CANMB0.hpp>
#include <Chip/Unknown/Toshiba/M368/CANMB1.hpp>
#include <Chip/Unknown/Toshiba/M368/CANMB2.hpp>
#include <Chip/Unknown/Toshiba/M368/CANMB3.hpp>
#include <Chip/Unknown/Toshiba/M368/CANMB4.hpp>
#include <Chip/Unknown/Toshiba/M368/CA... | 1,900 |
2,151 | /**
* Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved.
* (C) 2008 Torch Mobile Inc. All rights reserved.
* (http://www.torchmobile.com/)
* Copyright (C) 2010 Google Inc. All rights reserved.
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* This library... | 1,024 |
6,215 | <filename>airbyte-integrations/connectors/source-jira/source_jira/schemas/issue_field_configurations.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The ID of the field configuration.",
"format": "int64... | 286 |
1,056 | <filename>enterprise/websvc.design/src/org/netbeans/modules/websvc/design/view/actions/RemoveOperationAction.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 copyri... | 2,524 |
1,056 | <reponame>Antholoj/netbeans
/*
* 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 ... | 822 |
2,709 | #include <cmath>
#include <matplot/matplot.h>
std::vector<std::pair<size_t, size_t>> get_edges();
int main() {
using namespace matplot;
std::vector<std::pair<size_t, size_t>> edges = {
{0, 1}, {0, 2}, {0, 3}, {0, 4}, {1, 5}, {1, 6}, {1, 7},
{1, 8}, {1, 9}, {1, 10}, {1, 11}, {1,... | 241 |
1,234 | <gh_stars>1000+
package org.benf.cfr.reader.bytecode.analysis.parse.expression;
import org.benf.cfr.reader.bytecode.analysis.loc.BytecodeLoc;
import org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.PrimitiveBoxingRewriter;
import org.benf.cfr.reader.bytecode.analysis.parse.Expression;
import org.benf.cfr.rea... | 5,898 |
746 | // 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... | 5,283 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 2,018 |
32,544 | <gh_stars>1000+
package com.baeldung.bytebuddy;
import net.bytebuddy.implementation.bind.annotation.BindingPriority;
public class Bar {
@BindingPriority(3)
public static String sayHelloBar() {
return "Holla in Bar!";
}
@BindingPriority(2)
public static String sayBar() {
return "b... | 173 |
328 | #-------------------------------------------------------------------------------
# Name: OSTrICa - Open Source Threat Intelligence Collector - TCPIPUtils Plugin
# Purpose: Collection and visualization of Threat Intelligence data
#
# Author: <NAME> - <<EMAIL>> @Ptr32Void
#
# Created: 20/12/2015
# Lic... | 7,605 |
1,338 | /*
* Copyright 2004-2008, <NAME>, <EMAIL>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "TypeEditors.h"
#include "DataEditor.h"
#include <stdio.h>
#include <stdlib.h>
#include <Alert.h>
#include <Autolock.h>
#include <Bitmap.h>
#include <Catalog.h>
#include <IconUtils.h>
#in... | 12,377 |
440 | <reponame>kurapov-peter/intel-graphics-compiler
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
/*
* !!! DO NOT EDIT THIS FILE !!!... | 3,462 |
3,861 | /** @file
Header file for real time clock driver.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017, AMD Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _RTC_H_
#define _RTC_H_
#include <Uefi.h>
#include <Guid/Acpi... | 4,987 |
3,100 | <reponame>abhinavsinha001/airpal<filename>src/main/java/com/airbnb/airpal/api/output/InvalidQueryException.java<gh_stars>1000+
package com.airbnb.airpal.api.output;
public class InvalidQueryException
extends Exception
{
public InvalidQueryException(String message)
{
super(message);
}
}
| 117 |
487 | <filename>src/org/intellij/erlang/refactoring/ErlangInlineVariableHandler.java
/*
* Copyright 2012-2014 <NAME>
*
* 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,878 |
375 | /*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.tableeditor.keywords.handler;
import javax.inject.Named;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclips... | 586 |
11,877 | <filename>caffeine/src/test/java/com/github/benmanes/caffeine/jsr166/ConcurrentHashMap8Test.java<gh_stars>1000+
/*
* Written by <NAME> with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
*/
package com.gith... | 6,908 |
2,151 | // 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.
#ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_EMBEDDER_GL_OUTPUT_SURFACE_OZONE_H_
#define COMPONENTS_VIZ_SERVICE_DISPLAY_EMBEDDER_GL_OUTPUT_SURFACE_OZONE_H_
#in... | 379 |
364 | <filename>nginx-admin-ui/src/main/java/com/jslsolucoes/nginx/admin/jpa/OverrideEntityManagerConfiguration.java<gh_stars>100-1000
package com.jslsolucoes.nginx.admin.jpa;
import java.util.HashMap;
import java.util.Map;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Specializes;... | 857 |
649 | package net.serenitybdd.core;
import net.serenitybdd.core.di.DependencyInjector;
import net.serenitybdd.core.injectors.EnvironmentDependencyInjector;
import net.thucydides.core.guice.Injectors;
import net.thucydides.core.steps.PageObjectDependencyInjector;
import net.thucydides.core.steps.di.DependencyInjectorService;... | 387 |
590 | #ifndef __K210_IRQ_H__
#define __K210_IRQ_H__
#ifdef __cplusplus
extern "C" {
#endif
#define K210_IRQ_NONE (0)
#define K210_IRQ_SPI0 (1)
#define K210_IRQ_SPI1 (2)
#define K210_IRQ_SPI_SLAVE (3)
#define K210_IRQ_SPI3 (4)
#define K210_IRQ_I2S0 (5)
#define K210_IRQ_I2S1 (6)
#define K210_IRQ_I2S2 (7)
#define K210_... | 1,344 |
898 | /*
* Copyright (c) 2015 Spotify AB.
*
* 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,... | 2,568 |
14,668 | <reponame>zealoussnow/chromium
// 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 "services/resource_coordinator/public/cpp/memory_instrumentation/tracing_observer_traced_value.h"
#include "base/... | 2,449 |
1,118 | {"deu":{"common":"Guadeloupe","official":"Guadeloupe"},"fin":{"common":"Guadeloupe","official":"Guadeloupen departmentti"},"fra":{"common":"Guadeloupe","official":"Guadeloupe"},"hrv":{"common":"Gvadalupa","official":"Gvadalupa"},"ita":{"common":"Guadeloupa","official":"Guadeloupe"},"jpn":{"common":"グアドループ","official":"... | 190 |
952 | package com.rudecrab.demo.config;
import com.rudecrab.demo.enums.ResultCode;
import com.rudecrab.demo.exception.APIException;
import com.rudecrab.demo.vo.ResultVO;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind... | 433 |
700 | #ifndef __MMIO_H__
#define __MMIO_H__
#include <stdint.h>
static inline void reg_write8(uintptr_t addr, uint8_t data)
{
volatile uint8_t *ptr = (volatile uint8_t *) addr;
*ptr = data;
}
static inline uint8_t reg_read8(uintptr_t addr)
{
volatile uint8_t *ptr = (volatile uint8_t *) addr;
return *ptr;
}
static inl... | 448 |
1,720 | <gh_stars>1000+
#pragma once
#include "DirectoryDevice.h"
namespace Iop
{
namespace Ioman
{
class CPathDirectoryDevice : public CDirectoryDevice
{
public:
CPathDirectoryDevice(const fs::path& basePath)
: m_basePath(basePath)
{
}
protected:
fs::path GetBasePath() override
{
return... | 172 |
956 | <gh_stars>100-1000
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2016-2020 Intel Corporation
*/
#ifndef __DLB2_OSDEP_LIST_H
#define __DLB2_OSDEP_LIST_H
#include <rte_tailq.h>
struct dlb2_list_entry {
TAILQ_ENTRY(dlb2_list_entry) node;
};
/* Dummy - just a struct definition */
TAILQ_HEAD(dlb2_list_head,... | 1,357 |
315 | /***************************************************************************
Copyright (c) 2019, Xilinx, Inc.
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 reta... | 2,360 |
521 | /* $Id: NetIf-generic.cpp $ */
/** @file
* VirtualBox Main - Generic NetIf implementation.
*/
/*
* Copyright (C) 2009-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or... | 7,919 |
4,041 | /*
* Copyright 2020 Web3 Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 836 |
2,062 | import pytest
from starlette.testclient import TestClient
from tests.asgi.app import create_app
@pytest.fixture
def test_client():
app = create_app()
return TestClient(app)
@pytest.fixture
def test_client_keep_alive():
app = create_app(keep_alive=True, keep_alive_interval=0.1)
return TestClient(ap... | 166 |
611 | <gh_stars>100-1000
from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant import *
from huobi.model.margin.general_repay_loan_result import GeneralRepayLoanResult
from huobi.utils.json_parser import default_parse_list_dict
class PostGeneralRepayLoanService:
def __init__(self, par... | 278 |
3,645 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | 486 |
571 | package com.univocity.trader.chart.charts.painter;
import com.univocity.trader.candles.*;
import com.univocity.trader.chart.*;
import com.univocity.trader.chart.charts.*;
import com.univocity.trader.chart.charts.painter.renderer.*;
import com.univocity.trader.chart.dynamic.*;
import java.awt.*;
import java.util.funct... | 1,574 |
304 | /*
* Copyright 2019-2021 CloudNetService team & 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/LICENSE-2.0
*
* Unless required by... | 385 |
809 | <filename>src/cmds/net/httpd/httpd_util.c
/**
* @file
* @brief
*
* @author <NAME>
* @date 15.04.2015
*/
#include <errno.h>
#include <stddef.h>
#include <string.h>
#include "httpd.h"
static const char *ext2type_html[] = { ".html", ".htm", NULL };
static const char *ext2type_jpeg[] = { ".jpeg", ".jpg", NULL ... | 904 |
655 | from .GraphConvInfo import GraphConvInfo
from .GraphConvModule import GraphConvModule, GraphConvFunction
from .GraphPoolInfo import GraphPoolInfo
from .GraphPoolModule import GraphAvgPoolModule, GraphMaxPoolModule
from .utils import *
| 70 |
5,250 | <reponame>jiandiao/flowable-engine
/* 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... | 858 |
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
* ... | 9,170 |
1,007 | # Exploit Title: Grandstream UCM6202 WebSocket SQL Injection Dump HTTP User Creds
# Date: 05/11/2020
# Exploit Author: <NAME>
# Vendor Homepage: http://www.grandstream.com/
# Software Link: http://www.grandstream.com/support/firmware/ucm62xx-official-firmware
# Version: 1.0.20.20 and below
# Tested on: Grandstream UCM6... | 3,600 |
776 | <reponame>mrshannon/pydocstyle
"""A valid module docstring."""
from .expected import Expectation
expectation = Expectation()
expect = expectation.expect
expect('PublicClass', 'D101: Missing docstring in public class')
class PublicClass:
expect('PublicNestedClass',
'D106: Missing docstring in public... | 305 |
6,989 | #pragma once
#include "learn_context.h"
#include <util/generic/array_ref.h>
namespace NCatboostOptions {
class TCatBoostOptions;
class TLossDescription;
}
namespace NPar {
class ILocalExecutor;
}
void UpdatePairsForYetiRank(
TConstArrayRef<double> approxes,
TConstArrayRef<float> relevances,
... | 314 |
1,056 | /*
* 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,387 |
3,102 | <filename>clang/test/Driver/cl-response-file.c<gh_stars>1000+
// Test that we use the Windows tokenizer for clang-cl response files. The
// trailing backslash before the space should be interpreted as a literal
// backslash. PR23709
// RUN: printf '%%s\n' '/I%S\Inputs\cl-response-file\ /DFOO=2' > %t.rsp
// RUN: %cla... | 172 |
1,256 | <gh_stars>1000+
from .. utils import TranspileTestCase, BuiltinFunctionTestCase
import unittest
class TypeTests(TranspileTestCase):
pass
class BuiltinTypeFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
function = "type"
def test_type_equality(self):
self.assertCodeExecution("""
... | 150 |
575 | <reponame>Matheus193dn/Mobile-SDK-iOS<gh_stars>100-1000
//
// GSFlyLimitCircleView.h
// DJEye
//
// Created by Ares on 14-4-29.
// Copyright (c) 2014年 Sachsen & DJI. All rights reserved.
//
#import <MapKit/MapKit.h>
#import "DJIFlyLimitCircle.h"
@interface DJIFlyLimitCircleView : MKCircleRenderer
- (id)initWith... | 150 |
420 | from typing import Optional
from blacksheep.messages import Request, Response
from blacksheep.server import Application
class FakeApplication(Application):
def __init__(self, *args, **kwargs):
super().__init__(show_error_details=True, *args, **kwargs)
self.request: Optional[Request] = None
... | 347 |
2,164 | //
// PLAgreementViewController.h
// NiuPlayer
//
// Created by 冯文秀 on 2018/4/8.
// Copyright © 2018年 hxiongan. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PLAgreementViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIButton *finshButton;
@property (weak, nonatomic) IBOutlet U... | 132 |
346 | <reponame>FluffyQuack/ja2-stracciatella
#ifndef _impTGA_h
#define _impTGA_h
#include "Types.h"
SGPImage* LoadTGAFileToImage(const ST::string filename, UINT16 fContents);
#endif
| 76 |
4,526 |
#include <test.hpp>
#include <vtzero/types.hpp>
#include <string>
TEST_CASE("default constructed string_value_type") {
vtzero::string_value_type v;
REQUIRE(v.value.data() == nullptr);
}
TEST_CASE("string_value_type with value") {
vtzero::string_value_type v{"foo"};
REQUIRE(v.value.data()[0] == 'f')... | 1,417 |
322 | <reponame>WanpengQian/ConcurrencyFreaks
/******************************************************************************
* Copyright (c) 2015, <NAME>, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 1,322 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.metrics.simple;
import com.yahoo.concurrent.ThreadLocalDirectory.Updater;
/**
* The link between each single thread and the central data store.
*
* @author <NAME>
*/
class Met... | 202 |
587 | /*
* Copyright 2020 LINE Corporation
*
* LINE Corporation 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. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 1,454 |
3,138 | # Lint as: python3
# Copyright 2019 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 25,049 |
665 | // This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
/* epoll_test.cc
<NAME>, 17 November 2014
Copyright (c) 2014 mldb.ai inc. All rights reserved.
Assumption tests for epoll
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "mld... | 2,972 |
1,566 | <reponame>tstrutz/sqlite_orm
#pragma once
#if defined(_MSC_VER)
#if defined(__RESTORE_MIN__)
__pragma(pop_macro("min"))
#undef __RESTORE_MIN__
#endif
#if defined(__RESTORE_MAX__)
__pragma(pop_macro("max"))
#undef __RESTORE_MAX__
#endif
#endif // defined(_MSC_VER)
| 126 |
333 | package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.public.label.modify response.
*
* @author auto create
* @since 1.0, 2021-06-23 14:43:20
*/
public class AlipayOpenPublicLabelModifyResponse extends AlipayResponse {
private static final long seri... | 151 |
1,273 | <filename>src/main/java/org/broadinstitute/hellbender/tools/copynumber/formats/records/CoveragePerContig.java
package org.broadinstitute.hellbender.tools.copynumber.formats.records;
import org.broadinstitute.hellbender.tools.copynumber.DetermineGermlineContigPloidy;
import org.broadinstitute.hellbender.utils.Utils;
i... | 670 |
10,225 | package io.quarkus.micrometer.deployment.export;
import java.util.Set;
import javax.inject.Inject;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterE... | 1,124 |
3,102 | <filename>tools/clang/bindings/python/tests/cindex/INPUTS/parse_arguments.c
int DECL_ONE = 1;
int DECL_TWO = 2;
| 48 |
6,484 | <gh_stars>1000+
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... | 871 |
480 | /*
* 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
*
* Unless required by app... | 5,678 |
319 | // tasks.json defines quick commands that can be launched in Visual Studio Code
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"label": "Checkstyle",
"type": "shell",
... | 242 |
2,338 | //===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... | 587 |
528 | import numpy as np
from opytimizer.optimizers.swarm import js
from opytimizer.spaces import search
np.random.seed(0)
def test_js_params():
params = {
'eta': 4.0,
'beta': 3.0,
'gamma': 0.1
}
new_js = js.JS(params=params)
assert new_js.eta == 4.0
assert new_js.beta == 3.... | 1,511 |
2,869 | <reponame>jarek-przygodzki/undertow
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | 762 |
615 | /**
* @file character_tokenizer.cpp
* @author <NAME>
*/
#include "meta/analyzers/tokenizers/character_tokenizer.h"
#include "meta/corpus/document.h"
#include "meta/io/mmap_file.h"
namespace meta
{
namespace analyzers
{
namespace tokenizers
{
const util::string_view character_tokenizer::id = "character-tokenizer";... | 284 |
2,659 | /*
* Copyright 2021 4Paradigm
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 3,323 |
13,663 | /****************************************************************************
* This file is part of PPMd project *
* Written and distributed to public domain by <NAME> 1997, *
* 1999-2000 *
* Contents: in... | 1,079 |
398 | <gh_stars>100-1000
package io.joyrpc.codec.serialization;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* 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://w... | 559 |
14,668 | // 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 IOS_CHROME_BROWSER_UI_OMNIBOX_POPUP_OMNIBOX_POPUP_PRESENTER_H_
#define IOS_CHROME_BROWSER_UI_OMNIBOX_POPUP_OMNIBOX_POPUP_PRESENTER_H_
#import <UI... | 620 |
2,497 | package eta.runtime.apply;
import eta.runtime.stg.Closure;
public class Function1_1 extends Function1 {
public Closure x1;
public Function1_1(Closure x1) {
this.x1 = x1;
}
}
| 82 |
1,570 | <filename>third_party/spirv-tools/test/fuzz/transformation_add_constant_null_test.cpp
// Copyright (c) 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... | 2,130 |
1,037 | package com.example.datadroiddemo.base;
import android.os.Bundle;
import com.foxykeep.datadroid.requestmanager.Request;
import com.foxykeep.datadroid.requestmanager.RequestManager.RequestListener;
/**
* Define the common interface for activity, fragment and service
*/
public interface RequestBase extends RequestLi... | 264 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.