max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,086
/* * Licensed to 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. Apache Software Foundation (ASF) licenses this file to you under * the Apache License, Version 2.0 (the ...
1,363
360
<gh_stars>100-1000 /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SO...
545
5,169
{ "name": "UIBuilder", "version": "0.2.5", "summary": "An iOS swift library intended to assist with programatically building complicated UI elements.", "description": "Provides low level constraint based building blocks to ease development of programatically generated\nviews. Also includes stacking views that ...
269
504
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
1,731
964
[ { "queryName": "Unrestricted Security Group Ingress", "severity": "HIGH", "line": 6, "filename": "positive1.tf" }, { "queryName": "Unrestricted Security Group Ingress", "severity": "HIGH", "line": 6, "filename": "positive2.tf" }, { "queryName": "Unrestricted Security Grou...
284
32,544
<reponame>DBatOWL/tutorials package com.baeldung.charstack; import static org.junit.Assert.assertEquals; import org.junit.jupiter.api.Test; public class CharStackWithArrayUnitTest { @Test public void whenCharStackIsCreated_thenItHasSize0() { CharStackWithArray charStack = new CharStackWithArray(); ...
634
765
<reponame>hyu-iot/gem5<gh_stars>100-1000 /***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding ...
2,235
315
#include "Tools/Algo/Matrix/Sparse_matrix/Sparse_matrix.hpp" namespace aff3ct { namespace tools { const std::vector<uint32_t>& Sparse_matrix ::get_cols_from_row(const size_t row_index) const { return this->row_to_cols[row_index]; } const std::vector<uint32_t>& Sparse_matrix ::get_rows_from_col(const size_t col_index...
309
1,350
<reponame>Shashi-rk/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.policyinsights.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.c...
9,805
390
<filename>blueflood-core/src/main/java/com/rackspacecloud/blueflood/cache/AbstractJmxCache.java /* * Copyright 2013 Rackspace * * 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 * ...
1,121
4,013
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories, CheckResult class GoogleCloudDNSSECEnabled(BaseResourceValueCheck): """ Looks for DNSSEC state at dns_managed_zone: https://www.terraform.io/docs/provider...
489
408
/* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
1,490
939
<reponame>srihari-humbarwadi/neural-structured-learning # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unl...
961
1,723
// // MessageViewController.h // MessageViewController // // Created by <NAME> on 12/22/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for MessageViewController. FOUNDATION_EXPORT double MessageViewControllerVersionNumber; //! Project version string for...
149
1,001
<reponame>yndu13/aliyun-openapi-python-sdk<gh_stars>1000+ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Ap...
1,092
5,428
<reponame>haoflynet/haipproxy<gh_stars>1000+ """ web api for haipproxy """ import os from flask import ( Flask, jsonify as flask_jsonify) from ..client.py_cli import ProxyFetcher from ..config.rules import VALIDATOR_TASKS def jsonify(*args, **kwargs): response = flask_jsonify(*args, **kwargs) if not res...
782
1,707
package org.apache.spark.sql.cassandra;
14
382
package com.fangxu.dota2helper.presenter; /** * Created by Administrator on 2016/7/19. */ public class VideoCachePresenter { }
46
473
<reponame>pingjuiliao/cb-multios #pragma once #include "cgc_types.h" void cgc_protocol_send_str(char* str); void cgc_protocol_with_recv_string(void (^block)(uint16 len, char* str)); void cgc_protocol_consume_str();
91
1,220
/* * The MIT License * * Copyright (c) 2013-2016 reark project contributors * * https://github.com/reark/reark/graphs/contributors * * 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 w...
2,031
347
<filename>frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/macpool/MacRangeModel.java package org.ovirt.engine.ui.uicommonweb.models.macpool; import org.ovirt.engine.core.common.businessentities.MacRange; import org.ovirt.engine.ui.uicommonweb.models.EntityModel; import org.ov...
1,005
348
<gh_stars>100-1000 import torch import torch.nn as nn from torchvision.models import vgg16 from torch.autograd import Variable from collections import OrderedDict import torch.nn.functional as F import sys sys.path.append('../') from libs.pytorch_spn.modules.gaterecurrent2dnoind import GateRecurrent2dnoind class spn_b...
2,829
2,978
<gh_stars>1000+ /* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.operator.cluster.operator.assembly; import io.fabric8.kubernetes.api.model.Pod; import io.fabric8.kubernetes.api.model.PodBuilder; import io.fabr...
9,055
403
<filename>bots/misc/joinServer2.0.py # # joinServer2.0.py # @author Merubokkusu # @created Thu Feb 07 2019 15:20:35 GMT-0500 (Eastern Standard Time) # @copyright 2018 - 2019 # @license CC BY-NC-ND 3.0 US | https://creativecommons.org/licenses/by-nc-nd/3.0/us/ # @website https://github.com/Merubokkusu/discord-spam...
416
854
__________________________________________________________________________________________________ class Logger { public: Logger() {} bool shouldPrintMessage(int timestamp, string message) { if (!m.count(message)) { m[message] = timestamp; return true; } if ...
322
1,444
package org.mage.test.cards.abilities.keywords; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * @author LevelX2 */ public class DomainTest extends CardTestPlayerBase { /** * Collapsing Borders correctly does...
524
790
""" Functions for working with "safe strings": strings that can be displayed safely without further escaping in HTML. Marking something as a "safe string" means that the producer of the string has already turned characters that should not be interpreted by the HTML engine (e.g. '<') into the appropriate entities. """ f...
1,501
3,175
<reponame>johnamcleod/agents<filename>tf_agents/bandits/environments/classification_environment.py # coding=utf-8 # Copyright 2020 The TF-Agents 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 ...
2,977
2,780
/** * Copyright (c) 2018-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 grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
3,664
446
<filename>body-tracking-samples/offline_processor/main.cpp // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <iostream> #include <fstream> #include <string> #include <iomanip> #include <k4a/k4a.h> #include <k4arecord/playback.h> #include <k4abt.h> #include <nlohm...
3,199
528
""" Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. """ # Definition for a undirected graph node # class UndirectedGraphNode(object): # def __init__(self, x): # self.label = x # self.neighbors = [] class Solution(object): def cloneGraph(self, nod...
686
309
// Copyright 2020 the deepx authors. // Author: <NAME> (<EMAIL>) // Author: <NAME> (<EMAIL>) // #pragma once #include <deepx_core/common/stream.h> #include <deepx_core/tensor/data_type.h> #include <string> #include <unordered_map> #include <unordered_set> namespace deepx_core { /*************************************...
368
965
<filename>docs/atl/codesnippet/CPP/connection-point-global-functions_1.cpp LPUNKNOWN m_pSourceUnk; LPUNKNOWN m_pSinkUnk; DWORD m_dwCustCookie; // create source object HRESULT hr = CoCreateInstance (CLSID_MyComponent, NULL, CLSCTX_ALL, IID_IUnknown, (LPVOID*)&m_pSourceUnk); ATLASSERT(SUCCEEDED(...
325
5,964
<filename>src/string-constants.h // Copyright 2018 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_STRING_CONSTANTS_H_ #define V8_STRING_CONSTANTS_H_ #include "src/handles.h" #include "src/objects/string.h"...
1,136
399
<filename>src/main_MobViewer.cpp<gh_stars>100-1000 #include <memory> #include <BsFPSCamera.h> #include <Components/BsCCamera.h> #include <Scene/BsSceneObject.h> #include <BsZenLib/ImportSkeletalMesh.hpp> #include <core.hpp> #include <components/VisualInteractiveObject.hpp> #include <log/logging.hpp> #include <origin...
637
376
<reponame>BIGWangYuDong/mmfewshot # Copyright (c) OpenMMLab. All rights reserved. from .mse_loss import MSELoss from .nll_loss import NLLLoss __all__ = ['MSELoss', 'NLLLoss']
71
1,001
# 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...
1,406
1,118
{"cym":{"common":"Angola","official":"Republic of Angola"},"deu":{"common":"Angola","official":"Republik Angola"},"fin":{"common":"Angola","official":"Angolan tasavalta"},"fra":{"common":"Angola","official":"République d'Angola"},"hrv":{"common":"Angola","official":"Republika Angola"},"ita":{"common":"Angola","official...
215
1,199
""" A collection of "worlds" suitable by solution by a CSP. Each world has a make_XXX_SCP function that creates a new CSP object, and some auxiliary utilities. """ import re, math from collections import defaultdict from types import StringTypes from csplib import CSP #-------------------------------...
6,539
647
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
276
1,362
<reponame>FriedDede/rpi4-osdev #include "io.h" #include "bt.h" #include "fb.h" #define MAX_MSG_LEN 50 #define MAX_READ_RUN 100 unsigned char data_buf[MAX_MSG_LEN]; unsigned int data_len; unsigned int messages_received = 0; unsigned int poll_state = 0; enum { LE_EVENT_CODE = 0x3e, LE_CONNECT_...
5,952
6,139
<reponame>uOOOO/mosby /* * Copyright 2016 <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...
568
3,710
#pragma once #include "pool.h"
15
460
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** G...
8,775
412
<filename>regression/snapshot-harness/pointer_to_struct_01/main.c #include <assert.h> #include <malloc.h> struct S { struct S *next; }; struct S st; struct S *p; struct S *q; void initialize() { st.next = &st; p = &st; q = malloc(sizeof(struct S)); } void checkpoint() { } int main() { initialize(); che...
185
416
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
2,668
5,250
/* 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...
933
1,144
<gh_stars>1000+ package de.metas.calendar; import java.time.DayOfWeek; import java.time.LocalDate; import javax.annotation.Nullable; import org.adempiere.exceptions.AdempiereException; import lombok.Builder; import lombok.NonNull; import lombok.Value; /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyrig...
784
648
<filename>spec/hl7.fhir.core/1.0.2/package/DataElement-ImagingObjectSelection.json {"resourceType":"DataElement","id":"ImagingObjectSelection","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ImagingObjectSelection","status":"draft","experimental":true,"stringency":"fully-sp...
377
14,668
// Copyright 2020 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/ash/cert_provisioning/cert_provisioning_worker.h" #include <memory> #include <string> #include "base/base64.h" #include "base/c...
39,201
1,056
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
2,205
7,482
/* * Copyright (c) 2010-2012, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this...
1,553
314
<filename>Multiplex/IDEHeaders/IDEHeaders/IDEKit/IDEInspectorColorProperty.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" #import <IDEKit/IDEInspectorProperty.h> @class DVTColorPickerPopUpButton, IDEInspect...
479
534
<gh_stars>100-1000 { "variants": { "active=false": { "model": "mekanism:block/induction/port" }, "active=true": { "model": "mekanism:block/induction/port_output" } } }
96
1,165
/******************************************************************************* * Copyright 2018 T Mobile, Inc. or its affiliates. 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 * o...
696
2,381
package io.jenkins.plugins.casc; import io.jenkins.plugins.casc.misc.ConfiguredWithReadme; import io.jenkins.plugins.casc.misc.JenkinsConfiguredWithReadmeRule; import jenkins.plugins.git.GitSCMSource; import org.jenkinsci.plugins.workflow.libs.GlobalLibraries; import org.jenkinsci.plugins.workflow.libs.LibraryConfigur...
462
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. #ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ #define CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_MAC_H_ #import <Foundation/F...
397
369
/** @file @brief Header @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 a...
518
1,652
package com.ctrip.xpipe.redis.core.protocal.cmd.pubsub; import com.ctrip.xpipe.tuple.Pair; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author chen.zhu * <p> * Apr 04, 2018 */ public class DefaultSubscribeMessageHandler extends AbstractSubscribeMessageHandler { private static final Logger ...
292
1,907
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2020 <NAME>, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtaining a cop...
2,439
663
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from copy import deepcopy import prestodb import pytest from datadog_checks.dev import docker_run, get_here from datadog_checks.dev.conditions import CheckDockerLogs, WaitFor from datadog_check...
486
1,121
<filename>gita/common.py import os def get_config_dir(root=None) -> str: if root is None: root = os.environ.get('XDG_CONFIG_HOME') or os.path.join( os.path.expanduser('~'), '.config') return os.path.join(root, "gita") else: return os.path.join(root, ".gita") def get_confi...
212
4,339
<reponame>vvteplygin/ignite<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache Licens...
1,102
323
<filename>spot_bullet/src/sac_lib/__init__.py from .sac import SoftActorCritic from .policynetwork import PolicyNetwork from .replay_buffer import ReplayBuffer from .normalized_actions import NormalizedActions
62
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Relay", "definitions": [ "Receive and pass on (information or a message)", "Broadcast (something) by passing signals received from elsewhere through a transmitting station." ], "parts-of-speech": "Verb" }
113
2,879
<gh_stars>1000+ /* * Copyright (C) 2016 <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...
2,836
2,151
// Copyright (c) 2018 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. #define VK_USE_PLATFORM_XLIB_KHR #include "gpu/vulkan/x/vulkan_implementation_x11.h" #include "gpu/vulkan/vulkan_instance.h" #include "gpu/vulkan/vu...
762
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.password_entry_edit; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertEquals; import stat...
6,966
1,615
package com.immomo.mls; /** * Description: * Author: xuejingfei * E-mail: <EMAIL> * Date: 2020-03-19 12:15 */ public class User extends Person { private String name; public String getName() { return name; } public void setName(String name) { String old = this.name; ...
216
1,405
<filename>sample1/recompiled_java/sources/com/xxGameAssistant/utility/FileUtil.java package com.xxGameAssistant.utility; import android.annotation.SuppressLint; import android.content.Context; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.text.SimpleDate...
674
578
/* * Copyright (c) 2003-2021 <NAME> <<EMAIL>>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ #ifndef _BITOPS_H #define _BITOPS_H ...
7,683
344
<gh_stars>100-1000 #include "refill.h" #include "z64.h" void health_and_magic_refill() { z64_file.refill_hearts = 0x140; z64_file.magic = z64_file.magic_capacity_set * 0x30; }
89
796
#include <string> #include <array> #include <unordered_map> #include <cmath> #include <cstring> #include <dlfcn.h> #include <jni.h> #include "modscript_shared.h" #include "mcpelauncher.h" #include "dobby_public.h" #include "mcpe/mce/textureptr.h" #include <android/log.h> #include <vector> // HumanoidMobRenderer::prepa...
1,294
852
<filename>Fireworks/Core/src/FWOverlapTableView.cc // -*- C++ -*- // // Package: Core // Class : FWOverlapTableView // // Implementation: // [Notes on implementation] // // Original Author: // Created: Wed Jan 4 00:06:35 CET 2012 // // system include files #include <functional> // user include ...
4,337
14,668
// Copyright 2018 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 "components/blocklist/opt_out_blocklist/opt_out_blocklist.h" #include <algorithm> #include <map> #include <memory> #include <string> #include <u...
17,292
1,337
<gh_stars>1000+ /* * 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 agr...
537
591
<reponame>orivej/rs_asio #include "stdafx.h" #pragma comment(lib, "propsys.lib")
43
2,151
<gh_stars>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 "chrome/browser/conflicts/module_database_win.h" #include <algorithm> #include <memory> #include <vector> #include "base/bind.h...
3,848
522
package algs.blog.searching.tree; import algs.blog.searching.search.ICollectionSearch; import algs.model.tree.BalancedBinaryNode; import algs.model.tree.BalancedTree; /** * Use a balanced binary tree to store all items. * <p> * In the worst case, the items are inserted into the tree in alphabetic order,...
779
348
{"nom":"Beaujeu-Saint-Vallier-Pierrejux-et-Quitteur","dpt":"Haute-Saône","inscrits":676,"abs":138,"votants":538,"blancs":50,"nuls":18,"exp":470,"res":[{"panneau":"2","voix":277},{"panneau":"1","voix":193}]}
88
5,169
{ "name": "GNCheckView", "version": "0.1.2", "summary": "A UIView subclass that allows animating smoothly between a checked and an unchecked state.", "description": "A UIView subclass that allows animating smoothly between a checked and an unchecked state, meant to provide a sleeker alternative to the UITableVi...
363
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 ...
589
486
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2001 <NAME> <<EMAIL>> * * Copyright (C) 2001 <NAME> <<EMAIL>> * * All rights reserved. * * ...
502
2,160
{ "build": { "dockerfile": "Dockerfile" }, "extensions": [ "dbaeumer.vscode-eslint", "ms-vscode.vscode-typescript-tslint-plugin" ], "postCreateCommand": "yarn" }
85
362
<filename>whois-rpsl/src/main/java/net/ripe/db/whois/common/rpsl/attrs/Inet6numStatus.java<gh_stars>100-1000 package net.ripe.db.whois.common.rpsl.attrs; import com.google.common.collect.Sets; import net.ripe.db.whois.common.domain.CIString; import java.util.Arrays; import java.util.EnumMap; import java.util.EnumSet;...
1,621
3,442
<filename>mmdnn/conversion/examples/mxnet/imagenet_test.py<gh_stars>1000+ #---------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license inform...
1,316
386
#pragma once #include <QTableWidget> class CEasyTableWidget : public QTableWidget { public: CEasyTableWidget(QWidget * parent = Q_NULLPTR); ~CEasyTableWidget(); void reset(); QTableWidgetItem* setCellText(int row, int column, const QString& text); QTableWidgetItem* setCellText(int row, int column, const QSt...
133
190,993
<gh_stars>1000+ /* Copyright 2015 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 app...
483
432
<filename>debugger/src/cpu_sysc_plugin/riverlib/cache/cache_top.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...
3,702
534
package mekanism.common.inventory.container; import javax.annotation.Nonnull; import javax.annotation.Nullable; import mekanism.api.text.ILangEntry; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerInventory; import net.minecraft.inventory.container.Container; import net.minecr...
378
1,061
package city.thesixsectorteam.wheelworld.plague.dao; import city.thesixsectorteam.wheelworld.plague.domain.Plague; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; /** * 类/方法名称:PlagueDao * 类/...
524
3,084
<filename>network/wlan/WDI/COMMON/SecurityGen.c<gh_stars>1000+ #include "Mp_Precomp.h" #if WPP_SOFTWARE_TRACE #include "SecurityGen.tmh" #endif //===========Define Local Function Protype=================== BOOLEAN SecCheckMIC( PADAPTER Adapter, PRT_RFD pRfd ) { OCTET_STRING frame; u1Byte Des...
85,120
446
<filename>applications/templatetags/applications_tags.py from django import template from django.utils.safestring import mark_safe register = template.Library() @register.simple_tag def display_sorting_arrow(name, current_order): is_reversed = False if f'-{name}' == current_order: is_reversed = True ...
194
21,382
package io.ray.streaming.runtime.config; import java.io.Serializable; import java.util.Map; /** Streaming config including general, master and worker part. */ public class StreamingConfig implements Serializable { public StreamingMasterConfig masterConfig; public StreamingWorkerConfig workerConfigTemplate; pu...
188
535
<reponame>Nemo157/mynewt-core<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 Apac...
1,363
1,481
<filename>core/src/main/java/apoc/generate/relationship/SimpleGraphRelationshipGenerator.java package apoc.generate.relationship; import apoc.generate.config.DistributionBasedConfig; import apoc.generate.distribution.MutableDegreeDistribution; import apoc.generate.distribution.MutableSimpleDegreeDistribution; import a...
1,432
354
<reponame>iabernikhin/VK-GL-CTS<gh_stars>100-1000 #ifndef _RRMULTISAMPLEPIXELBUFFERACCESS_HPP #define _RRMULTISAMPLEPIXELBUFFERACCESS_HPP /*------------------------------------------------------------------------- * drawElements Quality Program Reference Renderer * ----------------------------------------------- * ...
1,520
1,442
<reponame>didichuxing/delta # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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:...
857
679
/************************************************************** * * 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 y...
6,339
12,252
package org.keycloak.testsuite.dballocator.client.data; public class ReleaseResult { private final String uuid; private ReleaseResult(String uuid) { this.uuid = uuid; } public static ReleaseResult successful(String uuid) { return new ReleaseResult(uuid); } public String getU...
221