max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
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. package org.chromium.chrome.browser.contextualsearch; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertFalse; import stat...
2,956
1,144
package de.metas.material.dispo.service.candidatechange.handler; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import de.metas.Profiles; import de.metas.material.dispo.commons.candidate.Candidate; import de.metas.mat...
2,905
441
<gh_stars>100-1000 package org.basex.query.func.util; import org.basex.query.*; import org.basex.query.expr.*; import org.basex.query.func.*; import org.basex.query.value.*; import org.basex.query.value.map.*; import org.basex.query.value.type.*; /** * Function implementation. * * @author BaseX Team 2005-21, BSD L...
309
763
<gh_stars>100-1000 package org.batfish.grammar.juniper; import org.antlr.v4.runtime.ParserRuleContext; import org.batfish.grammar.BatfishCombinedParser; import org.batfish.grammar.GrammarSettings; public class JuniperCombinedParser extends BatfishCombinedParser<JuniperParser, JuniperLexer> { public JuniperCombined...
173
521
#!/usr/bin/env python3 import logging import re import sys from gi.repository import Gst # import library components from lib.config import Config from lib.sources import spawn_source from lib.avrawoutput import AVRawOutput from lib.avpreviewoutput import AVPreviewOutput from lib.videomix import VideoMix from lib.aud...
3,767
663
#!/usr/bin/env python from decimal import Decimal from agate.aggregations.base import Aggregation from agate.data_types import Number, Text from agate.exceptions import DataTypeError class MaxLength(Aggregation): """ Find the length of the longest string in a column. Note: On Python 2.7 this function m...
479
1,265
<filename>phantom-host-lib/src/main/java/com/wlqq/phantom/library/pool/FixedActivity.java /* * Copyright (C) 2017-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 * * ht...
617
2,419
package net.openhft.chronicle.queue.internal.reader; import net.openhft.chronicle.bytes.Bytes; import net.openhft.chronicle.queue.reader.QueueEntryHandler; import net.openhft.chronicle.wire.BinaryWire; import net.openhft.chronicle.wire.WireIn; import net.openhft.chronicle.wire.WireType; import java.util.function.Cons...
577
742
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2010, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
1,516
479
#include <cstdio> #include <random> #include <algorithm> #include <cmath> #include <mpi.h> const int TRIAL = 100000; double calc_pi(const int seed) { std::mt19937 mt(seed); std::uniform_real_distribution<double> ud(0.0, 1.0); int n = 0; for (int i = 0; i < TRIAL; i++) { double x = ud(mt); double y = u...
543
491
// Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 ...
2,129
3,066
<filename>server/src/main/java/io/crate/planner/node/ddl/ResetSettingsPlan.java /* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you ...
2,187
734
<filename>modules/tracktion_engine/3rd_party/airwindows/DitherMeDiskers/DitherMeDiskers.cpp<gh_stars>100-1000 /* ======================================== * DitherMeDiskers - DitherMeDiskers.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __DitherMeDiske...
1,131
3,269
# Time: O(n) # Space: O(h) # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): pass class Solution(object): def lowestCommonAncestor(self, root, p, q): """ :type root: TreeNode :type p: TreeNode :type q: TreeNode :rtype: TreeNod...
1,090
317
<filename>Modules/Visualization/MonteverdiGui/src/mvdHistogramPlotPicker.cxx /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ...
4,758
2,151
#if 0 // // Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_Position 0 xyzw 0 POS float xyzw // ...
3,263
854
__________________________________________________________________________________________________ class Solution: def beforeAndAfterPuzzles(self, phrases: List[str]) -> List[str]: memo = collections.defaultdict(list) end = [] res = [] for i, p in enumerate(phrases): tmp ...
340
1,475
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
2,634
12,278
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include <string> #i...
2,461
855
# -*- coding: utf-8 -*- from django.contrib import admin from organizations import models from organizations.base_admin import BaseOrganizationAdmin from organizations.base_admin import BaseOrganizationOwnerAdmin from organizations.base_admin import BaseOrganizationUserAdmin from organizations.base_admin import BaseO...
228
366
<reponame>pablogalve/Edu-Game-Engine // This code is in the public domain -- <NAME> <<EMAIL>> #pragma once #ifndef NV_CORE_H #define NV_CORE_H // Function linkage #if NVCORE_SHARED #ifdef NVCORE_EXPORTS #define NVCORE_API DLL_EXPORT #define NVCORE_CLASS DLL_EXPORT_CLASS #else #define NVCORE_API DLL_IMPORT #define NVC...
4,490
370
/* * WorldEdit, a Minecraft world manipulation toolkit * Copyright (C) sk89q <http://www.sk89q.com> * Copyright (C) WorldEdit team and contributors * * 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 F...
2,140
451
<reponame>kikislater/micmac<filename>include/algo_geom/Shewchuk.h /*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Au...
32,286
2,707
<filename>jetlinks-manager/authentication-manager/src/main/java/org/jetlinks/community/auth/entity/MenuView.java package org.jetlinks.community.auth.entity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; ...
608
373
<reponame>ADLINK/edk2-platforms<filename>Silicon/Intel/Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/Guid/SmbusArpMap.h // // /*++ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: SmbusArpMap.h Abstract: ...
327
700
<gh_stars>100-1000 # Generated by Django 3.0.9 on 2020-09-19 19:00 import django.core.validators from django.db import migrations, models import pydis_site.apps.api.models.bot.offensive_message class Migration(migrations.Migration): dependencies = [ ('api', '0063_Allow_blank_or_null_for_nomination_reaso...
1,594
308
package com.hexagonaldemo.ticketapi.common.event.consumer; import com.hexagonaldemo.ticketapi.common.event.configuration.KafkaEventTestStreams; import com.hexagonaldemo.ticketapi.ticket.event.TicketReservedEvent; import lombok.extern.slf4j.Slf4j; import org.springframework.cloud.stream.annotation.StreamListener; impor...
246
1,433
/* * Copyright (c) 2016, 2017, 2018, 2019 FabricMC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
618
4,772
package example.repo; import example.model.Customer1952; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1952Repository extends CrudRepository<Customer1952, Long> { List<Customer1952> findByLastName(String lastName); }
87
1,127
<reponame>kurylo/openvino // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "matmul.h" #include "ie_precision.hpp" #include "memory_desc/cpu_blocked_memory_desc.h" #include "cpu_types.h" #include "eltwise.h" #include <numeric> #include <string> #include <vector> #include...
11,545
590
#ifndef __K210_RESET_H__ #define __K210_RESET_H__ #ifdef __cplusplus extern "C" { #endif #define K210_RESET_ROM (0) #define K210_RESET_DMA (1) #define K210_RESET_AI (2) #define K210_RESET_DVP (3) #define K210_RESET_FFT (4) #define K210_RESET_GPIO (5) #define K210_RESET_SPI0 (6) #define K210_RESET_SPI1 (7) #de...
541
3,008
<filename>src/flowgraph/resampler/MultiChannelResampler.h /* * Copyright 2019 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...
3,258
1,374
package def.dom; public class MediaError extends def.js.Object { public double code; public double msExtendedCode; public double MEDIA_ERR_ABORTED; public double MEDIA_ERR_DECODE; public double MEDIA_ERR_NETWORK; public double MEDIA_ERR_SRC_NOT_SUPPORTED; public double MS_MEDIA_ERR_ENCRYPTED...
145
2,181
<filename>testing/btest/plugins/plugin-load-file-extended/src/Plugin.cc #include "Plugin.h" namespace btest::plugin::Testing_LoadFileExtended { Plugin plugin; } using namespace btest::plugin::Testing_LoadFileExtended; zeek::plugin::Configuration Plugin::Configure() { EnableHook(zeek::plugin::HOOK_LOAD_FILE_EXT)...
805
2,040
<reponame>burjakremen/AI-on-the-edge-device #include "sensor.h" const resolution_info_t resolution[FRAMESIZE_INVALID] = { { 96, 96, ASPECT_RATIO_1X1 }, /* 96x96 */ { 160, 120, ASPECT_RATIO_4X3 }, /* QQVGA */ { 176, 144, ASPECT_RATIO_5X4 }, /* QCIF */ { 240, 176, ASPECT_RATIO_4X3 }, /...
712
344
<filename>luchesigui/luchesigui.json [ { "type": "escape", "width": 64, "align": "left" }, { "type": "dock", "width": 160, "align": "left"}, { "type": "staticButton", "title": "", "action": "appleScript", "bordered": false, "actionAppleScript": { "inline": "tell application \"Syste...
837
3,190
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #include "core/async.h" #include "record.h" namespace FASTER { namespace core { /// Upsert context used by FASTER's compaction algorithm. /// /// The following are template arguments. /// K: The type on ...
1,173
837
package me.saket.dank.ui.submission; import com.google.auto.value.AutoValue; /** * Just a table of IDs pointing to {@link CachedSubmissionWithoutComments}. */ @AutoValue @Deprecated public abstract class CachedSubmissionId { public static final String TABLE_NAME = "CachedSubmissionId"; public static final Stri...
1,084
1,921
class Node: def __init__(self, val): self.val = val self.left = None self.right = None def _print(self): print(self.val) if self.left: self.left._print() if self.right: self.right._print() # Tests a = Node(1) b = Node(2) c = Node(3) d = ...
212
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. #include "content/public/browser/gpu_client.h" #include "content/browser/gpu/browser_gpu_client_delegate.h" #include "content/common/child_process_host_i...
528
1,821
/* * Copyright 2018- The Pixie Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
1,594
3,402
/* * 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 ...
553
923
<gh_stars>100-1000 package core.controller.internals; import java.awt.Color; import java.awt.MouseInfo; import java.awt.Point; import java.awt.Robot; import java.awt.event.InputEvent; public class LocalMouseCore extends AbstractMouseCoreImplementation { private final Robot controller; /** * Only use this constr...
645
735
<gh_stars>100-1000 /* * Copyright (C) AlexWoo(<NAME>) <EMAIL> */ #include "ngx_event_resolver.h" static void *ngx_event_resolver_create_conf(ngx_cycle_t *cycle); static char *ngx_event_resolver_init_conf(ngx_cycle_t *cycle, void *conf); static char *ngx_event_resolver(ngx_conf_t *cf, ngx_command_t *cmd, void *co...
3,751
837
package me.saket.dank.cache; import android.app.job.JobInfo; import android.app.job.JobParameters; import android.app.job.JobScheduler; import android.content.ComponentName; import android.content.Context; import android.os.Build; import java.util.concurrent.TimeUnit; import javax.inject.Inject; import io.reactivex....
1,095
4,535
#pragma once #include <algorithm> #include <array> #include <string> #include <vector> #include "tile/lang/flat.h" #include "tile/lang/semtree.h" namespace vertexai { namespace tile { namespace lang { // Compute the plan to read per tile data from a source into shared memory // Also, we merge indexes, for example, ...
1,240
1,041
package io.ebean.event; import io.ebean.Database; import io.ebean.EbeanServer; import io.ebean.Query; import io.ebean.Transaction; /** * Holds the information available for a bean query. */ public interface BeanQueryRequest<T> { /** * Return the DB processing the request. */ default Database database() {...
385
3,763
<filename>paddlex/ppcls/data/dataloader/mix_dataset.py<gh_stars>1000+ # Copyright (c) 2021 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 # # ...
661
344
<reponame>PuzeLiu/mushroom-rl import numpy as np from scipy.stats import norm from mushroom_rl.core import Environment, MDPInfo from mushroom_rl.utils.spaces import * from mushroom_rl.utils.viewer import Viewer class PuddleWorld(Environment): """ Puddle world as presented in: "Off-Policy Actor-Critic". D...
2,273
575
<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. #ifndef MEDIA_GPU_WINDOWS_SUPPORTED_PROFILE_HELPERS_H_ #define MEDIA_GPU_WINDOWS_SUPPORTED_PROFILE_HELPERS_H_ #include "ba...
497
422
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt #include "libHh/LLS.h" #include "libHh/MatrixOp.h" // mat_mul() #include "libHh/RangeOp.h" #include "libHh/SingularValueDecomposition.h" #include "libHh/Stat.h" #include "libHh/Timer.h" #include "libHh/my_lapack.h" namespace hh { static const int ...
7,845
778
<reponame>lkusch/Kratos #ifndef VEXCL_SPMAT_CSR_INL #define VEXCL_SPMAT_CSR_INL /* The MIT License Copyright (c) 2012-2018 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
4,735
1,198
/* 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/LICENSE-2.0 Unless required by applicable law or agreed t...
1,160
7,892
<filename>lib-src/libnyquist/nyquist/nyqstk/src/PoleZero.cpp /***************************************************/ /*! \class PoleZero \brief STK one-pole, one-zero filter class. This protected Filter subclass implements a one-pole, one-zero digital filter. A method is provided for creating an allpass...
761
307
/* * Copyright 2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,549
2,338
#!/usr/bin/env python import os, sys, subprocess from android_common import * here = os.path.abspath(os.path.dirname(sys.argv[0])) android_run = os.path.join(here, 'android_run.py') output = None output_type = 'executable' args = sys.argv[1:] while args: arg = args.pop(0) if arg == '-shared': outpu...
326
805
import os import unittest from flow.utils.aimsun.scripting_api import AimsunTemplate os.environ['TEST_FLAG'] = 'True' class TestGUISystemBase(object): """Substitution for Aimsun's GKGUISystem class""" def getGUISystem(self): return self def getActiveGui(self): return self def getAc...
5,210
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
1,307
439
<filename>src/main/parser/com/baidu/hsb/parser/ast/expression/primary/function/bit/BitCount.java /** * Baidu.com,Inc. * Copyright (c) 2000-2013 All Rights Reserved. */ package com.baidu.hsb.parser.ast.expression.primary.function.bit; import java.util.List; import com.baidu.hsb.parser.ast.expression.Expression; imp...
300
852
/////////////////////////////////////////////////////////////////////////////// // File: TotemG4HitCollection.h // Date: 10.02 // Description: Totemrimeter Hit collection // Modifications: /////////////////////////////////////////////////////////////////////////////// #ifndef PPS_TotemRPG4HitCollection_h #define PPS_To...
156
5,385
<filename>eclipse/org.mybatis.generator.eclipse.tests.harness/src/org/mybatis/generator/eclipse/tests/harness/summary/package-info.java<gh_stars>1000+ /** * Copyright 2006-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ex...
391
878
<filename>pandashells/test/config_lib_tests.py<gh_stars>100-1000 #! /usr/bin/env python import os import json from unittest import TestCase from pandashells.lib import config_lib class GlobalArgTests(TestCase): def test_home_path_looks_right(self): """ The path to the users home directory looks ri...
1,019
707
#include "drake/math/discrete_algebraic_riccati_equation.h" #include <Eigen/Eigenvalues> #include <gtest/gtest.h> #include "drake/common/test_utilities/eigen_matrix_compare.h" // #include "drake/math/autodiff.h" using Eigen::MatrixXd; namespace drake { namespace math { namespace { void SolveDAREandVerify(const Eige...
2,183
991
<gh_stars>100-1000 """ usage: pbxproj file [options] <project> <path> [--target <target>...] [(--weak | -w)] [(--no-embed | -E)] [(--sign-on-copy | -s)] ...
1,971
6,989
""" Hook wrapper "result" utilities. """ import sys def _raise_wrapfail(wrap_controller, msg): co = wrap_controller.gi_code raise RuntimeError( "wrap_controller at %r %s:%d %s" % (co.co_name, co.co_filename, co.co_firstlineno, msg) ) class HookCallError(Exception): """Hook was called...
648
335
{ "word": "Wrap", "definitions": [ "A loose outer garment or piece of material.", "(of a garment) having one part overlapping another; wrap-around.", "Paper or soft material used for wrapping.", "A veil of secrecy maintained about something, especially a new project.", "A...
183
766
"""Report generators and templates.""" from lightautoml.utils.installation import __validate_extra_deps from .report_deco import ReportDeco from .report_deco import ReportDecoNLP from .report_deco import ReportDecoWhitebox __validate_extra_deps("pdf") __all__ = ["ReportDeco", "ReportDecoWhitebox", "ReportDecoNLP"...
105
679
<filename>main/formula/source/ui/dlg/formula.cxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information *...
28,679
494
<reponame>Andry60351/Conquer package app.hanks.com.conquer.adapter; import android.content.Context; import android.support.v4.view.ViewCompat; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; imp...
7,738
611
<reponame>mjtitchener-fn/OpenColorIO // SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include <cstring> #include <set> #include "Platform.cpp" #include "testutils/UnitTest.h" #include "UnitTestUtils.h" namespace OCIO = OCIO_NAMESPACE; OCIO_ADD_TEST(Platform, envVari...
3,770
2,219
<reponame>zealoussnow/chromium # Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from pylib.base import test_instance from pylib.utils import test_filter class JunitTestInstance(test_instance.TestInstance...
622
333
/** * Copyright 2016 Red Hat, Inc. * * Red Hat licenses this file to you 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...
752
8,238
XSeqOf DEFINITIONS ::= BEGIN -- F.2.10.1 -- Use a sequence-of type to model a collection of variables whose -- types are the same, -- whose number is large or unpredictable, and whose order is significant. -- EXAMPLE NamesOfMemberNations ::= SEQUENCE OF VisibleString -- in alphabetical order firstTwo NamesOfMem...
190
1,056
<reponame>timfel/netbeans /* * 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....
2,706
385
<reponame>V1D1AN/stoq # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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...
19,026
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...
10,021
4,901
// Copyright 2011 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...
688
1,027
<filename>zend/state.h /** * State.h * * Class that is used to store the state of current callstack and * whether an exception is now active. We use this before we make * a call to PHP userspace to see if the state has changed afterwards, * which means that an exception has bubbled up that should be handled...
1,083
1,867
package net.glowstone.entity.passive; import lombok.Getter; import net.glowstone.entity.meta.MetadataIndex; import org.bukkit.Location; import org.bukkit.entity.ChestedHorse; import org.bukkit.entity.EntityType; import org.bukkit.entity.Item; import org.bukkit.inventory.AbstractHorseInventory; import org.bukkit.invent...
691
713
<reponame>infinispan/infinispan<gh_stars>100-1000 package org.infinispan.cli.commands.kubernetes; import static org.infinispan.cli.commands.kubernetes.Kube.INFINISPAN_CLUSTER_CRD; import java.io.PrintStream; import java.util.List; import org.aesh.command.Command; import org.aesh.command.CommandDefinition; import org...
1,566
1,172
<filename>tests/core/test_ecsutil.py # stdlib import unittest # 3rd party import mock # project from utils.orchestrator import ECSUtil # MockResponse class from .test_orchestrator import MockResponse CO_ID = "123456789123456789" class TestECSUtil(unittest.TestCase): @mock.patch('requests.get') @mock.patch...
1,306
1,043
package app.event.metrics.com.oath.micro.server; import org.springframework.stereotype.Component; import com.oath.micro.server.events.ScheduledJob; import com.oath.micro.server.events.SystemData; @Component public class EventsJob implements ScheduledJob<EventsJob> { @Override public SystemData<String, Strin...
223
11,616
<filename>dao/src/main/java/org/thingsboard/server/dao/service/ConstraintValidator.java /** * Copyright © 2016-2021 The Thingsboard 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 a...
858
1,093
<reponame>StandCN/spring-integration<filename>spring-integration-core/src/main/java/org/springframework/integration/aggregator/ResequencingMessageGroupProcessor.java /* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
701
1,017
package com.xiaolyuh.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import com.xiaolyuh.config.PropertyConfig; import com.xiaolyuh.entity.Person; @RestController publi...
194
763
package org.batfish.datamodel; import java.util.HashMap; import java.util.Map; import org.batfish.common.BatfishException; public enum DiffieHellmanGroup { GROUP1(1), GROUP14(14), GROUP15(15), GROUP16(16), GROUP17(17), GROUP18(18), GROUP19(19), GROUP2(2), GROUP20(20), GROUP21(21), GROUP22(22), ...
437
575
// 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. #ifndef CHROME_BROWSER_CHROMEOS_U2F_NOTIFICATION_H_ #define CHROME_BROWSER_CHROMEOS_U2F_NOTIFICATION_H_ #include <set> #include <string> #include "base/...
406
605
//===--- StringviewNullptrCheck.cpp - clang-tidy --------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
3,431
9,425
import logging import os import shutil import textwrap import pytest import salt.config import salt.loader import salt.modules.cmdmod as cmdmod import salt.modules.config as configmod import salt.modules.file as filemod import salt.utils.data import salt.utils.files import salt.utils.platform import salt.utils.stringu...
8,721
4,812
//===- RegAllocFast.cpp - A fast register allocator for debug code --------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
17,566
1,585
<gh_stars>1000+ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of...
1,555
1,968
<gh_stars>1000+ ////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> // ///////////////////////...
1,166
694
<filename>libs/basekit/source/Hash_murmur.h<gh_stars>100-1000 unsigned int MurmurHash2(const void *key, int len, unsigned int seed);
46
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 CHROME_CHROME_CLEANER_PUP_DATA_UWS_CATALOG_H_ #define CHROME_CHROME_CLEANER_PUP_DATA_UWS_CATALOG_H_ #include <memory> #include <vector> #include...
380
1,444
package mage.cards.p; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.common.combat.CantAttackBlockAllEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; import ma...
490
6,989
<reponame>jochenater/catboost #pragma once #include <util/generic/strbuf.h> #include <util/generic/string.h> /* * Zero-terminated string view. * * Has a c_str() for use with system/cstdlib calls (like TString) * but can be constructed from a string literal or command-line arg * without memory allocation (like TS...
305
686
<reponame>csb6/libtcod-ada /* BSD 3-Clause License * * Copyright © 2008-2021, Jice and the libtcod contributors. * 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 s...
1,546
1,067
package com.marcosbarbero.cloud.autoconfigure.zuul.ratelimit.filters.pre; import static com.marcosbarbero.cloud.autoconfigure.zuul.ratelimit.support.RateLimitConstants.HEADER_REMAINING; import static java.util.concurrent.TimeUnit.SECONDS; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.j...
1,325
423
package io.scalecube.services.exceptions; import java.util.StringJoiner; public abstract class ServiceException extends RuntimeException { private final int errorCode; public ServiceException(int errorCode, String message) { super(message); this.errorCode = errorCode; } public ServiceException(int ...
307
3,469
<filename>tests/utilities/test_types.py # Copyright The PyTorch Lightning team. # # 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...
401