max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
575
// Copyright (c) 2012 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_ENROLLMENT_ENROLLMENT_SCREEN_H_ #define CHROME_BROWSER_ASH_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ #include <memory> #...
2,708
1,144
package de.metas.vertical.creditscore.creditpass.interceptor; import java.time.LocalDateTime; import java.time.temporal.ChronoUnit; import java.util.Optional; import org.adempiere.ad.modelvalidator.annotations.DocValidate; import org.adempiere.ad.modelvalidator.annotations.Interceptor; import org.adempiere.ad.modelva...
1,741
735
/* * Copyright (C) 2004 <NAME>. * Copyright (C) 2006, 2007, 2014, 2018 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * * Created on 03. Septe...
1,129
1,020
package org.robobinding.widget.abslistview; import java.util.Map; import java.util.Set; import org.robobinding.viewattribute.property.TwoWayPropertyViewAttribute; import org.robobinding.widget.AbstractMultiTypePropertyViewAttributeTest; import org.robobinding.widget.abslistview.CheckedItemPositionsAttribute.MapChecke...
425
750
from unittest import TestCase from unittest.mock import MagicMock, patch from piccolo.apps.migrations.commands.check import CheckMigrationManager, check from piccolo.conf.apps import AppRegistry from piccolo.utils.sync import run_sync class TestCheckMigrationCommand(TestCase): @patch.object( CheckMigrati...
241
2,338
// RUN: %clang_cc1 -fsyntax-only -fbracket-depth 2 -verify -std=c++17 %s template <class T, T... V> struct seq { constexpr bool zero() { return (true && ... && (V == 0)); }; // expected-error {{instantiating fold expression with 3 arguments exceeded expression nesting limit of 2}} \ ...
220
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,524
3,428
<gh_stars>1000+ {"id":"01028","group":"easy-ham-1","checksum":{"type":"MD5","value":"9bc3697b9d9eb23fc4427b482b012f40"},"text":"From <EMAIL> Thu Sep 19 13:01:41 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) ...
1,621
435
{ "alias": "video/1973/python-and-the-ska-0", "category": "SciPy 2013", "copyright_text": "https://www.youtube.com/t/terms", "description": "Authors: <NAME> SKA South Africa, <NAME> SKA South\nAfrica\n\nTrack: Astronomy and Astrophysics\n\nThe Square Kilometer Array will be one of the prime scientific data\ngen...
626
10,876
<reponame>Nuclearfossil/vcpkg #define ANGLE_COMMIT_HASH "invalid-hash" #define ANGLE_COMMIT_HASH_SIZE 12 #define ANGLE_COMMIT_DATE "invalid-date"
66
6,342
<reponame>DemarcusL/django_wiki_lab from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import ZoomProvider urlpatterns = default_urlpatterns(ZoomProvider)
65
433
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.redkale.source; import java.io.Serializable; import java.net.URL; import java.util.*; import java.util.concurrent.*; impor...
1,888
504
package org.dayatang.dddlib.event.api; import org.dayatang.utils.Assert; import java.util.Date; import java.util.UUID; /** * 领域事件基类,领域事件代表具有业务含义的事件,例如员工调动或者机构调整 * Created by yyang on 14-9-12. */ public abstract class AbstractEvent implements Event { private String id = UUID.randomUUID().toString(); priv...
839
416
<reponame>neilalex/SublimeWebInspector # not implemented now
22
303
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django_services import admin from django.contrib import admin as django_admin from ..service.engine import EngineService from ..models import EnginePatch from ..forms.engine_patch import engine_patch_formset, EnginePatchForm class E...
378
850
/* 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 law or a...
1,645
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.identity; import com.azure.identity.implementation.util.ValidationUtil; /** * Fluent credential builder for instantiating a {@link AzureCliCredential}. * * @see AzureCliCredential */ public class Azu...
393
2,453
<reponame>haozhiyu1990/XVim2 // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <IDEKit/XCLogUnitTestAdapter.h> @interface XCLogUnitTestWorkerAdapter : XCLogUnitTestAdapter { } - (id)secondRowStringForDataNode:(id)arg1; - (d...
191
347
package org.ovirt.engine.core.common.action; import java.io.Serializable; public enum LoginResult implements Serializable { Autheticated, CantAuthenticate, NoPermission, PasswordExpired; public int getValue() { return this.ordinal(); } public static LoginResult forValue(int value...
132
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,333
398
<reponame>regadas/chill /* * 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...
596
4,071
<filename>xdl/xdl/core/framework/slab_allocator.cc /* Copyright (C) 2016-2018 Alibaba Group Holding Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENS...
2,870
2,338
//===- lib/MC/MCFragment.cpp - Assembler Fragment Implementation ----------===// // // 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 // //===---------------------------...
6,579
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // // #if !defined(...
353
789
def init_logging(): import logging logging.basicConfig(format="%(asctime)-15s: %(levelname)s: %(message)s", level=logging.INFO)
78
4,772
<filename>jpa/deferred/src/main/java/example/repo/Customer1902Repository.java package example.repo; import example.model.Customer1902; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1902Repository extends CrudRepository<Customer1902, Long> { List<Custome...
115
775
<filename>ote_sdk/ote_sdk/serialization/label_mapper.py # # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # """ This module contains the mapper for label related entities """ import json from typing import Dict, Union, cast from ote_sdk.entities.color import Color from ote_sdk.entit...
2,859
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 not ...
564
892
{ "schema_version": "1.2.0", "id": "GHSA-j2cr-8pw5-rpvq", "modified": "2022-04-30T18:13:19Z", "published": "2022-04-30T18:13:19Z", "aliases": [ "CVE-2000-0269" ], "details": "Emacs 20 does not properly set permissions for a slave PTY device when starting a new subprocess, which allows local users to r...
396
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,083
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...
9,778
7,482
/****************************************************************************** * * Freescale Semiconductor Inc. * (c) Copyright 2004-2010 Freescale Semiconductor, Inc. * ALL RIGHTS RESERVED. * **************************************************************************//*! * * @file disk.c * * @author * * @...
5,133
332
<gh_stars>100-1000 /* * Copyright 2014 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
421
345
<gh_stars>100-1000 package com.github.theholywaffle.teamspeak3.commands.parameter; /* * #%L * TeamSpeak 3 Java API * %% * Copyright (C) 2014 <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 ...
732
1,037
<filename>photup-demo/select_photo_library/src/com/zhaojian/jolly/utils/Utils.java /* * Copyright 2013 <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....
3,777
14,668
{ "testResult": { "testPath" : "DummySuite.DummyCase", "status": "PASS", "expected": true, "outputArtifacts":{ "trace/1.json": { "contentType":"application/json", "filePath":"FULL_TRACE_FILE_PATH" } }, "tags":[ {"key":"tbmv2","value":"renderingMetric"}, ...
179
2,542
{ "Default": { }, "Tests": [ { "Name": "FMScale_SP3R_phw(LAB)", "Type": "V2_DllTest", "Owners": "lemai", "Environment": "Iaas", "ResourcesRequired": "Server:21;Group=Failover-Scale", "TestExecutionParameters": { "SetupType": "XCopy", "SetupTimeout": "3600", ...
409
815
/*************************************************************************************************** * Copyright 2021 NVIDIA Corporation. All rights reserved. **************************************************************************************************/ /// \file /// \brief Bounding box type. #ifndef MI_NEURAYL...
734
679
<filename>main/reportdesign/source/ui/dlg/Navigator.cxx<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 informa...
16,323
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...
1,421
32,544
package com.baeldung.blockchain; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; public class BlockchainUnitTest { public static List<Block> blo...
957
371
/** * 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...
709
782
// Copyright (c) 2018 Intel Corporation // // 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, modify, merge, publ...
7,777
3,282
<reponame>1060680253/AndroidChromium<filename>app/src/main/java/org/chromium/chrome/browser/signin/AccountSigninView.java // Copyright 2015 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.chrome.brow...
10,583
21,793
<gh_stars>1000+ { "URL": "https://echo.hoppscotch.io", "HOST": "echo.hoppscotch.io", "X-COUNTRY": "IN", "BODY_VALUE": "body_value", "BODY_KEY": "body_key" }
85
438
{ "DESCRIPTION": "˙ɹǝsn ɐ uɐq", "USAGE": "ban <ɹǝsn> [uosɐǝɹ] [ǝɯᴉʇ]", "TITLE": "pƎNN∀q", "MISSING_USER": "I can't punish someone not in this server.", "TOO_POWERFUL": "˙ɹǝʍod ɹᴉǝɥʇ oʇ ǝnp ɹǝsn sᴉɥʇ uɐq oʇ ǝlqɐun ɯɐ I", "DESC": "˙{{NAME}} ɯoɹɟ pǝuuɐq uǝǝq ǝʌɐɥ no⅄", "BAN_BY": ":ʎq pǝuuɐq", "SUCCESS": "˙...
286
492
<filename>torngas/logger/__init__.py<gh_stars>100-1000 # !/usr/bin/env python # -*- coding: utf-8 -*- import logging import logging.handlers from tornado.log import LogFormatter from loggers import ProcessLogTimedFileHandler from client import SysLogger, syslogger def enable_pretty_logging(options=None, logger=None):...
785
1,323
// // GJCFImageBrowserViewControllerDelegate.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-10-30. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> @class GJCUImageBrowserViewController; @protocol GJCUImageBrowserViewControllerDataSource <NSObjec...
557
1,337
/* * Copyright (c) 2008-2016 Haulmont. * * 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 agr...
2,010
428
<reponame>DCNick3/remill /* * Copyright (c) 2021 Trail of Bits, 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 req...
979
436
<filename>src/maestral/cli/__init__.py """ This module contains the command line interface of Maestral. Keep all heavy imports local to the command or method that requires them to ensure a responsive CLI. """ from .cli_main import main __all__ = ["main"]
72
429
<filename>Main/Forms/VolumePropertiesDialog.h /* Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved. Governed by the TrueCrypt License 3.0 the full text of which is contained in the file License.txt included in TrueCrypt binary and source code distribution packages. */ #ifndef TC_HEADER_Main...
225
5,169
<reponame>Gantios/Specs { "name": "Touchtest", "version": "1.5.10", "summary": "Functional Test Automation library for iOS applications.", "license": { "type": "Apache License, Version 2.0", "file": "LICENSE" }, "social_media_url": "https://twitter.com/cloudtest", "source": { "git": "https://g...
466
918
//Copyright (c) 2008-2016 <NAME> and <NAME>, Inc. //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) #include <boost/qvm/mat_operations.hpp> #include <boost/qvm/mat.hpp> using namespace boost::qvm; namespace ...
2,260
14,668
<reponame>zealoussnow/chromium // 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 "chromeos/services/secure_channel/fake_secure_channel_connection.h" #include <utility> #include <vector> #includ...
1,250
367
@import Foundation; @protocol MTLDevice, MTLLibrary, MTLCommandQueue; @interface MBEContext : NSObject @property (strong) id<MTLDevice> device; @property (strong) id<MTLLibrary> library; @property (strong) id<MTLCommandQueue> commandQueue; + (instancetype)newContext; @end
99
930
<reponame>SapphireFX/overlap2d<filename>overlap2d/test/java/com/uwsoft/editor/proxy/PluginManagerTest.java package com.uwsoft.editor.proxy; import com.commons.plugins.O2DPlugin; import com.commons.plugins.PluginAPI; import com.uwsoft.editor.view.stage.Sandbox; import org.junit.Before; import org.junit.Test; import org...
827
895
<reponame>visor-tax/NgKeyboardTracker<filename>NgKeyboardTracker/NgPseudoInputAccessoryViewCoordinator.h // // NgPseudoInputAccessoryViewCoordinator.h // NgKeyboardTracker // // Created by <NAME> on 3/7/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit...
354
4,140
<filename>common/src/java/org/apache/hadoop/hive/common/JvmMetricsInfo.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 ownership. The ASF ...
793
371
import wandb class WandbLogger: def __init__(self, log_dir, ids=list(), training_name='test', *args, **kwargs): wandb.login() wandb.init(project='RLs', # config=records_dict, id=training_n...
752
533
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/6/17. ↓↓↓ 产品接口 ↓↓↓ """ from app.extensions.api_docs.redprint import Redprint from app.extensions.api_docs.v1 import product as api_doc from app.core.token_auth import auth from app.models.product import Product from app.dao.product import ProductDao from app.li...
1,292
4,544
<reponame>agolo/haystack import re def clean_wiki_text(text: str) -> str: """ Clean wikipedia text by removing multiple new lines, removing extremely short lines, adding paragraph breaks and removing empty paragraphs """ # get rid of multiple new lines while "\n\n" in text: text = text...
339
521
<filename>third_party/virtualbox/include/VBox/vmm/cfgm.h<gh_stars>100-1000 /** @file * CFGM - Configuration Manager. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you ...
6,131
758
package com.clover_studio.spikachatmodule.view; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.widget.TextView; /** * Created by ubuntu_ivo on 17.07.15.. */ public class CustomTextView extends TextView{ public Custo...
296
1,425
<reponame>amatiushkin/tinkerpop<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apach...
613
381
<filename>grouter/src/main/java/com/grouter/GRouter.java package com.grouter; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.a...
7,694
3,508
package com.fishercoder; import com.fishercoder.solutions._1273; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertEquals; public class _1273Test { private static _1273.Solution1 solution1; private static int[] parent; private static int[] value; @BeforeClass ...
587
881
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
678
852
#include "CondFormats/RPCObjects/interface/LinkBoardSpec.h" #include <sstream> LinkBoardSpec::LinkBoardSpec(bool m, int l, int n) : theMaster(m), theLinkBoardNumInLink(l), theCode(n) {} void LinkBoardSpec::add(const FebConnectorSpec& feb) { theFebs.push_back(feb); } const FebConnectorSpec* LinkBoardSpec::feb(int fe...
811
8,649
<gh_stars>1000+ package org.hswebframework.web.authorization.annotation; import java.lang.annotation.*; @Target({ElementType.ANNOTATION_TYPE}) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented public @interface Dimension { String type(); String[] id() default {}; Logical logical() default Logi...
132
14,668
<reponame>zealoussnow/chromium<filename>chrome/updater/mac/signing/unbranded_config.py # 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. from .build_props_config import BuildPropsCodeSignConfig class Unbra...
192
1,755
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
4,358
622
#include "settings.h" #if _DEBUG std::string Settings::serverIP = "127.0.0.1"; //server ip int Settings::serverPort = 1337; //server port std::string Settings::fileName = "lilithDEBUG.exe"; //file name std::string Settings::folderName = "lilithDEBUG folder"; //name of folder where file is located std::string...
799
687
import torch import pytorch3d from pytorch3d.ops import sample_points_from_meshes from pytorch3d.io import load_objs_as_meshes, save_ply import time ''' you can use this code to sample ground-truth meshes input_obj -> mesh to sample output_ply -> sampled points and normals from input_obj ''' device = torch.device('c...
247
399
<filename>library/common/extensions/retry/options/network_configuration/config.h #pragma once #include <string> #include "envoy/upstream/retry.h" #include "source/common/protobuf/message_validator_impl.h" #include "library/common/extensions/retry/options/network_configuration/predicate.h" #include "library/common/e...
579
438
{ "DESCRIPTION": "Stuur een uitnodigingslink zodat mensen mij aan hun server kunnen toevoegen.", "USAGE": "uitnodigen", "LINK": "🤖 [Nodig me uit op jouw server]({{LINK}} 'Je weet dat je wil')" }
92
923
package com.architjn.acjmusicplayer.task; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Environment; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.Log; import com.afollestad.async.Ac...
3,861
923
<gh_stars>100-1000 // Ouzel by <NAME> #ifndef OUZEL_GRAPHICS_RENDERTARGET_HPP #define OUZEL_GRAPHICS_RENDERTARGET_HPP #include <memory> #include <vector> #include "RenderDevice.hpp" #include "../math/Color.hpp" #include "../math/Size.hpp" namespace ouzel::graphics { class Graphics; class Texture; class ...
387
3,428
{"id":"00408","group":"easy-ham-1","checksum":{"type":"MD5","value":"d52d0dde484c37acb79bfdc18d4a2aa9"},"text":"From <EMAIL> Tue Sep 3 18:04:36 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 39FBF...
1,181
4,640
/* * 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 ...
567
3,857
/** * Tencent is pleased to support the open source community by making QMUI_iOS available. * Copyright (C) 2016-2021 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of th...
3,003
889
<gh_stars>100-1000 import PIL import torch.nn.functional as F import torch from collections.abc import Sequence, Iterable import warnings from torchvision.transforms import functional as F class CropResizeTransform(object): """Crop the image to min(h,w) then resize it Args: size (sequence or int): D...
648
1,822
// Copyright (C) 2014 <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) #include <hpx/local/future.hpp> #include <hpx/local/init.hpp> #include <hpx/modules/testing.hpp...
630
1,738
/* * 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 license below or t...
1,904
1,020
<reponame>icse18-refactorings/RoboBinding package org.robobinding.widget.adapterview; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.robobinding.attribute.Attributes.aValueModelAttribute; import org.junit.Test; import org.junit.runner.RunWith; import org.mo...
452
726
<reponame>Diffblue-benchmarks/Landy8530-DesignPatterns package org.landy.singleton.lazy; /** * //懒汉式单例 //特点:在外部类被调用的时候内部类才会被加载 //内部类一定是要在方法调用之前初始化 //巧妙地避免了线程安全问题 //这种形式兼顾饿汉式的内存浪费,也兼顾synchronized性能问题 //完美地屏蔽了这两个缺点 //史上最牛B的单例模式的实现方式 * Created by Landy on 2018/8/20. */ public class LazyThree { //如果去掉static,...
848
711
<gh_stars>100-1000 package com.java110.intf.store; import com.java110.config.feign.FeignConfiguration; import com.java110.dto.contractTypeSpec.ContractTypeSpecDto; import com.java110.po.contractTypeSpec.ContractTypeSpecPo; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.anno...
747
1,418
package aima.core.probability.bayes.exact; import java.util.HashMap; import java.util.List; import java.util.Map; import aima.core.probability.CategoricalDistribution; import aima.core.probability.RandomVariable; import aima.core.probability.bayes.BayesInference; import aima.core.probability.bayes.BayesianNe...
3,019
1,244
<reponame>omeranson/musl #undef __WORDSIZE #define __WORDSIZE 32 #define R15 0 #define R14 1 #define R13 2 #define R12 3 #define RBP 4 #define RBX 5 #define R11 6 #define R10 7 #define R9 8 #define R8 9 #define RAX 10 #define RCX 11 #define RDX 12 #define RSI 13 #define RDI ...
266
594
/* Test that __builtin_prefetch does no harm. Prefetch using all valid combinations of rw and locality values. These must be compile-time constants. */ #define NO_TEMPORAL_LOCALITY 0 #define LOW_TEMPORAL_LOCALITY 1 #define MODERATE_TEMPORAL_LOCALITY 1 #define HIGH_TEMPORAL_LOCALITY 3 #define WRITE_ACCESS 1 #d...
682
3,631
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
488
471
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/dcprint.h // Purpose: wxPrinterDC class // Author: <NAME> // Modified by: // Created: 1998-01-01 // Copyright: (c) <NAME> // Licence: wxWindows licence ////////////////////////////////////////////////...
487
2,389
<reponame>Ankit01Mishra/java package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; import java.lang.Boolean; public class V1HostAliasBuilder extends io.kubernetes.client.openapi.models.V1HostAliasFluentImpl<io.kubernetes.client.openapi.models.V1HostA...
1,025
441
<reponame>vinhig/rbfx // File: crn_dxt5a.cpp // See Copyright Notice and license at the end of inc/crnlib.h #include "crn_core.h" #include "crn_dxt5a.h" #include "crn_ryg_dxt.hpp" #include "crn_dxt_fast.h" #include "crn_intersect.h" namespace crnlib { dxt5_endpoint_optimizer::dxt5_endpoint_optimizer() : m_pParams(...
2,598
432
<reponame>suhaowen/high-java<filename>src/main/java/com/changyu/foryou/model/FoodWithSales.java<gh_stars>100-1000 package com.changyu.foryou.model; public class FoodWithSales { private Long foodId; private String foodName; private Integer sales; public Long getFoodId() { return foodId; } public void setFoodId(...
229
728
<gh_stars>100-1000 /* * Copyright 2020 MongoDB, 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 applicabl...
1,844
324
<reponame>tormath1/jclouds<filename>apis/ec2/src/main/java/org/jclouds/ec2/options/DescribeRegionsOptions.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 own...
805
4,036
typedef unsigned long size_t; void * operator new[](size_t count, int arg1, int arg2); template<typename T> void callNew(T arg) { new(2, 3) int[5]; } void callCallNew() { callNew(1); }
84
1,014
<filename>Database/Equities/Countries/Denmark/Industries/Industrial Distribution.json { "AOJ-P.CO": { "short_name": "Brdr. A & O Johansen prf. A/S", "long_name": "Br\u00f8drene A & O Johansen A/S", "summary": "Br\u00c3\u00b8drene A & O Johansen A/S, together with its subsidiaries, sells ...
522
1,355
// Copyright (c) 2018 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifndef INCLUDE_JET_IMPLICIT_SURFACE3_H_ #define INCLUDE_JET_IMPLICIT_SURFACE3_H_ #include <jet/surface3.h...
449