max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,838
<filename>core/src/main/java/com/github/dozermapper/core/builder/model/elengine/ELMappingDefinition.java /* * Copyright 2005-2019 Dozer 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 Licen...
1,470
797
<reponame>cedrickring/js-graphql-intellij-plugin // This is a generated file. Not intended for manual editing. package com.intellij.lang.jsgraphql.endpoint.doc.parser; import com.intellij.lang.PsiBuilder; import com.intellij.lang.PsiBuilder.Marker; import static com.intellij.lang.jsgraphql.endpoint.doc.JSGraphQLEndpoi...
987
875
<gh_stars>100-1000 /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the...
711
448
<gh_stars>100-1000 #include <bits/stdc++.h> using namespace std; int stocksProfit(int arr[],int n){ int minPrice= INT_MAX; int maxProfit = 0; for(int i=0 ; i<n ; i++){ minPrice = min(minPrice , arr[i]); maxProfit = max(maxProfit , arr[i] - minPrice); } return maxProfit; ...
275
692
<filename>tests/libs/gsl/tests/spmatrix/test.c /* test.c * * Copyright (C) 2012-2014 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * y...
4,430
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. package org.chromium.chrome.browser.ntp.cards; import android.support.annotation.Nullable; import android.support.v7.widget.RecyclerView; import android....
6,738
3,212
/* * 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 ...
2,426
1,687
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.List; public class Solution2 { // 二叉树的中序遍历 public List<Integer> inorderTraversal(TreeNode root) { // 体会栈这个数据结构在中序遍历中发挥的作用 List<Integer> res = new ArrayList<>(); Deque<TreeNode> stack = n...
591
852
import FWCore.ParameterSet.Config as cms process = cms.Process("test") process.configurationMetadata = cms.untracked.PSet( version = cms.untracked.string('$Revision: 1.1 $'), annotation = cms.untracked.string('Tau central skim'), name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/Configuration/Skimmi...
5,528
1,016
<filename>integrations/spark/spark-multi-exec/spark-multi-exec-app/src/main/java/com/thinkbiganalytics/spark/multiexec/MultiSparkExecApp.java package com.thinkbiganalytics.spark.multiexec; /*- * #%L * kylo-spark-multi-exec-app * %% * Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company * %% * License...
2,168
877
<reponame>nimakarimipour/checker-framework import java.lang.annotation.ElementType; class MyEnumSet<E extends Enum<E>> {} public class Enums { public enum VarFlags { IS_PARAM, NO_DUPS }; public MyEnumSet<VarFlags> var_flags = new MyEnumSet<>(); VarFlags f1 = VarFlags.IS_PARAM; void foo1(MyEnumSet...
444
8,027
# 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 required by applicable law or ...
2,764
20,995
<reponame>EXHades/v8<gh_stars>1000+ // Copyright 2020 the V8 project 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 V8_D8_COV_H_ #define V8_D8_COV_H_ // This file is defining functions to handle coverage which are needed fo...
255
625
/* * 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 ...
15,501
778
from KratosMultiphysics import * from KratosMultiphysics.MultilevelMonteCarloApplication import * import KratosMultiphysics.KratosUnittest as KratosUnittest import KratosMultiphysics.kratos_utilities as kratos_utilities import os @KratosUnittest.skipIfApplicationsNotAvailable("ConvectionDiffusionApplication","Meshin...
1,482
28,145
<filename>src/files/skeletons/code.java // import visualization libraries { import org.algorithm_visualizer.*; // } class Main { // define tracer variables { Array2DTracer array2dTracer = new Array2DTracer("Grid"); LogTracer logTracer = new LogTracer("Console"); // } // define input variables ...
522
1,444
package mage.cards.c; import java.util.UUID; import mage.abilities.common.EntersBattlefieldTappedAbility; import mage.abilities.mana.BlackManaAbility; import mage.abilities.mana.BlueManaAbility; import mage.abilities.mana.RedManaAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constant...
352
634
<filename>modules/base/external-system-impl/src/main/java/com/intellij/openapi/externalSystem/service/RemoteExternalSystemService.java package com.intellij.openapi.externalSystem.service; import com.intellij.openapi.externalSystem.service.internal.ExternalSystemTaskAware; import com.intellij.openapi.externalSystem.mod...
390
998
<reponame>ADMTec/VoxelPlugin // Copyright 2021 Phyronnaz #pragma once #include "CoreMinimal.h" #include "VoxelSpawner.h" #include "VoxelSpawnerGroup.generated.h" class UVoxelSpawnerGroup; USTRUCT() struct FVoxelSpawnerGroupChild { GENERATED_BODY() UPROPERTY(EditAnywhere, Category = "Config") UVo...
361
777
<filename>device/usb/usb_device_filter.cc // 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 "device/usb/usb_device_filter.h" #include <memory> #include <utility> #include "base/memory/ptr_util....
1,034
1,444
<reponame>GabrielSturtevant/mage package mage.cards.v; import java.util.UUID; import mage.MageInt; import mage.abilities.keyword.TrampleAbility; import mage.abilities.keyword.UndyingAbility; import mage.abilities.keyword.VigilanceAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constant...
408
1,882
try: from . import generic as g except BaseException: import generic as g class MFTest(g.unittest.TestCase): def test_3MF(self): # an assembly with instancing s = g.get_mesh('counterXP.3MF') # should be 2 unique meshes assert len(s.geometry) == 2 # should be 6 ins...
749
593
<reponame>RUB-NDS/TLS-Attacker /** * TLS-Attacker - A Modular Penetration Testing Framework for TLS * * Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH * * Licensed under Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0.txt */ package de.rub.nds.tlsattack...
1,526
420
# Copyright (c) 2012-2016 Seafile Ltd. from binascii import unhexlify import logging from django.db import models from django.utils.translation import ugettext_lazy as _ from .base import Device, key_validator from seahub.two_factor.gateways import make_call, send_sms from seahub.two_factor.utils import random_hex ...
1,097
18,621
# 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...
585
455
<filename>StarEngine/jni/Components/Physics/index.h #pragma once #include "BaseColliderComponent.h" #include "CircleColliderComponent.h" #include "RectangleColliderComponent.h"
66
1,350
<reponame>billwert/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.netapp.models; import com.azure.core.management.Region; import com.azure.core.util.Context...
2,486
1,390
{ "enablePullDownRefresh": true, "onReachBottomDistance": 100, "usingComponents": { "tabs": "../../../components/tabs/index", "tab": "../../../components/tab/index", "activities": "../../../components/feeds/feeds", "notifs": "../../../components/notifs/notifs" } }
119
575
<filename>cc/trees/ukm_manager.h // 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 CC_TREES_UKM_MANAGER_H_ #define CC_TREES_UKM_MANAGER_H_ #include <memory> #include <vector> #include "cc/cc_exp...
1,233
2,205
<reponame>LambertCOL/EFAK<filename>efak-core/src/test/java/org/smartloli/kafka/eagle/ipc/TestJGroupMetadataManager.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 ...
6,661
662
<filename>autobahn/src/main/java/io/crossbar/autobahn/wamp/types/TransportOptions.java /////////////////////////////////////////////////////////////////////////////// // // AutobahnJava - http://crossbar.io/autobahn // // Copyright (c) Crossbar.io Technologies GmbH and contributors // // Licensed under the MIT Li...
621
1,845
package org.rajawali3d.vr.surface; /** * Copyright 2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
4,213
3,600
package com.github.dreamhead.moco.bootstrap.tasks; import com.github.dreamhead.moco.MocoVersion; import com.github.dreamhead.moco.bootstrap.BootstrapTask; public final class VersionTask implements BootstrapTask { @Override public void run(final String[] args) { System.out.println(MocoVersion.VERSION);...
113
2,406
<reponame>monroid/openvino // Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "engines_util/execute_tools.hpp" #include "gtest/gtest.h" #include "ngraph/ngraph.hpp" #include "ngraph/runtime/tensor.hpp" #include "runtime/backend.hpp" #include "util/all_close.hpp" #include "u...
1,844
347
<gh_stars>100-1000 package org.ovirt.engine.core.bll; import javax.inject.Inject; import org.ovirt.engine.core.bll.context.CommandContext; import org.ovirt.engine.core.common.EventNotificationMethod; import org.ovirt.engine.core.common.action.EventSubscriptionParametesBase; import org.ovirt.engine.core.common.busines...
698
3,102
<reponame>medismailben/llvm-project<gh_stars>1000+ //==- LocalCheckers.h - Intra-Procedural+Flow-Sensitive Checkers -*- C++ -*-==// // // 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...
284
478
/* usbdmx-dynamic.h - include file for run-time dynamic loading of the USBDMX.DLL. This demo can handle the situation where the dll is not present. This file is provided as is to allow an easy start with the usbdmx driver and dll. Copyright (c) Lighting Solutions, Dr. <NAME> In case of trouble please c...
6,726
2,151
<reponame>Numbrs/WebRTC<gh_stars>1000+ /* * Copyright 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * ...
1,823
1,710
<filename>inc/VideoScaler.h /* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** VideoScaler.h ** ** ------...
3,795
3,227
<filename>Triangulation_3/include/CGAL/Triangulation_3/internal/Delaunay_triangulation_hierarchy_3.h // Copyright (c) 2009 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL$ // $Id$ // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial ...
1,684
897
""" Author: <NAME> Problem statement: Given a list of integers "nums" and an integer k, return the maximum values of each sublist of length k. Constraints: 1 ≤ n ≤ 100,000 where n is the length of "nums". 1 ≤ k ≤ 100,000. """ from collections import deque def findMaxInSubarray(nums, n , k) : ''' paramate...
878
502
// // PlistManager.h // ProfilesManager // // Created by Jakey on 2018/3/5. // Copyright © 2018年 Jakey. All rights reserved. // #import <Foundation/Foundation.h> @interface PlistManager : NSObject + (NSDictionary*)readPlist:(NSString *)filePath plistString:(NSString**)plistString; @end
103
420
package com.ubergeek42.cats; import android.util.Log; class Printer { void println(int priority, String tag, String msg) { Log.println(priority, tag, msg); } }
68
362
/* * This is free and unencumbered software released into the public domain. * See UNLICENSE. */ package scala_maven; import org.apache.maven.plugins.annotations.Parameter; public class Launcher { String id; String mainClass; /** Jvm Arguments */ @Parameter protected String[] jvmArgs; /** compiler add...
107
369
<reponame>buk7456/MuditaOS // Copyright (c) 2017-2022, Mudita <NAME>.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "AboutYourBellWindow.hpp" #include "BellSettingsFrontlightWindow.hpp" #include "BellSettingsWindow.hpp" #include "alarm_settings/BellSettingsAlarmS...
2,020
1,909
package org.knowm.xchange.blockchain.service; import org.knowm.xchange.blockchain.BlockchainAdapters; import org.knowm.xchange.blockchain.BlockchainAuthenticated; import org.knowm.xchange.blockchain.BlockchainExchange; import org.knowm.xchange.blockchain.dto.BlockchainException; import org.knowm.xchange.blockchain.dto...
1,565
6,387
{ "name": "iOS", "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", "iconName": "xcode", "categories": [ "Continuous integration", "iOS", "Xcode" ] }
100
32,819
{ "data" : [ { "type" : "capabilities", "id" : "ACCESS_WIFI_INFORMATION", "attributes" : { "supportsWildcard" : false, "supportedSDKs" : [ { "name" : "IOS", "displayValue" : "iOS" }, { "name" : "WATCH_OS", "displayValue" : "watchOS" } ], "distr...
1,228
463
/* * Policy definitions for the CUPS scheduler. * * Copyright 2007-2010 by Apple Inc. * Copyright 1997-2005 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Policy structure... */ typedef struct { char *name; /...
617
412
<gh_stars>100-1000 /* 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 law ...
637
4,535
// Copyright 2019, Intel Corporation #pragma once #include "mlir/IR/Types.h" namespace pmlc::dialect::tile { namespace TypeKinds { enum Kind { AffineMap = mlir::Type::Kind::FIRST_PRIVATE_EXPERIMENTAL_2_TYPE, AffineTensorMap, AffineConstraints, String, }; } class AffineTensorMapType : public mlir::Type::Typ...
453
10,225
package io.quarkus.it.spring.boot; import static io.restassured.RestAssured.when; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; import org.junit.jupiter.api.Test; import io.quarkus.test.junit.QuarkusTest; @QuarkusTest class ClassPropertiesTest { @Test void shouldHaveV...
284
600
<reponame>christianhaitian/openbor<filename>engine/source/gfxlib/hq2x.h /* * OpenBOR - http://www.chronocrash.com * ----------------------------------------------------------------------- * All rights reserved, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2014 OpenBOR Team */ case 0 : case 1...
20,463
1,306
/* * 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,997
13,162
#pragma once #include <eosio/chain/contract_table_objects.hpp> #include <fc/utility.hpp> #include <sstream> #include <algorithm> #include <set> namespace eosio { namespace chain { namespace backing_store { template<typename T> class db_chainbase_iter_store { public: db_chainbase_iter_store(){ _end_i...
1,785
640
void InitVulcanLava(enemy *en) { en->enemyparama=myRand()%7; } unsigned char UpdateVulcanLava(enemy *en) { en->enemyposy+=(en->enemyframe>>2); en->enemyposy--; en->enemyposx+=en->enemyparama; en->enemyposx-=3; if((en->enemyposy>192)|| (en->enemyposx<4)|| (en->enemyposx>256-12)) return 0; SMS_addSprite...
194
372
<reponame>yoshi-code-bot/google-api-java-client-services /* * 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 ...
1,317
19,438
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibPDF/CommonNames.h> namespace PDF { #define ENUMERATE(name) FlyString CommonNames::name = #name; ENUMERATE_COMMON_NAMES(ENUMERATE) #undef ENUMERATE }
106
713
<filename>client/hotrod-client/src/test/java/org/infinispan/client/hotrod/marshall/EmbeddedTransactionMarshaller.java package org.infinispan.client.hotrod.marshall; import java.io.IOException; import java.util.Date; import org.infinispan.protostream.MessageMarshaller; import org.infinispan.query.dsl.embedded.testdoma...
670
316
<reponame>caodingpeng/fontbuilder #include "simpleexporter.h" #include "../fontconfig.h" SimpleExporter::SimpleExporter(QObject *parent) : AbstractExporter(parent) { setExtension("sfl"); } bool SimpleExporter::Export(QByteArray &out) { const FontConfig* cfg = fontConfig(); int height = metrics().heigh...
970
731
#!/usr/bin/env python # Copyright 2015 <NAME> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
449
460
// // Created by beich on 2020/12/28. // #pragma once #include <alog.h> #include <macros.h> #include <linker_export.h> #include <errno.h> #include <map> #include <string> #include <vector> #define USE_SYSCALL // 标记哪些函数使用syscall,然后在syscall实现中实施拦截 #define STUB_SYMBOL // 标记跳板函数,不实施拦截,在具体...
4,099
521
<reponame>bl-core-vitals/ios_sdk<gh_stars>100-1000 // // NSURLSession+NSURLDataWithRequestMocking.h // adjust // // Created by <NAME> on 25/01/16. // Copyright © 2016 adjust GmbH. All rights reserved. // #import <Foundation/Foundation.h> typedef enum { ADJSessionResponseTypeNil = 0, ADJSessionResponseType...
413
1,605
/* * 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 ...
3,593
513
package com.github.gotify.messages.provider; import com.github.gotify.api.Api; import com.github.gotify.api.ApiException; import com.github.gotify.api.Callback; import com.github.gotify.client.api.MessageApi; import com.github.gotify.client.model.Message; import com.github.gotify.client.model.PagedMessages; import com...
780
594
int main () { long double x, y; x = 0x1.fffffffffffff8p1022L; x *= 2; y = 0x1.fffffffffffff8p1023L; if (memcmp (&x, &y, sizeof (x)) != 0) abort (); exit (0); }
90
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-qw4x-8f78-c38x", "modified": "2022-05-01T18:39:09Z", "published": "2022-05-01T18:39:09Z", "aliases": [ "CVE-2007-6053" ], "details": "IBM DB2 UDB 9.1 before Fixpak 4 does not properly handle use of large numbers ...
545
457
/** * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required...
790
3,301
<reponame>starburst-project/Alink package com.alibaba.alink.common.linalg.tensor; import org.apache.flink.annotation.Internal; import org.tensorflow.ndarray.BooleanNdArray; import org.tensorflow.ndarray.ByteNdArray; import org.tensorflow.ndarray.DoubleNdArray; import org.tensorflow.ndarray.FloatNdArray; import org.te...
525
351
#!/usr/bin/env python3 import time import socket import binascii from urllib.parse import urlparse class Javarmi_Rce_BaseVerify: def __init__(self, url): self.info = { 'name': 'Javarmi RCE漏洞', 'description': 'Javarmi RCE漏洞', 'date': '', 'exptype': 'check', ...
9,195
307
package se.jiderhamn.classloader.leak.prevention.cleanup; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ConcurrentModificationException; import java.util.Map; import se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor; import se.jiderhamn.classloader.leak.prevention.C...
1,731
1,204
/* * Copyright 2014 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
692
887
<reponame>lucas-prestes/javers<filename>javers-core/src/main/java/org/javers/core/metamodel/scanner/ClassAnnotationsScan.java package org.javers.core.metamodel.scanner; import java.util.Optional; /** * @author bartosz.walacik */ class ClassAnnotationsScan { private final TypeFromAnnotation typeFromAnnotation; ...
532
415
<reponame>Quipyowert2/zzuf /* * zzat - various cat reimplementations for testing purposes * * Copyright © 2002—2015 <NAME> <<EMAIL>> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of th...
13,661
388
# Copyright 2021 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...
3,694
765
<filename>opendps/gfx-poweroff.h /** Gfx generated from `./gen_lookup.py -i gfx/png/poweroff.png -o poweroff` */ #ifndef __GFX_POWEROFF_H__ #define __GFX_POWEROFF_H__ #include <stdint.h> #define GFX_POWEROFF_HEIGHT (16) #define GFX_POWEROFF_WIDTH (16) extern const uint8_t gfx_poweroff[512]; #endif // __GFX_POWERO...
149
362
package net.ripe.db.whois.update.handler.transform; import net.ripe.db.whois.common.rpsl.AttributeType; import net.ripe.db.whois.common.rpsl.ObjectType; import net.ripe.db.whois.common.rpsl.RpslObject; import net.ripe.db.whois.common.rpsl.RpslObjectBuilder; import net.ripe.db.whois.update.domain.Action; import net.rip...
511
8,772
<reponame>dgusoff/cas<filename>api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/passwordless/PasswordlessAuthenticationTokensProperties.java package org.apereo.cas.configuration.model.support.passwordless; import org.apereo.cas.configuration.model.core.util.Encryptio...
888
2,059
#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) #error meh! #endif GO(XGetXCBConnection, pFp) GO(XSetEventQueueOwner, vFpu)
64
1,668
package org.elixir_lang.jps.target; import org.elixir_lang.jps.Target; import org.elixir_lang.jps.model.ModuleType; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.jps.builders.BuildTargetLoader; import org.jetbrains.jps.builders.ModuleBasedBuildTargetType; imp...
650
5,937
<filename>src/Microsoft.DotNet.Wpf/src/WpfGfx/common/DirectXLayer/Factories/xmfactory.hpp<gh_stars>1000+ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #pragma on...
550
1,639
from tests.conftest import JiraTestCase class CustomFieldOptionTests(JiraTestCase): def test_custom_field_option(self): option = self.jira.custom_field_option("10000") self.assertEqual(option.value, "To Do")
86
487
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iterator> #include <ostream> #include <vector> #include "PowersetAbstractDomain.h" namespace sparta { ...
2,880
359
/* * Copyright (C) 2018, Xilinx Inc - All rights reserved * Xilinx SDAccel Media Accelerator API * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LIC...
4,988
634
/* * Copyright 2000-2013 JetBrains s.r.o. * * 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 agre...
562
372
<gh_stars>100-1000 /* * 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,152
301
# Copyright 2015 Confluent Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
433
1,771
<reponame>yrik/datasketch from datasketch import WeightedMinHashGenerator import numpy as np v1 = [1, 3, 4, 5, 6, 7, 8, 9, 10, 4] v2 = [2, 4, 3, 8, 4, 7, 10, 9, 0, 0] min_sum = np.sum(np.minimum(v1, v2)) max_sum = np.sum(np.maximum(v1, v2)) true_jaccard = float(min_sum) / float(max_sum) wmg = WeightedMinHashGenerato...
219
5,169
{ "name": "WTSimpleStatistics", "version": "2.0.0", "summary": "A library providing support for simple statistical needs and linear regression.", "description": "WTSimpleStatistics provides support for finding the total, average, variance,\nand standard deviation of a group of measurements. It also lets you per...
287
1,306
<reponame>app2000/learning_java8 package io.github.biezhi.java8.stream.lesson3; import io.github.biezhi.java8.stream.Project; import java.util.List; import java.util.Map; import static java.util.stream.Collectors.*; /** * 数据分区 * <p> * Collectors.partitioningBy * <p> * 根据前后端将项目分为两组 * * @author biezhi * @date...
338
347
package org.ovirt.engine.core.bll.network.host; import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; import java.util.stream.Stream; import org.ovirt.engine.core...
1,883
472
<filename>_other_languages/cpp/Bitwise/two_unique_numbers.cpp /** * Find the two non-repeating elements in an array of repeating elements. * Given an array in which all numbers except two are repeated once. (i.e. we * have 2n+2 numbers and n numbers are occurring twice and remaining two have * occurred once). Find ...
586
1,607
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
2,414
1,144
// SPDX-License-Identifier: MIT /* * Copyright (C) 2017 The Android Open Source Project */ #include "avb_version.h" #define AVB_QUOTE(str) #str #define AVB_EXPAND_AND_QUOTE(str) AVB_QUOTE(str) /* Keep in sync with get_release_string() in avbtool. */ const char* avb_version_string(void) { return AVB_EXPAND_AND_QU...
183
1,500
<reponame>blacksph3re/garage<filename>src/garage/experiment/task_sampler.py """Efficient and general interfaces for sampling tasks for Meta-RL.""" # yapf: disable import abc import copy import math import numpy as np from garage.envs import GymEnv, TaskNameWrapper, TaskOnehotWrapper from garage.sampler.env_update imp...
6,188
432
<filename>debugger/src/libdbg64g/services/debug/edcl_types.h /* * Copyright 2019 <NAME>, <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/lice...
599
337
__author__ = 'maartenbreddels' import os import sys venv = sys.argv[1] for name in sys.argv[2:]: module = __import__(name) if os.path.split(module.__file__)[-1].startswith("__init__"): source = os.path.dirname(module.__file__) else: source = module.__file__ name = os.path.split(source)[-1] script = os.path.jo...
236
1,482
f"""result: {value:{60}.{16!s:2}{'qwerty' [2]}}""" def foo(): pass f : meta.fstring.python, source.python, storage.type.string.python, string.interpolated.python, string.quoted.multi.python """ : meta.fstring.python, punctuation.definition.string.begin.python, source.python, string.interpolate...
1,216
3,400
/* * Copyright 2014-2021 Real Logic Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
4,618
491
{ "block": "bottleneck", "base_model": "resnet", "finetuning_task": null, "groups": 1, "hidden_dropout_prob": 0.1, "hidden_size": 64, "initial_hidden_dimension": 64, "initializer_range": 0.02, "layer_norm_eps": 1e-12, "layers": [ 3, 4, 23, 3 ], "hidden_act": "relu", "max_positi...
282