max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
543
/* * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
505
368
<reponame>vfreex/teamtalk // // MTTGroupInfoCell.h // TeamTalk // // Created by scorpio on 15/6/25. // Copyright (c) 2015年 MoguIM. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^ChangeSwitch)(BOOL on); @interface MTTGroupInfoCell : UITableViewCell @property(strong)UILabel *desc; @property(strong)U...
208
879
<gh_stars>100-1000 package org.zstack.core.thread; import org.zstack.header.core.AsyncBackup; import org.zstack.utils.DebugUtils; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; public class RunInQueue { private String name; private List<AsyncBackup> asyncBackups = new ...
812
3,897
<reponame>pattyolanterns/mbed-os /** * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must r...
7,136
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 // // Unles...
3,761
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 ...
6,299
5,169
<gh_stars>1000+ { "name": "OCTotallyLazy", "version": "1.0.0", "summary": "Functional extensions to Objective C's collections.", "description": " OCTotallyLazy is a framework that adds functional behaviour to \n Objective C collection objects, as well as a lazy collection \...
359
825
package com.didi.hummer.adapter.scriptloader; /** * 脚本加载适配器(URL -> Script) * * Created by XiaoFeng on 2021/2/16. */ public interface IScriptLoaderAdapter { /** * 通过URL加载JS代码 * * ScriptLoadCallback中的errCode和errMsg说明: * 1. 网络错误:>0,如:{errCode: 404, errMsg: "[http error]"}; * 2. JS文件读...
291
764
{"symbol": "AGLT","address": "0x72c9Fb7ED19D3ce51cea5C56B3e023cd918baaDf","overview":{"en": ""},"email": "<EMAIL>","website": "https://agrolot.io/","state": "NORMAL","links": {"blog": "https://medium.com/@agrolot","twitter": "https://twitter.com/@agrolot","telegram": "https://t.me/agrolot","github": "https://github.com...
135
348
{"nom":"Chauvirey-le-Châtel","dpt":"Haute-Saône","inscrits":91,"abs":21,"votants":70,"blancs":4,"nuls":2,"exp":64,"res":[{"panneau":"2","voix":38},{"panneau":"1","voix":26}]}
79
852
import FWCore.ParameterSet.Config as cms # Intentionally reversing the order of process names in this series process = cms.Process("PROD1") process.options = cms.untracked.PSet( numberOfStreams = cms.untracked.uint32(1), numberOfConcurrentRuns = cms.untracked.uint32(1), numberOfConcurrentLuminosityBlocks ...
513
559
import numpy from generate import * def generate(): def process(factor, x): out = [] for i in range(0, len(x), factor): out.append(x[i]) return [numpy.array(out)] vectors = [] x = random_complex64(256) vectors.append(TestVector([1], [x], process(1, x), "1 Factor, ...
887
495
package com.github.database.rider.core.exporter.builder; import org.dbunit.dataset.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.FileOutputStream; import java.nio.charset.StandardCharsets; import static com.github.database.rider.core.api.exporter.BuilderType.DEFAULT; public class DataSe...
2,419
1,208
<filename>Source/Modules/Expression/TLExpressionDetailViewController/Models/TLExpressionGroupModel+DetailRequest.h // // TLExpressionGroupModel+DetailRequest.h // TLChat // // Created by 李伯坤 on 2018/1/2. // Copyright © 2018年 李伯坤. All rights reserved. // #import "TLExpressionGroupModel.h" @interface TLExpressionGr...
193
2,695
/* * Copyright (c) 2015, <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, publish, di...
1,424
14,668
<filename>third_party/blink/renderer/core/css/cssom/css_unsupported_color.cc<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. #include "third_party/blink/renderer/core/css/cssom/css_unsupp...
489
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms source = cms.Source("PoolSource", fileNames = cms.untracked.vstring() ) maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
79
313
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # 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 derivat...
2,358
2,728
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
381
1,114
#define NX_SERVICE_ASSUME_NON_DOMAIN #include <string.h> #include "service_guard.h" #include "services/ldn.h" #include "runtime/hosversion.h" static LdnServiceType g_ldnServiceType; static Service g_ldnSrv; static Service g_ldnmSrv; static Result _ldnGetSession(Service* srv, Service* srv_out, u32 cmd_id); static Re...
5,526
634
<reponame>halotroop2288/consulo // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.project; import com.intellij.openapi.actionSystem.ToggleAction; import consulo.localize.LocalizeValue; import consul...
289
577
<reponame>santiagojenny6675/PlainReader // // PREmoticon.h // PlainReader // // Created by guojiubo on 14-6-29. // Copyright (c) 2014年 guojiubo. All rights reserved. // #import <Foundation/Foundation.h> @interface PREmoticon : NSObject @property (nonatomic, assign) NSUInteger location; @property (nonatomic, copy...
138
348
{"nom":"Montsec","circ":"1ère circonscription","dpt":"Meuse","inscrits":60,"abs":27,"votants":33,"blancs":0,"nuls":2,"exp":31,"res":[{"nuance":"UDI","nom":"<NAME>","voix":22},{"nuance":"REM","nom":"<NAME>","voix":9}]}
87
1,504
<reponame>yf-ftd/itchatmp import logging from ..requests import requests from itchatmp.config import COROUTINE from itchatmp.returnvalues import ReturnValue from itchatmp.utils import retry, encode_send_dict logger = logging.getLogger('itchatmp') def create_producer(serverUrl): def _create(menuDict, ag...
778
622
<gh_stars>100-1000 import fi.helsinki.cs.tmc.edutestutils.Points; import static org.junit.Assert.*; import org.junit.Test; public class HangmanLogicTest { @Test public void faultsZeroAtStart() { HangmanLogic instance = new HangmanLogic("PORKKANA"); assertEquals("Number of faults should be at ...
1,774
460
#ifdef __WXMAC_CLASSIC__ #include "wx/mac/classic/taskbarosx.h" #else #include "wx/mac/carbon/taskbarosx.h" #endif
52
475
<reponame>LiTingchang/photo<filename>client/src/uk/co/senab/photup/adapters/UsersPhotosCursorAdapter.java /* * 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 * *...
799
335
/* Copyright (C) 2016 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
1,485
473
<reponame>pingjuiliao/cb-multios #include <libcgc.h> #include <pov/cgc_stdlib.h> #include <pov/cgc_string.h> typedef struct _entry { char *name; unsigned char *val; cgc_size_t val_len; } entry; static cgc_size_t env_size = 0; static cgc_size_t env_cap = 0; static entry **env = NULL; static void *cgc_memdup...
785
1,056
<filename>java/refactoring.java/src/org/netbeans/modules/refactoring/java/plugins/LocalVarScanner.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 ownershi...
1,384
582
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.ui.factory; /** * Interface for ArchiMate Element UI Provider * * @author <NAME> */ public interface IArchimat...
139
1,144
<gh_stars>1000+ #ifndef __OLIST_H__ #define __OLIST_H__ #include "list.h" /* cmp_cb returns: * 0: keys are equal * 1: key1 is greater * -1: key2 is greater */ typedef int (*olist_cmp_cb)(void *key1, void *key2); struct olist_head { struct list_head head; void *key; olist_cmp_cb cmp_cb; }; #define ol...
843
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 ...
6,128
608
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.battery.reporter.network; import com.facebook.battery.metrics.network.NetworkMetrics; import com.facebook.bat...
472
4,879
#!/usr/bin/python import os, sys, shutil, collections from optparse import OptionParser # Fix for python 2 try: input = raw_input except NameError: pass def find_recursive(root, subpath, maxdepth=4): queue = collections.deque([(root, 0)]) if 'PATH' in os.environ: envpath = os.environ['PATH'].split(':') ...
1,474
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 ...
4,687
364
package rsc.util; import java.util.Collection; import java.util.Iterator; import java.util.Objects; import java.util.Queue; import java.util.concurrent.atomic.*; /** * A bounded, array backed, single-producer single-consumer queue. * * This implementation is based on JCTools' SPSC algorithms: * <a href='https://...
2,455
791
#ifndef LIST_H #define LIST_H #include "common.h" #define list_foreach(list_node, list) for (ListNode* list_node = list->head; NULL != list_node ; list_node = list_node->next) typedef struct ListNode { struct ListNode* previous; struct ListNode* next; void* data; } ListNode; typedef struct List { st...
562
322
<filename>eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/sorter/impl/StreamTimeClockManagerImpl.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for addi...
2,529
333
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 添加小程序开发者或体验者 * * @author auto create * @since 1.0, 2021-04-25 20:22:11 */ public class AlipayOpenAppMembersCreateModel extends AlipayObject { private static final long serialVe...
424
1,647
<filename>pythran/pythonic/operator_/__sub__.hpp #ifndef PYTHONIC_OPERATOR_SUB__HPP #define PYTHONIC_OPERATOR_SUB__HPP #include "pythonic/include/operator_/__sub__.hpp" #include "pythonic/operator_/sub.hpp" #endif
95
419
<filename>swagger-spring-boot-autoconfigure/src/main/java/com/battcn/boot/swagger/configuration/SwaggerBeanValidatorPluginsConfiguration.java package com.battcn.boot.swagger.configuration; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Confi...
213
3,227
<gh_stars>1000+ #include "Viewer.h" #include <CGAL/Three/Scene_draw_interface.h> #include <QMouseEvent> #include <QKeyEvent> #include <QSettings> #include <QDebug> #include <QSettings> #include <QOpenGLShader> #include <QFileDialog> #include <QOpenGLShaderProgram> #include <QOpenGLFramebufferObject> #include <QMessageB...
32,460
1,346
package com.ctrip.platform.dal.dao.strategy; import com.ctrip.platform.dal.dao.DalHints; import com.ctrip.platform.dal.dao.configure.DalConfigure; public abstract class AbstractRWSeparationStrategy implements DalShardingStrategy { @Override public boolean isMaster(DalConfigure configure, String logicDbName, ...
382
1,541
<reponame>curtcox/ha-bridge package com.bwssystems.HABridge.plugins.somfy; import com.bwssystems.HABridge.NamedIP; import com.bwssystems.HABridge.api.NameValue; import com.bwssystems.HABridge.plugins.http.HTTPHandler; import com.bwssystems.HABridge.plugins.http.HTTPHome; import com.bwssystems.HABridge.plugins.somfy.js...
1,540
479
<gh_stars>100-1000 /* SHA512 * <NAME> <<EMAIL>>, 22 Apr 2014 * * This file is in the public domain. */ #include "sha512.h" const struct sha512_state sha512_initial_state = { { 0x6a09e667f3bcc908LL, 0xbb67ae8584caa73bLL, 0x3c6ef372fe94f82bLL, 0xa54ff53a5f1d36f1LL, 0x510e527fade682d1LL, 0x9b05688c2b3e6c1fLL, 0x...
3,039
17,318
/* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * 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 t...
894
9,516
import torch from torch.utils.data import Dataset, DataLoader import numpy as np import dgl from collections import defaultdict as ddict from ordered_set import OrderedSet class TrainDataset(Dataset): """ Training Dataset class. Parameters ---------- triples: The triples used for training the model...
4,580
798
/* * The MIT License * * Copyright (c) 2016 The Broad Institute * * 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...
3,995
8,107
"""Correlations between variables.""" import warnings from typing import Dict, List, Optional, Sized import numpy as np import pandas as pd from multimethod import multimethod from pandas.core.base import DataError from pandas_profiling.config import Settings class Correlation: @staticmethod def compute(con...
1,384
330
<filename>tests/test_kafka_streams.py """ Test the top-level Kafka Streams class """ import pytest import unittest.mock as mock from winton_kafka_streams import kafka_config from winton_kafka_streams.errors.kafka_streams_error import KafkaStreamsError from winton_kafka_streams.kafka_streams import KafkaStreams from ...
1,132
667
<reponame>LoveAIhuihui/FaceTrackServer // ThunderSVMWrapper.cpp : Defines the exported functions for the DLL. // #include "pch.h" #include "framework.h" #include "ThunderSVMWrapper.h" #include "thundersvm/thundersvm.h" #include "thundersvm/model/svmmodel.h" #include "thundersvm/model/svc.h" #include <cmath> using nam...
3,526
472
from __future__ import print_function, absolute_import from jupyterdrive import deactivate, install def test_a_install(): install(verbose=True, mixed=True, user=True) def test_b_deactivate(): deactivate() def test_c_deactivate_2(): deactivate() def test_d_install_normal(): install(verbose=True, ...
141
428
<filename>pase/models/Minions/__init__.py from .cls_minions import * from .minions import *
34
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 ...
548
529
// For License please refer to LICENSE file in the root of YALField project #import <Foundation/Foundation.h> @class UITextField; @protocol YALFormatter <NSObject> @required - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString **)string; - (NSString *)f...
149
472
""" Problem: The problem is that we want to find duplicates in a one-dimensional array of integers in O(N) running time where the integer values are smaller than the length of the array! Solution: 1. brute-force approach (comparing items with all the rest) but it has O(N^2) running time complexity 2. hashmap (dict ...
368
335
{ "word": "Ambition", "definitions": [ "A strong desire to do or achieve something.", "Desire and determination to achieve success." ], "parts-of-speech": "Noun" }
78
401
import os import re import subprocess import random import shutil import logging import time from anchore import anchore_utils from anchore.util import scripting, contexts class Navigator(object): _logger = logging.getLogger(__name__) def __init__(self, anchore_config, imagelist, allimages): self.con...
10,285
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 ...
21,149
375
<filename>src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/launch/IRobotProcess.java /* * Copyright 2017 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.robotframework.ide....
506
379
<reponame>Ahzed11/mozart2<gh_stars>100-1000 #include "mozart.hh" #include <gtest/gtest.h> #include "testutils.hh" #include <string> using namespace mozart; class AtomTest : public MozartTest {}; static const char* testVector[] = { "#", "|", "##", "o_O", "unit", "###", "unittest", "o", u8"\u0123", u8"\u0123\u45...
1,281
3,055
/* Fontname: open_iconic_www_2x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 20/20 BBX Build Mode: 0 */ const uint8_t u8g2_font_open_iconic_www_2x_t[587] U8G2_FONT_SECTION("u8g2_font_open_iconic_www_2x_t") = "\24\0\4\4\5\5\4\3\6\20\20\0\0\20\0\20\0\0\24\0\0\2.@\24\350qa!c\3...
1,133
1,936
#ifndef MAPLAB_COMMON_TEMPORAL_BUFFER_H_ #define MAPLAB_COMMON_TEMPORAL_BUFFER_H_ #include <functional> #include <map> #include <memory> #include <mutex> #include <utility> #include <glog/logging.h> #include <maplab-common/macros.h> namespace common { template <typename ValueType, typename AllocatorType =...
1,299
631
package com.neu.his.cloud.service.dms.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class DmsDrugRefundItemRecordExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public DmsDrugRefundItemRecordExamp...
11,847
371
<filename>Malt/Pipelines/NPR_Pipeline/NPR_Pipeline.py # Copyright (c) 2020 BlenderNPR and contributors. MIT license. from os import path from Malt.GL.GL import * from Malt.GL.RenderTarget import RenderTarget from Malt.GL.Texture import Texture from Malt.Render import Common from Malt.Render import DepthToCompositeDe...
6,908
780
<reponame>nonomal/node-tap<gh_stars>100-1000 #include <nan.h> #include "./error.hpp" using namespace std; NAN_METHOD(N_DeviceControl) { if (info.Length() != 4) { Nan::ThrowError("Wrong number of arguments."); return; } if (!info[0]->IsNumber()) { Nan::ThrowError("Wrong ty...
600
418
// // BFDataRequestOrderInfo.h // OpenShop // // Created by <NAME> // Copyright (c) 2015 Business Factory. All rights reserved. // #import <Mantle/MTLModel.h> #import "BFAPIRequestOrderInfo.h" #import "BFDataStorageAccessing.h" #import "BFDataRequestOrderItemInfo.h" NS_ASSUME_NONNULL_BEGIN /** * `BFDataRequestO...
311
624
# lru_cache.py -- Simple LRU cache for dulwich # Copyright (C) 2006, 2008 Canonical Ltd # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or #...
6,333
563
package com.gentics.mesh.util; import com.google.common.collect.ImmutableSet; import java.util.Set; /** * Various utility functions regarding nodes. */ public class NodeUtil { private static final Set<String> processableImageTypes = ImmutableSet.of( "image/gif", "image/png", "image/jpeg", "image/bmp", // Not ...
228
921
<reponame>Mytherin/sqlancer package sqlancer.mysql.ast; import sqlancer.mysql.MySQLSchema.MySQLTable; public class MySQLTableReference implements MySQLExpression { private final MySQLTable table; public MySQLTableReference(MySQLTable table) { this.table = table; } public MySQLTable getTable...
131
2,053
#include "dash-parser.h" #include <stdlib.h> #include <string.h> #include <assert.h> static int dash_mime_type_to_media_type(const char* mime) { switch (mime[0]) { case 't': return 0 == strncmp(mime, "text/", 5) ? DASH_MEDIA_TEXT : DASH_MEDIA_UNKNOWN; case 'i': return 0 == strncmp(mime, "image/", 6) ? DASH_MED...
904
854
<reponame>tobiaskohlbau/morphia package dev.morphia.test.models.methods; import dev.morphia.annotations.Entity; import dev.morphia.annotations.Id; import org.bson.types.ObjectId; import java.util.Objects; @Entity public class MethodMappedFriend { private ObjectId id; @Id public ObjectId getId() { ...
349
846
<reponame>hgebker/design-system-react { "component": "combobox", "status": "prod", "display-name": "Comboboxes", "classKey": "Combobox", "last-accessibility-review": { "date-iso-8601": "2017/08/21", "commit-sha": "295a4766f712a5f93743c4ecd3ba62d91c1fc153" }, "SLDS-component-path": "/components/combobox", "s...
766
310
""" Copyright (c) 2021 Intel Corporation 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 writin...
1,001
344
<reponame>jbellis/superpixel-benchmark<gh_stars>100-1000 #ifndef DASP_SPECTRAL_ASRANGE_HPP_ #define DASP_SPECTRAL_ASRANGE_HPP_ //#include <boost/graph/adjacency_list.hpp> #include <tuple> namespace detail { template<class Iter> struct iter_pair_range : std::pair<Iter,Iter> { iter_pair_range(const std::pair<Iter...
379
446
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // Information about M...
471
1,210
<reponame>multi-os-engine/cinder-natj-binding // Boost Lambda Library - lambda_functors.hpp ------------------------------- // Copyright (C) 1999, 2000 <NAME> (<EMAIL>) // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE...
4,261
575
// 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.chrome.browser.explore_sites; import android.os.Parcel; import android.os.Parcelable; import android.support.test.filters.SmallTest;...
1,522
852
import FWCore.ParameterSet.Config as cms from RecoBTag.SecondaryVertex.ghostTrackCommon_cff import * candidateGhostTrackComputer = cms.ESProducer("CandidateGhostTrackESProducer", ghostTrackCommon, useCategories = cms.bool(True), calibrationRecords = cms.vstring( 'GhostTrackRecoVertex', 'GhostTrackPseudoVertex...
159
435
/* * Copyright (C) 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 ...
2,362
1,604
package org.bouncycastle.crypto; import org.bouncycastle.crypto.params.AsymmetricKeyParameter; public interface StagedAgreement extends BasicAgreement { AsymmetricKeyParameter calculateStage(CipherParameters pubKey); }
71
335
<filename>I/Impact_noun.json { "word": "Impact", "definitions": [ "The action of one object coming forcibly into contact with another.", "A marked effect or influence." ], "parts-of-speech": "Noun" }
92
1,604
<reponame>matheus-eyng/bc-java<filename>core/src/main/java/org/bouncycastle/asn1/ASN1IA5String.java package org.bouncycastle.asn1; import java.io.IOException; import org.bouncycastle.util.Arrays; import org.bouncycastle.util.Strings; /** * ASN.1 IA5String object - this is a ISO 646 (ASCII) string encoding code poin...
2,054
1,439
/******************************************************************************* * Copyright 2018 <NAME> http://galenframework.com * * 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...
736
1,056
<reponame>timfel/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, Version 2....
2,410
2,813
<reponame>fernandes-natanael/jabref package org.jabref.logic.layout.format; import org.jabref.logic.layout.ParamLayoutFormatter; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class ReplaceTest { @Test public void testSimpleText() { ParamLayou...
584
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <memory> namespace vbench { /** * A Provider is a component from which you can request an object. **/ template <typename T> struct Provider { virtual std::unique_ptr<T> provide() = 0;...
116
816
/* * Copyright 2016-2020 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 * * Unles...
977
1,444
<reponame>amc8391/mage package org.mage.test.cards.requirement; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Assert; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBaseWithAIHelps; /** * @author JayDi85 */ public class BecomeBlockTriggersAITest extends Car...
1,348
361
<filename>tern/analyze/default/live/collect.py # -*- coding: utf-8 -*- # # Copyright (c) 2021 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause """ Functions to collect package metadata from a live container filesystem. These functions are similar to the default collect.py functions except the...
1,100
488
<filename>src/midend/programAnalysis/arithmeticIntensity/instrumentor_lib.h // Code Instrumentor library functions: __ci_ as prefix #ifndef INSTRUMENTOR_LIB_H #define INSTRUMENTOR_LIB_H /* * Assumption: the instrumentor tool has two execution modes: * 1. count the total number of loops in an application, saving...
299
852
<filename>CondTools/Ecal/interface/EcalTPGFineGrainTowerfromFile.h #ifndef ECAL_TPGFINEGRAINTOWER_H #define ECAL_TPGFINEGRAINTOWER_H #include "CondCore/PopCon/interface/PopConSourceHandler.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/inte...
376
1,083
//===--- ImplementTypeIDZone.h - Implement a TypeID Zone --------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
621
6,140
<reponame>memeyankm/training-data-analyst<gh_stars>1000+ # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Un...
504
982
<gh_stars>100-1000 import paddle import paddle.nn as nn class RCPositionEmbedding(nn.Layer): """ Relation classification position embedding module. This module embeds the position information in relation classification. Args: max_len(int, optional): maximum length of a single sentence/text, d...
1,198
880
/** * Copyright 2019 <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 wr...
821
4,283
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
11,894
322
<gh_stars>100-1000 # __about__.py # # Copyright (C) 2006-2020 wolfSSL Inc. # # This file is part of wolfSSL. # # wolfSSL 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 2 of the License, or # (a...
552
355
/* * Copyright 2012 <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 wri...
648