max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
651
package org.spongycastle.openpgp.operator; import java.security.SecureRandom; import org.spongycastle.bcpg.ContainedPacket; import org.spongycastle.bcpg.S2K; import org.spongycastle.bcpg.SymmetricKeyAlgorithmTags; import org.spongycastle.bcpg.SymmetricKeyEncSessionPacket; import org.spongycastle.openpgp.PGPException;...
1,782
882
<reponame>CathalT/raiblocks #pragma once #include <nano/secure/store.hpp> namespace nano { namespace rocksdb { class store; class pending_store : public nano::pending_store { private: nano::rocksdb::store & store; public: explicit pending_store (nano::rocksdb::store & store_a); void put (nano::write_trans...
504
634
<reponame>halotroop2288/consulo /* * Copyright 2013-2019 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
850
605
<reponame>yuriykoch/llvm // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-v \ // RUN: -dwarf-version=4 -debug-info-kind=limited -emit-llvm -o - %s \ // RUN: | FileCheck --check-prefix=DEBUGINFO %s #include <stdint.h> __rvv_int16m2_t f1(__rvv_int16m2_t arg_0, __rvv_int16m2_t arg_1, int64_t arg_2) { ...
585
450
<reponame>bmax121/frida-gum /* * Copyright (C) 2018 <NAME> <<EMAIL>> * * Licence: wxWindows Library Licence, Version 3.1 */ #ifndef __GUMJS_H__ #define __GUMJS_H__ #include <gum/gum.h> G_BEGIN_DECLS GUM_API void gumjs_prepare_to_fork (void); GUM_API void gumjs_recover_from_fork_in_parent (void); GUM_API void gu...
171
632
#include <iostream> #include <GLFW/glfw3.h> #include <glbinding/glbinding.h> #include <glbinding/Version.h> #include <glbinding/FunctionCall.h> #include <glbinding/CallbackMask.h> #include <glbinding/gl/gl.h> #include <glbinding/getProcAddress.h> #include <glbinding-aux/ContextInfo.h> #include <glbinding-aux/Meta....
1,470
1,162
package io.digdag.core.workflow; import java.nio.file.Path; import com.google.inject.Inject; import io.digdag.spi.OperatorContext; import io.digdag.spi.TaskRequest; import io.digdag.spi.TaskResult; import io.digdag.spi.Operator; import io.digdag.spi.OperatorFactory; import io.digdag.client.config.Config; public clas...
460
3,428
{"id":"02203","group":"easy-ham-1","checksum":{"type":"MD5","value":"b3cd1f66645417a8b3efee0c73dc38ac"},"text":"From <EMAIL> Thu Oct 3 12:24:20 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>int.org\nReceived: from localhost (jalapeno [1172.16.31.10])\n\tby jmason.org (Postfix) with ESMTP id 8080616F49\n\tfor <j...
455
1,601
<reponame>ryankurte/codechecker<filename>web/tests/projects/cpp/path_end.h // ------------------------------------------------------------------------- // Part of the CodeChecker project, under the Apache License v2.0 with // LLVM Exceptions. See LICENSE for license information. // SPDX-License-Identifier: Apache-2....
141
9,959
package com.sun.tools.javac.main; public class OptionName {}
20
2,981
<gh_stars>1000+ {"gmailcheck_name":{"message":"Google Verificator de e-mail"},"gmailcheck_description":{"message":"Afi\u015feaz\u0103 num\u0103rul mesajelor necitite din folderul Mesaje primite al contului Google Mail. De asemenea, pute\u0163i s\u0103 face\u0163i clic pe buton pentru a deschide folderul Mesaje primite....
196
324
<reponame>tormath1/jclouds<gh_stars>100-1000 { "value": [{ "recoveryId": "https://kvvaultapilivetest.vault.azure.net/deletedsecrets/myRecoverableSecret", "deletedDate": 1509335980, "scheduledPurgeDate": 1517111980, "contentType": "aNewSecretKey", "id": "https://kvvaultapilivetest.vault.azure.net/secrets/myRe...
226
319
<reponame>Celebrate-future/openimaj /** * This source code file is part of a direct port of <NAME>'s implementation * of a Kanade-Lucas-Tomasi feature tracker. The original implementation can be found * here: http://www.ces.clemson.edu/~stb/klt/ * * As per the original code, the source code is in the public domain...
1,893
350
# # 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 # ...
2,730
1,431
<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 license...
1,087
615
<filename>src/library/blas/gens/blas_subgroup.h /* ************************************************************************ * Copyright 2013 Advanced Micro Devices, 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 ...
588
1,091
/* * Copyright 2020-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 required by appli...
1,089
2,542
<filename>src/prod/src/BlockStore/Service/Native/src/CDriverClient.cpp<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. // ------...
1,188
809
<gh_stars>100-1000 /** * @file * @brief * * @author <NAME> * @date 19.11.2013 */ #include <errno.h> #include <unistd.h> #include <termios.h> #include <fcntl.h> #include <embox/test.h> extern int ppty(int pptyfds[2]); EMBOX_TEST_SUITE("ppty() testsuite"); TEST_SETUP(ppty_test_setup); TEST_TEARDOWN(ppty_te...
1,132
348
<filename>docs/data/leg-t2/061/06101427.json {"nom":"Saint-Martin-l'Aiguillon","circ":"1ère circonscription","dpt":"Orne","inscrits":151,"abs":74,"votants":77,"blancs":11,"nuls":4,"exp":62,"res":[{"nuance":"DVD","nom":"<NAME>","voix":33},{"nuance":"SOC","nom":"<NAME>","voix":29}]}
116
377
//------------------------------------------------------------------------------ // physicsinterface.cc // (C) 2019-2020 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "foundation/stdneb.h" #include "PxPhysicsAPI.h" #include "physics...
4,978
421
<filename>samples/snippets/cpp/VS_Snippets_CLR/RIPEMD160/CPP/ripemd160.cpp //<SNIPPET1> using namespace System; using namespace System::IO; using namespace System::Security::Cryptography; // Print the byte array in a readable format. void PrintByteArray( array<Byte>^array ) { int i; for ( i = 0; i < a...
978
874
package com.jnape.palatable.lambda.functions.builtin.fn2; import com.jnape.palatable.lambda.adt.product.Product7; import com.jnape.palatable.lambda.functions.Fn1; import com.jnape.palatable.lambda.functions.Fn2; import com.jnape.palatable.lambda.functions.Fn7; /** * Given an <code>{@link Fn7}&lt;A, B, C, D, E, F, G,...
909
608
// ------------------------------- // Copyright (c) Corman Technologies Inc. // See LICENSE.txt for license information. // ------------------------------- // // File: CharBuf.cpp // Contents: Character buffer class implementation for Corman Lisp. // History: 8/5/97 RGC Created. // #include "stdafx.h"...
889
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...
1,098
661
<gh_stars>100-1000 import torch import math import ctypes import nvidia.dali.ops as ops import nvidia.dali.types as types class DaliPipeline(object): r""" The data pipeline for the Dali dataset """ def __init__(self, target_size, preproc_param, training=False): self.training = training m...
3,778
2,139
<filename>core/src/main/java/org/jruby/util/io/Sockaddr.java package org.jruby.util.io; import jnr.constants.platform.AddressFamily; import jnr.unixsocket.UnixSocketAddress; import org.jruby.Ruby; import org.jruby.RubyArray; import org.jruby.RubyNumeric; import org.jruby.RubyBoolean; import org.jruby.exceptions.RaiseE...
6,306
984
<filename>phoenix-core/src/main/java/org/apache/phoenix/util/BigDecimalUtil.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. The ASF licenses t...
1,038
407
package com.alibaba.tesla.appmanager.trait.plugin; import com.alibaba.fastjson.JSONObject; import com.alibaba.tesla.appmanager.domain.core.WorkloadResource; import com.alibaba.tesla.appmanager.domain.schema.TraitDefinition; import com.alibaba.tesla.appmanager.trait.BaseTrait; import lombok.extern.slf4j.Slf4j; /** * ...
421
447
<filename>q_lib/include/q/fx/moving_sum.hpp<gh_stars>100-1000 /*============================================================================= Copyright (c) 2014-2021 <NAME>. All rights reserved. Distributed under the MIT License [ https://opensource.org/licenses/MIT ] ============================================...
962
388
<filename>src/stacktraceprocess.cpp #include "stacktraceprocess.h" #include "timeprofiler.h" #include "lz4/lz4.h" #include <QtEndian> #include <QTcpSocket> #include <QTextStream> #include <QDataStream> #include <QRegularExpression> #include <QProcess> #include <QDebug> #define BUFFER_SIZE 1048576 StackTraceProcess:...
3,643
474
[ { "method": "ListDeployments", "client": "GSuiteAddOnsClient", "arguments": { "parent": "projects/${PROJECT_ID}" } } ]
69
2,126
<gh_stars>1000+ from django.apps import AppConfig class LayoutImageConfig(AppConfig): name = 'layout_image'
38
11,356
<gh_stars>1000+ /* Copyright © 2018 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 */ #define BOOST_TEST_MODULE #include <boost/test/unit_test.hpp> #include <core/util/t...
11,125
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
1,651
436
package com.jdon.jivejdon.presentation.action.query; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.jdon.jivejdon.presentation.form.QueryForm; import com.jdon.util.UtilValidate; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger...
588
852
#ifndef EcalTPGGroups_h #define EcalTPGGroups_h #include "CondFormats/Serialization/interface/Serializable.h" #include <map> #include <cstdint> /* this class is used to define groups which associate a rawId to an objectId where: - rawId (simple integer) refers to a crystal (i.e EBDetId.rawId()), a (pseudo)strip or a...
314
66,985
/* * Copyright 2012-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,997
2,151
// 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. #include "content/public/renderer/browser_plugin_delegate.h" #include "v8/include/v8.h" namespace content { v8::Local<v8::Object> BrowserPluginDelegate...
142
743
<filename>hermes-management/src/main/java/pl/allegro/tech/hermes/management/infrastructure/query/parser/json/JsonQueryParser.java package pl.allegro.tech.hermes.management.infrastructure.query.parser.json; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.go...
2,423
4,901
/* * 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 u...
1,185
11,396
# Generated by Django 2.2.16 on 2021-05-11 19:38 from django.db import migrations def forwards(apps, schema_editor): Instance = apps.get_model('main', 'Instance') Instance.objects.filter(version__startswith='ansible-runner-').delete() class Migration(migrations.Migration): dependencies = [ ('m...
155
2,151
<filename>chrome/installer/setup/progress_calculator.cc<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. #include "chrome/installer/setup/progress_calculator.h" #include <math.h> #includ...
341
4,224
/**************************************************************************** * * Copyright (c) 2021 PX4 Development Team. 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. Redistri...
1,404
378
package com.quickblox.sample.videochat.conference.java.activities; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.EditTextPreference; import android.preference.Preference; import com.quickblox.sample.videocha...
1,651
2,150
# /usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Class definition for GraspModel """ import errno import os import os.path import time from copy import deepcopy as c...
5,673
435
{ "copyright_text": "Standard YouTube License", "description": "#3 PyData Warsaw\n\n", "duration": 2288, "language": "eng", "recorded": "2016-03-15", "related_urls": [ { "label": "meetup", "url": "https://www.meetup.com/PyData-Warsaw/events/" } ], "speakers": [ "Micha\u0142 Ja\u0...
272
551
#include "NotesLoaderETT.h" #include "Etterna/Globals/global.h"
30
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 "state.h" #include "modules/top.h" namespace cherrypi { REGISTER_SUBCLASS_0(Module, TopModule);...
305
952
package com.rudecrab.ssm.mapper; import com.rudecrab.ssm.entity.User; import org.springframework.stereotype.Repository; import java.util.List; /** * User类mapper接口,用来执行各种数据库操作 * @author RC */ @Repository public interface UserMapper { /** * 从数据库中查询出所有的User对象 * @return User对象集合 */ List<User> s...
289
309
#include <vtkActor.h> #include <vtkCamera.h> #include <vtkCubeSource.h> #include <vtkDataSetMapper.h> #include <vtkNamedColors.h> #include <vtkPolyData.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkShrinkFilter.h> #include <vtkSmart...
792
14,668
// 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. #include "chrome/browser/apps/platform_apps/api/browser/browser_api.h" #include "chrome/browser/extensions/extension_apitest.h" #include "content/public/b...
1,210
2,453
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <Foundation/NSMutableData.h> @interface NSMutableData (DVTNSDataStdIO) - (struct __sFILE *)openForWriting; - (struct __sFILE *)openForReading; @end
110
7,713
<filename>ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/StackFrame.java /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional gra...
463
3,010
<filename>tools/preprocess_frozen_modules.py #!/usr/bin/env python3 # SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors) # # SPDX-License-Identifier: MIT import argparse import os import os.path from pathlib import Path import semver i...
1,612
507
<filename>SpringBoot-amqp/amqp-commons/src/main/java/top/lrshuai/amqp/commons/sys/mapper/MessageLogMapper.java package top.lrshuai.amqp.commons.sys.mapper; import top.lrshuai.amqp.commons.sys.entity.MessageLog; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * Mapper 接口 * </p> * * @author rstyr...
177
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.authorization.implementation; import com.azure.core.annotation.ServiceClient; import com.azure.core.http.HttpPipeline; import co...
6,646
482
package io.cattle.platform.docker.constants; public class DockerIpAddressConstants { public static final String KIND_DOCKER = "docker"; }
46
1,755
/* * Copyright(C) 1999-2021 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * See packages/seacas/LICENSE for details */ #ifndef IOSS_DECOMPOSITON_H #define IOSS_DECOMPOSITO...
11,227
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.databoxedge.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azur...
3,056
412
/* * Copyright (C) 2008 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...
2,531
469
/******************************************************************************* * Copyright 2019 See AUTHORS file * * 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.apac...
958
3,690
<filename>112. Path Sum II/main.cc #include "solution.h" #include <iostream> int main() { Solution s; TreeNode root(5); TreeNode node1(4); TreeNode node2(8); TreeNode node3(11); TreeNode node4(13); TreeNode node5(4); TreeNode node6(7); TreeNode node7(2); TreeNode node8(5); T...
358
645
<reponame>xuantan/viewfinder { 'target_defaults': { # Things get confused if multiple targets in the same .gyp file don't have the same configuration # names, so define them all here. (this problem doesn't appear to exist across .gyp files, # and it doesn't work to define configurations in globals.gypi)....
4,826
778
<gh_stars>100-1000 //--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fas...
1,076
764
{"symbol": "KONO","address": "0x850aAB69f0e0171A9a49dB8BE3E71351c8247Df4","overview":{"en": ""},"email": "","website": "https://www.konomi.network/#/","state": "NORMAL","links": {"blog": "https://konomi-network.medium.com/","twitter": "https://twitter.com/KonomiNetwork","telegram": "","github": ""}}
116
416
package org.springframework.roo.addon.ws.addon; import org.springframework.roo.addon.ws.annotations.RooWsEndpoints; import org.springframework.roo.classpath.itd.ItdTriggerBasedMetadataProvider; /** * Metadata provider for {@link WsEndpointsMetadata}. Monitors * notifications for {@link RooWsEndpoints} annotated typ...
139
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. module com.azure.digitaltwins.core { requires transitive com.azure.core; exports com.azure.digitaltwins.core; exports com.azure.digitaltwins.core.models; opens com.azure.digitaltwins.core t...
325
6,036
<reponame>dennyac/onnxruntime<gh_stars>1000+ #!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os import sys from _test_commons import _distributed_run allreduce_adasum_execution_file = "orttraining_test_allreduce_adasum.py" _distributed_run(a...
170
368
"""Test pyscript user-defined decorators.""" from ast import literal_eval import asyncio from datetime import datetime as dt from unittest.mock import mock_open, patch from custom_components.pyscript.const import DOMAIN from custom_components.pyscript.function import Function import custom_components.pyscript.trigger ...
2,806
2,591
<filename>liquibase-core/src/main/java/liquibase/diff/compare/core/ForeignKeyComparator.java package liquibase.diff.compare.core; import liquibase.database.Database; import liquibase.diff.ObjectDifferences; import liquibase.diff.compare.CompareControl; import liquibase.diff.compare.DatabaseObjectComparator; import liq...
2,301
2,338
// RUN: %clang_xray -g -fxray-modes=xray-basic,xray-fdr,xray-profiling -o %t %s // RUN: rm -f xray-log.c-test.* // RUN: XRAY_OPTIONS=patch_premain=true:verbosity=1:xray_mode=xray-basic %t \ // RUN: 2>&1 | FileCheck %s // RUN: rm -f xray-log.c-test.* // // REQUIRES: x86_64-target-arch // REQUIRES: built-in-llvm-tree...
213
1,609
<gh_stars>1000+ package com.mossle.internal.delegate.support; import javax.annotation.Resource; import com.mossle.api.delegate.DelegateConnector; import com.mossle.internal.delegate.persistence.domain.DelegateInfo; import com.mossle.internal.delegate.service.DelegateService; public class DelegateConnectorImpl imple...
439
361
def configLearn(random_seed, lr='0.001', lr_divide='2', \ beta='0.', grad_cutoff='1'): text = ('[learn] // parameters for training\n' +\ 'lr = %s\n' +\ 'lr_decay = 0.5\n' +\ 'stop_count = %s\n' +\ 'cur_stop_count = 0\n' +\ ...
2,110
2,594
<reponame>deenu713/bundletool /* * Copyright (C) 2020 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....
1,417
6,304
// Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "tools/fiddle/examples.h" // HASH=50396fad4a128f58e400ca00fe09711f REG_FIDDLE(Image_colorType, 256, 96, false, 4) { void draw(SkCanvas* canvas) { const char* colors[] = { "Unkn...
323
5,169
<gh_stars>1000+ { "name": "SWEmailComposer", "version": "0.1.5", "summary": "An Apple-like email composer written in Swift.", "description": "SWEmailComposer gives you the ability to present an email composer to the user WITHOUT sending out the final email through the iOS Mail app. Instead the contents of the e...
342
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.cosmos.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; import java...
471
1,655
#ifndef DISTRIBUTION1D_HPP_ #define DISTRIBUTION1D_HPP_ #include "math/MathUtil.hpp" #include <algorithm> #include <vector> namespace Tungsten { class Distribution1D { std::vector<float> _pdf; std::vector<float> _cdf; public: Distribution1D(std::vector<float> weights) : _pdf(std::move(weights)) ...
555
2,151
// 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 "ui/gfx/ipc/skia/gfx_skia_param_traits.h" #include <string> #include "base/pickle.h" #include "ipc/ipc_message_utils.h" #include "third_party/s...
1,889
607
<reponame>DrZedd42/DIB-R<gh_stars>100-1000 # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # 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 with...
2,951
4,036
<reponame>vadi2/codeql package org.apache.directory.api.ldap.model.filter; import org.apache.directory.api.ldap.model.entry.Value; public class EqualityNode<T> implements ExprNode { public EqualityNode(String attribute, Value<T> value) { } public EqualityNode(String attribute, String value) { } }
96
3,475
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
537
2,193
{ "scripts": { "prerelease-version-bump": "GITHUB_SHA=$(git rev-parse HEAD | cut -c1-8);lerna version prerelease --force-publish=* --preid ${GITHUB_SHA}", "ga-prerelease-version": "lerna version prerelease --force-publish=* --no-commit-hooks --no-push --yes", "bump-canary": "yarn run new-canary-version pr...
659
9,959
<reponame>aoztaskin/lombok class SkipSuppressWarnings { private String field = ""; private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> field2 = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>(); public String getField() { return this.field; } @java.lang.SuppressWarning...
278
443
from uuid import uuid4 from changes.constants import Result from changes.testutils import APITestCase class ProjectLatestGreenBuildTest(APITestCase): def test_simple(self): fake_project_id = uuid4() project = self.create_project() self.create_build(project) project1 = self.creat...
1,269
1,104
<filename>trunk/adhoc-solr/src/main/java/org/apache/solr/handler/component/QueryElevationComponent.java<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 copy...
7,394
9,136
# Lint as: python3 """A module that defines autonomous object class and related functions.""" from typing import Any, Callable, Dict, Optional, Sequence, Text, Union from absl import logging import gin import numpy as np from pybullet_utils import bullet_client from pybullet_envs.minitaur.envs_v2 import base_client f...
3,760
347
<filename>backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/AddInternalJobParameters.java package org.ovirt.engine.core.common.action; import org.ovirt.engine.core.common.VdcObjectType; import org.ovirt.engine.core.compat.Guid; public class AddInternalJobParameters extends AddJobParamet...
687
836
// This file is auto-generated, don't edit it. Thanks. package com.alipay.easysdk.payment.app; import com.aliyun.tea.*; import com.alipay.easysdk.payment.app.models.*; public class Client { public com.alipay.easysdk.kernel.Client _kernel; public Client(com.alipay.easysdk.kernel.Client kernel) throws Exceptio...
2,602
14,564
{ "name": "otswriter", "class": "com.alibaba.datax.plugin.writer.otswriter.OtsWriter", "description": "", "developer": "alibaba" }
62
3,651
<reponame>aberdev/orientdb package com.orientechnologies.orient.distributed.impl.metadata; import com.orientechnologies.orient.core.db.config.ONodeIdentity; import com.orientechnologies.orient.distributed.impl.log.OLogId; import java.util.Optional; public class OElectionReply { private final ONodeIdentity sender; ...
207
310
package org.seasar.doma.it.jep384; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import java.math.BigDecimal; import java.time.LocalDate; import org.junit.jupiter.api.Test; import or...
1,092
12,278
<filename>3rdParty/boost/1.71.0/libs/smart_ptr/test/shared_ptr_reinterpret_pointer_cast_test.cpp // // shared_pointer_reinterpret_pointer_cast_test.cpp // // Copyright (c) 2016 <NAME> // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://www.boo...
761
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.sqlvirtualmachine.implementation; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; import co...
22,962
1,783
<filename>manager/src/main/jni/selinux.h #ifndef SELINUX_H #define SELINUX_H namespace se { void init(); using getcon_t = int(char **); using setcon_t = int(const char *); using setfilecon_t = int(const char *, const char *); using selinux_check_access_t = int(const char *, const char *, const cha...
286
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,617
762
<reponame>scality/S3<gh_stars>100-1000 from grafanalib.core import ( ConstantInput, DataSourceInput, Heatmap, HeatmapColor, HIDE_VARIABLE, RowPanel, Stat, Template, Templating, Threshold, YAxis, ) from grafanalib import formatunits as UNITS from scalgrafanalib import ( la...
8,603
2,338
//===-- RegisterContextNetBSDTest_i386.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 // //===---------------------------...
2,028
791
#pragma once #include "inspector.h" #include <runtime/ecs/components/audio_source_component.h> struct inspector_audio_source_component : public inspector { REFLECTABLEV(inspector_audio_source_component, inspector) bool inspect(rttr::variant& var, bool read_only, const meta_getter& get_metadata); }; INSPECTOR_REFL...
128