max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,494
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
7,295
3,178
<gh_stars>1000+ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2019/8/20 # @Author : github.com/guofei9987 import numpy as np from .base import SkoBase from abc import ABCMeta, abstractmethod from .operators import crossover, mutation, ranking, selection from .GA import GeneticAlgorithmBase, GA class ...
1,610
559
<reponame>jjYBdx4IL/Native_SDK<gh_stars>100-1000 /*! \brief Contains utility functions and helpers for working with OpenCL \file PVRUtils/OpenCL/OpenCLUtils.h \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #pragma once //!\cond NO_DOXYGEN #define...
8,588
375
<gh_stars>100-1000 package io.lumify.palantir.mr.mappers; import io.lumify.core.model.properties.LumifyProperties; import io.lumify.core.security.LumifyVisibility; import io.lumify.palantir.model.PtMediaAndValue; import io.lumify.palantir.util.TryInflaterInputStream; import io.lumify.web.clientapi.model.VisibilityJson...
1,718
60,067
#include <torch/csrc/distributed/rpc/tensorpipe_agent.h> #include <torch/csrc/distributed/rpc/tensorpipe_utils.h> #if defined(USE_TENSORPIPE) && !defined(USE_ROCM) #include <c10/cuda/CUDACachingAllocator.h> #include <c10/cuda/CUDAGuard.h> #include <c10/cuda/CUDAStream.h> #include <tensorpipe/tensorpipe.h> #include <...
1,585
330
# # External circuit with current control # import pybamm from .base_external_circuit import BaseModel, LeadingOrderBaseModel class CurrentControl(BaseModel): """External circuit with current control.""" def __init__(self, param): super().__init__(param) def get_fundamental_variables(self): ...
440
12,278
<reponame>randolphwong/mcsema<filename>boost/boost/spirit/home/support/argument.hpp /*============================================================================= Copyright (c) 2001-2011 <NAME> Copyright (c) 2001-2011 <NAME> Copyright (c) 2011 <NAME> Distributed under the Boost Software License, ...
3,351
3,380
<gh_stars>1000+ {"data": [{"title": "14.Paris_France", "paragraphs": [ {"context": "Paris is the city in France with over 2 million inhabitants. It is the capital of France.", "qas": [ {"answers": [{"answer_start": 1, "text": "Paris"}, {"answer_start": 1, "text": "Paris"}], "question": "What is the capital...
132
3,227
/*! \ingroup PkgBoxIntersectionDConcepts \cgalConcept The `BoxIntersectionTraits_d` concept is used for the intersection algorithms for sequences of iso-oriented boxes. This concept defines the access functions to the dimension, the `id`-number, and the boundaries of the boxes manipulated in these algorithms. \cgalRe...
719
850
from abc import ABC, abstractmethod import dateutil.parser from enum import Enum from metadata_comparison.lib.operation_ids import JsonObject, operation_id_to_api_version, \ PAPI_V1_API_VERSION, PAPI_V2_ALPHA1_API_VERSION, PAPI_V2_BETA_API_VERSION import re from typing import AnyStr, Dict, Iterator, Union class ...
4,642
14,668
// 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 "components/invalidation/impl/invalidation_prefs.h" namespace invalidation { namespace prefs { // The prefference for storing client ID for the...
192
1,804
from . import misc import twitter __all__ = ["misc", "twitter"] class API_TWITTER(): def __init__(self, path): self.__twitter_keys = misc.GetKeys(path) self.__api = twitter.Api(consumer_key=str(self.__twitter_keys['consumer_key']), consumer_secret=str(self.__twit...
281
2,759
<filename>src/SignalR/clients/cpp/src/signalrclient/negotiation_response.h // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. #pragma once #include "cpprest/details/basic_types.h" namespace signalr { ...
151
5,079
#!/usr/bin/env python """ setup.py file for SWIG example """ from setuptools import setup, Extension sasl_module = Extension('_saslwrapper', sources=['sasl/saslwrapper.cpp', "sasl/saslwrapper_wrap.cxx"], include_dirs=["sasl"], libraries...
410
1,421
<reponame>qnob/spark-testing-base package com.holdenkarau.spark.testing; import java.io.Serializable; public class BasicMagic implements Serializable { private String name; private double power; public BasicMagic(String name, double power) { this.name = name; this.power = power; } public String ge...
183
348
{"nom":"Thorigné-Fouillard","circ":"2ème circonscription","dpt":"Ille-et-Vilaine","inscrits":6183,"abs":3195,"votants":2988,"blancs":320,"nuls":80,"exp":2588,"res":[{"nuance":"MDM","nom":"<NAME>","voix":2036},{"nuance":"LR","nom":"<NAME>","voix":552}]}
104
485
<gh_stars>100-1000 # -*- coding: utf-8 -*- """CMS dataset handling """ # Author: <NAME> <<EMAIL>> # License: BSD 2 clause import os import pandas as pd import numpy as np from tqdm import tqdm from pyhealth.data.base_cms import CMS_Data from pyhealth.utils.utility import read_csv_to_df from pyhealth.utils.utility i...
3,898
666
<reponame>maniacs-satm/wasp<filename>wasp/src/main/java/com/orhanobut/wasp/http/PUT.java<gh_stars>100-1000 package com.orhanobut.wasp.http; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.METHOD; import s...
202
5,215
/*- * Copyright 2010 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 in ...
1,596
65,488
[{ "code": "invalid-animation", "message": "An element that uses the animate directive must be the sole child of a keyed each block", "start": { "line": 6, "column": 6, "character": 77 }, "end": { "line": 6, "column": 17, "character": 88 }, "pos": 77 }]
113
537
package com.zx.sms.codec.smgp.codec; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.MessageToMessageCodec; import java.util.List; import com.zx.sms.codec.smgp.msg.SMGPActiveTestMessage; import com.zx.sms.codec.sm...
1,333
613
package com.interest.service.impl; import com.interest.dao.UserGithubDao; import com.interest.model.entity.UserGithubEntity; import com.interest.service.UserGithubService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class UserGithubServ...
167
439
/** * Baidu.com,Inc. * Copyright (c) 2000-2013 All Rights Reserved. */ package com.baidu.hsb.parser.ast.stmt.dal; import com.baidu.hsb.parser.ast.expression.primary.Identifier; import com.baidu.hsb.parser.visitor.SQLASTVisitor; /** * @author <EMAIL> */ public class ShowCreate extends DALShowStatement { /** e...
387
4,816
<reponame>mehrdad-shokri/retdec /** * @file tests/ctypes/parameter_tests.cpp * @brief Tests for the @c parameter module. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include <memory> #include <gtest/gtest.h> #include "retdec/ctypes/annotation_in.h" #include "retdec/ctypes/annotation_inout...
1,497
1,810
<filename>end_to_end_tests/data_finder_test.py<gh_stars>1000+ # Copyright 2021 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/l...
693
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_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ #include <str...
987
463
<filename>samples/remote_sample/api_helloworld.py from labml_remote.job import JOBS from labml_remote.server import SERVERS server = next(iter(SERVERS)) JOBS.create(server, 'python hello_world_sleep.py', {}, ['hello', 'master']).start() JOBS.create(server, 'python hello_world_sleep.py', {}, ['hello']).start()
106
5,865
<reponame>marques-work/gocd /* * Copyright 2021 ThoughtWorks, 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 requi...
2,029
835
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbQueryParameter(BaseType): def __init__(self, parameter_name=None, parameter_type=None, value=None): required = { "parameter_name": False, "parameter_type": False, "value": False, } self...
413
5,964
<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "config.h" #include "public/platform/WebDragData.h" #include "core/clipboard/DataObject.h" #include "public/platform/WebVector.h...
1,185
303
<gh_stars>100-1000 #include <stdio.h> int print_hash_value = 1; static void platform_main_begin(void) { } static unsigned crc32_tab[256]; static unsigned crc32_context = 0xFFFFFFFFUL; static void crc32_gentab (void) { unsigned crc; unsigned poly = 0xEDB88320UL; int i, j; for (i = 0; i < 256; i++) { crc = i; for...
27,478
3,073
<reponame>starsep/NewsBlur // // IASKPSTextFieldSpecifierViewCell.h // http://www.inappsettingskit.com // // Copyright (c) 2009: // <NAME>, Edovia Inc., http://www.edovia.com // <NAME>, FutureTap GmbH, http://www.futuretap.com // All rights reserved. // // It is appreciated but not required that you give credit...
283
8,205
/* * Copyright (c)2019 ZeroTier, Inc. * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file in the project's root directory. * * Change Date: 2025-01-01 * * On the date above, in accordance with the Business Source License, use * of this software will be governe...
4,763
6,989
from pybench import Test # First imports: import os import package.submodule class SecondImport(Test): version = 2.0 operations = 5 * 5 rounds = 40000 def test(self): for i in xrange(self.rounds): import os import os import os import os ...
1,461
18,012
<filename>dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/route/MeshEnvListener.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 ownershi...
385
1,682
<gh_stars>1000+ /* Copyright (c) 2012 LinkedIn Corp. 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,205
14,668
<filename>remoting/host/input_injector_chromeos.cc // 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 "remoting/host/input_injector_chromeos.h" #include <memory> #include <set> #include <string> ...
4,072
2,400
package org.optaplanner.examples.batchscheduling.domain; import org.optaplanner.examples.common.domain.AbstractPersistable; import com.thoughtworks.xstream.annotations.XStreamAlias; @XStreamAlias("PipeSegment") public class Segment extends AbstractPersistable { private Batch batch; private RoutePath routePa...
540
2,788
from django.urls import path from .views import IdentityViewSet, PersonViewSet person_list = PersonViewSet.as_view({ 'get': 'list', 'post': 'create' }) person_detail = PersonViewSet.as_view({ 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy' }) identity_detail = IdentityViewSet.as...
230
344
<reponame>jsaynysa/Ksiazka<filename>src/common/IvCollision/IvBoundingSphere.h //=============================================================================== // @ IvBoundingSphere.h // // Bounding sphere class // ------------------------------------------------------------------------------ // Copyright (C) 2008-201...
1,120
3,301
package com.alibaba.alink.operator.batch.recommendation; import org.apache.flink.types.Row; import com.alibaba.alink.common.MLEnvironmentFactory; import com.alibaba.alink.operator.batch.BatchOperator; import com.alibaba.alink.operator.common.recommendation.Zipped2KObjectBatchOp; import com.alibaba.alink.testutil.Alin...
582
338
package com.tvd12.ezyfoxserver.testing.wrapper; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.util.concurrent.atomic.AtomicLong; import org.testng.annotations.Test; import com.tvd12.ezyfoxserver.entity.EzyAbstractSession; import com.tvd12.ezyfoxserver.service.impl.EzySi...
1,319
1,006
<filename>include/nuttx/wireless/spirit.h /**************************************************************************** * include/nuttx/wireless/spirit.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for ad...
870
453
<reponame>nlewycky/x64asm /* Copyright 2013-2015 Stanford University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
10,769
1,527
<reponame>eduardoveiga/mesalink<filename>examples/client/client_win.c #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #include <iphlpapi.h> #include <stdio.h> #include <mesalink/openssl/ssl.h> #pragma comment(lib, "Ws2_32.lib") #pragma co...
1,525
581
/****************************************************************************** * Copyright (c) 2017 <NAME>. * All rights reserved. This program and the accompanying materials are made * available under the terms of LICENSE.txt. * * Contributors: * <NAME> and others ******************************************...
136
4,145
# Copyright (c) 2021, NVIDIA CORPORATION. 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,984
539
<gh_stars>100-1000 /* * Copyright (c) 2015, EURECOM (www.eurecom.fr) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright no...
8,324
14,668
// Copyright 2019 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.browser.offlinepages; import android.support.test.InstrumentationRegistry; import androidx.test.filters.SmallTest; import o...
3,535
1,909
package org.knowm.xchange.bitflyer.dto.trade; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; import java.math.RoundingMode; import org.knowm.xchange.bitflyer.BitflyerUtils; import org.knowm.xchange.currency.CurrencyPair; import or...
1,831
1,847
<gh_stars>1000+ // Copyright (c) 2020 The Orbit 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 "OrbitGgp/Account.h" #include <QJsonArray> #include <QJsonDocument> #include <QJsonObject> #include "OrbitBase/Result.h" name...
397
678
<reponame>bzxy/cydia<filename>iOSOpenDev/frameworks/OfficeImport.framework/Headers/WDArrayIterator.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/WDIterator.h> @class NSArray; __attribute__((visibil...
212
3,442
<reponame>wcicola/jitsi /* * 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 * * ...
1,054
526
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.datamanager.api; import org.odpi.openmetadata.accessservices.datamanager.metadataelements.*; import org.odpi.openmetadata.accessservices.datamanager.properties.*; import org.o...
25,218
350
<filename>talkback/src/main/java/com/google/android/accessibility/talkback/utils/AlertDialogAdaptiveContrast.java package com.google.android.accessibility.talkback.utils; import android.app.AlertDialog; import android.content.Context; import androidx.annotation.Nullable; import android.view.View; import android.widget...
663
427
<reponame>Polidea/SiriusObfuscator # Check that the package manager can build itself. This is really just testing # that the package manager included in this package is functional for a moderate # sized, real project. # # REQUIRES: have-swiftpm # # Make a sandbox dir. If you want to experiment with this test without wa...
298
907
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdio.h> #include <unistd.h> struct record { char name[24]; char * album; }; int main() { // Print Title puts("This is a Jukebox"); // Create the struct record struct record now_playing; strcpy(now_playing.name, "Simple ...
332
375
/* * This file is part of the Wayback archival access software * (http://archive-access.sourceforge.net/projects/wayback/). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); y...
3,501
17,703
load("@bazel_skylib//rules:write_file.bzl", "write_file") def json_data( name, data, visibility = ["//visibility:public"], **kwargs): """Write a bazel object to a file The provided `data` object should be json serializable. """ write_file( name = name, o...
202
887
<filename>deps/fcl/src/transform.cpp /* * Software License Agreement (BSD License) * * Copyright (c) 2011, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Red...
3,792
682
#include "tatum/base/validate_timing_graph_constraints.hpp" #include "tatum/TimingGraph.hpp" #include "tatum/TimingConstraints.hpp" #include "tatum/error.hpp" namespace tatum { bool validate_timing_graph_constraints(const TimingGraph& timing_graph, const TimingConstraints& timing_constraints) { //Check that all...
698
575
<gh_stars>100-1000 // 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. #ifndef COMPONENTS_FULL_RESTORE_FULL_RESTORE_READ_HANDLER_H_ #define COMPONENTS_FULL_RESTORE_FULL_RESTORE_READ_HANDLER_H_ #include <ma...
2,404
528
<filename>tests/opytimizer/math/test_random.py import numpy as np from opytimizer.math import random np.random.seed(0) def test_generate_binary_random_number(): binary_array = random.generate_binary_random_number(5) assert binary_array.shape == (5, ) def test_generate_exponential_random_number(): exp...
416
563
<reponame>kdima001/mesh package com.gentics.mesh.search.index; import static com.gentics.mesh.test.ClientHelper.call; import static com.gentics.mesh.test.context.ElasticsearchTestMode.CONTAINER_ES6; import static org.assertj.core.api.Assertions.assertThat; import java.util.HashSet; import java.util.List; import java....
9,328
1,780
<gh_stars>1000+ /** * Created by G-Canvas Open Source Team. * Copyright (c) 2017, Alibaba, Inc. All rights reserved. * * This source code is licensed under the Apache Licence 2.0. * For the full copyright and license information, please view * the LICENSE file in the root directory of this source tree. */ #ifnde...
368
480
<gh_stars>100-1000 /* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
4,647
3,182
<gh_stars>1000+ import com.google.common.collect.ImmutableSortedSet; import lombok.Singular; @lombok.experimental.SuperBuilder public class SingularGuavaSortedSet<T> { @Singular private ImmutableSortedSet rawTypes; @Singular private ImmutableSortedSet<Integer> integers; @Singular private ImmutableSortedSet...
150
2,603
<reponame>NoMaY-jp/FreeRTOS<gh_stars>1000+ /* * FreeRTOS V202107.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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...
2,105
307
/* * Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made * available under the terms of the MIT License. See the LICENSE file in the project root for more information. */ package com.microsoft.sqlserver.jdbc.fedauth; import static org.junit.Assert....
1,676
345
<filename>loggerlibrary/src/main/java/tiger/radio/loggerlibrary/CustomFormatter.java package tiger.radio.loggerlibrary; import java.io.PrintWriter; import java.io.StringWriter; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Locale; import java.util.logging.Formatt...
941
1,887
<filename>src/main/java/org/springframework/beans/factory/support/BeanDefinitionReader.java package org.springframework.beans.factory.support; import cn.hutool.core.bean.BeanException; import org.springframework.beans.BeansException; import org.springframework.core.io.Resource; import org.springframework.core.io.Resou...
228
1,609
<filename>src/main/java/com/mossle/core/auth/LoginEvent.java package com.mossle.core.auth; import org.springframework.context.ApplicationEvent; public class LoginEvent extends ApplicationEvent { private String userId; private String sessionId; private String result; private String type; private St...
495
14,668
<reponame>zealoussnow/chromium // Copyright 2019 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/viz/common/display/overlay_strategy.h" #include "base/logging.h" #include "base/strings/string_split....
434
339
import json import os from copy import deepcopy special_values = ['dontcare', ''] def check_ontology(name): """ ontology: { "domains": { domain name: { "description": domain description, "slots": { slot name: { "d...
6,658
3,212
<reponame>YolandaMDavis/nifi /* * 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...
1,097
994
/*++ Copyright (c) Microsoft Corporation Module Name: FxDeviceInitApi.cpp Abstract: This module exposes the "C" interface to the FxDevice object. Author: Environment: Both kernel and user mode Revision History: --*/ #include "coreprivshared.hpp" extern "C" { #include "FxDeviceInitApi.tmh" } /...
34,723
2,406
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "ngraph/op/matmul.hpp" #include <numeric> #include <vector> #include "engines_util/execute_tools.hpp" #include "gtest/gtest.h" #include "ngraph/runtime/host_tensor.hpp" #include "util/all_close_f.hpp" using namespace std...
8,389
852
import FWCore.ParameterSet.Config as cms # to replace CKF with MkFit in select iterations from Configuration.ProcessModifiers.trackingMkFitCommon_cff import * from Configuration.ProcessModifiers.trackingMkFitInitialStepPreSplitting_cff import * from Configuration.ProcessModifiers.trackingMkFitInitialStep_cff import * ...
280
351
<reponame>fuez/tryalgo #!/usr/bin/env python3 # -*- coding: utf-8 -*- """\ Bipartie maximum matching <NAME> et <NAME> - 2014-2018 """ __all__ = ["max_bipartite_matching", "max_bipartite_matching2"] # snip{ def augment(u, bigraph, visit, match): """augment """ for v in bigraph[u]: if not visit[v]: ...
902
1,444
package mage.cards.d; import java.util.UUID; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.common.continuous.BoostControlledEffect; import mage.abilities.effects.common.continuous.BoostTargetEffect; import mage.abilities.keyword.OverloadAbility; import mage.cards.CardImpl; import mage....
470
1,209
<gh_stars>1000+ /* Fontname: -Adobe-New Century Schoolbook-Medium-R-Normal--34-240-100-100-P-181-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Capital A Height: 25, '1' Height: 24 Calcu...
25,206
34,359
<reponame>RifasM/terminal /*++ Copyright (c) Microsoft Corporation Licensed under the MIT license. Module Name: - CommandListPopup.hpp Abstract: - Popup used for use command list input - contains code pulled from popup.cpp and cmdline.cpp Author: - <NAME> (AustDi) 18-Aug-2018 --*/ #pragma once #in...
587
831
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,362
675
#include "vk_mapping.h" namespace Echo { VkPrimitiveTopology VKMapping::mapPrimitiveTopology(Mesh::TopologyType type) { switch (type) { case Mesh::TT_POINTLIST: return VK_PRIMITIVE_TOPOLOGY_POINT_LIST; case Mesh::TT_LINELIST: return VK_PRIMITIVE_TOPOLOGY_LINE_LIST...
4,506
1,473
/* * Autopsy Forensic Browser * * Copyright 2019 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 * * http://ww...
1,030
12,718
#include "pthread_impl.h" #include "lock.h" int pthread_setschedprio(pthread_t t, int prio) { int r; sigset_t set; __block_app_sigs(&set); LOCK(t->killlock); r = !t->tid ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio); UNLOCK(t->killlock); __restore_sigs(&set); return r; }
142
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
846
613
<reponame>RootinTootinCoodin/RTEngine #define RNG pcg32_k64_oneseq #define TWO_ARG_INIT 0 #include "pcg-test.cpp"
54
390
<reponame>nparkstar/nauta<filename>applications/cli/commands/template/tests/test_copy.py # # Copyright (c) 2019 Intel Corporation # # 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...
1,439
711
# Something weird happens when you run this code. # Find something that is not quite right. # Figure out which compilation modes make the problem more obvious. # Explain why what is happening is happening. import numpy as np from theano import function from theano import tensor as T x = T.vector() y = T.vector() z = T....
145
10,876
{ "name": "mapbox-variant", "version-string": "1.2.0", "port-version": 1, "description": "C++11/C++14 Variant" }
54
12,252
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
781
3,034
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache license, Version 2.0 * (the "License"); you may n...
631
1,198
<filename>lullaby/contrib/slideshow/slideshow_system.cc /* Copyright 2017-2019 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/LI...
2,007
1,587
package classes.special_test; public class ClassPath { public static void main(String[] args) { // run with java -cp and ./console/runner.coffee --classpath System.out.println(System.getProperty("java.class.path")); } }
76
632
package com.qiniu.android.common; import com.qiniu.android.BaseTest; import com.qiniu.android.TestConfig; import com.qiniu.android.http.ResponseInfo; import com.qiniu.android.http.metrics.UploadRegionRequestMetrics; import com.qiniu.android.storage.UpToken; import com.qiniu.android.utils.LogUtil; import java.util.con...
2,849
5,803
<filename>Core/Source/DTAccessibilityViewProxy.h<gh_stars>1000+ // // DTAccessibilityViewProxy.h // DTCoreText // // Created by <NAME> on 5/6/13. // Copyright (c) 2013 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #import "DTTextAttachment.h" @protocol DTAccessibilityViewProxyDelegate; /** ...
489
3,655
<gh_stars>1000+ # Copyright (c) 2020 PaddlePaddle 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 r...
2,688
671
// Test for std::this_thread::sleep_for(). #include <chrono> #include <thread> int main() { std::this_thread::sleep_for(std::chrono::microseconds{10u}); }
59
5,279
<reponame>hengfengli/beam<filename>sdks/python/apache_beam/utils/interactive_utils_test.py # # 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 licens...
728