max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
9,959
<reponame>aoztaskin/lombok //version 8: public class WithByInAnonymousClass { Object annonymous = new Object() { class Inner { private Inner(String string) { } private String string; @java.lang.SuppressWarnings("all") public Inner withStringBy(final java.util.function.Function<? super String, ? ext...
146
722
import pytest ignored_warnings = [ "ignore:Could not log computational graph since", "ignore:The dataloader, val dataloader", "ignore:The dataloader, train dataloader", ] pytestmark = pytest.mark.filterwarnings(*ignored_warnings)
88
1,483
<reponame>Mu-L/Lealone /* * Copyright Lealone Database Group. * Licensed under the Server Side Public License, v 1. * Initial Developer: zhh */ package org.lealone.storage.replication; import java.util.List; import org.lealone.db.CommandParameter; import org.lealone.db.value.Value; public class ReplicationComman...
729
636
<filename>modules/chempy/mmd.py #A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* copyright 1998-2000 by <NAME> of DeLano Scientific. #D* ------------------------------------------------------------------- #E* It is unlawful to ...
3,943
326
<filename>scripts/dev_setup.py # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------...
543
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...
615
672
/* * Copyright (c) 2011 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except ...
1,911
507
<filename>terrascript/data/tencentcloud.py<gh_stars>100-1000 # terrascript/data/tencentcloud.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:28:28 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.data.tencentcloud # # instead of # # >>> import terrascript.data.tencentcloudst...
154
715
# # Copyright 2019 The FATE 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 appli...
1,186
1,875
<reponame>imran631/teavm /* * 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 ...
522
14,668
// 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. #include "chrome/common/safe_browsing/download_type_util.h" #include <algorithm> #include "base/feature_list.h" #include "base/files/file_path.h" #i...
2,235
5,169
{ "name": "CJNetwork", "version": "0.7.0-beta.5", "summary": "一个AFNetworking应用的封装(支持加解密、缓存、并发数控制)", "homepage": "https://github.com/dvlproad/CJNetwork", "license": "MIT", "authors": { "dvlproad": "<EMAIL>" }, "description": "- CJNetwork/CJNetworkCommon:AFN请求过程中需要的几个公共方法(包含请求前获取缓存、请求后成功与失败操作)\n- CJNe...
1,457
397
// // UITextField+Chat.h // samplechat // // Created by Injoit on 1/24/20. // Copyright © 2020 Quickblox. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UITextField (Chat) - (void)setPadding:(CGFloat)padding isLeft:(Boolean)isLeft; - (void)addShadowToTextFieldWithColor:(UICo...
162
892
{ "schema_version": "1.2.0", "id": "GHSA-8936-4f3c-vg7r", "modified": "2022-05-01T23:33:50Z", "published": "2022-05-01T23:33:50Z", "aliases": [ "CVE-2008-0856" ], "details": "Multiple SQL injection vulnerabilities in e-Vision CMS 2.02 allow remote attackers to execute arbitrary SQL commands via the id...
417
7,482
/*! * @file apm32f10x_emmc.c * * @brief This file provides all the EMMC firmware functions * * @version V1.0.1 * * @date 2021-03-23 * */ #include "apm32f10x_emmc.h" #include "apm32f10x_rcm.h" /** @addtogroup Peripherals_Library Standard Peripheral Library @{ */ /** @addtogroup EMMC_Driver ...
11,710
1,197
<gh_stars>1000+ /** * Copyright (c) 2014 ControlsFX * 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 lis...
6,769
1,443
<filename>users/ruucm.json { "copyright": "ruucm, http://ruucm.work", "url": "http://ruucm.work", "email": "<EMAIL>", "gravatar": true }
66
3,714
""" --- title: Layer Normalization summary: > A PyTorch implementation/tutorial of layer normalization. --- # Layer Normalization This is a [PyTorch](https://pytorch.org) implementation of [Layer Normalization](https://papers.labml.ai/paper/1607.06450). ### Limitations of [Batch Normalization](../batch_norm/index.h...
2,110
1,893
<reponame>neuml/txtai """ Version string """ __version__ = "4.0.0"
31
1,473
<gh_stars>1000+ /* * Central Repository * * Copyright 2021 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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,170
634
<filename>modules/base/platform-impl/src/main/java/com/intellij/ui/HideableDetailsUnderSeparator.java<gh_stars>100-1000 /* * Copyright 2000-2011 JetBrains s.r.o. * * 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...
594
848
<filename>misc/config_tools/config_app/acrn_configurator.py<gh_stars>100-1000 # Copyright (C) 2019 Intel Corporation. # SPDX-License-Identifier: BSD-3-Clause """Entry for config app. """ import os import sys import threading import webbrowser # flask: Copyright 2010 Pallets # SPDX-License-Identifier: BSD-3-Clause #...
647
988
<reponame>Gegy/DataFixerUpper package com.mojang.datafixers.util; import java.util.function.BiFunction; import java.util.function.Function; public interface Function10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R> { R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10); default Functi...
1,285
572
<reponame>wbaby/DebugViewPP<filename>Libraries/PropertyGrid/resource.h //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by PropertyControlTest.rc // #define IDD_ABOUTBOX 100 #define IDR_MAINFRAME 128 #define IDD_MAINDLG 129 #define IDS_TRUE 129 #define IDS_FALSE 130 #define I...
281
1,444
<reponame>amc8391/mage package org.mage.test.cards.abilities.other; import mage.constants.PhaseStep; import mage.constants.Zone; import mage.counters.CounterType; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * @author JayDi85 */ public class OathOfKayaTest extends CardTestPlay...
1,274
1,787
<reponame>jagjeetsm/cloud-custodian { "status_code": 400, "data": { "Error": { "Message": "Repository policy does not exist for the repository with name 'nginx' in the registry with id '644160558196'", "Code": "RepositoryPolicyNotFoundException" }, "ResponseMetada...
187
573
// Copyright 2015, VIXL authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions ...
10,469
2,816
<filename>third_party/snowball/src_c/stem_UTF_8_spanish.cpp /* Generated by Snowball 2.0.0 - https://snowballstem.org/ */ #include "../runtime/header.h" #ifdef __cplusplus extern "C" { #endif extern int spanish_UTF_8_stem(struct SN_env * z); #ifdef __cplusplus } #endif static int r_residual_suffix(struct SN_env * z);...
20,932
6,457
<gh_stars>1000+ // License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2020 Intel Corporation. All Rights Reserved. //#cmake:add-file log-common.h #include "log-common.h" TEST_CASE( "Logging C++ DEBUG", "[log]" ) { size_t n_callbacks = 0; auto callback = [&]( rs2_log_severity severity, ...
254
1,624
from openselfsup.utils import build_from_cfg from .registry import HOOKS def build_hook(cfg, default_args=None): return build_from_cfg(cfg, HOOKS, default_args)
59
892
{ "schema_version": "1.2.0", "id": "GHSA-6x9q-xfp2-gxg6", "modified": "2022-04-30T18:20:02Z", "published": "2022-04-30T18:20:02Z", "aliases": [ "CVE-2002-0852" ], "details": "Buffer overflows in Cisco Virtual Private Network (VPN) Client 3.5.4 and earlier allows remote attackers to cause a denial of s...
379
482
<filename>code/framework/api/src/main/java/io/cattle/platform/api/auth/impl/OptionCallback.java package io.cattle.platform.api.auth.impl; public interface OptionCallback { String getOption(); }
66
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 ...
3,982
14,668
<filename>components/segmentation_platform/internal/execution/model_execution_manager_factory.cc // 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. #include "components/segmentation_platform/internal/execu...
1,033
455
<gh_stars>100-1000 package netflix.karyon.server.interceptor; import io.reactivex.netty.channel.Handler; import rx.Observable; import rx.functions.Action0; /** * @author <NAME> */ class TestableRequestRouter<I, O> implements Handler<I, O> { private volatile boolean called; private volatile boolean unsubscrib...
315
2,996
<filename>engine/src/main/java/org/terasology/engine/world/OnChangedBlock.java<gh_stars>1000+ // Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.world; import org.joml.Vector3i; import org.joml.Vector3ic; import org.terasology.engine.entitySystem.event.Eve...
350
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
402
312
<filename>app/src/main/java/kale/easydialog/MainActivity.java package kale.easydialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.BitmapFactory; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.BottomSheetBehav...
4,156
14,668
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "build/build_config.h" #include "extensions/shell/test/shell_apitest.h" using BluetoothShellApiTest = extensions::ShellApiTest; // TODO(crbug.c...
217
60,067
<filename>benchmarks/distributed/rpc/parameter_server/trainer/iteration_steps.py def basic_iteration_step(self, ddp_model, criterion, optimizer, hook_state, epoch, index, batch): r""" A function that performs an iteration of training. Args: ddp_model (nn.Module): distributed data parallel model ...
428
602
package org.corfudb.runtime.object; import org.corfudb.annotations.*; import java.util.concurrent.atomic.AtomicInteger; /** * Created by mwei on 6/22/16. */ @CorfuObject(objectType = ObjectType.SMR, constructorType = ConstructorType.RUNTIME, stateSource = StateSource.SELF ) public class TestClassUs...
414
854
<gh_stars>100-1000 __________________________________________________________________________________________________ sample 116 ms submission import string class WordDictionary(dict): allowed = {*string.ascii_lowercase} def __init__(self): """ Initialize your data structure here. ...
1,330
778
// ============================================================================== // KratosShapeOptimizationApplication // // License: BSD License // license: ShapeOptimizationApplication/license.txt // // Main authors: <NAME>, https://github.com/armingeiser // // =======================...
964
327
<reponame>yosianonymous31/MobileGuard<gh_stars>100-1000 package com.ittianyu.mobileguard.activity; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.os.Environment; import android.os...
7,875
5,823
<filename>shell/platform/fuchsia/flutter/software_surface.h<gh_stars>1000+ // 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. #pragma once #include <fuchsia/sysmem/cpp/fidl.h> #include <fuchsia/ui/composit...
1,508
852
<gh_stars>100-1000 # cfi file to produce the L1 GT keys for records managed via RUN SETTINGS import FWCore.ParameterSet.Config as cms l1GtRsObjectKeysOnline = cms.ESProducer("L1GtRsObjectKeysOnlineProd", onlineAuthentication = cms.string('.'), subsystemLabel = cms.string(''), onlineDB = cms.string('oracle:...
276
595
<filename>lib/sw_apps/imgsel/src/xis_qspi.c /****************************************************************************** * Copyright (c) 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /****************************...
17,479
348
<filename>docs/data/leg-t1/973/97302304.json {"nom":"Kourou","circ":"2ème circonscription","dpt":"Guyane","inscrits":9788,"abs":7126,"votants":2662,"blancs":88,"nuls":43,"exp":2531,"res":[{"nuance":"REG","nom":"<NAME>","voix":699},{"nuance":"DVG","nom":"<NAME>","voix":661},{"nuance":"REM","nom":"<NAME>","voix":454},{"n...
217
2,206
<reponame>YunLemon/speedment<filename>runtime-parent/runtime-compute/src/test/java/com/speedment/runtime/compute/ToEnumTest.java /* * * Copyright (c) 2006-2020, Speedment, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); You may not * use this file except in compliance ...
1,394
494
/** * Copyright 2013 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 applicable law or agreed ...
504
771
from setuptools import setup, find_packages def build_native(spec): # Step 1: build the rust library build = spec.add_external_build( cmd=['cargo', 'build', '--release'], path='./rust' ) # Step 2: add a cffi module based on the dylib we built # # We use lambdas here for dylib a...
390
14,668
<filename>extensions/browser/api/declarative_net_request/rules_count_pair.h<gh_stars>1000+ // 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 EXTENSIONS_BROWSER_API_DECLARATIVE_NET_REQUEST_RULES_CO...
484
1,273
<filename>external/tf_approxmatch.cpp<gh_stars>1000+ #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include <algorithm> #include <vector> #include <math.h> using namespace tensorflow; REGISTER_OP("ApproxMatch") .Input("xyz1: float32") .Input("xyz2: float32") .Output("matc...
6,814
466
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CXformImplementTVFNoArgs.h // // @doc: // Implement logical TVF with a physical TVF with no arguments //--------------------------------------------------------------...
451
507
<filename>terrascript/fortimanager/r.py # terrascript/fortimanager/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class fortimanager_dvm_cmd_add_device(terrascript.Resource): ...
9,805
746
<gh_stars>100-1000 package proton.inject; import javax.inject.Inject; import android.accounts.AccountManager; import android.app.Application; import android.test.AndroidTestCase; public class AccountManagerInjectionTest extends AndroidTestCase { private Injector mInjector; @Override protected void setUp() throws...
252
339
<filename>convlab2/dst/comer/multiwoz/__init__.py from convlab2.dst.comer.multiwoz.comer import ComerTracker as COMER
49
566
try: from importlib.metadata import PackageNotFoundError, version except ImportError: from importlib_metadata import PackageNotFoundError, version try: __version__ = version("django-configurations") except PackageNotFoundError: # package is not installed __version__ = None
85
1,213
/* * Copyright (c) 2021. https://github.com/geemion * 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...
1,628
5,169
<filename>Specs/0/9/8/GYCalendar/1.1.1/GYCalendar.podspec.json { "name": "GYCalendar", "version": "1.1.1", "summary": "A little kit of calendar which you can custom-made", "homepage": "https://github.com/ShinyG", "license": "MIT", "authors": { "ShinyG": "<EMAIL>" }, "source": { "git": "https://g...
227
14,668
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_INTERRUPT_REASONS_H_ #define COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_INTERRUPT_REASONS_H_ #include ...
302
3,142
<filename>tests/rest_api/utils/dump_objects.py<gh_stars>1000+ import os import requests import json import config with requests.Session() as session: session.auth = ('admin1', config.USER_PASS) for obj in ['user', 'project', 'task', 'job', 'organization', 'membership', 'invitation']: response ...
214
879
<filename>header/src/main/java/org/zstack/header/network/l2/APIAttachL2NetworkToClusterEvent.java package org.zstack.header.network.l2; import org.zstack.header.message.APIEvent; import org.zstack.header.rest.RestResponse; /** * @apiResult api event for message :ref:`APIAttachL2NetworkToClusterMsg` * @category l2ne...
790
2,406
<reponame>monroid/openvino // Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "default_opset.hpp" #include "ngraph/node.hpp" #include "onnx_import/core/node.hpp" #include "utils/variadic.hpp" namespace ngraph { namespace onnx_import { namespace op { namespace...
275
421
//<Snippet1> // This example demonstrates a thread-safe method that adds to a // running total. It cannot be run directly. You can compile it // as a library, or add the class to a project. #using <system.dll> using namespace System::Threading; public ref class ThreadSafe { private: // totalValue ...
786
428
<reponame>sjoner/AnoleFix /* * Copyright (C) 2015 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 *...
6,268
852
import FWCore.ParameterSet.Config as cms ct2ct = cms.EDProducer("CaloTowersReCreator", # Weighting factor for EB EBWeight = cms.double(1.0), HBGrid = cms.vdouble(0.0, 2.0, 4.0, 5.0, 9.0, 20.0, 30.0, 50.0, 100.0, 1000.0), # energy scale for each subdetector (only Eb-Ee-Hb-He interpolations a...
1,485
777
<reponame>google-ar/chromium<filename>components/sync/model/entity_change.h // 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. #ifndef COMPONENTS_SYNC_MODEL_ENTITY_CHANGE_H_ #define COMPONENTS_SYNC_MODEL_E...
504
656
<filename>InvenTree/common/migrations/0002_auto_20190902_2304.py # Generated by Django 2.2.4 on 2019-09-02 23:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('common', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
177
356
/** * This sample package shows an example for how to integrate Proctor with Spring MVC */ package com.indeed.proctor.integration.sample;
37
668
/** * 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,826
852
<filename>TrackingTools/TrackAssociator/src/TAMuonSegmentMatch.cc<gh_stars>100-1000 #include "TrackingTools/TrackAssociator/interface/TAMuonSegmentMatch.h" #include "DataFormats/MuonDetId/interface/DTChamberId.h" #include "DataFormats/MuonDetId/interface/CSCDetId.h" #include "DataFormats/MuonDetId/interface/RPCDetId.h"...
167
486
/* * ARX: Powerful Data Anonymization * Copyright 2012 - 2021 <NAME> and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
1,247
382
/* * Copyright 2018 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 applicable law or agreed to ...
482
393
#ifndef INCLUDED_PORTAUDIO_CPPFUNCALLBACKSTREAM_HXX #define INCLUDED_PORTAUDIO_CPPFUNCALLBACKSTREAM_HXX // --------------------------------------------------------------------------------------- #include "portaudio.h" #include "portaudiocpp/CallbackStream.hxx" // ----------------------------------------------------...
881
4,403
<gh_stars>1000+ package cn.hutool.extra.expression.engine.jfireel; import cn.hutool.extra.expression.ExpressionEngine; import com.jfirer.jfireel.expression.Expression; import java.util.Map; /** * JfireEL引擎封装<br> * 见:https://gitee.com/eric_ds/jfireEL * * @since 5.5.0 * @author looly */ public class JfireELEngin...
216
437
<reponame>tayueliuxiang/spring-learning<gh_stars>100-1000 package com.brianway.learning.spring.ioc.beanfactory; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanPostProcessor; /** * Created by Brian on 2016/5/13. * BeanPostProcessor 实现类 * 在该类中,通过过滤条件只对 car Bean 进...
658
489
<filename>NMSSHTests/NMSSHSessionTests.h #import <XCTest/XCTest.h> @interface NMSSHSessionTests : XCTestCase @end
48
354
<filename>pyKriging/utilities.py<gh_stars>100-1000 __author__ = 'chrispaulson' import dill as pickle import numpy as np from copy import deepcopy def norm(x): # x = np.array(x, dtype=float) # return ((x-min(x))/(max(x)-min(x))) x = ((x)/(max(x)-min(x))) return x-min(x) def saveModel(model, filePath): ...
427
923
package core.cli; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import core.cli.client.handlers.CliActionProcessor; import core.cli.client.handlers.SharedVariablesCliActionHandler; import core.cli.client.handlers.TaskCliActionHandler; import core.conf...
1,075
1,056
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
2,420
314
/* * Copyright (c) <NAME> 2016. All Rights Reserved. * <p/> * 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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required...
4,303
1,018
<gh_stars>1000+ /* * Copyright 2013-2017 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 req...
633
9,136
<filename>examples/Importers/ImportMeshUtility/b3ImportMeshUtility.h<gh_stars>1000+ #ifndef B3_IMPORT_MESH_UTILITY_H #define B3_IMPORT_MESH_UTILITY_H #include <string> enum b3ImportMeshDataFlags { B3_IMPORT_MESH_HAS_RGBA_COLOR=1, B3_IMPORT_MESH_HAS_SPECULAR_COLOR=2, }; struct b3ImportMeshData { struct GLInstanceG...
382
458
<reponame>zijianjoy/ml-metadata /* Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
1,916
794
/****************************************************************************** * Author: <NAME> * * Contact: <EMAIL> * * License: Copyright (c) 2013 <NAME>, ANU. All rights reserved. * * ...
2,501
925
#include "argparse.h" #include <iostream> #include <sstream> #include "completion.h" #include "globals.h" using std::endl; using std::function; using std::pair; using std::string; using std::stringstream; /** * @brief try to parse the positional arguments and as many flags * as possible. When the last positional ...
5,209
322
<gh_stars>100-1000 /////////////////////////////////////////////////////////////////////////////// // BSD 3-Clause License // // Copyright (C) 2019-2020, LAAS-CNRS, University of Edinburgh // Copyright note valid unless otherwise stated in individual files. // All rights reserved. //////////////////////////////////////...
242
1,303
<reponame>oWASDo/OpenglEngine /**************************************************************************************** Copyright (C) 2015 Autodesk, Inc. All rights reserved. Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download, ...
3,633
1,169
<gh_stars>1000+ package com.zhengsr.viewpagerlib.bean; /** * @author by zhengshaorui on 2019/10/8 * Describe: RectIndicator 的自定义属性 */ public class RectBean { /** * 圆点默认颜色 */ public int normalColor = -2; /** * 圆点选中颜色 */ public int selectedColor = -2; /** * 矩形之间的margin ...
370
484
<filename>doc/src/snippets/boost-only/asio_integration.cpp /* Example of Outcome (C) 2017-2019 <NAME> <http://www.nedproductions.biz/> (3 commits) 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 in th...
2,580
3,083
<gh_stars>1000+ /* Copyright 2014 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
802
1,083
<filename>core/src/main/java/org/apache/carbondata/core/scan/collector/impl/AbstractScannedResultCollector.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 ow...
2,535
778
<gh_stars>100-1000 /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the...
3,313
6,958
// // ShapeReshape.cpp // MNN // // Created by MNN on 2019/01/10. // Copyright © 2018, Alibaba Group Holding Limited // #include "shape/SizeComputer.hpp" #include "core/Macro.h" #include "core/TensorUtils.hpp" namespace MNN { class FlattenComputer : public SizeComputer { public: // Ref: https://github.com/onn...
2,963
916
# # Author: <EMAIL> # Date: 01/25/2019 # import os import csv import copy from collections import OrderedDict,defaultdict,Sequence,Counter import numpy as np from ...utils import get_logger from ...utils import xtqdm as tqdm from ...data import example_to_feature from .metrics import * from ..models import SequenceCl...
1,505
1,505
import pandas as pd from fklearn.training.calibration import (isotonic_calibration_learner, find_thresholds_with_same_risk) def test_isotonic_calibration_learner(): df_train = pd.DataFrame({ 'id': ["id1", "id2", "id3", "id4"], "pred": [0.25, 0.64, 0.12, 0...
1,368
6,304
/* * Copyright 2019 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "modules/particles/include/SkParticleEffect.h" // Doesn't do anything important; just exists to show we can use modules/particles without the GPU // backend being ava...
135
19,046
/* * 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...
810
628
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; template <class T> int size(const T &x) { return x.size(); } const int INF = 2147483647; #define rep(i,a,b) for (__typeof(a) i=(a); i<(b); ++i) #define iter(it,c) for (__typeof(...
577