max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
3,269
<reponame>Sourav692/FAANG-Interview-Preparation<filename>Algo and DSA/LeetCode-Solutions-master/Python/the-skyline-problem.py # Time: O(nlogn) # Space: O(n) start, end, height = 0, 1, 2 class Solution(object): # @param {integer[][]} buildings # @return {integer[][]} def getSkyline(self, buildings): ...
1,908
6,478
/* * Copyright 2013-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,923
11,396
# Generated by Django 2.2.16 on 2021-05-12 20:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0141_remove_isolated_instances'), ] operations = [ migrations.AlterField( model_name='executionenvironment', ...
267
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/tracing/background_memory_tracing_observer.h" #include "base/trace_event/heap_profiler_allocation_context_tracker.h" #include "...
1,309
541
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.app.rest.link.process; import java.util.LinkedList; import java.util.Map; import o...
924
372
<reponame>kbore/pbis-open /* * * (c) Copyright 1992 OPEN SOFTWARE FOUNDATION, INC. * (c) Copyright 1992 HEWLETT-PACKARD COMPANY * (c) Copyright 1992 DIGITAL EQUIPMENT CORPORATION * To anyone who acknowledges that this file is provided "AS IS" * without any express or implied warranty: * permissi...
4,144
704
<reponame>klen/muffin """Muffin Handlers.""" import inspect import typing as t from http_router import Router from http_router.typing import TYPE_METHODS from asgi_tools import Request from asgi_tools.app import HTTPView, HTTP_METHODS from asgi_tools.utils import is_awaitable class HandlerMeta(type): """Prepar...
1,411
398
<gh_stars>100-1000 package io.joyrpc.transport.netty4.http2; /*- * #%L * joyrpc * %% * Copyright (C) 2019 joyrpc.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:...
4,560
806
package com.alibaba.sdk.android.oss.model; public class PutBucketLoggingResult extends OSSResult { }
33
348
{"nom":"Grandvelle-et-le-Perrenot","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":274,"abs":121,"votants":153,"blancs":13,"nuls":4,"exp":136,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":71},{"nuance":"FN","nom":"Mme <NAME>","voix":65}]}
103
8,027
package com.test; public class ExportedProvidedLibraryClass {}
17
588
<reponame>fmilano/CppMicroServices #ifndef _SERVICE_IMPL_HPP_ #define _SERVICE_IMPL_HPP_ #include "TestInterfaces/Interfaces.hpp" #include "cppmicroservices/servicecomponent/ComponentContext.hpp" using ComponentContext = cppmicroservices::service::component::ComponentContext; namespace dependent { class TestBundleDS...
252
17,085
<gh_stars>1000+ /* Copyright (c) 2016 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 required by a...
5,186
345
/* * Copyright 2016 HuntBugs contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
3,295
18,621
<gh_stars>1000+ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"...
18,647
865
<gh_stars>100-1000 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import os import blink.utils as utils import blink.ner as NER import blink.candidate_generation as CG ...
3,058
72,551
<gh_stars>1000+ #include "inline-static-member-var.h" int *WithInlineStaticMember::getStaticMemberAddress() { return &staticMember; } int WithInlineStaticMember::getStaticMemberFromCxx() { return staticMember; } void WithInlineStaticMember::setStaticMemberFromCxx(int newVal) { staticMember = newVal; }
97
19,824
<reponame>pazams/keystone { "main": "dist/keystone-ui-icons-icons-BatteryChargingIcon.cjs.js", "module": "dist/keystone-ui-icons-icons-BatteryChargingIcon.esm.js" }
69
923
################################################## # Copyright (c) <NAME> [GitHub D-X-Y], 2019 # ##################################################################################################### # modified from https://github.com/pytorch/examples/blob/master/reinforcement_learning/reinforce.py # ###################...
3,863
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.automanage.generated; import com.azure.core.util.Context; /** Samples for ConfigurationProfilesVersions Delete. */ public final...
313
5,703
/* * * Copyright 2015-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
1,226
387
<reponame>ejoebstl/DlibDotNet<gh_stars>100-1000 #include "surf.h"
33
337
<gh_stars>100-1000 package test; import java.lang.String; public class Integer { public Integer(String s){} public static Integer valueOf(String value) {return new Integer(value);} } class Test { public static void test() { Integer.valueOf("1"); test.Integer.valueOf("1"); java.lang.Integer.valueOf("1"); } ...
111
1,652
<gh_stars>1000+ package com.ctrip.framework.xpipe.redis.utils; import com.alibaba.arthas.deps.org.slf4j.Logger; import com.alibaba.arthas.deps.org.slf4j.LoggerFactory; import com.ctrip.framework.xpipe.redis.proxy.ProxyInetSocketAddress; import java.io.IOException; import java.net.InetSocketAddress; import java.net.So...
1,580
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...
369
343
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1....
894
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Saint-Pierre-dels-Forcats","dpt":"Pyrénées-Orientales","inscrits":221,"abs":35,"votants":186,"blancs":20,"nuls":18,"exp":148,"res":[{"panneau":"1","voix":81},{"panneau":"2","voix":67}]}
99
421
<reponame>hamarb123/dotnet-api-docs #using <System.Data.dll> #using <System.Windows.Forms.dll> #using <System.dll> #using <System.Drawing.dll> using namespace System; using namespace System::Drawing; using namespace System::Collections; using namespace System::ComponentModel; using namespace System::Windo...
1,978
307
/** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribu...
4,807
857
# Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. # See LICENSE in the project root for license information. import datetime import time import calendar import oncall.scheduler.default from pytz import utc, timezone MIN = 60 HOUR = 60 * MIN DAY = 24 * HOUR WEEK = 7 * ...
5,418
572
import hou import qLibCameraZoomVertigo def createViewerStateTemplate(): state_name = "qLib::camera_zoom_vertigo_ql_dop" state_label = "Camera Zoom/Vertigo (dop) [qL]" template = hou.ViewerStateTemplate( state_name, state_label, hou.dopNodeTypeCategory(), ...
219
1,502
<gh_stars>1000+ #ifndef BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_MODIFIERS_VERSION_HPP_20100608 #define BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_MODIFIERS_VERSION_HPP_20100608 // Copyright 2010 (c) <NAME> // Copyright 2010 (c) Sinefunc, Inc. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file...
490
416
package org.simpleflatmapper.jdbc.impl.setter; import org.simpleflatmapper.converter.Context; import org.simpleflatmapper.map.setter.ContextualSetter; import org.simpleflatmapper.map.setter.DoubleContextualSetter; import org.simpleflatmapper.reflect.Setter; import org.simpleflatmapper.reflect.primitive.DoubleSetter; ...
336
319
/*! ****************************************************************************** * * \file * * \brief Header file containing RAJA reduction templates for * OpenMP execution. * * These methods should work on any platform that supports OpenMP. * ********************************************...
1,112
1,921
from heapq import heappush as hp def get_sort_range(arr): if arr == sorted(arr): return () options = list() for sort_start in range(len(arr) - 1): for sort_end in range(1, len(arr) + 1): a1 = arr[:sort_start] a2 = arr[sort_start:sort_end] a3 = arr[sort_...
364
746
<gh_stars>100-1000 package org.protege.editor.core.update; /** * <NAME> * Stanford Center for Biomedical Informatics Research * 18/11/15 */ public class PluginDocumentParseException extends Exception { public PluginDocumentParseException(String message) { super(message); } public PluginDocume...
134
887
<reponame>trajchen/javers<filename>javers-spring/src/main/java/org/javers/spring/RegisterJsonTypeAdaptersPlugin.java package org.javers.spring; import org.javers.core.JaversBuilder; import org.javers.core.JaversBuilderPlugin; import org.javers.core.json.JsonAdvancedTypeAdapter; import org.javers.core.json.JsonTypeAdap...
458
474
<filename>QNShortVideo-With-TuTu-iOS/tusdkfilterprocessormodule/tusdkfilterprocessormodule/TuSDKFramework/TuSDK.framework/Versions/A/Headers/TuSDKGPUTfmMixFilter.h // // TuSDKGPUTfmMixFilter.h // TuSDK // // Created by <NAME> on 2018/11/7. // Copyright © 2018 tusdk.com. All rights reserved. // #import "TuSDKFilter...
209
6,709
""" tests for telethon.helpers """ from base64 import b64decode import pytest from telethon import helpers def test_strip_text(): assert helpers.strip_text(" text ", []) == "text" # I can't interpret the rest of the code well enough yet class TestSyncifyAsyncContext: class NoopContextManager: ...
652
1,926
# todo make sure what they mean by desc undefined? None or empty? Answer: None :) it can never be empty but None is sometimes returned. # I am implementing everything as dicts to speed up property creation # Warning: value, get, set props of dest are PyJs types. Rest is Py! def is_data_descriptor(desc): return ...
1,408
1,091
<gh_stars>1000+ /* * Copyright 2018-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
680
323
<reponame>jiangjiang66/SpringBoot3<gh_stars>100-1000 package cn.huanzi.qch.springbootsecurity.config; import org.springframework.security.core.Authentication; import org.springframework.security.web.authentication.AuthenticationSuccessHandler; import org.springframework.stereotype.Component; import javax.servlet.Serv...
414
2,151
// Copyright 2011 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 "cc/layers/layer_impl.h" #include "cc/layers/painted_scrollbar_layer_impl.h" #include "cc/layers/solid_color_scrollbar_layer_impl.h" #include "c...
14,205
11,356
<reponame>cookingcodewithme/turicreate /* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at * https://opensource.org/licenses/BSD-3-Clause */ #ifndef TC_DISABLE_REMOTEFS #ifndef _WIN32 #include <arpa...
11,764
360
import argparse import json import os from collections import deque, namedtuple from enum import Enum import bddl import printree import pyinstrument import igibson from igibson import object_states from igibson.activity.activity_base import iGBEHAVIORActivityInstance from igibson.activity.bddl_backend import ObjectS...
7,979
721
<reponame>beenfhb/AlphaGo # -*- coding: utf-8 -*- """Tests for sgf.py.""" import unittest from textwrap import dedent from betago import gosgf SAMPLE_SGF = b"""\ (;AP[testsuite:0]CA[utf-8]DT[2009-06-06]FF[4]GM[1]KM[7.5]PB[Black engine] PL[B]PW[White engine]RE[W+R]SZ[9]AB[ai][bh][ee]AW[fc][gc];B[dg];W[ef]C[comment on...
19,077
310
{ "name": "Bullet", "description": "A space pen.", "url": "https://www.spacepen.com/bullet.aspx" }
44
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 ...
2,292
1,144
// SPDX-License-Identifier: GPL-2.0+ /* * Keystone2: DDR3 SPD configuration * * (C) Copyright 2015-2016 Texas Instruments Incorporated, <www.ti.com> */ #include <common.h> #include <i2c.h> #include <ddr_spd.h> #include <asm/arch/ddr3.h> #include <asm/arch/hardware.h> #define DUMP_DDR_CONFIG 0 /* set to 1 to de...
6,842
372
<reponame>kbore/pbis-open<gh_stars>100-1000 /* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache Li...
3,647
628
import numpy as np import pytest import torch from doctr.io import decode_img_as_tensor, read_img_as_tensor, tensor_from_numpy def test_read_img_as_tensor(mock_image_path): img = read_img_as_tensor(mock_image_path) assert isinstance(img, torch.Tensor) assert img.dtype == torch.float32 assert img.sh...
658
453
"""ng_template_bundle.""" load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library") def ng_template_bundle( name, srcs, module_name = "templates", strip_prefix = None, prepend_prefix = None, goog_provide = None): """Generates a js_library that inlines ...
516
5,169
<reponame>ftapp/cocoapods<filename>Specs/MTBackgroundView/1.0/MTBackgroundView.podspec.json { "name": "MTBackgroundView", "version": "1.0", "summary": "A NSView subclass wich fills itself with the color set to backgroundColor.", "description": "NSView does not have a backgroundColor property like UIView does, s...
259
3,100
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2020 <NAME>. All rights reserved. *...
720
343
<gh_stars>100-1000 /* * zsummerX License * ----------- * * zsummerX is licensed under the terms of the MIT license reproduced below. * This means that zsummerX is free software and can be used for both academic * and commercial purposes at absolutely no cost. * * * =========================================...
11,200
1,916
// Copyright (C) 2005, 2006 International Business Machines and others. // All Rights Reserved. // This code is published under the Common Public License. // // $Id: IpIteratesVector.cpp 759 2006-07-07 03:07:08Z andreasw $ // // Authors: <NAME>, <NAME> IBM 2005-06-06 #include "IpIteratesVector.hpp" namespace ...
2,128
1,198
<reponame>dherbst/lullaby<gh_stars>1000+ /* 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 Unle...
853
4,332
<filename>vowpalwabbit/core/include/vw/core/parse_regressor.h // Copyright (c) by respective owners including Yahoo!, Microsoft, and // individual contributors. All rights reserved. Released under a BSD (revised) // license as described in the file LICENSE. #pragma once #include "vw/config/options.h" #include "vw/core/...
317
1,327
<reponame>intel/mkl-dnn<gh_stars>1000+ /******************************************************************************* * Copyright 2019-2022 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 o...
4,952
582
package com.easy.templateThymeleaf.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.MessageSource; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import or...
230
1,738
<gh_stars>1000+ /* * 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 ...
1,502
14,668
<gh_stars>1000+ /* * iccprofile.h * * Copyright (C) 1991-1998, <NAME>. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file provides code to read and write International Color Consortium * (ICC) device profiles em...
895
348
{"nom":"Mouflières","circ":"3ème circonscription","dpt":"Somme","inscrits":68,"abs":22,"votants":46,"blancs":6,"nuls":3,"exp":37,"res":[{"nuance":"LR","nom":"<NAME>","voix":23},{"nuance":"REM","nom":"<NAME>","voix":14}]}
91
1,593
<gh_stars>1000+ /* * This file is part of Nokia HEIF library * * Copyright (c) 2015-2021 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. * * Contact: <EMAIL> * * This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its subsidiaries. All rig...
429
396
<gh_stars>100-1000 {"matchings":[{"confidence":1.470422552607431e-7,"geometry":"gatfEfidjUm@LaA@@z@FX","legs":[{"summary":"","weight":72,"duration":41.1,"steps":[],"distance":103.8}],"weight_name":"routability","weight":72,"duration":41.1,"distance":103.8}],"tracepoints":[{"alternatives_count":0,"waypoint_index":0,"mat...
191
782
<gh_stars>100-1000 /* * Copyright (c) 2011-2017, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.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 * *...
467
1,085
{ "tool_id": "upload1", "tool_version": "1.1.7", "exit_code": 0, "tool_stdout": "stdout", "tool_stderr": "stderr", "command_line": "commandline", "job_messages": ["test-msg1", "test-msg2", "test-msg3", "test-msg4"], "id": "test_id", "copied_from_job_id": "test_copied_from_job_id" }
159
1,886
<reponame>diogommartins/cinder fun(var, 10, a=a, kw=2) # EXPECTED: [ ..., LOAD_CONST(('a', 'kw')), CALL_FUNCTION_KW(4), ..., ]
84
5,169
<gh_stars>1000+ { "name": "BeeGDTActionSDK", "version": "2.0.1.3", "summary": "广点通行为数据上报iOS SDK", "description": "具体更新内容查看广点通官方说明文档", "homepage": "https://github.com/5hito/Bee_GDTActionSDK", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "5hito": "<EMAIL>" }, "platforms": ...
359
5,169
{ "name": "ZYPermission", "version": "0.0.1", "summary": "ZYPermission is a tool", "homepage": "https://github.com/huzhongyin/ZYPermission", "license": "MIT", "authors": { "huzhongyin": "<EMAIL>" }, "source": { "git": "https://github.com/huzhongyin/ZYPermission.git", "tag": "0.0.1" }, "s...
309
37,508
#ifndef __UAPI_CAM_LRME_H__ #define __UAPI_CAM_LRME_H__ #include "cam_defs.h" /* LRME Resource Types */ enum CAM_LRME_IO_TYPE { CAM_LRME_IO_TYPE_TAR, CAM_LRME_IO_TYPE_REF, CAM_LRME_IO_TYPE_RES, CAM_LRME_IO_TYPE_DS2, }; #define CAM_LRME_INPUT_PORT_TYPE_TAR (1 << 0) #define CAM_LRME_INPUT_PORT_TYPE_REF (1 << 1) ...
649
3,710
#include "iwa_corridorgradientfx.h" #include "trop.h" #include "tparamuiconcept.h" #include "tspectrumparam.h" #include "gradients.h" #include <QPolygonF> #include <array> #include <algorithm> //------------------------------------------------------------ Iwa_CorridorGradientFx::Iwa_CorridorGradientFx() : m_sh...
5,551
369
from datetime import date, timedelta, datetime, time from django.contrib.contenttypes.models import ContentType from django.conf import settings from django.db import models from django.db import connections from django.utils import timezone from .models import Period, StatisticByDate, StatisticByDateAndObject clas...
3,392
1,444
package mage.cards.s; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.effects.common.RevealTopLandToBattlefieldElseHandEffect; import mage.abilities.keyword.VigilanceAbility; import mage.cards.Card...
513
357
#pragma once #include <string> #include <vector> #include "Vulkan.h" namespace Vulkan { /* * Class for loading and creating shaders. * Each shader has to be compiled to binary code before usage. */ class Shader final { public: NON_COPIABLE(Shader) Shader(const class Device& device, const std::string& ...
250
393
/******************************************************************************* * Copyright 2011 <NAME> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.o...
12,267
465
# -*- coding: utf8 -*- # Copyright (c) 2017-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...
42,658
5,964
<filename>third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp // 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 by code_generator_v8.py. DO NOT ...
16,834
583
<filename>src/lib/storage/create_iterable_from_segment.hpp #pragma once #include "types.hpp" namespace opossum { template <typename T> class ValueSegment; template <typename T> class DictionarySegment; template <typename T> class RunLengthSegment; template <typename T> class FixedStringDictionarySegment; templat...
920
1,132
// find corruption in an Indexdb dump #include "gb-include.h" #include <sys/types.h> #include <fcntl.h> bool mainShutdown ( bool urgent ) { return true; } bool closeAll ( void *state, void(*callback)(void *state) ) { return true; } bool allExit() { return true; } int main ( int argc , char *argv[] ) { int32_t coun...
603
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...
1,530
345
#include "pch.h" #include "Sqex_EqpGmp.h" std::vector<uint64_t> Sqex::EqpGmp::ExpandCollapse(const std::vector<uint64_t>& data, bool expand) { std::vector<uint64_t> newData; newData.reserve(CountPerBlock * 64); uint64_t populatedBits = 0; size_t sourceIndex = 0, targetIndex = 0; for (size_t i = 0; i < 64; i++)...
479
1,405
package com.network.android.monitor.observer; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.database.ContentObserver; import android.net.Uri; import android.os.Handler; import android.os.HandlerThread; import android.pro...
1,312
353
package com.wepay.waltz.storage.server.internal; import com.wepay.waltz.storage.exception.StorageException; import java.io.IOException; import java.nio.ByteBuffer; import java.util.UUID; public class SegmentFileHeader { private static final int VERSION = 0; public final int version; public final long c...
613
3,269
<gh_stars>1000+ #ifndef RUBY_TYPER_LSP_REQUESTS_REFERENCES_H #define RUBY_TYPER_LSP_REQUESTS_REFERENCES_H #include "main/lsp/LSPTask.h" namespace sorbet::realmain::lsp { class ReferenceParams; class ReferencesTask final : public LSPRequestTask { std::unique_ptr<ReferenceParams> params; public: ReferencesTask...
226
3,614
package com.central.oauth.service; import com.central.common.model.Result; import javax.servlet.http.HttpServletRequest; /** * @author zlt * @date 2018/12/10 * <p> * Blog: https://zlt2000.gitee.io * Github: https://github.com/zlt2000 */ public interface IValidateCodeService { /** * 保存图形...
443
1,958
//11. Container With Most Water /* Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contain...
468
358
{ "commandDescription": "Activates a duplicate rule in the target org", "nameFlagDescription": "Name of the duplicate rule" }
35
582
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.diagram.editparts; import java.util.ArrayList; import java.util.List; import org.eclipse.gef.CompoundSna...
989
1,738
<filename>dev/Gems/EMotionFX/Code/Tests/UI/CanAddAnimGraph.cpp /* * 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 govern...
966
763
package org.batfish.datamodel.packet_policy; public interface VrfExprVisitor<T> { default T visit(VrfExpr action) { return action.accept(this); } T visitLiteralVrfName(LiteralVrfName expr); T visitIngressInterfaceVrf(IngressInterfaceVrf expr); }
96
1,145
#!/usr/bin/env python """ This script creates or updates en-US repositories from Mozilla source code to use for Mozilla product localization. The author of the original script is <NAME> (ogi): https://twitter.com/OgnyanKulev This is his code: https://bitbucket.org/ogi/mozilla-l10n-po/ """ import datetime import os i...
1,565
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.password_manager; import org.chromium.base.annotations.CalledByNative; import org.chromium.base.annotations.NativeMet...
1,635
348
<filename>docs/data/leg-t2/042/04205332.json {"nom":"Villerest","circ":"5ème circonscription","dpt":"Loire","inscrits":3766,"abs":1941,"votants":1825,"blancs":106,"nuls":45,"exp":1674,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":858},{"nuance":"LR","nom":"Mme <NAME>","voix":816}]}
120
1,056
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
4,305
562
#include "GameMap.h" #include <cstring> extern GameMap gamemap; void Room::reset() { gPosition = start; GameTimer = maxTime; begin(); } void Room::begin() { for(auto& initfn:inits) initfn(); if(initscript) (*initscript)(); } void Room::update() { timeInRoom+=worldDeltaTime; if(runscript) (...
217
5,411
// Copyright Epic Games, Inc. All Rights Reserved. // This file is not intended to be included directly. Include eos_ui_types.h instead. /** Number of bits to shift the modifiers into the integer. */ EOS_UI_KEY_CONSTANT(EOS_UIK_, ModifierShift, 16) /** A mask to isolate the single key. */ EOS_UI_KEY_CONSTANT(EOS_UIK_...
2,716
335
<gh_stars>100-1000 { "word": "Encyclopedia", "definitions": [ "A book or set of books giving information on many subjects or on many aspects of one subject and typically arranged alphabetically." ], "parts-of-speech": "Noun" }
85
348
{"nom":"Cussac-sur-Loire","circ":"2ème circonscription","dpt":"Haute-Loire","inscrits":1302,"abs":614,"votants":688,"blancs":11,"nuls":2,"exp":675,"res":[{"nuance":"LR","nom":"<NAME>","voix":270},{"nuance":"REM","nom":"<NAME>","voix":204},{"nuance":"FI","nom":"<NAME>","voix":62},{"nuance":"FN","nom":"Mme <NAME>","voix"...
261
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "base/command_line.h" #include "base/macros.h" #include "base/process/launch.h" #include "base/run_loop.h" #include "base/test...
2,125