max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,151
# Copyright (C) 2012 Google 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: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
3,725
1,104
<reponame>ManuZzZ85/roll20-character-sheets { "name-u": "Name:", "age-u": "Age", "virtue-u": "Virtue", "vice-u": "악습", "faction-u": "Faction", "player-u": "Player:", "chronicle-u": "연대기:", "nature-u": "본성:", "demeanor-u": "태도:", "concept-u": "컨셉:", "clan-u": "Clan:", "generation-u": "세대:", "sire-u": "대부:",...
1,524
1,144
package de.metas.handlingunits.model; import java.math.BigDecimal; import javax.annotation.Nullable; import org.adempiere.model.ModelColumn; /** Generated Interface for M_HU_Assignment * @author metasfresh (generated) */ @SuppressWarnings("unused") public interface I_M_HU_Assignment { String Table_Name = "M_HU...
3,402
4,138
<gh_stars>1000+ package com.billy.cc.demo.lifecycle; import android.app.Activity; import android.content.Context; import android.content.Intent; import com.billy.cc.core.component.CC; import com.billy.cc.core.component.CCResult; import com.billy.cc.core.component.IComponent; import com.billy.cc.core.component.ICompon...
906
331
package com.lauzy.freedom.data.local.loader; import android.content.Context; import android.database.Cursor; import android.provider.MediaStore; import com.freedom.lauzy.model.LocalArtistBean; import java.util.ArrayList; import java.util.List; /** * Desc : 歌手数据加载 * Author : Lauzy * Date : 2017/9/28 * Blog : htt...
779
1,963
#include "../Source/DistanceFunctions/DistanceFunctions.c"
17
1,816
<reponame>cercos/masonite from .response import Response
18
482
package io.cattle.platform.iaas.api.auth.integration.ldap; public class ServiceContextRetrievalException extends RuntimeException { private static final long serialVersionUID = 953854846474061817L; public ServiceContextRetrievalException() { } public ServiceContextRetrievalException(String message) ...
256
664
#pragma once #include <QString> namespace utilities { struct Credential { QString login, password; bool persistent = true; }; } // namespace utilities
55
590
<gh_stars>100-1000 package hype; import hype.interfaces.HConstants; import processing.core.PVector; public abstract class HDrawable3D extends HDrawable { public static final float DEFAULT_DEPTH = 100; protected float depth; protected float anchorW; public HDrawable3D() { depth = DEFAULT_DEPTH; } @Override ...
1,056
7,482
/* * Copyright (c) 2018, Synopsys, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #include <rtthread.h> /* thread phase init */ static void rt_init_thread_entry(void *parameter) { /* do component initialization */ rt_components_init(); /* add your initialization here */ } int rt_application_init() ...
242
2,151
// Copyright 2015 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.android_webview; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager...
2,103
347
<reponame>jihwahn1018/ovirt-engine package org.ovirt.engine.ui.webadmin.widget.table.column; import java.util.ArrayList; import java.util.Objects; import org.gwtbootstrap3.client.ui.constants.IconType; import org.ovirt.engine.core.common.businessentities.Cluster; import org.ovirt.engine.ui.webadmin.ApplicationConstan...
3,998
997
#ifndef CONFIG_H #define CONFIG_H //#define DILITHIUM_MODE 2 //#define DILITHIUM_USE_AES //#define DILITHIUM_RANDOMIZED_SIGNING //#define USE_RDPMC //#define DBENCH #ifndef DILITHIUM_MODE #define DILITHIUM_MODE 2 #endif #ifdef DILITHIUM_USE_AES #if DILITHIUM_MODE == 2 #define CRYPTO_ALGNAME "Dilithium2-AES" #define ...
675
988
<reponame>JoachimRohde/netbeans /* * 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, Vers...
5,082
1,695
/* * 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 * distribut...
1,201
897
/** The Sieve of Eratosthenes is one of the most efficient ways to find all primes smaller than n. */ import java.util.Arrays; import java.util.Scanner; public class Sieve_of_Eratosthenes { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.print ("Enter ...
554
1,523
// 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...
1,475
480
<reponame>raakasf/Cpp17-STL-Cookbook<gh_stars>100-1000 #include <iostream> #include <queue> #include <tuple> #include <condition_variable> #include <thread> using namespace std; using namespace chrono_literals; queue<size_t> q; mutex mut; condition_variable cv; bool finished {false}; ...
425
573
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "stage4.h" #include "timeline.h" #include "draw.h" #include "background_anim.h...
7,749
2,661
/* * Copyright 2017 Google Inc. * Copyright 2020 The Open GEE Contributors * * 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 * * U...
890
317
/** * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * You may not modify, use, reproduce, or distribute this software except in * compliance with the terms of the License at: * https://github.com/javaee/tutorial-examples/LICENSE.txt */ package javaeetutorial.standalone.ejb; import java...
165
1,139
package com.journaldev.spring.aspect; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; @Aspect public class EmployeeAspect { @Before("execution(public String getName())") public void getNameAdvice(){ System.out.println("Executing Advice on getName()"); } @Before("executio...
156
1,447
<reponame>Kadantte/VideoSuperResolution # Copyright (c) 2017-2020 <NAME>. # Author: <NAME> # Email: <EMAIL> # Update: 2020 - 2 - 7 # Image customized decoder for YV12([Y][U/4][V/4]), YV21([Y][V/4][U/4]) # NOTE: [Y][U][V] means Y/U/V channel is a planar channel, [U/4] means # U channel is sub-sampled by a factor ...
1,063
8,456
package redis.clients.jedis.providers; import redis.clients.jedis.CommandArguments; import redis.clients.jedis.Connection; public interface ConnectionProvider extends AutoCloseable { Connection getConnection(); Connection getConnection(CommandArguments args); }
76
547
from triad.utils.assertion import assert_or_throw from triad.utils.hash import to_uuid from typing import Any class Yielded(object): """Yields from :class:`~fugue.workflow.workflow.FugueWorkflow`. Users shouldn't create this object directly. :param yid: unique id for determinism """ def __init__...
658
858
//===-- gen/typinf.h - TypeInfo declaration codegen -------------*- C++ -*-===// // // LDC – the LLVM D compiler // // This file is distributed under the BSD-style LDC license. See the LICENSE // file for details. // //===----------------------------------------------------------------------===/...
328
3,348
/** * 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...
986
1,909
<reponame>grmkris/XChange package org.knowm.xchange.coinmarketcap.deprecated.v2.dto.marketdata; import java.math.BigDecimal; import java.util.Date; /** @author allenday */ public class CoinMarketCapHistoricalSpotPrice implements Comparable<CoinMarketCapHistoricalSpotPrice> { private final Date timestamp; pri...
287
522
<filename>PerformanceTests/src/algs/model/performance/network/DegenerateCaseMain.java package algs.model.performance.network; import java.util.ArrayList; import algs.model.network.DFS_SearchArray; import algs.model.network.DFS_SearchList; import algs.model.network.EdgeInfo; import algs.model.network.FlowNetwork; impo...
1,000
583
#include <memory> #include "base_test.hpp" #include "expression/expression_functional.hpp" #include "expression/expression_utils.hpp" #include "logical_query_plan/join_node.hpp" #include "logical_query_plan/mock_node.hpp" #include "logical_query_plan/projection_node.hpp" #include "logical_query_plan/stored_table_node...
11,723
377
<gh_stars>100-1000 { "files": { "main.js": "/Awesome-Rust-MachineLearning/static/js/main.f64b15a8.chunk.js", "main.js.map": "/Awesome-Rust-MachineLearning/static/js/main.f64b15a8.chunk.js.map", "runtime-main.js": "/Awesome-Rust-MachineLearning/static/js/runtime-main.43f65b28.js", "runtime-main.js.map"...
459
14,668
<filename>ios/chrome/browser/ui/omnibox/popup/autocomplete_result_consumer.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 IOS_CHROME_BROWSER_UI_OMNIBOX_POPUP_AUTOCOMPLETE_RESULT_CONSUMER_H_ #...
750
1,350
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # r...
5,016
839
<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 ...
2,111
2,144
/** * 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,210
854
__________________________________________________________________________________________________ sample 2 ms submission class Solution { public int calculate(String s) { if (s == null || s.length() == 0) return 0; char[] a = new char[s.length()]; int n = 0; for (char c : s.toCharAr...
1,564
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/Message.framework/MailServices/IMAP.framework/IMAP */ #import <IMAP/IMAPAccount.h> @class NSString, AAAccountManager, DeliveryAccount, AAAccount, NSURL, NSLock; @interface CastleIMAPAccount : IMAPAccount { AAAccou...
1,830
647
/* PURPOSE: (To be) LIBRARY_DEPENDENCIES: (ros_framework.cpp) */ #ifndef ROS_FRAMEWORK_HH #define ROS_FRAMEWORK_HH #include <string> class RosFramework { public: RosFramework(std::string app_name) ; virtual ~RosFramework() ; virtual int shutdown() ; } ; #endif
131
865
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import argparse import pickle import json import emoji import sys import os import io import blink.candidate_retrieval.ut...
1,348
348
package com.luseen.verticalintrolibrary; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.content.ContextCompat; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import andro...
991
3,263
<reponame>dwragge/immutables //THIS IS STUB!!!! package android.os; public class RemoteException extends Exception { }
39
333
<reponame>utsekaj42/chaospy """Modified Chebyshev algorithm.""" from __future__ import division import numpy def modified_chebyshev(moments): r""" Given the first 2N raw statistical moments, this method uses the modified Chebyshev algorithm for computing the associated recurrence coefficients. Args:...
886
3,138
# Lint as: python3 # 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 # # Unless required by applicable law or agr...
447
578
<reponame>akashvacher/kafka-tools<filename>kafka/tools/models/cluster.py # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to y...
3,308
2,130
// // CStacksHashmap.h // QQLeak // // Tencent is pleased to support the open source community by making OOMDetector available. // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with t...
750
575
<reponame>sarang-apps/darshan_browser<filename>cc/test/fake_layer_tree_frame_sink_client.h // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_TEST_FAKE_LAYER_TREE_FRAME_SINK_CLIENT_H_ #define CC...
893
1,467
/* * Copyright Amazon.com, 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file ...
2,221
777
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_QUIC_CHROMIUM_MOCK_NETWORK_CHANGE_NOTIFIER_H_ #define NET_QUIC_CHROMIUM_MOCK_NETWORK_CHANGE_NOTIFIER_H_ #include "net/base/network_change...
679
435
<reponame>amaajemyfren/data { "abstract": "Created in 2016, Tech Writers Without Borders aims to connect technical\ncommunicators with nonprofits seeking help with their documentation and\ntraining materials.\n\nUsing examples from our work with iNERDE, a social enterprise seeking to\nempower West African youth with ...
447
2,517
<filename>libcaf_core/src/telemetry/label_view.cpp<gh_stars>1000+ // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #include "caf/telemetry/...
363
1,223
<reponame>X-Green/fabric-carpet package carpet.mixins; import net.minecraft.world.poi.PointOfInterest; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Accessor; import org.spongepowered.asm.mixin.gen.Invoker; @Mixin(PointOfInterest.class) public interface PointOfInterest_scarpetMixin ...
157
852
#include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/global/EDAnalyzer.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Utilities/interface/StreamID.h" namespace edmtest { class UnitTestClient_I : p...
563
418
<gh_stars>100-1000 ../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h
41
1,091
/* * Copyright (c) 2015-2020, Oracle and/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 of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
1,096
7,091
# Data directories train_data_path = "./finished_files/chunked/train_*.json" eval_data_path = "./finished_files/val.json" decode_data_path = "./finished_files/test.json" vocab_path = "./finished_files/vocab" log_root = "./log" # Hyperparameters hidden_dim = 256 emb_dim = 128 batch_size = 8 max_enc_steps = 400 max_dec_...
254
669
<gh_stars>100-1000 import argparse class BaseCommand: @classmethod def define_argparse(cls, parser: argparse.ArgumentParser): raise NotImplementedError("Command hasn't implemented define_argparse!") @staticmethod def exec(args: argparse.Namespace): raise NotImplementedError("Command h...
117
521
<reponame>infinitio/elle #ifndef ELLE_SERIALIZATION_SERIALIZER_OUT_HH # define ELLE_SERIALIZATION_SERIALIZER_OUT_HH # include <iosfwd> # include <elle/attribute.hh> # include <elle/serialization/Serializer.hh> namespace elle { namespace serialization { /// A Serializer specialized for serializing and writing...
1,242
348
<gh_stars>100-1000 {"nom":"Buxières-lès-Villiers","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":159,"abs":69,"votants":90,"blancs":8,"nuls":1,"exp":81,"res":[{"nuance":"REM","nom":"<NAME>","voix":42},{"nuance":"LR","nom":"<NAME>","voix":39}]}
108
892
{ "schema_version": "1.2.0", "id": "GHSA-9gjj-q6rp-pfvj", "modified": "2022-04-19T00:01:24Z", "published": "2022-04-12T00:00:30Z", "aliases": [ "CVE-2022-20067" ], "details": "In mdp, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privileg...
451
4,269
<reponame>FredericDesgreniers/ribbon /* * * Copyright 2013 Netflix, 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 re...
650
425
import time import math from pimoroni_i2c import PimoroniI2C from breakout_dotmatrix import BreakoutDotMatrix PINS_BREAKOUT_GARDEN = {"sda": 4, "scl": 5} PINS_PICO_EXPLORER = {"sda": 20, "scl": 21} i2c = PimoroniI2C(**PINS_BREAKOUT_GARDEN) display = BreakoutDotMatrix(i2c) # Left Image Padding Right Imag...
565
1,656
<reponame>HashZhang/spring-cloud-sleuth /* * Copyright 2013-2021 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/license...
565
3,285
<gh_stars>1000+ /* Copyright 2020 The OneFlow 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 applic...
1,062
649
<gh_stars>100-1000 package net.serenitybdd.screenplay.webtests.tasks; import net.serenitybdd.screenplay.Actor; import net.serenitybdd.screenplay.Performable; import net.serenitybdd.screenplay.actions.Open; import net.serenitybdd.screenplay.webtests.pages.HomePage; import net.thucydides.core.annotations.Step; public c...
236
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Data {...
214
599
#ifndef TGADGETICON_H #define TGADGETICON_H #include <QColor> #include <QObject> class TGadgetIcon : public QObject { Q_OBJECT public: explicit TGadgetIcon(QObject *parent = nullptr); Q_PROPERTY(int type READ type WRITE setType NOTIFY typeChanged) Q_PROPERTY(QString source READ sour...
678
325
/* * The MIT License (MIT) * * Copyright (c) 2014-2018, <NAME> * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use,...
4,452
688
<gh_stars>100-1000 # modules/FlowProjectionModule.py from torch.nn import Module from .FlowProjectionLayer import FlowProjectionLayer #, FlowFillholeLayer class FlowProjectionModule(Module): def __init__(self, requires_grad = True): super(FlowProjectionModule, self).__init__() self.f = FlowProject...
288
322
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/clarifai/api/status/status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf im...
2,607
330
<filename>egs/zeroth/s5/data/local/lm/buildLM/_scripts_/genPhoneSeq.py #!/usr/bin/env python3 # Author: <NAME> # Data: 2017.04.05 # Ref.: https://www.korean.go.kr/front/page/pageView.do?page_id=P000097&mn_id=95 # # 받침 대표음 # # ㄾ # ㄳ ㄽ ㅄ ㅀ # ㄺ ㄵ ㄾ ㄻ ㄿ ㄶ # ----------------------...
22,449
348
{"nom":"Chassey-lès-Scey","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":92,"abs":43,"votants":49,"blancs":0,"nuls":1,"exp":48,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":30},{"nuance":"FN","nom":"<NAME>","voix":18}]}
101
1,848
<reponame>dustlang/rust-bindgen // bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --impl-partialeq struct rte_mbuf { union {}; } __attribute__((__aligned__(64)));
76
5,249
# # Copyright (c) 2021, NVIDIA CORPORATION. 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 appl...
3,916
777
<filename>gin/test/file_runner.cc<gh_stars>100-1000 // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gin/test/file_runner.h" #include "base/files/file_util.h" #include "base/message_loop/messa...
1,183
34,359
<gh_stars>1000+ /*++ Copyright (c) Microsoft Corporation Licensed under the MIT license. Module Name: - handle.h Abstract: - This file manages console and I/O handles. - Mainly related to process management/interprocess communication. Author: - <NAME> (ThereseS) 16-Nov-1990 Revision History: --*/ ...
132
2,707
<reponame>marslinktech/jetlinks-community package org.jetlinks.community.device.response; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @AllArgsConstructor @NoArgsConstructor public class DeviceDeployResult { private int total; ...
203
1,093
<reponame>StandCN/spring-integration /* * Copyright 2002-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/L...
1,670
6,036
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/framework/endian_utils.h" #include <cassert> #include <cstring> #include "core/framework/endian.h" namespace onnxruntime { namespace utils { namespace { // analogous to std::reverse_copy template <typena...
1,027
437
package contracts.ownership; import io.nuls.contract.sdk.Address; import io.nuls.contract.sdk.Msg; import io.nuls.contract.sdk.annotation.View; import static io.nuls.contract.sdk.Utils.emit; import static io.nuls.contract.sdk.Utils.require; public class OwnableImpl implements Ownable { private Address owner; ...
362
1,444
package mage.cards.u; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.common.continuous.AddBasicLandTypeAllLandsEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.*; import java.util.UUID; /** * @author Plopman */ public final class UrborgTombOf...
343
3,269
<reponame>Sourav692/FAANG-Interview-Preparation # Time: O(n^2) # Space: O(1) class Solution(object): def createTargetArray(self, nums, index): """ :type nums: List[int] :type index: List[int] :rtype: List[int] """ for i in xrange(len(nums)): for j in xra...
476
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/Message.framework/Message */ #import <Message/MessageConsumer.h> #import <Message/QueryProgressMonitor.h> #import <Message/XXUnknownSuperclass.h> @class NSMutableArray; @interface _MFMessageCollector : XXUnknownSup...
265
9,425
""" Functions to view the minion's public key information """ import os import salt.utils.crypt def finger(hash_type=None): """ Return the minion's public key fingerprint hash_type The hash algorithm used to calculate the fingerprint CLI Example: .. code-block:: bash salt '*'...
393
736
<gh_stars>100-1000 # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
1,287
831
/* * Copyright (C) 2014 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...
1,520
613
package com.interest.service; import com.interest.model.entity.UserQQEntity; public interface UserQQService { void insertEntity(UserQQEntity userQQEntity); }
50
332
import yaml import os # 读取配置文件 def read_config(filepath): res = None with open(filepath, "rt", encoding="utf8") as f: res = yaml.safe_load(f) return res[enviroment()] def enviroment(): return "production" if is_production() else "development" def is_production(): return not is_developm...
161
371
<filename>StereoKitC/libraries/isac_spatial_sound.cpp #ifdef _MSC_VER #include "isac_spatial_sound.h" #include <winrt/Windows.Foundation.h> using namespace Microsoft::WRL; using namespace winrt::Windows::Media::Devices; using namespace sk; constexpr uint32_t c_HrtfSampleRate = 48000; // Some helper macro...
4,517
3,084
/*++ Copyright (C) Microsoft Corporation, All Rights Reserved. Module Name: Driver.c Abstract: This module contains the implementation of the VirtualSerial Sample's core driver callback object. Environment: Windows Driver Framework --*/ #include <initguid.h> #include "intern...
825
1,475
<filename>geode-pulse/geode-pulse-test/src/main/java/org/apache/geode/tools/pulse/tests/JMXBaseBean.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 * co...
690
1,738
{ "pagination": { "DescribeDirectConnectGatewayAssociations": { "input_token": "nextToken", "limit_key": "maxResults", "output_token": "nextToken", "result_key": "directConnectGatewayAssociations" }, "DescribeDirectConnectGatewayAttachments": { "input_token": "nextToken", ...
265
1,639
<filename>packages/jsii-rosetta/test/translations/comments/empty_lines_in_comments.java // Here's a comment // // Second line someCall();
45
653
package org.itstack.naive.chat.ui.view.login; /** * 博 客:http://bugstack.cn * 公众号:bugstack虫洞栈 | 沉淀、分享、成长,让自己和他人都能有所收获! * create by 小傅哥 on @2020 * * 页面展示元素和事件定义 */ public class LoginView { private LoginInit loginInit; private ILoginEvent loginEvent; public LoginView(LoginInit loginInit, ILoginEvent ...
249
1,267
# -*- coding: utf-8 -*- from __future__ import absolute_import import sys from scrapy.core.spidermw import SpiderMiddlewareManager from scrapy.http import Request, Response from scrapy.http.request import Request as ScrapyRequest from scrapy.http.response import Response as ScrapyResponse from scrapy.spiders import S...
2,697
350
<gh_stars>100-1000 /* * Copyright (C) 2005-2017 <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/licenses/LICENSE-2.0 * * Unless required...
1,483
521
/* * dyngen defines for micro operation code * * Copyright (c) 2003 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your optio...
1,347
590
<filename>problems/tests/test_maximum_product_subarray.py # coding: utf-8 import unittest from problems.maximum_product_subarray import Solution class TestCase(unittest.TestCase): def setUp(self): self.solution = Solution() def test(self): nums = [2, -5, -2, -4, 3] self.assertEqual(s...
331
5,411
<filename>code/components/net-tcp-server/include/ReverseTcpServer.h #pragma once #include <UvTcpServer.h> #include <deque> #include <uvw.hpp> #ifdef COMPILING_NET_TCP_SERVER #define TCP_SERVER_EXPORT DLL_EXPORT #else #define TCP_SERVER_EXPORT DLL_IMPORT #endif namespace net { class ReverseTcpServer; class ReverseT...
753
756
// Copyright (C) 2020 <NAME>, <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publis...
530