max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
14,668
<reponame>zealoussnow/chromium // 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 IOS_CHROME_BROWSER_AUTOFILL_FORM_SUGGESTION_VIEW_H_ #define IOS_CHROME_BROWSER_AUTOFILL_FORM_SUGGESTION_VIEW_H_ #i...
582
377
/******************************************************************************* * * Copyright 2013 Impetus Infotech. * * * * 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 * * *...
734
521
<reponame>Fimbure/icebox-1 /* $Id: UIGlobalSettingsNetworkDetailsNAT.cpp $ */ /** @file * VBox Qt GUI - UIGlobalSettingsNetworkDetailsNAT class implementation. */ /* * Copyright (C) 2009-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualb...
1,617
488
/** * \file MFB/include/MFB/api.tpp * * \author <NAME> * */ #ifndef _MFB_API_TPP_ #define _MFB_API_TPP_ #include "sage3basic.h" namespace MFB { template <typename CRT> void API<CRT>::load(Driver<Sage> & driver) { load_headers(driver); load_api(driver); } template <typename CRT> void API<CRT>::display(std...
2,815
542
import tensorflow as tf import numpy as np import os import cv2 from data_layer import DataLayer, DBDataLayer from geometry.transformation import * from utils.memory_saving_gradients import gradients from utils.average_grads import average_gradients from utils import mem_util from modules.depth import DepthNetwork f...
6,431
466
from openchem.models.openchem_model import OpenChemModel from openchem.optimizer.openchem_optimizer import OpenChemOptimizer from openchem.optimizer.openchem_lr_scheduler import OpenChemLRScheduler import torch class Smiles2Label(OpenChemModel): r""" Creates a model that predicts one or multiple labels given...
1,120
986
<filename>src/commands/CommandManagerWindowClasses.h /********************************************************************** Sneedacity: A Digital Audio Editor CommandManagerWindowClasses.h <NAME> **********************************************************************/ #ifndef __SNEEDACITY_COMMAND_MANAGER_WIN...
251
3,589
<reponame>frontfact/picocli package picocli.examples.exceptionhandler; import picocli.CommandLine; import picocli.CommandLine.Command; import picocli.CommandLine.IParameterExceptionHandler; import picocli.CommandLine.MissingParameterException; import picocli.CommandLine.Model.ArgSpec; import picocli.CommandLine.Option...
765
440
<filename>IGC/Compiler/Optimizer/OpenCLPasses/BreakdownIntrinsic.cpp /*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "Comp...
1,104
8,054
<reponame>lizhyumzi/vnote #ifndef IVERSIONCONTROLLERFACTORY_H #define IVERSIONCONTROLLERFACTORY_H #include <QSharedPointer> namespace vnotex { class IVersionController; class IVersionControllerFactory { public: IVersionControllerFactory() { } virtual ~IVersionControll...
272
448
package JavaExtractor; import JavaExtractor.Common.CommandLineValues; import JavaExtractor.Common.Common; import JavaExtractor.FeaturesEntities.ProgramFeatures; import org.apache.commons.lang3.StringUtils; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Pa...
1,190
1,034
<gh_stars>1000+ package com.gavin.apmtools.ui; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.app.Application; import android.app.Service; import android.graphics.PixelFormat; import android.view.GestureDetector; import android.view.Gravity; import android.view.Layo...
2,394
707
<gh_stars>100-1000 #include "savebuffer.h" bool savebuffer_init(SaveBuffer* output, PyObject* serializer, KeysStore store, const char* path, size_t capacity) { output->store = store; output->file = NULL; output->buffer = NULL; output->size = 0; output->capacity = capaci...
1,109
2,707
<reponame>ronaldocan/jetlinks-community package org.jetlinks.community.rule.engine.web; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; import org...
2,313
3,034
<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 "Lice...
7,116
4,071
<reponame>Ru-Xiang/x-deeplearning<filename>xdl-algorithm-solution/TDMServing/tdm-serving/util/registerer.cpp /* Copyright (C) 2016-2018 Alibaba Group Holding 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...
267
3,702
// Copyright (c) 2011-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. // // The following ...
552
598
#pragma once #include "game.h" #include <unordered_map> #include <string> namespace humblenet { struct GameRecord { GameId game_id; std::string secret; bool verify; GameRecord() : game_id(0), verify(false) {} }; class GameDB { public: GameDB() {}; virtual ~GameDB() {}; virtual bool findByToken(c...
335
6,989
/* * Copyright 2008-2013 NVIDIA Corporation * Copyright 2013 <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 * * Unl...
6,334
373
<gh_stars>100-1000 // Windows/FileFind.cpp #include "StdAfx.h" #include "FileFind.h" #include "FileIO.h" #include "../Common/StringConvert.h" #ifndef _UNICODE extern bool g_IsNT; #endif #include <sys/stat.h> #include <unistd.h> #include <errno.h> #define NEED_NAME_WINDOWS_TO_UNIX #include "myPrivate.h" // #defi...
6,212
18,012
<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 "Lic...
1,040
19,628
<gh_stars>1000+ package com.didichuxing.doraemonkit.widget.titlebar; import android.content.Context; import android.content.res.TypedArray; import android.text.TextUtils; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.FrameLayout; import android.wi...
1,501
1,493
/******************************************************************************* * Copyright 2017 Bstek * * 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/l...
2,759
374
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
854
674
// // AddressMapper.hpp // Clock Signal // // Created by <NAME> on 30/12/2017. // Copyright 2017 <NAME>. All rights reserved. // #ifndef AddressMapper_hpp #define AddressMapper_hpp #include <functional> namespace Analyser { namespace Static { namespace Disassembler { /*! Provides an address mapper that relocat...
213
14,668
<reponame>chromium/chromium // 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. #ifndef GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ #includ...
576
933
/* * Copyright (C) 2019 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...
438
2,177
<gh_stars>1000+ # Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). # See License in the project root for license information. # Use convenience function to redirect printing to stderr from cruisecontrolclient.util.print import print_error # To be able to use the Endpoint class to...
2,870
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
532
407
<gh_stars>100-1000 package com.alibaba.sreworks.health.common.incident; public enum SelfHealingStatus { WAITING, RUNNING, // 不进入自愈通道 FAILURE, SUCCESS, // 不进入自愈通道 CANCEL // 不进入自愈通道 }
126
1,233
<gh_stars>1000+ /* * Copyright 2019 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 required by applicable...
2,796
335
{ "word": "Geranium", "definitions": [ "A herbaceous plant or small shrub of a genus that comprises the cranesbills and their relatives. Geraniums bear a long, narrow fruit that is said to be shaped like the bill of a crane.", "(in general or informal use) a cultivated pelargonium.", "Th...
138
435
<reponame>amaajemyfren/data { "description": "You have created your awesome application, deployed it for the very\nfirst time, now what? How you handle application updates, what are the\npossible approaches? Do you pick your deployment strategy by your\nfavorite color, blue- green, canary, other? Yet, the decision is...
281
348
{"nom":"Sérilhac","circ":"2ème circonscription","dpt":"Corrèze","inscrits":246,"abs":128,"votants":118,"blancs":10,"nuls":8,"exp":100,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":52},{"nuance":"LR","nom":"<NAME>","voix":48}]}
94
778
package org.aion.zero.impl.types; import org.aion.util.conversions.Hex; /** Block identifier holds block hash and number <br> */ public class BlockIdentifier { /** Block hash */ private byte[] hash; /** Block number */ private long number; public BlockIdentifier(byte[] hash, long number) { ...
328
9,106
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include <stack> namespace Microsoft::ReactNative { template <class T> struct TextVisitorScope { TextVisitorScope(std::stack<T> &stack, T scopedValue) : m_stack{stack} { // There's an assumption...
334
841
<reponame>jason19990099/majiabao package com.gzsll.hupu.ui.pmdetail; import android.app.Activity; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.Menu; import android....
1,893
471
/////////////////////////////////////////////////////////////////////////////// // Name: wx/msw/evtloopconsole.h // Purpose: wxConsoleEventLoop class for Windows // Author: <NAME> // Modified by: // Created: 2004-07-31 // Copyright: (c) 2003-2004 <NAME> <<EMAIL>> // Licence: wxWindows licence ...
531
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
5,678
339
<reponame>wrf36/advancedfx<gh_stars>100-1000 #pragma once #include <stdio.h> #include <string> #include <set> #include <map> namespace advancedfx { class CAfxGameRecord { public: CAfxGameRecord(); ~CAfxGameRecord(); bool GetRecording(void); bool StartRecording(wchar_t const * fileName, int v...
384
1,503
// // MFTranslationUtil.h // MangoFix // // Created by jerry.yong on 2017/11/23. // Copyright © 2017年 yongpengliang. All rights reserved. // #import <Foundation/Foundation.h> #import "MFClassDefinition.h" #import "MFStructDeclare.h" @class MFScopeChain; @class MFStack; @interface MFInterpreter : NSObject @proper...
313
3,788
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // // LeakCycleTestCX.xaml.h // Declaration of the LeakCycleTestCX class // #pragma once using namespace Microsoft::UI::Xaml::Controls; #include "Leak...
474
348
package com.swifty.toptoastbar; import android.app.Service; import android.content.Context; import android.content.Intent; import android.graphics.PixelFormat; import android.os.Build; import android.os.IBinder; import android.view.Gravity; import android.view.LayoutInflater; import android.view.ViewGroup; import andr...
1,347
355
package cn.com.superLei.aoparms.common.utils; import java.io.File; /** * description $desc$ * created by jerry on 2019/5/29. */ public class FileUtils { public static boolean exists(File file) { return file!=null && file.exists(); } /** * 判断是否文件 * @param file * @return */ ...
266
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Locomotor", "definitions": [ "Relating to locomotion." ], "parts-of-speech": "Adjective" }
77
1,652
package com.ctrip.xpipe.redis.keeper.store; import com.ctrip.xpipe.endpoint.DefaultEndPoint; import com.ctrip.xpipe.lifecycle.LifecycleHelper; import com.ctrip.xpipe.redis.core.protocal.protocal.LenEofType; import com.ctrip.xpipe.redis.core.redis.RunidGenerator; import com.ctrip.xpipe.redis.core.store.MetaStore; impor...
2,921
325
/* * Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
24,670
921
package sqlancer.common.gen; import java.util.ArrayList; import java.util.Collections; import java.util.List; import sqlancer.Randomly; public abstract class TypedExpressionGenerator<E, C, T> implements ExpressionGenerator<E> { protected List<C> columns = Collections.emptyList(); protected boolean allowAggr...
877
775
/* Mode: -*- C++ -*- */ // vim: set ai ts=4 sw=4 expandtab /* @BC * Copyright (c) 1993 * by Microelectronics and Computer Technology Corporation (MCC) * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without...
497
504
<gh_stars>100-1000 /*********************************************************************** * * PROJECT: PMake * MODULE: Customs -- BSD UNIX dependencies * FILE: os-bsd.c * * AUTHOR: <NAME>: Sep 9, 1989 * * ROUTINES: * Name Description * ---- ----------- * OS_Init ...
4,155
861
<reponame>scotthufeng/spring-cloud-gray<gh_stars>100-1000 package cn.springcloud.gray.server.service; import cn.springcloud.gray.server.dao.mapper.GrayEventLogMapper; import cn.springcloud.gray.server.dao.mapper.ModelMapper; import cn.springcloud.gray.server.dao.model.GrayEventLogDO; import cn.springcloud.gray.server....
683
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Outcompete", "definitions": [ "Surpass in a competitive situation.", "Displace (another species) in the competition for space, food, or other resources." ], "parts-of-speech": "Verb" }
104
16,989
<gh_stars>1000+ // Copyright 2018 The Bazel 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 ...
674
14,425
<reponame>bzhaoopenstack/hadoop /** * 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, Ver...
2,302
1,641
<reponame>dbfreem/py-evm import pytest from eth.vm.forks.london.transactions import UnsignedDynamicFeeTransaction from eth.vm.forks.berlin.transactions import UnsignedAccessListTransaction from eth_utils import ValidationError @pytest.mark.parametrize( "unsigned_access_list_transaction,is_valid", ( ...
2,454
1,545
/* * 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,140
3,301
package com.alibaba.alink.operator.common.nlp.bert.tokenizer; public enum EncodingKeys { INPUT_IDS_KEY("input_ids"), TOKEN_TYPE_IDS_KEY("token_type_ids"), ATTENTION_MASK_KEY("attention_mask"), OVERFLOWING_TOKENS_KEY("overflowing_tokens"), NUM_TRUNCATED_TOKENS_KEY("num_truncated_tokens"), SPECIAL_TOKENS_MASK_KEY(...
206
634
/**************************************************************** * 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...
1,409
320
<reponame>D15C0DE/openMSX #include "catch.hpp" #include "endian.hh" using namespace Endian; union T16 { B16 be; L16 le; }; union T32 { B32 be; L32 le; }; TEST_CASE("endian: byteswap") { CHECK(byteswap16(0x1122) == 0x2211); CHECK(byteswap32(0x11223344) == 0x44332211); CHECK(byteswap64(0x1122334455667788) == 0...
1,638
423
<filename>Artifacts/windows-firewall/Artifactfile.json { "$schema": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json", "title": "Windows Firewall operations", "description": "Artifact to execute basic Windows firewall commands", "publisher": "<NAME>", "tags...
407
562
<filename>ktrw_kext_loader/system/map_file.c<gh_stars>100-1000 // // Project: KTRW // Author: <NAME> <<EMAIL>> // // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the Licens...
588
622
package model; public class PrivatePlane extends Airplane { // NOTE: this project accompanies the Abstract Classes video // MODIFIES: this // EFFECTS: prints brought warm towels public void bringWarmTowels(){ System.out.println("Here is your warm towel!!"); } }
110
1,460
/* * The MIT License (MIT) * * Copyright (c) 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, copy,...
2,227
346
#ifndef __FLORIST_CARDS_H #define __FLORIST_CARDS_H #define FLOR_CARD_TEXT_FILE BINARYDATADIR "/flowercard.edt" #define FLOR_CARD_TEXT_TITLE_SIZE 5 * 80 void EnterFloristCards(void); void ExitFloristCards(void); void RenderFloristCards(void); extern INT8 gbCurrentlySelectedCard; #endif
127
2,338
<filename>clang/test/Index/Core/index-instantiated-source.cpp // RUN: c-index-test core -print-source-symbols -- %s -std=c++14 -target x86_64-apple-macosx10.7 | FileCheck %s // References to declarations in instantiations should be canonicalized: template<typename T> class BaseTemplate { public: T baseTemplateFuncti...
2,259
501
<gh_stars>100-1000 /* Copyright (c) 2015-2018 The Khronos Group Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to us...
1,832
1,093
/* * 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/LICENSE-2.0 * * Unless required by a...
377
377
{ "{{count, number}} members_0": "{{count, number}} Vienas asmuo", "{{count, number}} members_1": "Sekantis asmuo", "{{count, number}} members_2": "Keletas asmenų", "Sign up with Trustroots": "Prisijungti į Trustroots", "Send us suggestions!": "Siųsti pasiūlymus!", "No members yet": "Nėra narių"...
395
1,545
<filename>.vscode/extensions.json { "recommendations": [ "bungcip.better-toml", "esbenp.prettier-vscode", "rust-lang.rust" ] }
70
384
<filename>src/gromacs/modularsimulator/freeenergyperturbationdata.h /* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2019,2020,2021, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>, * and including many others, as listed in the AUTHORS file in the ...
3,026
356
<filename>Bluetooth/libgatt/hci_lib.h /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2000-2001 Qualcomm Incorporated * Copyright (C) 2002-2003 <NAME> <<EMAIL>> * Copyright (C) 2002-2010 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * ...
4,040
719
package com.googlecode.objectify.impl; import com.google.cloud.datastore.FullEntity; import com.googlecode.objectify.impl.translate.CreateContext; import com.googlecode.objectify.impl.translate.LoadContext; import com.googlecode.objectify.impl.translate.Populator; import com.googlecode.objectify.impl.translate.SaveCon...
340
786
<gh_stars>100-1000 #!/usr/bin/env python # This can be used to debug invalid Xml Schema documents. import sys from lxml import etree if len(sys.argv) != 2: print "Usage: %s <path_to_xsd_file>" % sys.argv[0] sys.exit(1) f = open(sys.argv[1]) etree.XMLSchema(etree.parse(f))
127
1,545
<filename>stream/distributedlog/core/src/test/java/org/apache/distributedlog/zk/TestZKVersionedSetOp.java /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright owne...
1,429
2,002
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #include <windows.h> #include <WexTestClass.h> #include "mrm/BaseInternal.h" using namespace WEX::Common; using namespace WEX::TestExecution...
13,783
521
<filename>third_party/virtualbox/src/libs/xpcom18a4/nsprpub/pr/tests/ioconthr.c<gh_stars>100-1000 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public Lice...
2,112
12,706
import os from g import data_dir, REDIS_UID, REDIS_GID from utils.misc import prepare_dir redis_data_path = os.path.join(data_dir, 'redis') def prepare_redis(config_dict): prepare_dir(redis_data_path, uid=REDIS_UID, gid=REDIS_GID)
99
3,056
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
1,451
3,799
<reponame>semoro/androidx /* * Copyright 2021 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 * * ...
1,573
995
package core.document.graph; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; import util.Mac; import java.util.*; import java.util.stream.Collectors; public abstract class...
983
995
<filename>deps/boost/include/boost/python/numpy/internal.hpp // Copyright <NAME> 2010-2012. // Copyright <NAME> 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef boost_python_numpy_internal_hpp...
516
1,075
{ "extends": "../../tsconfig", "compilerOptions": { "outDir": "lib", "rootDir": ".", "resolveJsonModule": true }, "include": ["./src/**/*", "./test/**/*"], "files": [ "./schemas/address_schema.json", "./schemas/number_schema.json", "./schemas/hex_schem...
1,292
14,668
<reponame>zealoussnow/chromium<gh_stars>1000+ // Copyright 2019 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.support_lib_glue; import static org.chromium.support_lib_glue.SupportLibWebViewChromiu...
407
428
class start { start& operator<<(int); };
16
2,428
# -*- coding: utf-8 -*- import datetime from operator import itemgetter from wechatpy.client.api.base import BaseWeChatAPI class WeChatDataCube(BaseWeChatAPI): API_BASE_URL = "https://api.weixin.qq.com/datacube/" @classmethod def _to_date_str(cls, date): if isinstance(date, datetime.date): ...
6,475
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...
550
689
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #include <sys/mman.h> #include <stddef.h> void *memhook_test_lib_call_mmap(size_t size) { return mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); }
128
964
<reponame>cxMiguelSilva/kics<gh_stars>100-1000 [ { "queryName": "SNS Topic is Publicly Accessible For Subscription", "severity": "MEDIUM", "line": 3 }, { "queryName": "SNS Topic is Publicly Accessible For Subscription", "severity": "MEDIUM", "line": 25 } ]
116
649
package net.thucydides.core.reports.html; import io.cucumber.tagexpressions.Expression; import io.cucumber.tagexpressions.TagExpressionParser; import net.thucydides.core.ThucydidesSystemProperty; import net.thucydides.core.model.TestTag; import net.thucydides.core.util.EnvironmentVariables; import org.apache.commons.l...
1,014
945
<filename>tsfile/src/test/java/org/apache/iotdb/tsfile/write/writer/MeasurementSchemaSerializeTest.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownersh...
716
1,684
<reponame>LyndonChin/AndroidRubberIndicator<gh_stars>1000+ package me.liangfei.rubberindicator; import android.os.Bundle; import androidx.core.view.GestureDetectorCompat; import androidx.appcompat.app.AppCompatActivity; import android.util.Log; import android.view.GestureDetector; import android.view.Menu; import andr...
1,842
17,085
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
480
348
{"nom":"Nilvange","circ":"8ème circonscription","dpt":"Moselle","inscrits":3650,"abs":2552,"votants":1098,"blancs":79,"nuls":11,"exp":1008,"res":[{"nuance":"MDM","nom":"<NAME>","voix":546},{"nuance":"FN","nom":"<NAME>","voix":462}]}
96
3,702
<reponame>mondeique/metatron-discovery /* * 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...
623
322
{ "cancelBtn": "Abbrechen", "saveBtn": "Speichern", "settings": "Einstellungen", "language": "Sprache" }
50
897
# Double Factorial. def double_fact_i(n): # iterative implementation ans = 1 for i in range(n, 1, -2): ans *= i return ans def double_fact_r(n): # recursive implementation if n == 0 or n == 1: # checking for 1 or 0 return 1 return n * double_fact_r(n - 2) if __...
264
1,738
<reponame>jeikabu/lumberyard<gh_stars>1000+ /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, ...
601
353
#ifndef CAFFE2_OPERATORS_RELU_OP_H_ #define CAFFE2_OPERATORS_RELU_OP_H_ #include <vector> #include "caffe2/operators/elementwise_ops.h" namespace caffe2 { template <class Context> struct ReluFunctor { template <typename T> bool operator()(const int N, const T* X, T* Y, Context* context) const; }; ...
298
1,872
<reponame>hausen/pypy3.6-7.3.0-osx import unittest from test import support import ctypes import gc MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int) OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong) import _ctypes_test dll = ctypes.CDLL(_ctypes_test.__file__) class RefcountTes...
1,256
373
/* * #%L * ACS AEM Commons Bundle * %% * Copyright (C) 2017 Adobe * %% * 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...
1,273