max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
6,457
package com.intel.realsense.sensor; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.os.Bundle; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import androidx.appcompat.app.AppCompatActivity; import android.util.Log...
3,902
2,792
<reponame>daniel-falk/nnabla # Copyright 2020,2021 Sony Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
1,565
1,444
package mage.cards.k; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.DealsDamageToAPlayerAttachedTriggeredAbility; import mage.abilities.effects.common.AttachEffect; import mage.abilities.effects.common.DrawCardSourceControllerEffect; import mage.abilities.keyword.EnchantAbility; i...
541
3,651
<filename>server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/command/post/OServerCommandPostImportDatabase.java /* * * Copyright 2010-2016 OrientDB LTD (http://orientdb.com) * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance...
2,429
1,338
#ifndef _MIDI_PORT_H #define _MIDI_PORT_H #include <Midi.h> class BMidiConsumer; class BMidiProducer; namespace BPrivate { class BMidiPortGlue; } class BMidiPort : public BMidi { public: BMidiPort(const char* name = NULL); ~BMidiPort(); status_t InitCheck() const; status_t Open(const char* name); void Clos...
670
4,140
/* * 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 ...
558
18,621
<filename>superset/datasets/commands/create.py # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licens...
1,488
4,345
// // Depot.h // Coding_iOS // // Created by <NAME> on 14-9-17. // Copyright (c) 2014年 Coding. All rights reserved. // #import <Foundation/Foundation.h> @interface Depot : NSObject @property (strong, nonatomic) NSNumber *id; @property (readwrite, nonatomic, strong) NSString *name, *path, *depot_path, *default_bra...
121
310
/// \file DefaultModuleCache.cpp #include "chi/DefaultModuleCache.hpp" #include <llvm-c/BitWriter.h> #include <cassert> #include "chi/BitcodeParser.hpp" #include "chi/Context.hpp" #include "chi/ModuleCache.hpp" #include "chi/Support/Result.hpp" namespace chi { DefaultModuleCache::DefaultModuleCache(chi::Context& ...
908
990
<reponame>krmartin/sparkling-water { "bundles" : [ { "bundleName" : "apache2", "licenseName" : "Apache License, Version 2.0", "licenseUrl" : "http://www.apache.org/licenses/LICENSE-2.0" }, { "bundleName" : "MIT", "licenseName" : "The MIT License", "licenseUrl" : "https://opensource.org/licenses/MIT"}, { "...
825
20,325
<reponame>yogeshpatel276052/generator-jhipster { "error": { "title": "Page d'erreur !", "http": { "400": "Mauvaise requête.", "403": "Vous n'avez pas les droits pour accéder à cette page.", "404": "La page n'existe pas.", "405": "Le verbe HTTP que vous...
306
305
<reponame>medismailben/llvm-project<gh_stars>100-1000 /* * lock-nested-unrelated.c -- Archer testcase */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // // See tools/archer/LICENSE.txt for details....
475
2,053
/* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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/licen...
1,053
1,030
""" Precompute ngram counts of captions, to accelerate cider computation during training time. """ import os import json import argparse from six.moves import cPickle import captioning.utils.misc as utils from collections import defaultdict import sys sys.path.append("cider") from pyciderevalcap.ciderD.ciderD_scorer ...
1,480
2,151
<filename>app/src/main/java/org/chromium/chrome/browser/compositor/resources/ResourceFactory.java // 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.compositor.resources...
386
2,504
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PA...
465
669
<reponame>mszhanyi/onnxruntime<gh_stars>100-1000 #!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ################################################################################ # Refer to orttraining_test_checkpoint.py for an overview about Checkpoi...
2,091
7,482
/*  * @ : Copyright (c) 2021 Phytium Information Technology, Inc.  *  * SPDX-License-Identifier: Apache-2.0. * * @Date: 2021-04-29 10:40:47 * @LastEditTime: 2021-04-29 10:40:47 * @Description:  Description of file * @Modify History: * * * Ver   Who        Date         Changes * * ----- ------     --------    ---...
1,711
1,250
{ "name": "url-shortener", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "url-shortener", "version": "1.0.0", "license": "MIT", "dependencies": { "form-data": "^4.0.0", "hashids": "^2.0.0" } }, "node_modules/as...
2,192
2,637
/* * The MIT License (MIT) * * Copyright (c) 2019 <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 without restriction, including without limitation the rights * to ...
1,415
3,882
"""Tests for reloading generated pyi.""" from pytype import file_utils from pytype.pytd import pytd_utils from pytype.tests import test_base class ReingestTest(test_base.BaseTest): """Tests for reloading the pyi we generate.""" def test_container(self): ty = self.Infer(""" class Container: def...
4,168
2,529
/* 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...
4,253
1,529
/* * Copyright (c) 2016 咖枯 <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
380
352
# coding=utf-8 import sys, traceback, argparse from py4j.java_gateway import java_import, JavaGateway, GatewayClient from py4j.java_collections import JavaMap, JavaList from pyspark.sql.types import * from mistpy.executable_entry import load_entry from mistpy.context_wrapper import ContextWrapper from mistpy.decorat...
1,339
6,989
import numpy as np from ._fortran import * from scipy._lib._version import NumpyVersion # Don't use deprecated Numpy C API. Define this to a fixed version instead of # NPY_API_VERSION in order not to break compilation for released Scipy versions # when Numpy introduces a new deprecation. Use in setup.py:: # # con...
290
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 ...
17,315
328
// Copyright 2022 The BladeDISC 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 applicable l...
1,665
500
<filename>OpenBCI_GUI/libraries/oscP5/src/netP5/NetMessage.java /** * A network library for processing which supports UDP, TCP and Multicast. * * (c) 2004-2012 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by ...
1,163
15,337
<gh_stars>1000+ from django.apps import AppConfig from django.conf import settings from django.db.models import Field from .db.filters import PostgresILike class CoreAppConfig(AppConfig): name = "saleor.core" def ready(self): Field.register_lookup(PostgresILike) if settings.SENTRY_DSN: ...
156
984
<reponame>om-sharma/java-driver /* * Copyright DataStax, 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 ap...
3,770
664
#!/usr/bin/env python import glob import os import sys # usage: parse_peer_log <path-to-libtorrent-peer-logs> log_files = [] for p in glob.iglob(os.path.join(sys.argv[1], '*.log')): name = os.path.split(p)[1] if name == 'main_session.log': continue print name f = open(p, 'r') out_file = p + '.dat' log_files.a...
691
2,151
<gh_stars>1000+ // 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. #ifndef ASH_NETWORK_CONNECT_DELEGATE_MUS_H_ #define ASH_NETWORK_CONNECT_DELEGATE_MUS_H_ #include "base/macros.h" #include "chromeos/netwo...
455
317
// Released under the MIT License. See LICENSE for details. #ifndef BALLISTICA_PYTHON_CLASS_PYTHON_CLASS_SESSION_PLAYER_H_ #define BALLISTICA_PYTHON_CLASS_PYTHON_CLASS_SESSION_PLAYER_H_ #include "ballistica/core/object.h" #include "ballistica/python/class/python_class.h" namespace ballistica { class PythonClassSess...
1,064
482
<gh_stars>100-1000 package io.cattle.platform.configitem.server.template; import io.cattle.platform.configitem.server.resource.Resource; import java.io.IOException; public interface TemplateLoader { public static final int NO_PRIORITY = Integer.MAX_VALUE; public static final int HIGH_PRIORITY = 100; pub...
158
460
/******************************************************************************* * Copyright 2015 <NAME>, <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...
1,859
1,144
<gh_stars>1000+ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or...
1,314
23,439
/* * Copyright 1999-2021 Alibaba Group Holding 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...
820
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Sauveterre","circ":"3ème circonscription","dpt":"Gard","inscrits":1659,"abs":932,"votants":727,"blancs":66,"nuls":27,"exp":634,"res":[{"nuance":"REM","nom":"<NAME>","voix":403},{"nuance":"FN","nom":"<NAME>","voix":231}]}
112
2,151
<filename>code/jshrink/jshrink-lib/src/test/resources/junit4/src/test/java/org/junit/validator/AnnotationsValidatorTest.java package org.junit.validator; import static java.util.Arrays.asList; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.lang.annotation.Inherited;...
1,223
431
<reponame>rwinch/thymeleaf-extras-springsecurity<filename>thymeleaf-extras-springsecurity3/src/main/java/org/thymeleaf/extras/springsecurity3/dialect/processor/AuthorizeAclAttrProcessor.java /* * ============================================================================= * * Copyright (c) 2011-2018, The THYMELEA...
1,960
3,102
#include "cxx-irgen-top.h" inline int h() { return S<int>::f(); } namespace ImplicitSpecialMembers { inline void create_right() { // Trigger declaration, but not definition, of special members. B b(0); C c(0); D d(0); // Trigger definition of move constructor. B b2(static_cast<B&&>(b)); D d2(sta...
133
675
<filename>engine/core/render/base/shader/editor/shader_editor.h<gh_stars>100-1000 #pragma once #include "engine/core/render/base/shader/shader_program.h" namespace Echo { #ifdef ECHO_EDITOR_MODE class ShaderEditor : public ObjectEditor { public: ShaderEditor(Object* object); virtual ~Shade...
200
777
// 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. #include "gmock/gmock.h" namespace blink { class Interface { public: virtual void myMethod(int my_param) {} }; class MockedInterface : public Interf...
204
2,164
<gh_stars>1000+ // // Crashlytics.h // Crashlytics // // Copyright (c) 2015 Crashlytics, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "CLSAttributes.h" #import "CLSLogging.h" #import "CLSReport.h" #import "CLSStackFrame.h" #import "Answers.h" NS_ASSUME_NONNULL_BEGIN @protocol Crashlytic...
3,343
9,516
import argparse import json import logging import os from time import time import dgl import torch import torch.nn import torch.nn.functional as F from dgl.data import LegacyTUDataset from dgl.dataloading import GraphDataLoader from torch.utils.data import random_split from network import get_sag_network from utils im...
3,399
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stda...
686
753
<filename>tests/test_message_request_handler.py import unittest from test_mocks import MockSession from LSP.plugin.core.message_request_handler import MessageRequestHandler import sublime class MessageRequestHandlerTest(unittest.TestCase): def test_show_popup(self): window = sublime.active_window() ...
316
428
/** * Copyright 2008 - 2011 * * 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 wr...
12,431
571
<gh_stars>100-1000 package camelinaction; import org.apache.camel.Exchange; import org.apache.camel.test.spring.CamelSpringTestSupport; import org.junit.Test; import org.springframework.context.support.AbstractXmlApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * Uni...
423
2,062
<filename>tests/aiohttp/app.py from aiohttp import web from strawberry.aiohttp.handlers import GraphQLTransportWSHandler, GraphQLWSHandler from strawberry.aiohttp.views import GraphQLView from tests.aiohttp.schema import Query, schema class DebuggableGraphQLTransportWSHandler(GraphQLTransportWSHandler): async def...
464
1,840
/** * Copyright Pravega 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 agreed to...
3,895
547
<gh_stars>100-1000 // CoreBitcoin by <NAME> <<EMAIL>>, WTFPL. #import <Foundation/Foundation.h> #import <openssl/bn.h> // Bitcoin-flavoured big number wrapping OpenSSL BIGNUM. // It is doing byte ordering like bitcoind does to stay compatible. // BTCBigNumber is immutable. BTCMutableBigNumber is its mutable counterpa...
1,626
4,538
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef __INTERSYSHCI_H__ #define __INTERSYSHCI_H__ #include "trans_adapt.h" #if defined(__cplusplus) extern "C" { #endif void BESHCI_BufferAvai(void *packet); void BESHCI_Open(void); void BESHCI_Close(void); void BESHCI_Poll(void); void BESHCI_LockBuf...
353
809
<reponame>mfkiwl/embox /** * @file qspi.c * @brief QSPI flash driver (currently just for STM32F7Discovery) * @author <NAME> <<EMAIL>> * @version * @date 07.06.2019 */ #include <embox/unit.h> #include "stm32h745i_discovery.h" #include "stm32h745i_discovery_qspi.h" EMBOX_UNIT_INIT(stm32h7_qspi_init); static int...
330
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. #ifndef COMPONENTS_VIZ_SERVICE_FRAME_SINKS_VIDEO_CAPTURE_CAPTURABLE_FRAME_SINK_H_ #define COMPONENTS_VIZ_SERVICE_FRAME_SINKS_VIDEO_CAPTURE_CAPTURABLE_FRAM...
831
3,976
from app import app from flask import render_template @app.route('/') def index(): return render_template('index.html') @app.route('/postmessage',methods=["POST",]) def postMessage(): return render_template('handlemessage.html')
75
1,168
<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 "Lic...
3,335
10,504
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
282
643
// Generated automatically from okhttp3.internal.http2.ErrorCode for testing purposes package okhttp3.internal.http2; public enum ErrorCode { CANCEL, COMPRESSION_ERROR, CONNECT_ERROR, ENHANCE_YOUR_CALM, FLOW_CONTROL_ERROR, FRAME_SIZE_ERROR, HTTP_1_1_REQUIRED, INADEQUATE_SECURITY, INTERNAL_ERROR, NO_ERROR, PROTOC...
237
852
<reponame>Purva-Chaudhari/cmssw<filename>DQM/Physics/src/TopDiLeptonDQM.cc /* * $Date: 2012/01/11 13:53:29 $ * $Revision: 1.14 $ * \author <NAME> - DESY Hamburg */ #include "TLorentzVector.h" #include "DataFormats/Math/interface/deltaR.h" #include "DataFormats/Provenance/interface/RunLumiEventNumber.h" ...
10,220
590
/******************************************************************************* * Copyright 2017 Bstek * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/l...
794
2,757
<reponame>BearerPipelineTest/google-ctf<gh_stars>1000+ #include <cerrno> #include <iostream> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/wait.h> #include <sys/times.h> #include <unistd.h> #include <fstream> #include <string> #include <vector> #include <map> #include <f...
4,035
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 * ...
597
401
package com.almasb.civ6menu; import javafx.animation.*; import javafx.application.Application; import javafx.application.Platform; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.effect.DropShadow; import javafx.scene.image.Image; import javafx.scene.image.ImageView...
1,771
626
#ifndef POISSONDISCSAMPLER_H #define POISSONDISCSAMPLER_H #include <vector> #include <cmath> #include <stdlib.h> #include <time.h> #include "dcel.h" #include "extents2d.h" namespace PoissonDiscSampler { using namespace dcel; struct GridIndex { int i = 0; int j = 0; GridIndex() {} ...
1,226
629
<reponame>unghee/TorchCraftAI /* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "gameutils/game.h" #include "test.h" #include "buildorders/base.h" #include "modules.h" #include ...
670
1,056
#pragma once #include "../netvars.hpp" #include "vector.h" #include "../../utils/utils.hpp" #include <functional> inline std::map<float, int, std::greater<float>> entityDistanceMap; // Map containing entity distance void cachePlayers(); class ICollideable { public: virtual void pad0(); virtual const Vector& OBBMins...
2,243
4,372
<reponame>Trydamere/shardingsphere /* * 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, Versi...
957
1,853
<reponame>galorojo/cppinsights<gh_stars>1000+ auto gp = new int[2][3][4]; auto gz = new int[1]; auto gx = new int; auto gu = new int[0x2][0x3][0x4]; int main() { }
82
1,545
<filename>tsai/__init__.py __version__ = "0.2.25"
23
1,119
import matplotlib as mpl # This line allows mpl to run with no DISPLAY defined mpl.use('Agg') from keras.layers import Flatten, Dropout, LeakyReLU, Input, Activation from keras.models import Model from keras.layers.convolutional import UpSampling2D from keras.optimizers import Adam from keras.datasets import mnist im...
1,925
466
/* Copyright (c) 2010, NullNoname 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 must retain the above copyright notice, this ...
3,020
4,310
<gh_stars>1000+ // // MRCOAuthViewController.h // MVVMReactiveCocoa // // Created by leichunfeng on 16/5/15. // Copyright © 2016年 leichunfeng. All rights reserved. // #import "MRCWebViewController.h" @interface MRCOAuthViewController : MRCWebViewController @end
103
3,084
<filename>network/ndis/netvmini/6x/mphal.c /*++ Copyright (c) Microsoft Corporation. All rights reserved. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FO...
14,321
662
<reponame>magicboylinw/autobahn-java /////////////////////////////////////////////////////////////////////////////// // // AutobahnJava - http://crossbar.io/autobahn // // Copyright (c) Crossbar.io Technologies GmbH and contributors // // Licensed under the MIT License. // http://www.opensource.org/licenses/mit...
215
3,301
<reponame>vacaly/Alink package com.alibaba.alink.params.dataproc.format; import com.alibaba.alink.params.io.HasQuoteCharDefaultAsDoubleQuote; import com.alibaba.alink.params.io.HasSchemaStr; public interface FromCsvParams<T> extends HasCsvCol <T>, HasSchemaStr <T>, HasCsvFieldDelimiterDefaultAsComma <T>, HasQuote...
133
2,151
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
297
410
// Copyright(c) 2017 POLYGONTEK // // 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 i...
1,611
2,449
package com.pinterest.deployservice.db; import com.pinterest.deployservice.bean.DeployConstraintBean; import com.pinterest.deployservice.bean.SetClause; import com.pinterest.deployservice.bean.TagSyncState; import com.pinterest.deployservice.bean.UpdateStatement; import com.pinterest.deployservice.dao.DeployConstraint...
1,150
7,409
<gh_stars>1000+ # Generated by Django 3.2.5 on 2021-11-29 14:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("posthog", "0183_groups_pg"), ] operations = [ migrations.DeleteModel(name="SessionsFilter",), ]
115
8,805
// Copyright 2005 The Trustees of Indiana University. // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Authors: <NAME> // <NAME> #ifndef BOOST_GRAPH_PARALLE...
984
2,236
<filename>solution/greedy/1931/main.py # Authored by : gusdn3477 # Co-authored by : - # Link : http://boj.kr/7150be3ff485402ebb4c5011fa88ac7d import sys def input(): return sys.stdin.readline().rstrip() N = int(input()) arr = [] total = 1 for i in range(N): a,b = map(int, input().split()) arr.append((a,b...
234
335
<filename>K/Kumquat_noun.json { "word": "Kumquat", "definitions": [ "An orange-like fruit related to the citruses, with an edible sweet rind and acid pulp.", "The East Asian shrub or small tree that yields the kumquat." ], "parts-of-speech": "Noun" }
116
937
<gh_stars>100-1000 package com.oath.cyclops.util.function; import static cyclops.function.Predicates.anyOf; import static cyclops.function.Predicates.eq; import static cyclops.function.Predicates.eqv; import static cyclops.function.Predicates.eqv2; import static cyclops.function.Predicates.greaterThan; import static c...
1,583
1,176
<gh_stars>1000+ // Copyright 2017 <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 agr...
12,269
1,223
package carpet.mixins; import carpet.CarpetSettings; import net.minecraft.world.gen.heightprovider.TrapezoidHeightProvider; import org.apache.logging.log4j.Logger; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Redirect; @Mixin(T...
295
11,775
<filename>jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/WarProjectIntegrationTest.java /* * Copyright 2018 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 * th...
761
578
<gh_stars>100-1000 /* * Copyright (c) Facebook, Inc. and 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.0 * * Unless...
1,402
2,757
<filename>MdeModulePkg/Include/Protocol/SmmReadyToBoot.h /** @file EDKII SMM Ready To Boot protocol. This SMM protocol is to be published by the SMM Foundation code to associate with EFI_EVENT_GROUP_READY_TO_BOOT to notify SMM driver that system enter ready to boot. Copyright (c) 2015, Intel Corporat...
407
1,687
package cn.leetcode.sorting; import cn.leetcode.examples.GenerateRandomArrayStrategy; import cn.leetcode.utils.SortingUtil; /** * @author liweiwei1419 * @date 2019/9/8 4:32 AM */ public class MergeSortInPlace implements ISortingAlgorithm { /** * 列表大小等于或小于该大小,将优先于 mergesort 使用插入排序 */ private stat...
2,696
348
{"nom":"Villapourçon","circ":"2ème circonscription","dpt":"Nièvre","inscrits":346,"abs":169,"votants":177,"blancs":2,"nuls":20,"exp":155,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":78},{"nuance":"SOC","nom":"<NAME>","voix":77}]}
94
1,125
<reponame>peterjc123/XNNPACK // Copyright 2020 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <assert.h> #include <stddef.h> #include <immintrin.h> #include <xnnpack/math.h> #include <xnnpack/math-stubs.h> v...
713
369
/* ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support * ---------------------------------------------------------------------------- * Copyright (c) 2008, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and...
1,890
517
from __future__ import absolute_import, division, print_function, unicode_literals from .takes import ZERO, PENNY class Membership(object): """Teams may have zero or more members, who are participants that take money from the team. """ def add_member(self, participant, recorder): """Add a partic...
821
462
/****************************************************************************** * Project: OGR * Purpose: OGRGMLASDriver implementation * Author: <NAME>, <even dot rouault at spatialys dot com> * * Initial development funded by the European Earth observation programme * Copernicus * ************************...
3,270
577
package javatests; public class Coercion { public static void string_array(String[] args) { } }
42
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Vaychis","circ":"1ère circonscription","dpt":"Ariège","inscrits":46,"abs":22,"votants":24,"blancs":3,"nuls":2,"exp":19,"res":[{"nuance":"REM","nom":"<NAME>","voix":11},{"nuance":"FI","nom":"<NAME>","voix":8}]}
116
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...
2,264
5,535
from mock import * from .gp_unittest import * from gpcheckcat_modules.repair_missing_extraneous import RepairMissingExtraneous class RepairMissingExtraneousTestCase(GpTestCase): def setUp(self): self.all_seg_ids = [-1,0,1,2,3] self.table_name = 'pg_attribut"e' self.catalog_table_obj = Mock...
3,971
4,538
/* Copyright 2020 The TensorFlow 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 applicable law or a...
2,329