max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
430 | <gh_stars>100-1000
import os
from pathlib import Path
BASE_DIR = Path(os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
TEST_FIXTURES_DIR = BASE_DIR / "test_fixtures"
| 73 |
2,564 | <filename>medialibrary/src/main/cpp/Common/encoder/AVAudioEncoder.h
//
// Created by CainHuang on 2020-01-09.
//
#ifndef AVAUDIOENCODER_H
#define AVAUDIOENCODER_H
#include "AVMediaEncoder.h"
/**
* 音频编码器
*/
class AVAudioEncoder : public AVMediaEncoder {
public:
AVAudioEncoder(const std::shared_ptr<AVMediaMuxer>... | 248 |
945 | <reponame>OneSizeFitsQuorum/iotdb<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 licenses this file
* to you under the ... | 559 |
2,151 | <gh_stars>1000+
// Copyright (c) 2009 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 "net/dns/dns_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
bool IsValidDNSDomainName(const char* name... | 2,109 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-3444-qg27-76cf",
"modified": "2022-05-13T01:16:54Z",
"published": "2022-05-13T01:16:54Z",
"aliases": [
"CVE-2018-2629"
],
"details": "Vulnerability in the Java SE, Java SE Embedded, JRockit component of Oracle Java SE (subcomponent: JGSS). Supported versions th... | 1,594 |
322 | <reponame>phenixmzy/apache-eagle-0.5
/*
* 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, Ver... | 1,403 |
304 | <filename>cloudnet-driver/src/main/java/de/dytanic/cloudnet/driver/network/protocol/chunk/listener/ChunkedPacketListener.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 Lic... | 903 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-3qvq-5r47-f846",
"modified": "2022-05-01T18:35:42Z",
"published": "2022-05-01T18:35:42Z",
"aliases": [
"CVE-2007-5665"
],
"details": "STEngine.exe 172.16.58.3 in Novell ZENworks Endpoint Security Management (ESM) 3.5, and other ESM versions before 192.168.3.11,... | 579 |
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... | 474 |
2,113 | <filename>markwon-core/src/test/java/io/noties/markwon/core/suite/DeeplyNestedTest.java
package io.noties.markwon.core.suite;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import io.noties.markwon.test.TestSpan.Document;... | 475 |
17,318 | <reponame>woozhijun/cat<gh_stars>1000+
/*
* Copyright (c) 2011-2018, <NAME>. All Rights Reserved.
*
* 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.
* Th... | 1,157 |
2,151 | <filename>skia/public/interfaces/bitmap_skbitmap_struct_traits.h
// 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.
#ifndef SKIA_PUBLIC_INTERFACES_BITMAP_SKBITMAP_STRUCT_TRAITS_H_
#define SKIA_PUBLIC_INTER... | 634 |
735 | <gh_stars>100-1000
// NOTE: This file was generated by the ServiceGenerator.
// ----------------------------------------------------------------------------
// API:
// VM Migration API (vmmigration/v1)
// Description:
// Use the Migrate for Compute Engine API to programmatically migrate
// workloads.
// Document... | 23,370 |
1,456 | <reponame>QAMP-Spring-2022-Transpiler-Hackathon/qiskit-terra
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apac... | 10,562 |
12,278 | <gh_stars>1000+
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use ... | 1,034 |
2,291 | {
"id" : 243,
"status" : "Invalid",
"summary" : "PathOverlay draw an itinerary with transparence problem",
"labels" : [ "Type-Defect", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 2,
"comments" : [ {
"id" : 0,
"commenterId" : 476572048224933488,
"content" : "<b>What steps will reproduce ... | 673 |
4,901 | <filename>third_party/android/platform-libcore/android-platform-libcore/luni/src/test/java/libcore/java/io/FilterInputStreamNullSourceTest.java
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance... | 1,688 |
428 | /*
** 2018 May 31
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.ata4.b... | 433 |
458 | # - * - encoding : utf - 8 - * -
"""
:copyright: 2017-2018 H2O.ai, Inc.
:license: Apache License Version 2.0 (see LICENSE for details)
"""
#import abc
import os
import numpy as np
import pandas as pd
from daal.data_management import (AOSNumericTable, FileDataSource,
DataSource, Homo... | 1,984 |
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 REMOTING_IOS_SESSION_REMOTING_CLIENT_H_
#define REMOTING_IOS_SESSION_REMOTING_CLIENT_H_
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation... | 1,452 |
333 | <filename>cxxtest/cxxtest/GlobalFixture.cpp<gh_stars>100-1000
/*
-------------------------------------------------------------------------
CxxTest: A lightweight C++ unit testing library.
Copyright (c) 2008 Sandia Corporation.
This software is distributed under the LGPL License v2.1
For more information, see the CO... | 447 |
1,822 | <gh_stars>1000+
// Copyright (c) 2017 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/config.hpp>
#include <boost/accumulators/framewor... | 1,409 |
313 | //
// YBLExpressPriceTableView.h
// YC168
//
// Created by 乔同新 on 2017/4/18.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^ExpressPriceTableViewCellDidSelectRowBlock)(NSIndexPath *indexPath,id model);
@interface YBLExpressPriceTableView : UITableView
@property (nonatomi... | 229 |
368 | /*
Plugin-SDK (Grand Theft Auto San Andreas) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CVehicle.h"
#include "CBaseModelInfo.h"
#include "CPtrListDoubleL... | 1,531 |
766 | // include all of the standard stl files
//
// although it may be considered bad practice to "use" namespace items in a header file,
// these types are so intrinsic to c++ that it would be worse practice to copy these names
// I feel the readability this provides trumps the reasons to not
#pragma once
#include "stl_uti... | 305 |
806 | <gh_stars>100-1000
package com.evenwell.powersaving.g3.powersaver;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.IBinder;
import android.os.RemoteCa... | 2,567 |
348 | {"nom":"Montcavrel","circ":"4ème circonscription","dpt":"Pas-de-Calais","inscrits":305,"abs":112,"votants":193,"blancs":8,"nuls":5,"exp":180,"res":[{"nuance":"REM","nom":"<NAME>","voix":75},{"nuance":"LR","nom":"<NAME>","voix":66},{"nuance":"FN","nom":"<NAME>","voix":20},{"nuance":"SOC","nom":"Mme <NAME>","voix":12},{"... | 241 |
383 | package org.gitlab.api.models;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.gitlab.api.TestUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.io.IOException;
class GitlabIssueDeserializationTest {
@Test
void deserializationTest() {
ObjectM... | 201 |
1,671 | /**
* Copyright 2016 LinkedIn Corp. 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 applica... | 9,626 |
337 | /*
* 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... | 571 |
377 | <filename>src/kundera-rdbms/src/test/java/com/impetus/client/twitter/dao/TwitterService.java
/*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this f... | 2,776 |
13,430 | from . chooser import Chooser, FileChooser, FileSaver, DirChooser, DateChooser, TimeChooser, MultiFileChooser, MultiDirChooser, ColourChooser
from . text_input import PasswordInput, MultilineTextInput, TextInput
| 62 |
335 | {
"word": "Uncertainty",
"definitions": [
"The state of being uncertain.",
"Something that is uncertain or that causes one to feel uncertain."
],
"parts-of-speech": "Noun"
} | 80 |
1,063 | <reponame>wh8983298/GreaterWMS
from django_filters import FilterSet
from .models import StockListModel, StockBinModel
class StockListFilter(FilterSet):
class Meta:
model = StockListModel
fields = {
"id": ['exact', 'iexact', 'gt', 'gte', 'lt', 'lte', 'isnull', 'in', 'range'],
... | 1,561 |
421 | <filename>samples/snippets/cpp/VS_Snippets_CLR/stringstartswith/CPP/stringstartswith.cpp
//<snippet1>
using namespace System;
String^ StripStartTags( String^ item )
{
// Determine whether a tag begins the string.
if (item->Trim()->StartsWith("<")) {
// Find the closing tag.
int lastLocation =... | 886 |
1,093 | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 2,150 |
17,037 | # This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _GCP
class _Migration(_GCP):
_type = "migration"
_icon_dir = "resources/gcp/migration"
class TransferAppliance(_Migration):
_icon = "transfer-appliance.png"
# Aliases
| 96 |
5,208 | package io.vertx.it;
import io.vertx.core.impl.VertxThread;
import io.vertx.core.spi.VertxThreadFactory;
import java.util.concurrent.TimeUnit;
public class CustomVertxThreadFactory implements VertxThreadFactory {
@Override
public VertxThread newVertxThread(Runnable target, String name, boolean worker, long maxE... | 140 |
4,920 | # Copyright 2020 The StackStorm Authors.
# Copyright 2019 Extreme Networks, 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,076 |
6,989 | <reponame>jochenater/catboost
#line 1 "numpy/core/src/umath/matmul.h.src"
/*
*****************************************************************************
** This file was autogenerated from a template DO NOT EDIT!!!! **
** Changes should be made to the original source (.src) file **
****... | 1,195 |
14,668 | <filename>chrome/browser/ui/views/bubble_menu_item_factory.h
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_BUBBLE_MENU_ITEM_FACTORY_H_
#define CHROME_BROWSER_UI_VIEWS_B... | 339 |
3,066 | /*
SuperEQ DSP plugin for DeaDBeeF Player
Copyright (C) 2009-2014 <NAME> <<EMAIL>>
Original SuperEQ code (C) <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; e... | 1,122 |
7,615 | import typer
app = typer.Typer()
@app.command()
def create(item: str):
typer.echo(f"Creating item: {item}")
@app.command()
def delete(item: str):
typer.echo(f"Deleting item: {item}")
@app.command()
def sell(item: str):
typer.echo(f"Selling item: {item}")
if __name__ == "__main__":
app()
| 134 |
695 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root
# for license information.
from __future__ import absolute_import, division, print_function, unicode_literals
# "force_pydevd" must be imported first to ensure (via side effects)
# that the de... | 116 |
1,473 | <filename>extern/wxWidgets/include/wx/meta/pod.h
/////////////////////////////////////////////////////////////////////////////
// Name: wx/meta/pod.h
// Purpose: Test if a type is POD
// Author: <NAME>, <NAME>
// Created: 2010-06-14
// Copyright: (c) wxWidgets team
// Licence: wxWindows licenc... | 897 |
14,668 | // 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/download/internal/background_service/debugging_client.h"
#include "base/bind.h"
#include "base/threading/sequenced_task_runner_handl... | 756 |
742 | /*
* Copyright (C) 2009, <NAME>, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following di... | 1,466 |
994 | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxIoQueueKm.hpp
Abstract:
This module implements km specific functions for FxIoQueue.
Author:
Environment:
Kernel mode only
Revision History:
--*/
#ifndef _FXIOQUEUEKM_HPP_
#define _FXIOQUEUEKM_HPP_
__inline
BOOLEAN
FxIoQueue::IsPag... | 463 |
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.security.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.... | 3,833 |
1,963 | /*
*******************************************************************************
* Copyright (c) 2021, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may ... | 16,542 |
2,151 | <reponame>zipated/src
//
// Copyright 2018 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.
//
// RenderbufferMultisampleTest: Tests of multisampled renderbuffer
#include "test_utils/ANGLETest.h"
#include "test_util... | 1,172 |
14,668 | // 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 CHROME_BROWSER_MEDIA_HISTORY_MEDIA_HISTORY_SESSION_IMAGES_TABLE_H_
#define CHROME_BROWSER_MEDIA_HISTORY_MEDIA_HISTORY_SESSION_IMAGES_TABLE_H_
#in... | 602 |
675 | <reponame>bigplayszn/nCine
#include "FontGlyph.h"
namespace ncine {
///////////////////////////////////////////////////////////
// CONSTRUCTORS and DESTRUCTOR
///////////////////////////////////////////////////////////
FontGlyph::FontGlyph()
: FontGlyph(0, 0, 0, 0, 0, 0, 0)
{
}
FontGlyph::FontGlyph(unsigned int... | 346 |
348 | {"nom":"Cordonnet","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":117,"abs":55,"votants":62,"blancs":4,"nuls":1,"exp":57,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":43},{"nuance":"FN","nom":"Mme <NAME>","voix":14}]} | 95 |
432 | <filename>debugger/src/simple_plugin/isimple_plugin.h
/**
* @file
* @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved.
* @author <NAME> - <EMAIL>
* @brief Demo plugin interface.
*/
#ifndef __DEBUGGER_SIMPLE_PLUGIN_H__
#define __DEBUGGER_SIMPLE_PLUGIN_H__
#include "iface.h"
namespace debugg... | 327 |
1,694 | <reponame>CrackerCat/iWeChat
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import "CBaseEvent.h"
#import "NotifyFromEventDelegate-Protocol.h"
@class MMTimer, NSMutableArray, NSMutableD... | 461 |
4,813 | # Generated by Django 2.1.5 on 2019-01-12 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("accounts", "0020_auto_20190112_1950")]
operations = [
migrations.AlterField(
model_name="project",
name="badge_key",
... | 170 |
2,291 | <reponame>M-i-k-e-l/osmdroid
{
"id" : 164,
"status" : "Fixed",
"summary" : "Do Overlay.onDraw the same as Google Maps Overlay",
"labels" : [ "Type-Enhancement", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 5,
"comments" : [ {
"id" : 0,
"commenterId" : 8937367184059112911,
"content" : "Cu... | 834 |
578 | /*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* ----------------------------------------------... | 1,355 |
578 | //#include <two/frame.h>
#include <xx_three/xx_three.h>
#include <gfx-pbr/Api.h>
#include <xx_three/xx_three.h>
using namespace two;
static string shader_vertex =
R"'(
varying vec2 v_uv0;
void main()
{
v_uv0 = uv;
vec4 mvPosition = mul(u_modelView, vec4(a_position.xyz, 1.0));
gl_Position = u_proj * mvPos... | 2,260 |
474 | <reponame>BoneyIsSpooky/Javacord
package org.javacord.api.entity.channel;
import org.javacord.api.entity.Icon;
import org.javacord.api.entity.user.User;
import org.javacord.api.listener.channel.group.GroupChannelAttachableListenerManager;
import java.util.Collection;
import java.util.NoSuchElementException;
import ja... | 995 |
333 | #!/usr/bin/python3
from __future__ import print_function
'''switchuser.py - A simple utility to switch irods user environment files, offsession (ie. after running iexit).
Assumes that such files are stored as irods_environment_username.json under ~/.irods
'''
import os
import sys
import shutil
if len(sys.argv) != 2... | 432 |
573 | // Copyright 2015, VIXL authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions ... | 160,110 |
1,444 |
package mage.cards.d;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.RegenerateSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardTyp... | 401 |
2,338 | //===- MIRYamlMapping.cpp - Describe mapping between MIR and YAML ---------===//
//
// 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
//
//===---------------------------... | 535 |
4,415 | # ******************************************************************************
# Copyright 2014-2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | 2,198 |
491 | <reponame>EmreOzkose/k2
#!/usr/bin/env python3
#
# Copyright 2020 Xiaomi Corp. (authors: <NAME>)
#
# See ../../../LICENSE for clarification regarding multiple authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ... | 1,446 |
521 | <reponame>James992927108/uEFI_Edk2_Practice<filename>AppPkg/Applications/Sockets/OobTx/OobTx.c
/** @file
Windows version of the OOB Transmit application
Copyright (c) 2011-2012, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms an... | 3,880 |
313 | /*
TEST_HEADER
id = $Id$
summary = deregister thread without registering it first
language = c
link = myfmt.o testlib.o
OUTPUT_SPEC
abort = true
END_HEADER
*/
#include "testlib.h"
#include "mpscamc.h"
#include "myfmt.h"
static void test(void *stack_pointer)
{
mps_arena_t arena;
mps_thr_t thread = (mps_thr_t)1... | 259 |
1,199 | <reponame>mikiec84/code-for-blog
// Same as futex-basic-process.c, but using threads.
//
// Main differences:
// 1. No need for shared memory calls (shmget, etc.), since threads share the
// address space we can use a simple pointer.
// 2. Use the _PRIVATE versions of system calls since these can be more
// effic... | 1,098 |
1,159 | #ifndef TYPE_TRAITS
#define TYPE_TRAITS
#include <istream>
#include <ostream>
#include <string>
#include <optional>
namespace Type
{
template<typename T>
concept istreamable = requires(std::istream &stream, T p) { stream >> p; };
template<typename T>
concept ostreamable = requires(std::ostream &stream, T p) { strea... | 183 |
427 | // REQUIRES: powerpc-registered-target
// RUN: %clang_cc1 -faltivec -target-feature +power8-vector \
// RUN: -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -faltivec -target-feature +power8-vector \
// RUN: -triple powerpc64le-unknown-unknown -emit-llvm %s -o - \
// RUN: | FileC... | 4,841 |
311 | package datadog.trace.instrumentation.akkahttp;
import akka.http.scaladsl.model.Uri;
import datadog.trace.bootstrap.instrumentation.api.URIRawDataAdapter;
import scala.Option;
final class UriAdapter extends URIRawDataAdapter {
private final Uri uri;
UriAdapter(Uri uri) {
this.uri = uri;
}
@Override
p... | 340 |
528 | <filename>src/template/decodef.c
static uint _t2(rev_decode_block, Scalar, DIMS)(zfp_stream* zfp, Scalar* fblock);
/* private functions ------------------------------------------------------- */
/* decode contiguous floating-point block using lossy algorithm */
static uint
_t2(decode_block, Scalar, DIMS)(zfp_stream* ... | 593 |
496 | <filename>test-app/app/src/main/java/com/tns/tests/MyTestBaseClass1.java
package com.tns.tests;
class MyTestBaseClass1 {
public int getValue1() {
return 1;
}
}
| 77 |
690 | <filename>tests/test_regions.py
import sublime
import time, os, shutil
from collections import OrderedDict
from unittesting import DeferrableTestCase
JavaScriptEnhancements = __import__('JavaScript Enhancements')
util = JavaScriptEnhancements.src.libs.util
PACKAGE_PATH = JavaScriptEnhancements.src.libs.global_vars.PACK... | 616 |
519 | <reponame>KishkinJ10/graphicsfuzz
/*
* Copyright 2018 The GraphicsFuzz Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2... | 1,566 |
359 | from __future__ import absolute_import, division, print_function, unicode_literals
file_handles = {}
class UploadDownloadFilesBase(object):
def __init__(self, args):
self.args = args
pass
def upload(self, **kwargs):
pass
def download(self, **kwargs):
pass
def registerU... | 169 |
711 | package com.java110.goods.api;
import com.alibaba.fastjson.JSONObject;
import com.java110.dto.storeCart.StoreCartDto;
import com.java110.dto.storeOrder.StoreOrderDto;
import com.java110.dto.storeOrderAddress.StoreOrderAddressDto;
import com.java110.dto.storeOrderCart.StoreOrderCartDto;
import com.java110.dto.storeOrde... | 8,036 |
337 | <filename>src/polycubed/src/extiface_xdp.h<gh_stars>100-1000
/*
* Copyright 2017 The Polycube 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... | 594 |
414 | <filename>convlab2/policy/policy.py
"""Policy Interface"""
from convlab2.util.module import Module
class Policy(Module):
"""Base class for policy model."""
def predict(self, state):
"""Predict the next agent action given dialog state.
update state['system_action'] with predict system action
... | 273 |
533 | # _*_ coding: utf-8 _*_
"""
Created by Allen7D on 2020/5/27.
"""
from sqlalchemy import Column, Integer, String, ForeignKey
from app.core.db import BaseModel as Model
__author__ = 'Allen7D'
class Product2Property(Model):
__tablename__ = 'product_property'
id = Column(Integer, primary_key=True, autoincrement... | 248 |
371 | <reponame>wuchunfu/EngineX
package com.baoying.enginex.executor.node.service;
import com.baoying.enginex.executor.engine.model.EngineNode;
import java.util.Map;
/**
* 引擎节点执行
*/
public interface EngineNodeService {
/**
* 获取节点所需的指标
* @param engineNode
* @param inputParam
*/
void getNodeF... | 270 |
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... | 1,779 |
839 | /**
* 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 m... | 1,490 |
504 | {
"warehouse": "presto",
"defaultDatabase": "memory",
"defaultSchema": "df_integration_test",
"assertionSchema": "df_integration_test_assertions"
}
| 58 |
575 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_LOGIN_UI_LOGIN_SCREEN_EXTENSION_UI_WEB_DIALOG_VIEW_H_
#define CHROME_BROWSER_ASH_LOGIN_UI_LOGIN_SCREEN_EXTENSION_UI_WEB_DIALOG_... | 635 |
357 | /*
* Copyright © 2012-2015 VMware, 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 by applica... | 4,466 |
1,511 | <filename>tests/cluecode/data/ics/netperf/netsh.h
/*
Copyright (C) 1993,1995 Hewlett-Packard Company
*/
| 47 |
1,056 | <filename>ide/css.prep/src/org/netbeans/modules/css/prep/editor/CPCssIndexModel.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 ASF licens... | 2,333 |
493 | /* ========================= 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 the License at
*
* ... | 1,746 |
370 | from bluepy.btle import Scanner, DefaultDelegate
class ScanDelegate(DefaultDelegate):
def __init__(self):
DefaultDelegate.__init__(self)
def handleDiscovery(self, dev, isNewDev, isNewData):
pass
# if isNewDev:
# print("Discovered device", dev.addr)
# elif isNewData:
# ... | 429 |
1,194 | <filename>hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/validation/address/AddressValidatingInterceptorTest.java<gh_stars>1000+
package ca.uhn.fhir.rest.server.interceptor.validation.address;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.rest.api.server.RequestDetails;
import c... | 3,249 |
349 | <gh_stars>100-1000
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2020-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are pe... | 720 |
1,253 | {
"http://hsivonen.iki.fi/test/moz/en-UK.html": [
{
"firstColumn": 1,
"firstLine": 7,
"lastColumn": 16,
"lastLine": 7,
"message": "Bad value \u201cen-UK\u201d for attribute \u201clang\u201d on element \u201cp\u201d: Bad region subtag."
}
],
"http://hsivonen.iki.fi/test/m... | 989 |
310 | {
"name": "Animate",
"description": "A vector animation suite.",
"url": "https://en.wikipedia.org/wiki/Adobe_Animate"
} | 45 |
460 | <gh_stars>100-1000
// Boost.Bimap
//
// Copyright (c) 2006-2007 <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)
/// \file container_adaptor/list_adaptor.hpp
/// \brief Container adaptor to eas... | 3,932 |
1,056 | <filename>ide/spellchecker/src/org/netbeans/modules/spellchecker/hints/DictionaryBasedHint.java<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 ... | 1,003 |
310 | <gh_stars>100-1000
#include "clar.h"
#include "clar_libgit2.h"
#include "buffer.h"
#include "fileops.h"
#include "git2/cherrypick.h"
#include "../merge/merge_helpers.h"
#define TEST_REPO_PATH "cherrypick"
static git_repository *repo;
void test_cherrypick_bare__initialize(void)
{
repo = cl_git_sandbox_init(TEST_RE... | 1,653 |
348 | {"nom":"Trélévern","circ":"5ème circonscription","dpt":"Côtes-d'Armor","inscrits":1053,"abs":490,"votants":563,"blancs":70,"nuls":17,"exp":476,"res":[{"nuance":"REM","nom":"<NAME>","voix":330},{"nuance":"UDI","nom":"<NAME>","voix":146}]} | 96 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.