max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.frameworks.governanceaction.ffdc; import org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition; import org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedE...
983
5,169
<reponame>Gantios/Specs { "name": "DolphinPlayerONSports", "platforms": { "ios": "9.0" }, "summary": "Supported DRM player for ON Sports app.", "requires_arc": true, "xcconfig": { "VALID_ARCHS": "armv7 arm64 x86_64" }, "version": "1.4.6", "license": { "type": "MIT", "file": "LICENSE" ...
450
428
<gh_stars>100-1000 { "name": "Quran API", "description": "Quran API with media audio", "repository": "https://github.com/sutanlab/quran-api.git", "stack": "heroku-18", "buildpacks": [ { "url": "heroku/nodejs" } ], "env": { "BASE_URL": { "description": "Your website URL", "re...
197
372
/* * 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 distributed under t...
2,097
1,059
<reponame>caesarcc/python-code-tutorials import numpy as np import matplotlib.pyplot as plt import cv2 import sys # read the image image = cv2.imread(sys.argv[1]) # convert to grayscale grayscale = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # perform edge detection edges = cv2.Canny(grayscale, 30, 100) # detect lines ...
272
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. @ExportPackage package com.yahoo.vespa.hosted.provision.provisioning; import com.yahoo.osgi.annotation.ExportPackage; /** Implements the provisioning API to perform node provisioning from a node repository */
84
325
package nl.utwente.viskell.haskell.type; import com.google.common.base.Joiner; import com.google.common.base.Strings; import java.util.List; public class TupleTypeCon extends TypeCon { /* * @param arity the number of arguments (>= 2) or 0 in the type */ TupleTypeCon(int arity) { super(tupl...
458
3,200
/** * Copyright 2021 Huawei Technologies Co., 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 applicable law...
1,398
1,064
<reponame>h-sug1no/Soundpipe #include "soundpipe.h" #include "md5.h" #include "tap.h" #include "test.h" typedef struct { sp_wpkorg35 *wpkorg35; sp_noise *noise; sp_randi *randi; } UserData; int t_wpkorg35(sp_test *tst, sp_data *sp, const char *hash) { uint32_t n; int fail = 0; SPFLOAT noise = ...
697
1,122
// Copyright (c) Microsoft Corporation // SPDX-License-Identifier: MIT #include <vector> #include "api_common.hpp" // The file implements a cache of map descriptors as used by the // verifier. It operates on original file descriptors (which // might be mock file descriptors) that appear in the eBPF byte // code befo...
1,325
575
<gh_stars>100-1000 // 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 "extensions/common/manifest_handlers/action_handlers_handler.h" #include <memory> #include <utility> #include "base/strings/...
1,266
692
package com.hubspot.singularity.api; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; import java.util.Objects; @Schema(description = "Describes parameters to fetch the next page of results from s3") public cl...
517
4,054
<reponame>Thendont/lwjgl<gh_stars>1000+ /* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ #include "common_tools.h" #include "opengl.h" typedef void (APIENTRY *glReleaseShaderCompilerPROC) (void); typedef void (APIENTRY *glShaderBinar...
17,022
1,109
<gh_stars>1000+ # -*- coding: utf-8 -*- import base64 import datetime import hashlib import hmac import json import math import os import requests import time import urllib import decimal from cdecimal import * from collections import OrderedDict from delorean import Delorean, parse from urllib import urlencode from g...
477
351
<gh_stars>100-1000 {"name":{"common":"United States Minor Outlying Islands","official":"United States Minor Outlying Islands","Native":{"eng":{"common":"United States Minor Outlying Islands","official":"United States Minor Outlying Islands"}}},"EuMember":false,"LandLocked":false,"Nationality":"","tld":[".us"],"Language...
454
4,342
<gh_stars>1000+ from asyncio import Future from typing import cast, Callable, Union from rx import from_future from rx.core import Observable from rx.disposable import CompositeDisposable, SingleAssignmentDisposable from rx.internal.utils import is_future def _skip_until(other: Union[Observable, Future]) -> Callable...
766
794
/* * 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")...
5,740
1,792
package com.previewlibrary.view; import android.content.Context; import com.previewlibrary.R; /** * @author yangc * date 2017/11/22 * E-Mail:<EMAIL> * Deprecated: */ public class ImageUtils { /** * 取状态栏高度 * * @param mApplicationContent mApplicationContent * @ret...
501
14,668
<gh_stars>1000+ // 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.components.signin.identitymanager; import org.chromium.base.ObserverList; import org.chromium.base.Promise; import o...
994
460
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the QtCore module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** ...
14,632
309
/** * The MIT License (MIT) * * Copyright © 2017-2020 <NAME> * * 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, c...
714
721
<filename>generated/google-apis-language_v1beta2/.repo-metadata.json { "api_id": "language:v1beta2", "name_pretty": "Cloud Natural Language API", "distribution_name": "google-apis-language_v1beta2", "language": "ruby", "library_type": "REST" }
106
1,236
# -*- coding: utf-8 -*- """ Provides vimcmd, a wrapper for python functions that will be called from vim """ import functools import json import logging try: import vim # pylint: disable=import-error _has_vim = True except ImportError: _has_vim = False logger = logging.getLogger('omnisharp') def vimcm...
631
1,553
<filename>Contents/Libraries/Shared/json_tricks/utils.py from collections import OrderedDict class hashodict(OrderedDict): """ This dictionary is hashable. It should NOT be mutated, or all kinds of weird bugs may appear. This is not enforced though, it's only used for encoding. """ def __hash__(self): return ...
815
14,425
/** * 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...
646
332
import requests from bs4 import BeautifulSoup url = 'https://www.ptt.cc/bbs/movie/index.html' response = requests.get(url) soup = BeautifulSoup(response.text, 'lxml') articles = soup.find_all('div', 'r-ent') for article in articles: meta = article.find('div', 'title').find('a') title = meta.getText().strip()...
196
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Counterclaim", "definitions": [ "Make a counterclaim for something." ], "parts-of-speech": "Verb" }
76
1,506
#!/usr/bin/python # coding: utf8 from __future__ import absolute_import from geocoder.location import Location from geocoder.here import HereResult, HereQuery class HereReverseResult(HereResult): @property def ok(self): return bool(self.address) class HereReverse(HereQuery): """ HERE Geoc...
496
335
<reponame>timgates42/dlint<filename>tests/test_util.py<gh_stars>100-1000 #!/usr/bin/env python from __future__ import ( absolute_import, division, print_function, unicode_literals, ) import unittest import dlint class TestUtil(unittest.TestCase): def test_abc(self): assert dlint.util.A...
157
3,897
<gh_stars>1000+ /* * Copyright (c) 2018-2018, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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.apa...
1,767
399
/* * * * 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,164
1,168
// Other flavors of template arguments don't confuse aliasing. //- @C defines/binding AbsC //- ClassC childof AbsC //- ClassC.node/kind record //- @f defines/binding FnF //- FnF childof ClassC template <void*> class C { public: void f() { } }; void g() { typedef C<nullptr> I; I i; i.f(); }
101
1,556
<reponame>mkomon/micropython-lib # Ping-pong GATT notifications between two devices. import sys sys.path.append("") from micropython import const import time, machine import uasyncio as asyncio import aioble import bluetooth TIMEOUT_MS = 5000 SERVICE_UUID = bluetooth.UUID("A5A5A5A5-FFFF-9999-1111-5A5A5A5A5A5A") C...
1,031
831
<gh_stars>100-1000 /* * 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 * * Unl...
869
852
import FWCore.ParameterSet.Config as cms process = cms.Process("L1ConfigWritePayloadDummy") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cout.enable = cms.untracked.bool(True) process.MessageLogger.cout.threshold = cms.untracked.string('INFO') process.MessageLogger.debugModules = cms.un...
1,111
5,703
<reponame>martin-mfg/springfox /* * * Copyright 2015-2019 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/license...
1,079
460
package de.saxsys.mvvmfx.examples.contacts.ui.editcontact; import javax.inject.Singleton; import de.saxsys.mvvmfx.FxmlView; import de.saxsys.mvvmfx.InjectViewModel; import de.saxsys.mvvmfx.examples.contacts.ui.contactdialog.ContactDialogView; import javafx.fxml.FXML; import javafx.stage.Stage; @Singleton public clas...
277
4,857
<filename>hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorUtils.java /** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. T...
1,246
631
<filename>activeweb/src/test/java/app/controllers/Route3Controller.java package app.controllers; import org.javalite.activeweb.AppController; /** * @author <NAME>: 1/4/12 4:26 PM */ public class Route3Controller extends AppController { public void show(){ view("id", getId()); } }
106
543
<gh_stars>100-1000 /* * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * pub...
601
17,085
// Copyright (c) 2018 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 requir...
690
688
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.recognizers.text.datetime.extractors; import com.microsoft.recognizers.text.ExtractResult; import com.microsoft.recognizers.text.datetime.Constants; import com.microsoft.recognizers...
5,482
1,011
# Generated by Django 3.0.3 on 2020-02-06 10:24 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("example", "0007_artproject_description"), ] operations = [ migrations.CreateModel( name="LabRes...
653
14,668
// Copyright 2013 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 <stddef.h> #include <memory> #include "base/test/task_environment.h" #include "components/omnibox/browser/autocomplete_controller.h" #include "...
1,066
3,073
/* j/4/in_run.c ** */ #include "all.h" // [a] is RETAINED, [out] is TRANSFERRED // static void _in_run(u3_noun a, u3j_site* sit_u, u3_noun* out) { if ( u3_nul == a ) { return; } else { u3_noun n_a, l_a, r_a; u3x_trel(a, &n_a, &l_a, &r_a); { u3_noun new = u3j_gate_slam(sit_u, u3k(n_a)); ...
504
892
<filename>advisories/github-reviewed/2018/08/GHSA-534w-937m-v7x3/GHSA-534w-937m-v7x3.json { "schema_version": "1.2.0", "id": "GHSA-534w-937m-v7x3", "modified": "2021-01-08T19:52:04Z", "published": "2018-08-03T21:04:02Z", "aliases": [ "CVE-2018-3777" ], "summary": "High severity vulnerability that affe...
934
1,467
<gh_stars>1000+ { "version": "2.16.27", "date": "2021-03-25", "entries": [ { "type": "feature", "category": "Amazon Lookout for Metrics", "contributor": "", "description": "Amazon Lookout for Metrics is now generally available. You can use Lookout for ...
968
2,962
/* * Copyright (c) 2021, The OpenThread Authors. * 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 * notice, this ...
1,208
19,046
<reponame>Aoikiseki/folly /* * 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 * *...
2,644
6,180
<reponame>Smit-create/cupy # flake8: NOQA from cupyx.scipy.linalg.special_matrices import ( tri, tril, triu, toeplitz, circulant, hankel, hadamard, leslie, kron, block_diag, companion, helmert, hilbert, dft, fiedler, fiedler_companion, convolution_matrix ) from cupyx.scipy.linalg.solve_triangular import...
187
9,095
# This file is not meant for public use and will be removed in SciPy v2.0.0. # Use the `scipy.optimize` namespace for importing the functions # included below. import warnings from . import _minpack_py __all__ = [ # noqa: F822 'LEASTSQ_FAILURE', 'LEASTSQ_SUCCESS', 'LinAlgError', 'OptimizeResult', ...
588
990
import pytest import schedule_v5 as schedule @pytest.fixture def records(): yield schedule.load(schedule.JSON_PATH) def test_load(records): assert len(records) == 895 def test_record_attr_access(): rec = schedule.Record(spam=99, eggs=12) assert rec.spam == 99 assert rec.eggs == 12 def test_v...
573
588
package com.flycms.module.score.model; import com.flycms.module.user.model.User; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.util.Date; /** * * 开发公司:97560.com<br/> * 版权:97560.com<br/> * <p> * * 积分模块--积分记录实体类 * * <p> * * 区分 责任人 日期    说明<br/> * 创建 孙开飞 2017年10月15日 ...
428
631
<filename>Wrappers/OpenNI.java/src/org/openni/Observable.java /***************************************************************************** * * * OpenNI 1.x Alpha * * Copyright (C) 2...
1,740
587
{ "s":1, "v":{ "componentDef":{ "descriptor":"markup://test:test_LocChng_CompositeComponent" }, "creationPath":"/*[1]" } }
72
809
# Copyright 2020 Google, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
981
1,156
<filename>reagent/models/no_soft_update_embedding.py #!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import copy import torch.nn as nn class NoSoftUpdateEmbedding(nn.Embedding): """ Use this instead of vanilla Embedding module to avoid soft-updating the embeddi...
147
746
package proton.inject.fragment; import proton.inject.Proton; import android.os.Bundle; import android.support.v4.app.DialogFragment; public class ProtonDialogFragment extends DialogFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Proton.getInjector(getAc...
119
1,517
/* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the Apache 2.0 License. * See the accompanying LICENSE file for terms. */ package com.yahoo.squidb.sql; import com.yahoo.squidb.utility.VersionCode; import java.util.ArrayList; import java.util.Collection; import java.util.List; public final class SqlBu...
1,817
1,652
<reponame>ctripcorp/x-pipe package com.ctrip.xpipe.redis.console.service.impl; import com.ctrip.xpipe.redis.console.dao.ShardDao; import com.ctrip.xpipe.redis.console.model.SetinelTbl; import com.ctrip.xpipe.redis.console.model.ShardTbl; import com.google.common.collect.Lists; import com.google.common.collect.Maps; im...
2,912
1,231
<filename>Receivers/unix/network.c #include "network.h" static rctx_network_t rctx_network; int init_network(enum receiver_type receiver_mode, in_addr_t interface, int port, char* multicast_group) { rctx_network.sockfd = socket(AF_INET,SOCK_DGRAM,0); memset((void *)&(rctx_network.servaddr), 0, sizeof(rctx_networ...
626
468
import torch from torch import nn, optim from Losses.LossInterface import LossInterface def gaussian_fn(M, std): n = torch.arange(0, M) - (M - 1.0) / 2.0 sig2 = 2 * std * std w = torch.exp(-n ** 2 / sig2) return w def gkern(ylen=256, xlen=256, stdy=128, stdx=128): """Returns a 2D Gaussian kernel ...
748
825
// // HMCanvasByGraphicInternelView.h // Hummer // // Created by litianhao on 2021/8/2. // #import <UIKit/UIKit.h> #import "HMCanvasViewInterface.h" @interface HMCanvasByGraphicInternelView : UIView <HMCanvasViewInterface> @end
93
343
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
401
778
<reponame>lkusch/Kratos<filename>kratos/python/add_quaternion_to_python.cpp<gh_stars>100-1000 // // | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // ...
933
772
# Copyright 2020 The FedLearner 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 applica...
1,498
575
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/at_exit.h" #include "base/bind.h" #include "base/command_line.h" #include "base/message_loop/message_pump.h" #include "base/task/single...
825
1,743
""" Module holds all stuff regarding Siege tool usage Copyright 2015 BlazeMeter 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 ...
3,897
4,772
<reponame>fjacobs/spring-data-examples package example.repo; import example.model.Customer21; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer21Repository extends CrudRepository<Customer21, Long> { List<Customer21> findByLastName(String lastName); }
99
310
<gh_stars>100-1000 package org.seasar.doma.jdbc.query; import java.sql.Statement; public interface BatchInsertQuery extends BatchModifyQuery { boolean isBatchSupported(); void generateId(Statement statement, int index); }
71
364
<gh_stars>100-1000 // File implement/oglplus/enums/polygon_mode_class.ipp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/polygon_mode.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2019 <NAME>. // Distributed under the Boost So...
867
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 ...
1,477
4,640
# 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 u...
4,786
645
<reponame>tkhieu/bonfire-firebase-sample package com.novoda.bonfire.navigation; import android.app.Activity; import android.content.Intent; import com.novoda.bonfire.R; import com.novoda.bonfire.channel.ChannelsActivity; import com.novoda.bonfire.channel.NewChannelActivity; import com.novoda.bonfire.channel.data.mode...
768
2,338
<gh_stars>1000+ //===-- TraceInstructionDumper.cpp ----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===-----------...
4,132
324
/* * 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 ...
9,175
1,350
<filename>sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/ExternalSecuritySolutionImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com...
455
453
from torch import optim from ..models.model import Model from ..utils import tolist class VAE(Model): """ Variational Autoencoder. In VAE class, reconstruction loss on given distributions (encoder and decoder) is set as the default loss class. However, if you want to add additional terms, e.g., the ...
936
765
<gh_stars>100-1000 # TestAsanSwift.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://s...
1,501
4,074
/** * Illustrates a simple map partitions in Java to compute the average */ package com.oreilly.learningsparkexamples.java; import java.util.Arrays; import java.util.ArrayList; import java.util.List; import java.util.Iterator; import org.apache.commons.lang.StringUtils; import org.eclipse.jetty.client.ContentExcha...
981
1,607
<filename>src/test/java/org/assertj/core/api/recursive/comparison/DualValueDequeTest.java /* * 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 * ...
1,590
506
<gh_stars>100-1000 // https://open.kattis.com/problems/kastenlauf #include <iostream> #include <vector> #include <tuple> using namespace std; typedef tuple<int, int> ii; typedef vector<bool> vb; typedef vector<ii> vii; bool s(const vii &a, vb &v, int i) { if (i == a.size() - 1) return true; v[i] = true; for (int ...
432
30,023
{ "config": { "abort": { "already_configured": "Dispositivo j\u00e1 est\u00e1 configurado", "already_in_progress": "O fluxo de configura\u00e7\u00e3o j\u00e1 est\u00e1 em andamento", "no_devices_found": "Nenhum dispositivo restante encontrado" }, "error": ...
638
337
<gh_stars>100-1000 class C { String foo() { class Local { String foo() { return null; } } new Local().foo(); return ""; } }
91
879
<reponame>qianfei11/zstack<filename>test/src/test/java/org/zstack/test/core/db/TestSimpleQuery.java<gh_stars>100-1000 package org.zstack.test.core.db; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowire; import org.springframework....
1,627
1,593
<gh_stars>1000+ /* * Written by <NAME> of Azul Systems, and released to the public domain, * as explained at http://creativecommons.org/publicdomain/zero/1.0/ * * @author <NAME> */ package org.HdrHistogram; import java.io.*; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException...
30,255
567
<reponame>sdepablos/bigquery-utils package com.google.cloud.bigquery.utils.queryfixer.errors; import com.google.cloud.bigquery.BigQueryException; import com.google.cloud.bigquery.utils.queryfixer.entity.Position; import lombok.Getter; /** * A class to represent the "Unrecognized Name" errors. The unrecognized names...
423
851
# Copyright (c) <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 # use, copy, modify, merge, publish, distri...
2,761
446
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <mutex> #include "glad/glad.h" #include "GLFW/glfw3.h" #include "linmath.h" #include "WindowController3dTypes.h" #include "RendererBase.h" #include "CoordinateAxes.h" #include "C...
785
849
<reponame>actly/SSVM // SPDX-License-Identifier: Apache-2.0 #include "common/defines.h" #if WASMEDGE_OS_WINDOWS #include "common/errcode.h" #include "host/wasi/environ.h" #include "win.h" namespace WasmEdge { namespace Host { namespace WASI { WasiExpect<void> Environ::procRaise(__wasi_signal_t Signal) const noexcept...
853
3,269
// Time: O(nlogn) // Space: O(n) class Solution { public: int maxPerformance(int n, vector<int>& speed, vector<int>& efficiency, int k) { static const int MOD = 1e9 + 7; uint64_t result = 0, s_sum = 0; vector<pair<int, int>> engineers; for (int i = 0; i < speed.size(); ++i) { ...
417
1,073
<filename>tools/clang/test/Analysis/Inputs/system-header-simulator-cxx.h // Like the compiler, the static analyzer treats some functions differently if // they come from a system header -- for example, it is assumed that system // functions do not arbitrarily free() their parameters, and that some bugs // found in syst...
2,849
1,073
//===-- MachineFunctionPrinterPass.cpp ------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
705
1,127
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os import pathlib import shutil import glob import sysconfig import sys import multiprocessing from setuptools import Extension, setup from setuptools.command.build_ext import build_ext from setuptools.command.install_lib import ...
4,043
5,133
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.bugs._892; import org.mapstruct.Mapper; /** * @author <NAME> * */ @Mapper public interface Issue892Mapper { Target toTarget(Source so...
381
1,459
<filename>xmlworker/src/main/java/com/itextpdf/tool/xml/html/table/TableData.java<gh_stars>1000+ /* * * This file is part of the iText (R) project. Copyright (c) 1998-2020 iText Group NV * Authors: <NAME>, <NAME>, et al. * * This program is free software; you can redistribute it and/or modify * it under the t...
3,588
988
<reponame>Gegy/DataFixerUpper // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package com.mojang.serialization.codecs; import com.mojang.datafixers.util.Pair; import com.mojang.serialization.Codec; import com.mojang.serialization.DataResult; import com.mojang.serializati...
319
611
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. // NOTE: // The file is a copy and paste from the corresponding GPU unitest i.e. []/tests/gpu/ECOp_test.cpp. // Keep the two files in sync. to increase the test coverage. #include <OpenColorIO/OpenColorIO.h> namespace OCI...
2,232
777
<reponame>nagineni/chromium-crosswalk // Copyright (c) 2013 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/loader/resource_message_delegate.h" #include "content/browser/loader/resource_dispatc...
288
463
package jmockit.loginExample.domain.userAccount; import javax.annotation.*; public final class UserAccount { private final String id; private String password; private boolean loggedIn; private boolean revoked; public UserAccount(String id, String password) { this.id = id; this.password = p...
282