max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
435
{ "copyright_text": "Standard YouTube License", "description": "PyData SF 2016\n\nPython is a great tool for performing data analysis, but often time the hardest part is getting access to your data that\u2019s located in a variety of business systems - files, database, and SaaS applications. Productionizing this pr...
414
852
<reponame>malbouis/cmssw /* * ProcessorBase.h * * Created on: Jul 28, 2017 * Author: kbunkow */ #ifndef L1T_OmtfP1_PROCESSORBASE_H_ #define L1T_OmtfP1_PROCESSORBASE_H_ #include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/GoldenPatternBase.h" #include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/OMTFCo...
818
1,144
package de.metas.product.impl; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import de.metas.acct.api.AcctSchema; import de.metas.acct.api.IAcctSchemaDAO; import de.metas.costing.CostingLevel; import de.metas.costing.IProdu...
5,672
56,632
<gh_stars>1000+ // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "precomp.hpp" #include "opencv2/dnn.hpp" #include <algorithm> namespace cv { class FaceRecognize...
3,867
2,144
/** * 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...
1,567
1,770
package com.willowtreeapps.hyperion.sharedpreferences.detail.viewholder; import android.content.SharedPreferences; import android.view.KeyEvent; import android.view.View; import android.widget.EditText; import android.widget.TextView; import com.willowtreeapps.hyperion.sharedpreferences.R; public class StringPrefere...
570
480
<gh_stars>100-1000 /* Copyright (c) 2011 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, n...
3,096
3,017
package sagan.site.projects.support; import java.time.LocalDate; import org.springframework.util.Assert; /** * The support timeline for a {@link sagan.site.projects.ProjectGeneration}, given a defined {@link SupportPolicy}. * A timeline is made of two {@link SupportPeriod}: open source support and commercial suppo...
632
2,151
<reponame>zipated/src<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 "extensions/browser/api/declarative_net_request/declarative_net_request_api.h" #include <utility> #include...
1,831
881
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-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 co...
320
854
<reponame>timxor/leetcode-journal<gh_stars>100-1000 __________________________________________________________________________________________________ class Solution { public: TreeNode* str2tree(string s) { if (s.empty()) return NULL; auto found = s.find('('); int val = (found == string::npo...
900
12,278
<gh_stars>1000+ // Copyright <NAME> 2015. // Use, modification and distribution are subject to 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) #ifdef _MSC_VER # pragma warning(disable : 4756) // overflow in constant arithmetic /...
1,196
2,151
<filename>chrome/browser/ui/app_list/internal_app/internal_app_model_builder.h // 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 CHROME_BROWSER_UI_APP_LIST_INTERNAL_APP_INTERNAL_APP_MODEL_BUILDER_H...
326
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "value_type.h" #include "value_type_spec.h" #include <algorithm> #include <cassert> namespace vespalib::eval { namespace { using Dimension = ValueType::Dimension; using DimensionList = std::vector<Dimen...
4,685
381
<reponame>wslblb/TestChat package chen.testchat.util; import android.app.Activity; import android.app.LoaderManager; import android.content.CursorLoader; import android.content.Loader; import android.database.Cursor; import android.os.Bundle; import android.provider.MediaStore; import java.io.File; import java.util.A...
4,330
417
<gh_stars>100-1000 {"name":{"common":"Argentina","official":"Argentine Republic","native":{"grn":{"common":"Argentina","official":"Argentine Republic"},"spa":{"common":"Argentina","official":"República Argentina"}}},"demonym":"Argentinean","capital":"Buenos Aires","iso_3166_1_alpha2":"AR","iso_3166_1_alpha3":"ARG","iso...
560
817
##################################################### # Copyright (c) <NAME> [GitHub D-X-Y], 2021.03 # ##################################################### # pytest tests/test_loader.py -s # ##################################################### import unittest import tempfile import torch from xaut...
286
364
<reponame>xiaobing007/dagli package com.linkedin.dagli.nn.result; import com.linkedin.dagli.annotation.equality.ValueEquality; import com.linkedin.dagli.math.mdarray.MDArray; import com.linkedin.dagli.math.vector.DenseVector; import com.linkedin.dagli.transformer.AbstractPreparedTransformer1WithInput; import java.util...
521
7,766
package com.springboot.cloud.file.exception; import com.springboot.cloud.common.core.exception.BaseException; import com.springboot.cloud.common.core.exception.ErrorType; /** * @author fengdan * @date 2021年07月01日 14:38 */ public class MinioFileException extends BaseException { public MinioFileException() { ...
220
684
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
698
344
<filename>src/net/dcsctp/packet/bounded_byte_writer_test.cc /* * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property right...
529
2,151
// Copyright (c) 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_SPDY_PLATFORM_API_SPDY_STRING_H_ #define QUICHE_SPDY_PLATFORM_API_SPDY_STRING_H_ #include "net/spdy/platform/impl/spdy_string_impl.h" ...
178
1,356
package org.cloud.sonic.controller.models.enums; import java.io.Serializable; /** * @author JayWenStar * @date 2022/3/13 1:49 下午 */ public enum ConditionEnum implements SonicEnum<Integer>, Serializable { /** * 非条件 */ NONE(0, "none"), /** * if 条件 */ IF(1, "if"), /** *...
378
14,668
<reponame>chromium/chromium // 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. #include "chrome/test/base/always_on_top_window_killer_win.h" #include "base/memory/raw_ptr.h" #include <Windows.h> #include...
3,142
1,139
<filename>Android/HelloMVP/app/src/main/java/com/journaldev/hellomvp/MainContract.java<gh_stars>1000+ package com.journaldev.hellomvp; /** * Created by anupamchugh on 11/08/17. */ public interface MainContract { interface MainView { void showProgress(); void hideProgress(); void setQu...
253
2,996
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.rendering.gltf.model; /** * Details where to source the override values */ public class GLTFSparseValues { private int bufferView; private int byteOffset; /** * @return The offset when r...
199
565
#!/usr/bin/env python # -*- coding: utf-8 -*- """Integration tests for tvae. These tests only ensure that the software does not crash and that the API works as expected in terms of input and output data formats, but correctness of the data values and the internal behavior of the model are not checked. """ import pan...
956
2,151
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" // Draws big rects with clip (0, 0, 35, 35). The size of the rects is given by big. static void draw_big_rect(SkCanvas* canvas, SkScalar big, const SkPaint& r...
1,544
1,403
<gh_stars>1000+ package org.dynmap.bukkit.helper.v116_2; import org.bukkit.block.Biome; import org.bukkit.craftbukkit.v1_16_R2.CraftWorld; import java.io.IOException; import java.util.Arrays; import org.bukkit.ChunkSnapshot; import org.bukkit.World; import org.dynmap.DynmapChunk; import org.dynmap.DynmapCore; import...
9,593
389
<filename>gosu-test/src/test/java/gw/specContrib/statements/usesStatement/MuhJavaClass.java package gw.specContrib.statements.usesStatement; /** */ public class MuhJavaClass<T> { public static <T> T staticFunc( T t ) { return t; } }
95
3,084
/*++ Copyright (C) Microsoft Corporation, All Rights Reserved Module Name: Internal.h Abstract: This module contains the local type definitions for the UMDF Skeleton driver sample. Environment: Windows User-Mode Driver Framework (WUDF) --*/ #pragma once #ifndef ARRAY_SIZE ...
1,091
732
#include <stdio.h> void reverse_int_array(int * data, unsigned int dataobjs) { int i, t; for(i=0; i<dataobjs/2; i++) { t = *(data+i); *(data+i) = *(data+dataobjs-1-i); *(data+dataobjs-1-i) = t; } } void reverse_int_ptr_array(int **ptrs, unsigned int ptrobjs) { int *t; int i; ...
334
17,703
<reponame>dcillera/envoy #pragma once #include "envoy/upstream/retry.h" #include "test/integration/test_host_predicate.h" #include "gmock/gmock.h" namespace Envoy { class TestHostPredicateFactory : public Upstream::RetryHostPredicateFactory { public: std::string name() const override { return "envoy.test_host_pre...
320
884
{ "documentVersion": "2.3", "jsonSchemaSemanticVersion": "1.0.0", "imports": [ { "corpusPath": "/core/cdsConcepts.cdm.json" }, { "corpusPath": "/core/wellKnownCDSAttributeGroups.cdm.json" }, { "corpusPath": "/core/applicationCommon/foundationCommon/crmCommon/accelerators/nonP...
732
1,031
import typemap_template_parms.*; public class typemap_template_parms_runme { static { try { System.loadLibrary("typemap_template_parms"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentati...
228
32,544
package com.baeldung.configurationproperties; import org.springframework.core.env.Environment; import org.springframework.beans.factory.annotation.*; import org.springframework.context.annotation.*; @Configuration public class DatabaseConfig { @Autowired private Environment env; @Bean(name="dataSource") ...
210
1,144
package de.metas.handlingunits.storage.impl; /* * #%L * de.metas.handlingunits.base * %% * Copyright (C) 2015 metas GmbH * %% * 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 vers...
509
745
/* /~` _ _ _|_. _ _ |_ | _ \_,(_)| | | || ||_|(_||_)|(/_ https://github.com/Naios/continuable v4.1.0 Copyright(c) 2015 - 2020 <NAME> <denis.blank at outlook dot com> Permission is hereby granted, free of...
1,040
9,156
/** * 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...
1,381
317
#include "smack.h" #include <assert.h> // @expect verified int main(void) { int x = 0, y = 4; while (1) { x = x + y; y = y + 4; assert(x != 30); } return 0; }
90
1,063
<gh_stars>1000+ [ { "category": "``s3``", "description": "Update s3 client to latest version", "type": "api-change" }, { "category": "``dms``", "description": "Update dms client to latest version", "type": "api-change" }, { "category": "``rds``", "description": "Update r...
270
4,200
<filename>plugins/stub-plugin/src/main/java/com/dtolabs/rundeck/plugin/stub/StubNodeLog.java<gh_stars>1000+ package com.dtolabs.rundeck.plugin.stub; /** * @author greg * @since 6/19/17 */ public class StubNodeLog { }
93
864
/********************************************************************************************************************** This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich. Licensed under the BSD-2 license (see LICENSE file in main directory) ****************...
516
1,059
from utils import youtube_authenticate, get_video_id_by_url, get_channel_id_by_url def get_comments(youtube, **kwargs): return youtube.commentThreads().list( part="snippet", **kwargs ).execute() if __name__ == "__main__": # authenticate to YouTube API youtube = youtube_authe...
1,001
1,567
#include "utils/mem_pool.h" #include "gtest/gtest.h" TEST(MemPoolTest, Basic) { certain::MemPool pool(3, 5); std::cout << pool.ToString() << std::endl; ASSERT_TRUE(pool.Alloc(0) == NULL); char* p1 = pool.Alloc(3); char* p2 = pool.Alloc(4); char* p3 = pool.Alloc(5); char* p4 = pool.Alloc(3); char* p5 ...
538
5,169
{ "name": "AdamPodTest", "version": "0.1.7", "summary": "This pod is to test if pods work for us.", "homepage": "https://judgecardx.com", "authors": { "<NAME>": "<EMAIL>" }, "platforms": { "ios": "9.0" }, "source": { "http": "https://github.com/rajohns08/AdamPodFramework/archive/0.1.6.zip"...
322
363
package cn.sddman.download.mvp.v; import java.util.List; import cn.sddman.download.mvp.e.TorrentInfoEntity; public interface TorrentInfoView { void initTaskListView(List<TorrentInfoEntity> list); void itemClick(int index); void startTaskSuccess(); void startTaskFail(String msg); boolean getIsDown...
130
335
{ "word": "Only", "definitions": [ "And no one or nothing more besides; solely.", "No more than (implying that more was expected); merely.", "No longer ago than.", "Not until.", "With the negative or unfortunate result that.", "In an inevitable but undesirable way...
143
821
/* * Copyright (C) 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 ...
3,431
722
<filename>inference/flow/api/java/com/huawei/noah/TaskFlow.java<gh_stars>100-1000 /** * @file * @brief Java TaskFlow Class Document * * @copyright * @code * Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of ...
2,368
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/031/03108132.json {"nom":"Cazaux-Layrisse","circ":"8ème circonscription","dpt":"Haute-Garonne","inscrits":65,"abs":14,"votants":51,"blancs":1,"nuls":1,"exp":49,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":40},{"nuance":"REM","nom":"M. <NAME>","voix":...
139
1,056
<filename>java/java.source.base/test/unit/src/org/netbeans/modules/java/source/indexing/APTUtilsTest.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 owner...
5,268
861
/******************************************************************************* * Copyright 2014 Univocity Software 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://...
867
4,551
package org.robolectric.shadows; import static android.app.DownloadManager.Request; import static android.os.Build.VERSION_CODES.Q; import static com.google.common.truth.Truth.assertThat; import static org.robolectric.Shadows.shadowOf; import static org.robolectric.shadows.ShadowDownloadManager.ShadowRequest; import ...
2,298
634
<reponame>halotroop2288/consulo<gh_stars>100-1000 /* * Copyright 2013-2020 consulo.io * * 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 * ...
413
3,651
<reponame>aberdev/orientdb /* * * * Copyright 2010-2016 OrientDB LTD (http://orientdb.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....
2,495
665
/* * 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")...
1,123
2,959
from unittest.case import TestCase from unittest.mock import patch from click import ClickException from samcli.lib.utils import configuration class TestConfiguration(TestCase): def test_config_is_read(self): self.assertIsInstance(configuration.config, dict) self.assertIn("app_template_repo_commi...
415
361
/* * 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 ...
411
625
package java.nio.internal; public class MemoryBlock { }
18
357
/* * Copyright © 2018 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
1,637
1,350
<reponame>ppartarr/azure-sdk-for-java /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.cognitiveservices.visi...
1,192
340
<filename>ccron/test/include/ticks_generator_mocks.hpp<gh_stars>100-1000 // Concord // // Copyright (c) 2021 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the // "License"). You may not use this product except in compliance with the // Apache 2.0 License. // // T...
1,626
634
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.formatting; import com.intellij.openapi.util.InvalidDataException; import com.intellij.psi.codeStyle.CommonCodeStyleSettings; public enum ForceBraces { Ne...
300
777
// 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 "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h" #include <memory> #include <string> #include <utility> #include "...
9,108
837
package me.saket.dank.ui.submission; import static io.reactivex.android.schedulers.AndroidSchedulers.mainThread; import static io.reactivex.schedulers.Schedulers.io; import static me.saket.dank.utils.Views.executeOnMeasure; import android.graphics.Bitmap; import android.graphics.drawable.Animatable; import android.gr...
3,330
6,663
<filename>Cython/Utility/FunctionArguments.c //////////////////// ArgTypeTest.proto //////////////////// #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact) \ ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 : \ __Pyx__ArgTypeTest(obj, type, name, exact)) static in...
7,632
319
<filename>machine-learning/machine-learning/src/main/java/org/openimaj/ml/timeseries/TimeSeries.java /** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted p...
2,532
356
/* * Copyright 2015-2018 <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 or agreed t...
905
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...
5,245
1,738
<reponame>jeikabu/lumberyard /* * 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 provid...
702
887
<gh_stars>100-1000 /* * Copyright (C) 2015 Open Source Robotics Foundation * * 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 * * Unle...
635
386
/********************************************************************************* * * * The MIT License (MIT) * * ...
4,698
2,504
<reponame>nefeithu/behaviac // --------------------------------------------------------------------- // THIS FILE IS AUTO-GENERATED BY BEHAVIAC DESIGNER, SO PLEASE DON'T MODIFY IT BY YOURSELF! // --------------------------------------------------------------------- #ifndef _BEHAVIAC_MEMBER_VISITOR_H_ #define _BEHAVIA...
265
884
<reponame>slyoldfox/blaze-persistence /* * Copyright 2014 - 2021 Blazebit. * * 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 * * Unl...
588
3,013
<reponame>swt2c/wave<gh_stars>1000+ # Plot / Events / Routing # Handle #events on a #plot card using routing. # --- from h2o_wave import main, app, on, handle_on, Q, ui, data @on('pricing.select_marks') async def show_selected_marks(q: Q, marks: any): q.page['details'].content = f'You selected {marks}' await ...
540
3,294
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these source...
863
531
/* * Copyright (c) 2015-2021, www.dibo.ltd (<EMAIL>). * <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> * https://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required ...
356
1,362
package org.mitre.synthea.engine; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.mitre.synthea.engine.ExpressedSymptom.SymptomInfo; import org.mit...
4,608
703
#include <ToolsFoundation/ToolsFoundationPCH.h> #include <ToolsFoundation/Object/DocumentObjectManager.h> #include <ToolsFoundation/Object/DocumentObjectVisitor.h> ezDocumentObjectVisitor::ezDocumentObjectVisitor( const ezDocumentObjectManager* pManager, const char* szChildrenProperty /*= "Children"*/, const char* ...
764
402
<reponame>mortensen/flow package com.vaadin.flow.uitest.ui; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; import org.junit.Assert; import org.junit.Test; import org.openqa.selenium.JavascriptExecutor; import com.vaadin.flow.component.html.testbe...
1,584
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 "components/omnibox/browser/history_index_restore_observer.h" HistoryIndexRestoreObserver::HistoryIndexRestoreObserver(base::OnceClosure tas...
170
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...
8,966
372
<reponame>kbore/pbis-open /* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ...
1,425
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.timeseriesinsights.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLog...
905
2,327
<filename>10_pipeline/kubeflow/wip/dlc_archive/code/inference.py import json import subprocess import sys subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'tensorflow==2.1.0']) subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'transformers==2.8.0']) import tensorflow as tf from transformers ...
1,283
409
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright <NAME> (<EMAIL>) 2006-2016 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with or without mod...
1,395
431
<gh_stars>100-1000 { "name":"permissions", "label":"Permissions", "description":"Management of permissions and authorisation.", "version":"0.3.0", "homepage":"http://calip.so", "repository":{ "type":"git", "url":"git://github.com/cliftonc/calipso.git" }, "author":"<NAME> ...
150
369
<gh_stars>100-1000 /* * Copyright © 2014-2019 <NAME>, 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 appli...
5,799
713
<reponame>franz1981/infinispan package org.infinispan.persistence.jpa.impl; import org.infinispan.configuration.global.GlobalConfiguration; import org.infinispan.factories.GlobalComponentRegistry; import org.infinispan.factories.annotations.InfinispanModule; import org.infinispan.lifecycle.ModuleLifecycle; @Infinispa...
252
1,996
/** * UDP implementation */ #ifndef AMC_UDP_H #define AMC_UDP_H #include "util.h" #include <arpa/inet.h> #include <assert.h> #include <ctype.h> #include <fcntl.h> #include <limits.h> #include <list> #include <netdb.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string...
13,478
988
/* * Copyright 2018-2021 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "RG.h" #include "rg_matrix.h" GrB_Info RG_eWiseAdd // C = A + B ( RG_Matrix C, // input/output matrix for results const GrB...
905
965
<filename>docs/mfc/reference/codesnippet/CPP/cwnd-class_30.cpp // From message map for CMdiView, a CView-derived class ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, &CMdiView::OnToolTipNotify) ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, &CMdiView::OnToolTipNotify)
118
1,210
import unittest from pycoin.key.subpaths import subpaths_for_path_range from pycoin.symbols.btc import network class KeychainTest(unittest.TestCase): def test_keychain(self): keychain = network.keychain() bip32_list = [network.keys.bip32_seed(_) for _ in [b"foo", b"bar"]] for bip32 in bi...
390
413
<gh_stars>100-1000 __author__ = 'Robert' """ from: http://stackoverflow.com/questions/20317314/python-function-in-a-while-loop-ruining-it-for-me """ import sys sys.path.append('..') import easygui as eg def get_user_input(target_value, dice_rolls): operator_choices = ['+', '-', '*', '/'] operator_choices.e...
832
348
{"nom":"Saint-Claude","circ":"4ème circonscription","dpt":"Guadeloupe","inscrits":8101,"abs":5967,"votants":2134,"blancs":83,"nuls":65,"exp":1986,"res":[{"nuance":"SOC","nom":"Mme <NAME>","voix":799},{"nuance":"LR","nom":"Mme <NAME>","voix":237},{"nuance":"DVD","nom":"<NAME>","voix":204},{"nuance":"FI","nom":"<NAME>","...
383
1,302
#pragma once #include <webrtc/api/peer_connection_interface.h> // IWYU pragma: no_include "src/enums/macros/impls.h" #define ICE_TRANSPORTS_TYPE webrtc::PeerConnectionInterface::IceTransportsType #define ICE_TRANSPORTS_TYPE_NAME "RTCIceTransportPolicy" #define ICE_TRANSPORTS_TYPE_LIST \ ENUM_SUPPORTED(ICE_TRANSPOR...
292
412
#include <assert.h> #include <stdlib.h> #ifdef _MSC_VER # define _Static_assert(x, m) static_assert(x, m) #endif struct list; typedef struct list list_nodet; list_nodet fill_node(signed int depth_tag_list); struct list { int datum; struct list *next; }; int max_depth = 2; list_nodet *build_node(int depth) {...
399
915
<filename>chi_annotator/task_center/cmds.py<gh_stars>100-1000 import datetime from chi_annotator.task_center.common import Command from chi_annotator.task_center.common import DBLinker from chi_annotator.algo_factory.common import Message, TrainingData from chi_annotator.task_center.model import Trainer, Interpreter ...
3,758
788
/* * Copyright (C) 2019 Trinity. All rights reserved. * Copyright (C) 2019 <NAME> <<EMAIL>> * * 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/LIC...
914