max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
713
<reponame>franz1981/infinispan package org.infinispan.query.core.stats; import org.infinispan.commons.dataconversion.internal.Json; import org.infinispan.commons.dataconversion.internal.JsonSerialization; import org.infinispan.commons.marshall.ProtoStreamTypeIds; import org.infinispan.protostream.annotations.ProtoFact...
542
2,921
{ "name": "$ElonGate", "website": "https://elongate.cc", "description": "$ElonGate is a deflationary cryptocurrency on the Binance Smart Chain, using the power of memes to make huge impacts for charity. ", "explorer": "https://bscscan.com/token/0x2A9718defF471f3Bb91FA0ECEAB14154F150a385", "type": "B...
191
321
// 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. #define _CRT_SECURE_NO_WARNINGS #include "base/process/memory.h" #include <limits> #include "base/compiler_specific.h" #include "base/debug/alias.h...
4,513
546
<reponame>AppliedIntuition/subpar # Copyright 2016 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 # # Unle...
4,812
839
<reponame>AnEmortalKid/cxf /** * 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....
875
825
package com.kongzue.dialogx.dialogs; import android.animation.ValueAnimator; import android.app.Activity; import android.os.Handler; import android.os.Looper; import android.text.InputFilter; import android.text.InputType; import android.text.method.LinkMovementMethod; import android.view.View; import android.view.Vie...
21,860
713
package org.infinispan.persistence.jdbc.common; import java.util.List; import org.infinispan.persistence.jdbc.common.impl.table.DB2SqlManager; import org.infinispan.persistence.jdbc.common.impl.table.GenericSqlManager; import org.infinispan.persistence.jdbc.common.impl.table.H2SqlManager; import org.infinispan.persis...
863
458
package co.nishchal.seconddemo; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity { int count; @Override pr...
483
6,304
<reponame>rhencke/engine // Copyright 2020 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "tools/fiddle/examples.h" REG_FIDDLE(mapradius, 256, 256, false, 0) { void draw(SkCanvas* canvas) { SkPaint paint; paint.setAntiAlias(true); pa...
660
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...
4,176
1,338
<filename>src/add-ons/kernel/bus_managers/pci/arch/x86/pci_io.cpp /* * Copyright 2006, <NAME>. All rights reserved. * Distributed under the terms of the MIT License. */ #include "pci_private.h" #include "arch_cpu.h" status_t pci_io_init() { // nothing to do on x86 hardware return B_OK; } uint8 pci_read_io_8(...
352
2,316
<reponame>uwacyber/cowrie from __future__ import annotations import struct def string_to_hex(message: str) -> bytes: b = message.encode("utf-8") size = struct.pack(">L", len(b)) return size + b def bin_string_to_hex(message: bytes) -> bytes: size = struct.pack(">L", len(message)) return size + m...
152
317
// // refract/dsd/Null.h // librefract // // Created by <NAME> on 04/09/2017 // Copyright (c) 2017 Apiary Inc. All rights reserved. // #ifndef REFRACT_DSD_NULL_H #define REFRACT_DSD_NULL_H namespace refract { namespace dsd { /// /// Data structure definition (DSD) of a Refract Null Element...
270
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #inc...
1,482
460
<gh_stars>100-1000 /**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICEN...
896
363
#include "benchmark/benchmark.h" #include "ik/ik.h" int main(int argc, char** argv) { IKAPI.init(); ::benchmark::Initialize(&argc, argv); if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1; ::benchmark::RunSpecifiedBenchmarks(); IKAPI.deinit(); }
117
416
<gh_stars>100-1000 package com.ecwid.consul.v1.catalog; import com.ecwid.consul.ConsulTestConstants; import com.ecwid.consul.v1.Response; import com.ecwid.consul.v1.catalog.model.Node; import com.ecwid.consul.v1.kv.KeyValueConsulClient; import com.pszymczyk.consul.ConsulProcess; import com.pszymczyk.consul.ConsulStart...
487
620
<reponame>thmclellan/PDF-Writer #include "CustomLogTest.h" #include "TestsRunner.h" #include "PDFWriter.h" #include "OutputFlateEncodeStream.h" #include "OutputFlateDecodeStream.h" #include "OutputStreamTraits.h" #include "OutputFile.h" #include "OutputStringBufferStream.h" #include "PDFPage.h" #include "Trace.h" #incl...
1,292
381
package com.grouter; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.io.NotSerializableException; import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.ScheduledT...
2,752
2,709
<reponame>solosuper/matplotplusplus #include <matplot/matplot.h> int main() { using namespace matplot; image_channels_t image = imread("lena_color.tiff"); image = imvignette(image); auto image_to_show = imresize(image, 0.5); imshow(image_to_show); auto image_to_save = imresize(image, 2., imag...
402
1,073
/*===-- linker_ocaml.c - LLVM OCaml Glue ------------------------*- C++ -*-===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
938
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.peering.models; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.pe...
3,744
6,620
<gh_stars>1000+ from ctypes import * import sys import numpy as np is_windows = sys.platform.startswith('win32') # We can't rely on libc availability on Windows anymore, so we use our # own compiled wrappers (see https://bugs.python.org/issue23606). from numba import _helperlib libnumba = CDLL(_helperlib.__file__)...
1,054
3,494
/* Copyright (c) 2010, The Barbarian Group All rights reserved. Copyright (c) Microsoft Open Technologies, 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: * Redistributions of source code...
735
390
<reponame>targetcloud/baisibudejie<gh_stars>100-1000 // // TGNewestGameVC.h // baisibudejie // // Created by targetcloud on 2017/5/31. // Copyright © 2017年 targetcloud. All rights reserved. // #import "TGTopicNewVC.h" @interface TGNewestGameVC : TGTopicNewVC @end
107
14,668
<gh_stars>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 CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_SINGLE_FILE_TAR_READER_H_ #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PR...
1,130
308
/* * Copyright 2008-2015 <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 to ...
710
879
<reponame>qianfei11/zstack package org.zstack.core.ansible; import org.zstack.core.config.GlobalConfig; import org.zstack.core.config.GlobalConfigDefinition; import org.zstack.core.config.GlobalConfigValidation; /** * Created by mingjian.deng on 2019/6/12. */ @GlobalConfigDefinition public class AnsibleGlobalConfig...
224
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. // Provides public definitions. #ifndef COMPONENTS_CONTEXTUAL_SEARCH_CORE_BROWSER_PUBLIC_H_ #define COMPONENTS_CONTEXTUAL_...
564
311
<gh_stars>100-1000 package org.javacs.lsp; import java.net.URI; import java.util.ArrayList; import java.util.List; public class PublishDiagnosticsParams { public URI uri; public List<Diagnostic> diagnostics; public PublishDiagnosticsParams() { diagnostics = new ArrayList<>(); } public Pu...
182
839
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
1,566
751
<gh_stars>100-1000 /* *------------------------------------------------------------------ * vhost-user_api.c - vhost-user api * * Copyright (c) 2016 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
4,675
3,631
<reponame>targeter21/drools /* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
806
2,798
import os from docker.client import DockerClient from docker.errors import NotFound from docker.models.containers import Container CONTAINER_NAME = "uwsgi-nginx-flask-test" def get_logs(container: Container) -> str: logs = container.logs() return logs.decode("utf-8") def get_nginx_config(container: Contai...
621
454
""" paddle_eval """ import os import time import sys import argparse import json import codecs import numpy as np import paddle import paddle.nn.functional as F from others.protein_sequence_model_dynamic import ProteinEncoderModel, ProteinModel, ProteinCriterion from others.protein_tools import ProteinTokenizer from...
836
897
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "...
1,485
351
package com.talosvfx.talos.editor.nodes.widgets; import com.badlogic.gdx.Input; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2d.*; import com.badlogic.gdx.scenes.scene2d.ui.*; import com.badlogic.gdx.scenes.scene2d.utils.ClickListener; import com.badlogic.gdx.scenes.scene2d.utils.FocusList...
4,657
1,338
/* * Copyright 2008-2019 Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> * <NAME> (kallisti5) */ #include "DeviceACPI.h" #include <sstream> #include <stdlib.h> #include <Catalog.h> #undef B_TRANSLATION_CONTEXT #define B_TRANSLATION_CONTEXT ...
1,107
365
<reponame>rbabari/blender<filename>extern/audaspace/bindings/python/examples/convolution.py #!/usr/bin/python import aud, sys, time, multiprocessing device = aud.Device() ir = aud.ImpulseResponse(aud.Sound.file(sys.argv[2])) threadPool = aud.ThreadPool(multiprocessing.cpu_count()) sound = aud.Sound.file(sys.argv[1]).co...
162
1,374
<reponame>YuanYuanDog/Design-Pattern-For-iOS<filename>20中介者模式/20中介者模式/Mediator.h<gh_stars>1000+ // // Mediator.h // 20中介者模式 // // Created by huangchengdu on 17/5/22. // Copyright © 2017年 黄成都. All rights reserved. // #import <Foundation/Foundation.h> @class Colleague; @interface Mediator : NSObject @property(non...
204
513
<gh_stars>100-1000 """ Custom implementation of fast complex operations. This was written during earlier versions of Pytorch. Later versions have native support for complex numbers and much of this is no longer necessary. """ import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from ...
2,740
421
#ifndef FOOLGO_TEST_TEST_H_ #define FOOLGO_TEST_TEST_H_ #include <gtest/gtest.h> namespace foolgo { class Test: public ::testing::Test { public: virtual void SetUp() { } }; } // namespace foolgo #endif
91
4,013
import os import unittest from checkov.common.models.enums import CheckCategories, CheckResult from checkov.arm.base_resource_check import BaseResourceCheck from checkov.arm.registry import arm_resource_registry as registry from checkov.arm.runner import Runner from checkov.runner_filter import RunnerFilter class Ar...
603
2,151
<reponame>kjthegod/chromium<gh_stars>1000+ { "name" : "Preferences API Test Extension (dataReductionProxy)", "version" : "0.1", "manifest_version": 2, "description" : "Preferences API Test Extension (dataReductionProxy)", "permissions": [ "dataReductionProxy", "preferencesPrivate" ], "background": { "pa...
129
882
<reponame>gigliovale/h2o package hex; import org.junit.BeforeClass; import org.junit.Test; import water.*; import water.fvec.Frame; import water.fvec.NFSFileVec; import water.fvec.ParseDataset2; import water.fvec.Vec; import water.util.Log; import water.util.MRUtils; public class MRUtilsTest extends TestUtil { @Bef...
1,260
1,403
<gh_stars>1000+ #!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, ...
2,699
1,402
<filename>python/gtsam/tests/test_TranslationRecovery.py from __future__ import print_function import numpy as np import unittest import gtsam """ Returns example pose values of 3 points A, B and C in the world frame """ def ExampleValues(): T = [] T.append(gtsam.Point3(np.array([3.14, 1.59, 2.65]))) T.a...
1,101
458
<gh_stars>100-1000 /* * GlobeView_iOS.h * WhirlyGlobeLib * * Created by <NAME> on 1/30/19. * Copyright 2011-2019 mousebird consulting * * 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 Lice...
472
467
package maqetta.server.orion.command; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import maqetta.server.orion.user.OrionUser; import org.davinci.server.user.IUser; import org.eclipse.core.runtime.CoreException; import org.maqetta.server.Co...
525
460
<filename>examples/mini-examples/scopes-example/src/main/java/de/saxsys/mvvmfx/examples/scopesexample/ui/overview/detail/OverviewDetailView.java package de.saxsys.mvvmfx.examples.scopesexample.ui.overview.detail; import de.saxsys.mvvmfx.FxmlView; import de.saxsys.mvvmfx.InjectViewModel; import javafx.fxml.FXML; import...
423
356
<filename>process/animation.cc /* * 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 ...
9,916
3,921
/* * Created by LuaView. * Copyright (c) 2017, Alibaba Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ package com.taobao.luaview.fun.mapper.ui; import com.taob...
1,382
562
<gh_stars>100-1000 #include <tmx.h> #include <stdio.h> int main(int argc, char **argv) { if (argc < 2) { fprintf(stderr, "Need at least one argument\n"); return 1; } tmx_map *map = tmx_load(argv[1]); if (map == NULL) { tmx_perror("Cannot load map"); return 1; } ...
184
11,356
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
1,123
3,101
<filename>flinkx-core/src/main/java/com/dtstack/flinkx/util/MapUtil.java package com.dtstack.flinkx.util; import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonProcessingException; import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.ObjectMapper; import com.google.gson.internal.Lin...
3,046
335
{ "word": "Nucleosynthesis", "definitions": [ "The cosmic formation of atoms more complex than the hydrogen atom." ], "parts-of-speech": "Noun" }
66
852
#include <unistd.h> // usleep #include <iostream> // cout #include <math.h> // exp #include <stdio.h> // printf #include <errno.h> // errno #include <sys/wait.h> // waitpid //To compile on lxplus: /afs/cern.ch/cms/sw/slc4_ia32_gcc345/external/gcc/3.4.5-CMS8/bin/g++ -o show show.cc -I../../../ // make sure you have...
9,278
852
<reponame>ckamtsikis/cmssw #ifndef FWCore_Framework_EventSetupRecordProvider_h #define FWCore_Framework_EventSetupRecordProvider_h // -*- C++ -*- // // Package: Framework // Class : EventSetupRecordProvider // /**\class edm::eventsetup::EventSetupRecordProvider Description: Coordinates all EventSetupDataProv...
2,802
425
<filename>shipping/src/main/java/com/instana/robotshop/shipping/CartHelper.java package com.instana.robotshop.shipping; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.http.client.methods.Closeable...
1,163
30,023
<filename>tests/components/moehlenhoff_alpha2/test_config_flow.py<gh_stars>1000+ """Test the moehlenhoff_alpha2 config flow.""" import asyncio from unittest.mock import patch from homeassistant import config_entries from homeassistant.components.moehlenhoff_alpha2.const import DOMAIN from homeassistant.core import Hom...
1,575
32,544
<filename>spring-4/src/main/java/com/baeldung/spring43/defaultmethods/DateHolder.java package com.baeldung.spring43.defaultmethods; import java.time.LocalDate; public class DateHolder implements IDateHolder { private LocalDate localDate; @Override public LocalDate getLocalDate() { return localDa...
162
2,757
<reponame>GlovePuppet/edk2<gh_stars>1000+ /** @file Copyright (c) 2017 - 2019, ARM Limited. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the licens...
5,880
634
/* * Copyright 2013-2017 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 * * Unless required by applicable law or agreed to ...
4,414
3,444
package com.hellokaton.blade.mvc.handler; import com.hellokaton.blade.annotation.request.*; import com.hellokaton.blade.mvc.http.Request; import lombok.Builder; import java.lang.reflect.Type; @Builder class ParamStruct { Query query; Form form; PathParam pathParam; Body body; Header header; ...
155
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
4,842
1,020
/** */ package com.amazonaws.blox; import javax.annotation.Generated; import com.amazonaws.blox.model.*; import com.amazonaws.*; import com.amazonaws.opensdk.*; import com.amazonaws.opensdk.model.*; /** * Abstract implementation of {@code Blox}. */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public cla...
684
796
/* * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * * http://license.coscl.org.cn/MulanPSL * * ...
5,469
3,301
package com.alibaba.alink.params.dataproc.format; public interface KvToCsvParams<T> extends ToCsvParams <T>, FromKvParams <T>, HasHandleInvalidDefaultAsError <T> { }
67
381
package com.tngtech.jgiven.format.table; import java.lang.annotation.Annotation; import com.tngtech.jgiven.annotation.Table; import com.tngtech.jgiven.config.FormatterConfiguration; import com.tngtech.jgiven.format.DefaultFormatter; import com.tngtech.jgiven.format.ObjectFormatter; /** * Default RowFormatterFactory...
486
716
// Copyright (c) 2022 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. #ifndef WINDOWS_UTILS_BUSY_LOOP_LAUNCHER_H_ #define WINDOWS_UTILS_BUSY_LOOP_LAUNCHER_H_ #include "OrbitBase/Result.h" #include "WindowsUtils/BusyLoopUti...
825
521
<reponame>infinitio/elle #pragma once #include <string> #include <elle/compiler.hh> namespace elle { namespace network { ELLE_API std::string hostname(); } }
78
357
<gh_stars>100-1000 // File: HID_Queue_Utilities.c // Abstract: HID Queue Utilities. // Version: 2.0 // // Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple // Inc. ("Apple") in consideration of your agreement to the following // terms, and your use, installation, modification or redistributi...
4,625
587
package com.norbsoft.typefacehelper.sample; import android.app.Activity; import android.os.Bundle; import static com.norbsoft.typefacehelper.TypefaceHelper.typeface; public class SimpleExampleActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSta...
121
361
<filename>tests/get_BERT_XLNET_word_embedding.py #!/usr/bin/env python3 ''' @Time : 2019-10-28 21:57:36 @Author : su.zhu @Desc : ''' import torch from transformers import BertTokenizer, BertModel, XLNetTokenizer, XLNetModel import itertools MODEL_CLASSES = { 'bert': (BertModel, BertTokenizer), ...
3,034
5,857
# 这里需要使用getpass模块才能使输入密码不可见 import getpass import requests import hashlib import time """ info: author:CriseLYJ github:https://github.com/CriseLYJ/ update_time:2019-3-7 """ def get_login(phone, pwd): new_time = str(int(time.time())) sign = new_time + '_' + hashlib.md5((phone + pwd + new_time).encode("utf-8")...
652
1,078
from __future__ import absolute_import, division, print_function import stripe TEST_RESOURCE_ID = "mandate_123" class TestMandateSchedule(object): def test_is_retrievable(self, request_mock): resource = stripe.Mandate.retrieve(TEST_RESOURCE_ID) request_mock.assert_requested( "get", ...
171
1,687
public class Solution { // 方法一:深度优先遍历 private static final int[][] DIRECTIONS = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}}; private int rows; private int cols; private int[][] image; public int[][] floodFill(int[][] image, int sr, int sc, int newColor) { // 前面这个特殊的判断很重要 int originColo...
607
348
<gh_stars>100-1000 {"nom":"Arry","circ":"2ème circonscription","dpt":"Moselle","inscrits":414,"abs":206,"votants":208,"blancs":22,"nuls":6,"exp":180,"res":[{"nuance":"REM","nom":"<NAME>","voix":94},{"nuance":"LR","nom":"<NAME>","voix":86}]}
98
501
<reponame>siklu/mina-sshd /* * 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,171
2,727
<filename>native-codec/app/src/main/cpp/looper.h /* * 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/...
465
14,668
<reponame>zealoussnow/chromium // 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. #include "base/scoped_multi_source_observation.h" #include "base/containers/contains.h" #include "base/ranges/algorithm.h"...
2,454
1,144
// Generated Model - DO NOT CHANGE package de.metas.purchasecandidate.model; import java.sql.ResultSet; import java.util.Properties; import javax.annotation.Nullable; /** Generated Model for C_BP_PurchaseSchedule * @author metasfresh (generated) */ @SuppressWarnings("unused") public class X_C_BP_PurchaseSchedule ...
3,047
575
<filename>webrtc/include/third_party/blink/renderer/bindings/tests/results/core/v8_array_buffer_view.h // 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. // This file has been auto-generated from the Jinja...
957
788
<reponame>snoopdave/incubator-usergrid # */ # * 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...
466
716
<gh_stars>100-1000 // Copyright (c) 2022 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. #ifndef CLIENT_DATA_FUNCTION_STATS_H_ #define CLIENT_DATA_FUNCTION_STATS_H_ #include <stdint.h> #include <cmath> namespace orbit_cli...
640
1,299
<reponame>MC-JY/tika<filename>tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/basic/JCID.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements...
1,067
3,513
package nokogiri; import static nokogiri.internals.NokogiriHelpers.getNokogiriClass; import org.jruby.Ruby; import org.jruby.RubyArray; import org.jruby.RubyClass; import org.jruby.anno.JRubyClass; import org.jruby.anno.JRubyMethod; import org.jruby.runtime.ThreadContext; import org.jruby.runtime.builtin.IRubyObject;...
1,099
575
<gh_stars>100-1000 // 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/paint_preview/common/subset_font.h" #include "components/paint_preview/common/glyph_usage.h" #include "testing/gt...
636
5,279
/* * 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 ...
17,210
2,539
<reponame>fooziex/7-Zip-zstd // DeflateDecoder.h #ifndef __DEFLATE_DECODER_H #define __DEFLATE_DECODER_H #include "../../Common/MyCom.h" #include "../ICoder.h" #include "../Common/InBuffer.h" #include "BitlDecoder.h" #include "DeflateConst.h" #include "HuffmanDecoder.h" #include "LzOutWindow.h" namespace NCompres...
1,726
694
<reponame>timt51/guildai # Copyright 2017-2021 TensorHub, 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...
7,690
2,151
/* * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple 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: * 1. Redistributions of source code must retain the above copyright * ...
2,852
369
/* * Copyright © 2014-2017 <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 applicable law or agreed...
565
815
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
823
348
{"nom":"Utelle","circ":"5ème circonscription","dpt":"Alpes-Maritimes","inscrits":835,"abs":449,"votants":386,"blancs":26,"nuls":20,"exp":340,"res":[{"nuance":"LR","nom":"<NAME>","voix":176},{"nuance":"FN","nom":"<NAME>","voix":164}]}
92
470
<filename>SCXcodeSwitchExpander/Xcode Headers/DVTViewController.h<gh_stars>100-1000 // // DVTViewController.h // SCXcodeSwitchExpander // // Created by <NAME> on 16/05/2015. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface DVTViewController : NSViewController @end
116
458
@import UIKit; /** * A donut chart image generator provides a donut chart image without `QuartzCore.framework` and `UIView`. */ @interface YODonutChartImage : NSObject /** @name Donut chart rendering properties */ /** * The array of values for the donut chart. `values` should be an array of NSNumber. * You mu...
527
45,293
<filename>libraries/tools/kotlin-maven-plugin-test/src/it/test-sam-with-receiver-simple/src/main/java/lib/JobWithoutReceiver.java package lib; public interface JobWithoutReceiver { public void execute(String context, int other); }
77
1,346
package com.ctrip.platform.dal.dao; /** * @author c7ch23en */ public interface DalCallback<T extends CallbackContext> { void handle(T context); }
54
1,210
<gh_stars>1000+ #include <cstdio> using namespace std; int n, s[10], sp = 0; bool ins[11]; void DFS() { if (sp == n) { for (int i = 0; i < sp; i++) { printf("%d ", s[i]); } printf("\n"); return; } for (int i = 1; i <= n; i++) { if (ins[i] == false) { ins[i] = true; s[sp++] = i; DFS(); ...
234