max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
354 | #ifndef _ES2PTEXTURECASES_HPP
#define _ES2PTEXTURECASES_HPP
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 2.0 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the ... | 835 |
1,840 | /**
* Copyright Pravega 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/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1,148 |
3,287 | <gh_stars>1000+
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------------------------------------------... | 124 |
335 | {
"word": "Bothersome",
"definitions": [
"Annoying; troublesome."
],
"parts-of-speech": "Adjective"
} | 60 |
1,609 | package com.mossle.disk.persistence.manager;
import com.mossle.core.hibernate.HibernateEntityDao;
import com.mossle.disk.persistence.domain.DiskVersion;
import org.springframework.stereotype.Service;
@Service
public class DiskVersionManager extends HibernateEntityDao<DiskVersion> {
}
| 97 |
358 | #include <agz/tracer/core/post_processor.h>
#include <agz/tracer/utility/logger.h>
#include <agz-utils/misc.h>
AGZ_TRACER_BEGIN
class ACESToneMapper : public PostProcessor
{
static real aces_curve(real x) noexcept
{
constexpr real tA = real(2.51);
constexpr real tB = real(0.03);
conste... | 1,163 |
348 | {"nom":"Maurrin","circ":"3ème circonscription","dpt":"Landes","inscrits":349,"abs":137,"votants":212,"blancs":2,"nuls":18,"exp":192,"res":[{"nuance":"SOC","nom":"<NAME>","voix":99},{"nuance":"REM","nom":"<NAME>","voix":93}]} | 89 |
1,338 | #include "../common.h"
#include "AppQuitRequestedTester.h"
#include "AppQuitTester.h"
#include "AppRunTester.h"
#include "BApplicationTester.h"
CppUnit::Test* ApplicationTestSuite()
{
CppUnit::TestSuite *testSuite = new CppUnit::TestSuite();
testSuite->addTest(AppQuitRequestedTester::Suite());
testSuite->addTest(... | 181 |
930 | package com.foxinmy.weixin4j.wxa;
import java.util.Properties;
import com.foxinmy.weixin4j.cache.CacheStorager;
import com.foxinmy.weixin4j.cache.FileCacheStorager;
import com.foxinmy.weixin4j.model.Token;
import com.foxinmy.weixin4j.model.WeixinAccount;
import com.foxinmy.weixin4j.mp.token.WeixinTokenCreator;
import... | 1,917 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 1,410 |
631 | /**
* 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... | 831 |
432 | <gh_stars>100-1000
/* Calculate branch probabilities, and basic block execution counts.
Copyright (C) 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 1999,
2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
Contributed by <NAME>, UC Berkeley/Cygnus Support;... | 17,119 |
329 | <gh_stars>100-1000
//
// NSStringHTMLEntities.h
// HTMLTranslator
//
// Created by <NAME> on Thu Aug 12 2004.
// Copyright (c) 2004 <NAME>.
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this... | 382 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure<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.
// -------------------------------------... | 2,693 |
335 | <filename>code/src/gles2rice/src/OGLES2FragmentShaders.cpp
/*
Copyright (C) 2003 Rice1964
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; either version 2
of the License, or (at your option) any late... | 16,539 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 2,793 |
18,965 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.drawee.drawable;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import android.conte... | 2,228 |
709 | package com.olacabs.jackhammer.models.mapper;
import com.olacabs.jackhammer.models.Repo;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSetMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class RepoMapper implements ResultSetMapper<Repo> {
public Repo map(... | 341 |
325 | <gh_stars>100-1000
{
"data": [
{
"author": "<NAME>",
"quote": "The main reason we waste time on small things is that we haven’t identified our big things."
},
{
"author": "<NAME>",
"quote": "The only limits on your life are those that you set yourself."
},
{
"author":... | 1,065 |
515 | package com.bj58.argo.interceptor;
import com.bj58.argo.ActionResult;
import com.bj58.argo.BeatContext;
/**
* 方法执行前的拦截处理,可以与
* @see PostInterceptor
* 共同实现,也可以单独使用
*
* @see PreInterceptorAnnotation
*/
public interface PreInterceptor {
/**
* 拦截当前请求
* @param beat 当前请求的上下文
* @re... | 321 |
4,283 | <reponame>larrydiamond/hazelcast<filename>hazelcast/src/test/java/com/hazelcast/test/starter/constructor/DataAwareEntryEventConstructor.java
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 1,110 |
2,151 | <filename>third_party/blink/renderer/core/html/custom/custom_element_definition_builder.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 THIRD_PARTY_BLINK_RENDERER_CORE_HTML_CUSTOM_CUSTOM_ELEME... | 724 |
862 | /*
* (c) Copyright 2018 Palantir Technologies 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 ... | 6,393 |
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 ... | 2,138 |
432 | <gh_stars>100-1000
/*
* Copyright (C) 2020 ActiveJ 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 1,264 |
1,016 | <reponame>peter-ls/kylo
package com.thinkbiganalytics.jobrepo.rest.controller;
/*-
* #%L
* thinkbig-job-repository-controller
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | 2,004 |
831 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1,580 |
5,411 | <reponame>thorium-cfx/fivem
/*
* GMAC
* (C) 2016 <NAME>, <NAME>
* (C) 2017 <NAME>
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_GMAC_H_
#define BOTAN_GMAC_H_
#include <botan/mac.h>
BOTAN_FUTURE_INTERNAL_HEADER(gmac.h)
namespace Botan {
class BlockCipher;
class GHAS... | 635 |
317 | ##############################################################################
#
# include makefile for nmake under Windows NT
#
##############################################################################
#
# $Id$
#
#
# If NWCHEM_TOP_WIN32 is set, take it. Otherwise, if NWCHEM_TOP is set,
# use that. One of the ... | 816 |
711 | package com.java110.dto.feeManualCollectionDetail;
import com.java110.dto.PageDto;
import java.io.Serializable;
import java.util.Date;
/**
* @ClassName FloorDto
* @Description 托收明细数据层封装
* @Author wuxw
* @Date 2019/4/24 8:52
* @Version 1.0
* add by wuxw 2019/4/24
**/
public class FeeManualCollectionDetailDto e... | 1,191 |
474 | <reponame>sidia-dev-team/GearVRf
/*
* Copyright 2016 Samsung Electronics Co., LTD
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 998 |
14,668 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_MEDIA_LIST_OBSERVER_H_
#define CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_MEDIA_LIST_OBSERVER_H_
class DesktopMediaL... | 301 |
676 | <filename>app/src/main/java/com/alorma/github/injector/module/NotificationsModule.java<gh_stars>100-1000
package com.alorma.github.injector.module;
import android.content.Context;
import com.alorma.github.injector.scope.NotificationsScope;
import com.alorma.github.notifications.AlarmManagerJobManager;
import com.alorm... | 313 |
464 | <reponame>sailxjx/DI-engine
import pytest
from ding.worker import EpisodeSerialCollector
from ding.envs import BaseEnvManager, SyncSubprocessEnvManager, AsyncSubprocessEnvManager
from ding.policy import DQNPolicy
from ding.model import DQN
from dizoo.classic_control.cartpole.envs import CartPoleEnv
@pytest.mark.unitt... | 390 |
6,831 | <reponame>ajayiagbebaku/NFL-Model
from ..plugin_registry import PluginRegistry
from typing import Callable
class TypedCallableRegistry(PluginRegistry[Callable[[int], int]]):
pass
class GeneralCallableRegistry(PluginRegistry):
_global_settings = {"global_setting": None}
@property
def global_setting(... | 1,244 |
1,900 | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1,772 |
2,291 | package org.osmdroid.views;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Point;
import android.graphics.PointF;
import android.graphics.Rect;
import org.osmdroid.api.IGeoPoint;
import org.osmdroid.api.IProjection;
import org.osmdroid.util.BoundingBox;
import org.osmdroid.uti... | 13,431 |
421 | import sys
import urllib3
urllib3.disable_warnings()
def banner():
print(""" ___ _ _ ____ ___ ___ ___ ___ ___ ___ ___ __ _
/ __)( \/ )( ___)___(__ \ / _ \(__ \ (__ \ ___(__ \ (__ ) / _ \ /. | / )
( (__ \ / )__)(___)/ _/( (_) )/ _/ / _/(___)/ _/ (_ \( (_) )(_ _)/ _ \\
\___)... | 1,184 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 4,203 |
2,151 | <gh_stars>1000+
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/device/hid/hid_service_linux.h"
#include <fcntl.h>
#include <stdint.h>
#include <limits>
#include <memory>
#include <... | 4,447 |
488 | #ifndef __UNPARSER_ASSIST_H__
#define __UNPARSER_ASSIST_H__
extern void
generateModFile(SgFile *sfile);
#define MOD_FILE_SUFFIX ".rmod"
#endif
| 65 |
347 | <gh_stars>100-1000
package org.ovirt.engine.core.common.vdscommands;
import org.ovirt.engine.core.common.utils.ToStringBuilder;
import org.ovirt.engine.core.compat.Guid;
public class NbdServerVDSParameters extends VdsIdVDSCommandParametersBase {
private Guid serverId;
private Guid storageDomainId;
priv... | 1,140 |
1,104 | <filename>trunk/adhoc-solr/src/main/java/org/apache/solr/core/DirectoryFactory.java
package org.apache.solr.core;
/**
* 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... | 447 |
355 | <gh_stars>100-1000
/*
The MIT License (MIT)
Copyright (c) 2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... | 5,748 |
417 | from . import utils
import functools
def watch_login(status_code=302, msg="", get_username=utils.get_username_from_request):
"""
Used to decorate the django.contrib.admin.site.login method or
any other function you want to protect by brute forcing.
To make it work on normal functions just pass the st... | 1,033 |
32,544 | <reponame>DBatOWL/tutorials<gh_stars>1000+
package com.baeldung.nulls;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertThrows;
class UsingObjectsUnitTest {
private ... | 281 |
1,772 | <gh_stars>1000+
import logging
from datetime import datetime
import html2text
from dateutil import parser
from defusedxml import ElementTree
from dojo.models import Endpoint, Finding
logger = logging.getLogger(__name__)
def htmltext(blob):
h = html2text.HTML2Text()
h.ignore_links = False
return h.handl... | 2,464 |
32,544 | package com.baeldung.dddhexagonalspring.domain.repository;
import com.baeldung.dddhexagonalspring.domain.Order;
import java.util.Optional;
import java.util.UUID;
public interface OrderRepository {
Optional<Order> findById(UUID id);
void save(Order order);
}
| 96 |
1,152 | #include "stdafx.h"
#include "ProjFS_DeleteFolderTest.h"
#include "SafeHandle.h"
#include "TestException.h"
#include "TestHelpers.h"
#include "TestVerifiers.h"
#include "Should.h"
using namespace TestHelpers;
using namespace TestVerifiers;
static const std::string TEST_ROOT_FOLDER("\\GVFlt_DeleteFolderTest... | 3,919 |
1,024 | package org.influxdb.querybuilder;
import java.util.ArrayList;
import java.util.List;
import org.influxdb.querybuilder.clauses.AndConjunction;
import org.influxdb.querybuilder.clauses.Clause;
import org.influxdb.querybuilder.clauses.ConjunctionClause;
import org.influxdb.querybuilder.clauses.OrConjunction;
public cla... | 767 |
445 | """This module contains functions which operate on discrete sequences.
Transforms - ``fft``, ``ifft``, ``ntt``, ``intt``, ``fwht``, ``ifwht``,
``mobius_transform``, ``inverse_mobius_transform``
Convolutions - ``convolution``, ``convolution_fft``, ``convolution_ntt``,
``convolution_fwht``, ``co... | 223 |
16,989 | <reponame>AyuMol758/bazel
// Copyright 2021 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
//
... | 702 |
1,085 | <filename>scripts/api/fetch_to_library.py<gh_stars>1000+
import argparse
import json
import requests
import yaml
def main():
parser = argparse.ArgumentParser(description='Upload a directory into a data library')
parser.add_argument("-u", "--url", dest="url", required=True, help="Galaxy URL")
parser.add_a... | 418 |
856 | <filename>include/armnnSerializer/ISerializer.hpp
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "armnn/INetwork.hpp"
#include "armnn/NetworkFwd.hpp"
#include "armnn/Types.hpp"
namespace armnnSerializer
{
class ISerializer;
using ISerializerPtr = std::un... | 368 |
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.
package org.chromium.components.autofill;
import android.os.IBinder;
import org.chromium.base.test.util.CallbackHelper;
i... | 630 |
1,738 | <reponame>jeikabu/lumberyard
#pragma once
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
*... | 817 |
1,208 | <reponame>cclovett/iRemeberM
../../../WCDB/sqlcipher/src/sqlcipher.h | 33 |
27,173 | import unittest
class TestAnagrams(unittest.TestCase):
def test_group_anagrams(self):
anagram = Anagram()
self.assertRaises(TypeError, anagram.group_anagrams, None)
data = ['ram', 'act', 'arm', 'bat', 'cat', 'tab']
expected = ['ram', 'arm', 'act', 'cat', 'bat', 'tab']
self... | 228 |
721 | package crazypants.enderio.base.integration.ic2c;
import javax.annotation.Nonnull;
import crazypants.enderio.api.farm.IFarmerJoe;
import crazypants.enderio.base.EnderIO;
import crazypants.enderio.base.Log;
import crazypants.enderio.base.events.EnderIOLifecycleEvent;
import crazypants.enderio.base.farming.FarmersRegis... | 426 |
2,177 | <filename>vendor/cache/gems/nokogiri-1.6.7.2/ext/nokogiri/html_element_description.h
#ifndef NOKOGIRI_HTML_ELEMENT_DESCRIPTION
#define NOKOGIRI_HTML_ELEMENT_DESCRIPTION
#include <nokogiri.h>
void init_html_element_description();
extern VALUE cNokogiriHtmlElementDescription ;
#endif
| 118 |
1,738 | <gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the li... | 977 |
880 | <gh_stars>100-1000
/**
* 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 law... | 1,063 |
2,151 | <reponame>google-ar/chromium
// 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 CONTENT_PUBLIC_BROWSER_RESTORE_TYPE_H_
#define CONTENT_PUBLIC_BROWSER_RESTORE_TYPE_H_
namespace content {
// Enumer... | 239 |
441 | <reponame>ssinai1/rbfx
//
// Copyright (c) 2017-2020 the rbfx project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to... | 1,461 |
524 | #pragma once
#include "ContactList.h"
#include "../../animation/animation.h"
namespace Logic
{
class CustomAbstractListModel;
class SearchModel;
class SearchItemDelegate;
enum class UpdateChatSelection;
class CommonChatsModel;
}
namespace Ui
{
class FocusableListView;
class SearchWidget;
... | 2,136 |
814 | {
"menu.search.placeholder": "Search for people, file, photos...",
"menu.fullscreen": "Fullscreen",
"menu.fullscreen.exit": "Exit Fullscreen",
"menu.clear.local.storage": "Clear Local Storage",
"menu.lang": "Language",
"menu.account": "Personal Page",
"menu.account.center": "Personal Center",
"menu.acco... | 1,284 |
496 | # -*- coding: utf-8 -*-
"""Provides interface for pyfiscan to YAML-files."""
try:
import os
import sys
import yaml
except ImportError as error:
print('Import error: %s' % error)
sys.exit(1)
def gen_yamlfile_locations(yamldir, includes):
"""File handle generator for YAML-files. Only used by d... | 1,141 |
14,668 | <gh_stars>1000+
// 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.
#include "chrome/browser/policy/chrome_extension_policy_migrator.h"
#include <string>
#include "base/bind.h"
#include "base/callback.h"
... | 1,685 |
605 | # TestCGImportedTypes.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org/CONT... | 648 |
389 | //
// libtgvoip is free and unencumbered public domain software.
// For more information, see http://unlicense.org or the UNLICENSE file
// you should have received with this source code distribution.
//
#include "MockReflector.h"
#include <arpa/inet.h>
#include <assert.h>
#include <stdio.h>
using namespace tgvoip;
u... | 1,539 |
457 | <reponame>vico-aguado/intl
{"NAME":"es_US","ERAS":["a. C.","d. C."],"ERANAMES":["antes de Cristo","después de Cristo"],"NARROWMONTHS":["E","F","M","A","M","J","J","A","S","O","N","D"],"STANDALONENARROWMONTHS":["E","F","M","A","M","J","J","A","S","O","N","D"],"MONTHS":["enero","febrero","marzo","abril","mayo","junio","j... | 685 |
335 | {
"word": "Lost",
"definitions": [
"Unable to find one's way; not knowing one's whereabouts.",
"Unable to be found.",
"Unable to understand or to cope with a situation.",
"That has been taken away or cannot be recovered.",
"(of time or an opportunity) not used advantageou... | 180 |
1,056 | <filename>enterprise/web.core/src/org/netbeans/modules/web/core/jsploader/JspServletDataObject.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 copyri... | 3,104 |
1,893 | """
Registry module
"""
from transformers import AutoModel, AutoModelForQuestionAnswering, AutoModelForSequenceClassification
from transformers.models.auto.tokenization_auto import TOKENIZER_MAPPING
class Registry:
"""
Methods to register models and fully support pipelines.
"""
@staticmethod
def... | 496 |
852 | <reponame>Purva-Chaudhari/cmssw
#ifndef EventFilter_GEMRawToDigi_GEMRawToDigi_h
#define EventFilter_GEMRawToDigi_GEMRawToDigi_h
/** \class GEMRawToDigi
* \author <NAME>, <NAME> - UoS
*/
#include <memory>
#include "DataFormats/GEMDigi/interface/GEMAMC13.h"
class GEMRawToDigi {
public:
std::unique_ptr<GEMAMC13> con... | 216 |
346 | /*! -*-c++-*-
@file SensorImpl.h
@author <NAME>
@brief Private implementation of a simple sensor/camera abstraction.
\copyright Copyright 2017 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
*/
#ifndef __drishti_drishti_SensorImpl_h__
#define __dri... | 319 |
515 | <gh_stars>100-1000
package br.com.caelum.stella.faces.validation;
import javax.faces.validator.Validator;
import javax.faces.webapp.ValidatorELTag;
import javax.servlet.jsp.JspException;
/**
* Associa um TLD (Descritor de Biblioteca de Tag) a um validador de Titulo Eleitoral
* (StellaTituloEleitoralValidator).
*
... | 315 |
363 | <reponame>LarsP8/service-proxy
/* Copyright 2013 predic8 GmbH, www.predic8.com
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 requ... | 415 |
434 | #pragma once
#include "Base/Base.h"
#include "Data/ProjectData.h"
#include "Modules/ModuleManager.h"
#include "Sea/SeaManager.h"
#include "Lighting/LightManager.h"
#include "Data/Serializer.h"
#include "Menu/MainMenu.h"
#include "Generators/MeshGeneratorManager.h"
#include "TextureStore/TextureStore.h"
#include "Misc... | 1,762 |
3,565 | <gh_stars>1000+
/*!
* \copy
* Copyright (c) 2009-2018, Cisco Systems
* 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 mus... | 21,555 |
893 | <reponame>josephobonyo/sigma_coding_youtube
import win32com.client
# create a new instance of PowerPoint
PPTApp = win32com.client.Dispatch("PowerPoint.Application")
PPTApp.Visible = True
# create a new presentation in the application
PPTPresentation = PPTApp.Presentations.Add()
# add a new slide to the presentation... | 118 |
10,225 | package io.quarkus.qute;
import java.util.concurrent.CompletionStage;
/**
*
* @see ReflectionValueResolver
*/
@FunctionalInterface
interface ValueAccessor {
/**
*
* @param instance
* @return the value
*/
CompletionStage<Object> getValue(Object instance);
}
| 107 |
852 | // -*- C++ -*-
//
// Package: TrackAssociator
// Class: FiducialVolume
//
/*
Description: detector active volume
*/
//
// Original Author: <NAME>
//
//
#include "TrackingTools/TrackAssociator/interface/FiducialVolume.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/int... | 462 |
1,442 | #ifndef ESCHER_MESSAGE_TABLE_CELL_WITH_EXPRESSION_H
#define ESCHER_MESSAGE_TABLE_CELL_WITH_EXPRESSION_H
#include <escher/message_table_cell.h>
#include <escher/expression_view.h>
namespace Escher {
class MessageTableCellWithExpression : public MessageTableCell {
public:
MessageTableCellWithExpression(I18n::Message... | 200 |
333 | #include "rsRuleExecSubmit.hpp"
#include "rodsErrorTable.h"
#include "rodsConnect.h"
#include "icatHighLevelRoutines.hpp"
#include "rcMisc.h"
#include "miscServerFunct.hpp"
#include "irods_log.hpp"
#include "irods_get_full_path_for_config_file.hpp"
#include "irods_random.hpp"
#include "irods_configuration_keywords.hp... | 2,218 |
1,350 | <filename>sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftManagedClusterAadIdentityProvider.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest... | 1,507 |
811 | <filename>tests/unit/test_authorization_file.py
import unittest
import jsoncfg
import json
from parliament import analyze_policy_string
class TestAuthDetailsFile(unittest.TestCase):
def test_auth_details_example(self):
auth_details_json = {
"UserDetailList": [
{
... | 6,549 |
1,142 | <gh_stars>1000+
#include <robin_hood.h>
#include <app/doctest.h>
#include <iostream>
TYPE_TO_STRING(robin_hood::unordered_flat_set<uint64_t>);
TYPE_TO_STRING(robin_hood::unordered_node_set<uint64_t>);
TEST_CASE_TEMPLATE("unordered_set_asserts", Set, robin_hood::unordered_flat_set<uint64_t>,
robin... | 1,371 |
1,699 | <reponame>huihui7987/blind_watermark<gh_stars>1000+
# 不想用 Sphinx,也不像弄一堆静态html文件,所以自己写个咯
'''
需要从readme中解析出:
1. "-> Demo code: [examples/demo_pso.py](examples/demo_pso.py)"
2. 三个```python为开头,三个 ``` 为结尾
3. 从py文件中读出文本,并替换
4. 前几行是求star,只在readme中出现
需要从py文件中解析出:
1. # %% 做断点后赋予index值,然后插入readme
'''
import os
import sys
im... | 1,925 |
575 | // 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_GRAPHICS_LAYER_TREE_AS_TEXT_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_GRAPHICS_LAYER_TR... | 380 |
458 | <filename>tests/python/open_data/glm/test_ridge.py
import time
import sys
import os
import numpy as np
import pandas as pd
import logging
print(sys.path)
from h2o4gpu.util.testing_utils import find_file, run_glm
logging.basicConfig(level=logging.DEBUG)
def fun(nGPUs=1, nFolds=1, nLambdas=100, nAlphas=8, validFracti... | 1,614 |
1,742 | #from abstract_jacobian import is_Jacobian, Jacobian
| 16 |
318 | <filename>surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/DiagnosticRunListener.java<gh_stars>100-1000
package org.apache.maven.surefire.junitcore;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* d... | 2,036 |
1,103 | /*
* Copyright 2016-2019 Netflix, 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 ... | 7,308 |
663 | # (C) Datadog, Inc. 2010-2019
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
import re
import pytest
import requests
# Make sure this expected metrics list is up to date with:
# - `dogstatsd_mapper_profiles` configuration from README.md
# - metadata.csv
EXPECTED_METRICS = [
'<job_name... | 1,301 |
1,434 | <filename>ios/Hera/Page/WDHUtils.h
//
// Copyright (c) 2017, <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:
//
// * Redistributions of source code must retain the above copyright noti... | 872 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.or... | 667 |
412 | int foo(int *x)
{
if(*x)
{
int y = 9;
}
else
{
int z = 4;
}
}
int main()
{
int x;
foo(&x);
}
| 71 |
3,395 | {"plain_text": {"description": "\nElkarHizketak is a low resource conversational Question Answering\n(QA) dataset in Basque created by Basque speaker volunteers. The\ndataset contains close to 400 dialogues and more than 1600 question\nand answers, and its small size presents a realistic low-resource\nscenario for conv... | 1,515 |
395 | <filename>api/management/commands/get_clues.py
# coding: utf-8
from __future__ import unicode_literals
from bs4 import BeautifulSoup
import requests
from django.core.management.base import BaseCommand
from core.models import Hellspawn
class Command(BaseCommand):
def handle(self, *args, **options):
url ... | 712 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.