max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
5,964 | /*
* Copyright (C) 2011, 2012 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of c... | 16,936 |
463 | #include "route_input_adapter.h"
#include <fstream>
#include <algorithm>
RoutePtr get_input_adapter(const char* filename)
{
return std::make_shared<RouteInputAdapterImpl>(filename);
}
RouteInputAdapterImpl::RouteInputAdapterImpl(const char* filename)
: filename(filename) {}
void RouteInputAdapterImpl::compute(Call... | 436 |
7,510 | [
{
"category": "Resources",
"description": "Add Amazon EC2 support for ClassicLink actions and add a delete action to EC2 ``Volume`` resources.",
"type": "feature"
},
{
"category": "Resources",
"description": "Add a ``load`` operation and ``user`` reference to AWS IAM's ``CurrentUser`` re... | 268 |
431 | #include "sqlquerymanager.h"
#include "model.h"
#include "qsqldriver.h"
#include "metaclassparser.h"
#include <QDebug>
CWF_BEGIN_NAMESPACE
inline void addSpace(QString &value)
{
if(!value.isEmpty() && !value.endsWith(" "))
value += " ";
}
inline void executeQry(const QJsonObject &json, const QString &que... | 2,032 |
4,256 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 2,585 |
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.
#ifndef CHROME_BROWSER_NEW_TAB_PAGE_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_LOADER_H_
#define CHROME_BROWSER_NEW_TAB_PAGE_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_LOADER_H_
#... | 545 |
1,647 | <gh_stars>1000+
#ifndef PYTHONIC_INCLUDE_NUMPY_RANDOM_RANDOM_SAMPLE_HPP
#define PYTHONIC_INCLUDE_NUMPY_RANDOM_RANDOM_SAMPLE_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/numpy/random/random.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
namespace random
{
USING_FUNCTOR(random_sample, ... | 171 |
345 | import unittest
from programy.dialog.question import Question
from programy.dialog.sentence import Sentence
from programy.extensions.admin.transcript import TranscriptAdminExtension
from programytest.client import TestClient
class TranscriptAdminExtensionClient(TestClient):
def __init__(self):
TestClien... | 995 |
420 | package androidx.preference;
import android.content.Context;
import android.content.res.TypedArray;
import android.text.TextUtils;
import android.util.AttributeSet;
import androidx.annotation.Nullable;
import com.ubergeek42.WeechatAndroid.R;
import com.ubergeek42.WeechatAndroid.utils.Utils;
import com.ubergeek42.cat... | 613 |
1,444 | <filename>Mage.Sets/src/mage/cards/s/SpectralShepherd.java
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.ReturnToHandTargetEffect... | 670 |
1,385 | <gh_stars>1000+
#!python3
# -*- coding: utf-8 -*-
# hide windows with hotkey Ctrl+1, show the hidden windows with hotkey Ctrl+2
import os
import sys
import time
import subprocess
from threading import Event
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # not required after 'pip install ... | 339 |
521 | <reponame>Fimbure/icebox-1
#ifndef _USR_IMGTRUST_H
#define _USR_IMGTRUST_H
/** @file
*
* Image trust management
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/image.h>
extern int imgverify ( struct image *image, struct image *signature,
const char *name );
#endif /* _USR_IMGTRUST_H */
| 136 |
9,106 | <reponame>terrorizer1980/react-native-windows<filename>packages/@office-iss/react-native-win32/ts-api.json
{
"validTargets": ["win32.ship"],
"entryPoints": [{ "target": "win32.ship", "sourceFile": "./lib/Libraries/react-native/typings-main.d.ts" }]
}
| 98 |
4,290 | <reponame>jpike88/firebase-js-sdk
{
"extends": "../../config/api-extractor.json",
// Point it to your entry point d.ts file.
"mainEntryPointFilePath": "<projectFolder>/dist/src/index.d.ts",
"additionalEntryPoints": [{
"modulePath": "sw",
"filePath": "<projectFolder>/dist/src/index.sw.d.ts"
}],
"dtsR... | 247 |
675 | <gh_stars>100-1000
/*
* Copyright 2018 The Bazel Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 6,305 |
1,275 | <reponame>AkshathPatkar/pinot<filename>pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/BinaryOperatorTransformFunction.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for addit... | 6,291 |
5,169 | {
"name": "RMErrorRecoveryAttempter",
"version": "0.0.1",
"summary": "A class that conforms to the NSErrorRecoveryAttempting informal protocol and allows using blocks to provide recovery options for an error.",
"homepage": "https://github.com/realmacsoftware/RMErrorRecoveryAttempter",
"license": "MIT",
"aut... | 281 |
476 | <reponame>tejasvinu/hetu-core
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 1,027 |
971 | package com.ucar.datalink.domain.meta;
import java.util.List;
public class HbaseStatus {
private Integer serversSize;
private Integer version;
private Integer backupMastersSize;
private Integer deadServers;
private Integer regionsCount;
private Boolean balancerOn;
private String clusterI... | 1,611 |
351 | /**
* > Author: UncP
* > Github: www.github.com/UncP/Mushroom
* > License: BSD-3
* > Time: 2017-05-08 14:22:46
**/
#include <unistd.h>
#include <map>
#include <random>
#include <ctime>
#include "unit.h"
#include "../src/network/signal.hpp"
#include "../src/rpc/rpc_connection.hpp"
#inclu... | 6,068 |
335 | {
"word": "Lud",
"definitions": [
"Used to address a judge in a court of law."
],
"parts-of-speech": "Noun"
} | 63 |
303 | <reponame>henlo-birb/lovepotion<filename>include/objects/box2d/world/world.h
#pragma once
#include "common/luax.h"
#include "common/reference.h"
#include "objects/object.h"
#include <unordered_map>
#include <vector>
#include "contactcallback.h"
#include "contactfilter.h"
#include "querycallback.h"
#include "raycastc... | 1,231 |
347 | <filename>frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/popup/ova/ExportOvaPopupPresenterWidget.java
package org.ovirt.engine.ui.webadmin.section.main.presenter.popup.ova;
import org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget;
import o... | 288 |
190,993 | /* Copyright 2021 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 applicable law or a... | 1,118 |
6,034 | package cn.iocoder.mall.product.dao;
import cn.iocoder.mall.product.dataobject.ProductSkuDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.Collection;
import java.util.List;
@Repository
public interface ProductSkuMapper {
ProductSkuDO selectById(I... | 301 |
6,140 | # Copyright 2021 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, ... | 3,074 |
702 | #include "pycall_internal.h"
struct enumerator_head {
VALUE obj;
ID meth;
VALUE args;
};
int
pycall_obj_is_step_range(VALUE obj)
{
struct enumerator_head *eh;
if (!RB_TYPE_P(obj, T_DATA)) {
return 0;
}
if (!rb_obj_is_kind_of(obj, rb_cEnumerator)) {
return 0;
}
eh = (struct enumer... | 772 |
1,338 | /*
* Copyright 2009-2016, <NAME>, <EMAIL>.
* Copyright 2010-2015, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#ifndef DEBUGGER_INTERFACE_H
#define DEBUGGER_INTERFACE_H
#include <debugger.h>
#include <debug_support.h>
#include <ObjectList.h>
#include "TeamMemory.h"
class Architecture;
... | 1,468 |
390 | <reponame>psimicek/tinylog
/*
* Copyright 2019 <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/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 973 |
854 | <reponame>h-arlt/morphia<filename>core/src/main/java/dev/morphia/mapping/codec/pojo/EntityModelBuilder.java
package dev.morphia.mapping.codec.pojo;
import com.mongodb.lang.Nullable;
import dev.morphia.annotations.Entity;
import dev.morphia.mapping.Mapper;
import dev.morphia.mapping.NotMappableException;
import dev.mor... | 5,346 |
316 | # Copyright 2016 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 applicable ... | 24,260 |
9,088 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include <napa/exports.h>
#include <cstddef>
namespace napa {
namespace memory {
/// <summary> Interface for allocator. </summary>
class Allocator {
public:
/// <summary> Allocate memory ... | 561 |
536 | // Copyright 2021 Code Intelligence GmbH
//
// 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... | 279 |
1,031 | import doxygen_parsing
import inspect
import string
import os
import sys
import comment_verifier
comment_verifier.check(inspect.getdoc(doxygen_parsing.someFunction),
"The function comment")
comment_verifier.check(inspect.getdoc(doxygen_parsing.SomeClass),
"The class comment")
comment_verifier.check(inspect.get... | 707 |
553 | #include "test.h"
void draw_growing_circles (VkvgContext ctx, float y, int count) {
float x = 2;
for (int i=1; i<count; i++) {
x += 0.5f*i;
//vkvg_set_source_rgb (ctx, 1,0,1);
vkvg_arc(ctx, x + 2, y, 0.5f * i, 0, M_PIF*1.5f);
//vkvg_set_source_rgb (ctx, 0,1,1);
//vkvg_arc_negative(ctx, x + 2, y, 0.5 * ... | 1,203 |
5,813 | /*
* 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 ... | 7,346 |
368 | /*
Plugin-SDK (Grand Theft Auto 3) 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 "eWeaponType.h"
#include "CEntity.h"
#include "CVector.h"
class PLUGIN_API... | 534 |
1,863 | //
// 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 disclaimer.
// * Redistributions in bin... | 1,570 |
413 | import logging
import os
import sys
from threading import Thread
from i3pystatus.core import io, util
from i3pystatus.core.exceptions import ConfigError
from i3pystatus.core.imputil import ClassFinder
from i3pystatus.core.modules import Module
DEFAULT_LOG_FORMAT = '%(asctime)s [%(levelname)-8s][%(name)s %(lineno)d] %... | 2,405 |
1,475 | /*
* 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 n... | 1,638 |
8,772 | <gh_stars>1000+
package org.apereo.cas.authentication.principal;
import org.apereo.cas.authentication.AuthenticationBuilder;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.DefaultAuthenticationBuilder;
import org.a... | 2,072 |
3,102 | <reponame>medismailben/llvm-project<filename>clang/test/Index/Inputs/preamble-with-implicit-import.h
#include "preamble-with-implicit-import-A.h"
// Typo is defined in B, which is not imported.
void useTypeFromB(Typo *);
| 85 |
308 | <filename>libs/mpf/include/mpf_codec_manager.h
/*
* Copyright 2008-2015 <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/licenses/LICENSE-2.0
*
* ... | 777 |
1,092 | <reponame>mnhock/spring-restdocs
/*
* Copyright 2014-2019 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/LICEN... | 1,506 |
2,338 | //===---- NamespaceAliaserTest.cpp - clang-tidy
//----------------------------===//
//
// 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
//
//===------------------------... | 2,312 |
375 | /*
* This file is part of the Wayback archival access software
* (http://archive-access.sourceforge.net/projects/wayback/).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); y... | 828 |
675 | <reponame>bigplayszn/nCine
#ifndef CLASS_NCINE_LUATEXTNODE
#define CLASS_NCINE_LUATEXTNODE
struct lua_State;
namespace ncine {
class LuaStateManager;
/// Lua bindings around the `TextNode` class
class LuaTextNode
{
public:
static void expose(LuaStateManager *stateManager);
static void exposeConstants(lua_State ... | 346 |
2,671 | <filename>test/tokenize/t32.py
~1 ^ 1 & 1 |1 ^ -1
| 25 |
464 | <filename>tracklytics-runtime/src/main/java/com/orhanobut/tracklytics/TrackEvent.java<gh_stars>100-1000
package com.orhanobut.tracklytics;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Triggers an event
*/
@Retention(RetentionPolicy.RUNTIME)
public @interface TrackEvent {... | 134 |
5,823 | <gh_stars>1000+
#!/usr/bin/env python3
#
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import os
import subprocess
import sys
# BFD architecture names recognized by objcopy.
BFD_ARCH = {
... | 481 |
5,169 | {
"name": "FZTheme",
"version": "0.1.0",
"summary": "A short description of FZTheme.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/FranZhou/FZTheme",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"FranZhou": "<EMAIL>"
},
"... | 270 |
5,908 | package org.testcontainers.images;
import java.time.Duration;
import lombok.experimental.UtilityClass;
/**
* Convenience class with logic for building common {@link ImagePullPolicy} instances.
*
*/
@UtilityClass
public class PullPolicy {
/**
* Convenience method for returning the {@link DefaultPullPolic... | 332 |
868 | /*
* 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 n... | 2,303 |
629 | #pragma once
namespace BWAPI
{
struct GameInstance
{
GameInstance()
: serverProcessID(0)
, isConnected(false)
, lastKeepAliveTime(0)
{};
GameInstance(unsigned int servID, bool connected, unsigned int lastAliveTime)
: serverProcessID(servID)
, isConnected(connecte... | 284 |
932 | <reponame>jnhmcknight/themekit<filename>theme-template/config/settings_schema.json
[
{
"name": "theme_info",
"theme_name": "Themekit template theme",
"theme_version": "1.0.0",
"theme_author": "Shopify",
"theme_documentation_url": "https://github.com/Shopify/themekit",
"theme_support_url": "htt... | 151 |
456 | // Copyright 2017 The Abseil 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 applicable law or agr... | 2,826 |
389 | package com.devskiller.jfairy.producer.person.locale.ka;
import javax.inject.Inject;
import com.devskiller.jfairy.producer.BaseProducer;
import com.devskiller.jfairy.producer.person.PassportNumberProvider;
public class KaPassportNumberProvider implements PassportNumberProvider {
private final BaseProducer baseProd... | 311 |
772 | // foursine.cpp STK tutorial program
#include "SineWave.h"
#include "FileWvOut.h"
#include <cstdlib>
using namespace stk;
int main()
{
// Set the global sample rate before creating class instances.
Stk::setSampleRate( 44100.0 );
int i;
FileWvOut output;
SineWave inputs[4];
// Set the sine wave frequenc... | 357 |
6,342 | <filename>venv/lib/python3.7/site-packages/allauth/socialaccount/providers/yahoo/urls.py
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import YahooProvider
urlpatterns = default_urlpatterns(YahooProvider)
| 81 |
3,603 | import json
import pytest
from rasa.shared.core.conversation import Dialogue
from rasa.shared.core.domain import Domain
from rasa.core.tracker_store import InMemoryTrackerStore
from tests.dialogues import (
TEST_DIALOGUES,
TEST_DEFAULT_DIALOGUE,
TEST_DOMAINS_FOR_DIALOGUES,
)
from tests.core.utilities impo... | 475 |
3,978 | <reponame>yuan232007/XCL-Charts<filename>XCL-Charts/src/org/xclcharts/renderer/line/PlotLine.java
/**
* Copyright 2014 XCL-Charts
*
* 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,240 |
575 | /*
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple 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 retain the above copyright
* ... | 3,759 |
1,179 | <gh_stars>1000+
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, includin... | 6,145 |
518 | <filename>isa_sim/elf_load.h
#ifndef __ELF_LOAD_H__
#define __ELF_LOAD_H__
#include <stdint.h>
//-------------------------------------------------------------
// Types
//-------------------------------------------------------------
typedef int (*cb_mem_create)(void *arg, uint32_t base, uint32_t size);
typedef int (*c... | 193 |
483 | <filename>Plugin64/tooltip_and_button.cpp
#include "pch.h"
#include "plugin_64.h"
namespace TooltipAndButton {
extern "C" {
void tooltipAndButtonProc1();
void tooltipAndButtonProc2();
void tooltipAndButtonProc3();
void tooltipAndButtonProc4();
void tooltipAndButtonProc5();
void tooltipAndButtonProc5V130(... | 4,702 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.media.videoanalyzer.edge.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
i... | 549 |
6,390 | <reponame>hackrush01/portia
from collections import OrderedDict
from uuid import uuid4
from rest_framework.exceptions import APIException, ValidationError
from rest_framework.status import (HTTP_400_BAD_REQUEST, HTTP_409_CONFLICT,
HTTP_404_NOT_FOUND)
from rest_framework.views import ... | 936 |
480 | <filename>polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/hint/operator/HintCmdOperator.java
/*
* 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 obt... | 1,687 |
970 | <gh_stars>100-1000
[{"name":"master","push_access_levels":[{"access_level":40,"access_level_description":"Maintainers"}],"merge_access_levels":[{"access_level":40,"access_level_description":"Maintainers"}]}] | 62 |
3,102 | // RUN: clang-diff -dump-matches %S/Inputs/clang-diff-basic-src.cpp %s -- | FileCheck %s
// CHECK: Match TranslationUnitDecl{{.*}} to TranslationUnitDecl
// CHECK: Match NamespaceDecl: src{{.*}} to NamespaceDecl: dst
namespace dst {
// CHECK-NOT: Match NamespaceDecl: src{{.*}} to NamespaceDecl: inner
namespace inner {... | 638 |
369 | // Copyright (c) 2017-2021, <NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <string.h>
#include "VecMap.hpp"
namespace gui
{
VecMap::VecMap()
{
width = 0;
height = 0;
name = "";
type = Type::VECMAP;
}
VecMa... | 662 |
432 | /**
* Copyright (c) 2013 <NAME><<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | 736 |
395 | <filename>app/src/main/java/com/asksven/betterbatterystats/handlers/OnBootHandler.java
/*
* Copyright (C) 2011-2018 asksven
*
* 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
*
* htt... | 1,893 |
3,579 | /*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by ... | 1,420 |
852 | #include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "HeterogeneousCore/SonicTriton/interface/TritonClient.h"
#include "HeterogeneousCore/Sonic... | 7,665 |
491 | {
"usingComponents": {
"flex": "../../es/flex/index",
"flex-item": "../../es/flex/flex-item/index"
}
} | 52 |
4,538 | /*
* Copyright 2009-2017 Alibaba Cloud 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,409 |
980 | <filename>jplayer/src/main/java/org/jcodec/player/filters/VideoOutput.java<gh_stars>100-1000
package org.jcodec.player.filters;
import org.jcodec.common.model.ColorSpace;
import org.jcodec.common.model.Picture;
import org.jcodec.common.model.Rational;
/**
* This class is part of JCodec ( www.jcodec.org )
* This sof... | 187 |
1,056 | <filename>contrib/websvc.wsitconf/test/unit/src/org/netbeans/modules/websvc/wsitconf/wsdlmodelext/PolicyTest.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 copyrig... | 2,263 |
4,140 | <filename>common/src/java/org/apache/hive/http/StackServlet.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 licenses this file
* to y... | 1,311 |
672 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | 1,098 |
335 | <filename>S/Shore_noun.json
{
"word": "Shore",
"definitions": [
"The land along the edge of a sea, lake, or other large body of water.",
"The land between ordinary high- and low-water marks.",
"A country or other geographic area bounded by a coast."
],
"parts-of-speech": "Noun"
} | 124 |
587 | <filename>lightadmin-core/src/test/java/org/lightadmin/core/config/management/rmi/GlobalConfigurationManagementServiceImplTest.java
package org.lightadmin.core.config.management.rmi;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
impo... | 985 |
2,542 | <reponame>vishnuk007/service-fabric<gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// -----------------------------------------... | 1,029 |
313 | #include <boost/lexical_cast.hpp>
struct stringize_functor {
private:
std::string& result;
public:
explicit stringize_functor(std::string& res)
: result(res)
{}
template <class T>
void operator()(const T& v) const {
result += boost::lexical_cast<std::string>(v);
}
};
#include... | 1,410 |
2,760 | <filename>services/dashboard/assets-dev/js/vendor/ag-grid-ng2/lib/ng2ComponentFactory.metadata.json
{"__symbolic":"module","version":1,"metadata":{"Ng2ComponentFactory":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"member... | 293 |
1,875 | <gh_stars>1000+
/*
* Copyright 2016 <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/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 1,040 |
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 ANDROID_WEBVIEW_BROWSER_GFX_SCOPED_APP_GL_STATE_RESTORE_IMPL_ANGLE_H_
#define ANDROID_WEBVIEW_BROWSER_GFX_SCOPED_APP_GL_STATE_RESTORE_IMPL_ANGLE_H... | 473 |
16,461 | <reponame>ahmadtech199/expo<filename>ios/versioned-react-native/ABI41_0_0/Expo/ExpoKit/Core/Api/Components/ViewPager/ABI41_0_0RCTOnPageScrollEvent.h<gh_stars>1000+
#import <Foundation/Foundation.h>
#import <ABI41_0_0React/ABI41_0_0RCTViewManager.h>
NS_ASSUME_NONNULL_BEGIN
@interface ABI41_0_0RCTOnPageScrollEvent : NS... | 275 |
312 | <gh_stars>100-1000
/* api.h
* Copyright (C) 2001-2011, Parrot Foundation.
* Overview:
* Parrot embed API's private macros
*/
#ifndef PARROT_EMBED_PRIVATE_H_GUARD
#define PARROT_EMBED_PRIVATE_H_GUARD
#include "pmc/pmc_parrotinterpreter.h"
/* Don't add ';' at the end of these macros.
* they are expressions,... | 1,220 |
1,694 | //
// 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 <Foundation/NSData.h>
@interface NSData (qb_uniAttribute)
+ (id)qb_dataWithName:(id)arg1 inAttributes:(id)arg2;
- (void)qb_setInAttr... | 144 |
1,702 | package org.springframework.aot.beans.factory;
import java.util.function.Consumer;
/**
* A {@link Consumer} that allows to invoke code that throws a checked exception.
*
* @author <NAME>
*/
@FunctionalInterface
public interface ThrowableConsumer<T> extends Consumer<T> {
void acceptWithException(T t) throws Exce... | 181 |
350 | <reponame>zqn1996-alan/talkback
/*
* Copyright 2020 Google 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 ... | 732 |
892 | <reponame>westonsteimel/advisory-database-github<filename>advisories/unreviewed/2022/01/GHSA-q493-fq52-3qhm/GHSA-q493-fq52-3qhm.json
{
"schema_version": "1.2.0",
"id": "GHSA-q493-fq52-3qhm",
"modified": "2022-01-22T00:02:15Z",
"published": "2022-01-15T00:01:53Z",
"aliases": [
"CVE-2022-20698"
],
"deta... | 504 |
526 | <filename>open-metadata-implementation/frameworks/governance-action-framework/src/main/java/org/odpi/openmetadata/frameworks/governanceaction/events/WatchdogGovernanceEvent.java
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.frameworks.go... | 1,311 |
1,124 | #ifndef _LEMONGRAPH_H
#define _LEMONGRAPH_H
#include<inttypes.h>
#include<sys/types.h>
#include"db.h"
// log entry types
#define GRAPH_DELETION 0x0
#define GRAPH_NODE 0x1
#define GRAPH_EDGE 0x2
#define GRAPH_PROP 0x3
// edge directions
#define GRAPH_DIR_IN 0x1
#define GRAPH_DIR_OUT 0x2
#define GRAPH_... | 3,225 |
851 | /*
* Copyright 2014 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | 973 |
357 | <filename>PsychSourceGL/Source/Common/PsychCV/PsychCV.c<gh_stars>100-1000
/*
PsychToolbox3/Source/Common/PsychCV/PsychCV.c
PLATFORMS: All
AUTHORS:
<NAME> mk mario.kleiner at tuebingen.mpg.de
HISTORY:
5.01.08 mk wrote it.
DESCRIPTION:
A container for all kind of miscellaneous C or high-p... | 8,653 |
2,174 | package ceui.lisa.database;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import com.google.gson.reflect.TypeToken;
import java.util.List;
import ceui.lisa.activities.Shaft;
import ceui.lisa.core.IDWithList;
import ceui.lisa.models.IllustsBean;
@Entity(tableName ... | 572 |
2,854 | <gh_stars>1000+
"""Coreference version of the Winogender dataset.
Each instance has two edges, one between the pronoun and the occupation and one
between the pronoun and the participant. The pronoun is always span1.
There are 120 templates in the Winogender set, 60 coreferent with the
occupation, and 60 coreferent wi... | 2,648 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.