idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
766,626
final protected P loadSafe(final Value<D> value, final LoadContext ctx, final Path path) throws SkipException {<NEW_LINE>if (!isTypeExpected(value.getType())) {<NEW_LINE>// Normally we would just throw an error here but there are some edge cases caused by projection queries.<NEW_LINE>// For example, timestamps come bac...
loadValue(blobValue, ctx, path);
1,831,450
SearchResult search(@NonNull ByteArraySegment key, int startPos) {<NEW_LINE>// Positions here are not indices into "source", rather they are entry positions, which is why we always need<NEW_LINE>// to adjust by using entryLength.<NEW_LINE>int endPos = getCount();<NEW_LINE>Preconditions.<MASK><NEW_LINE>while (startPos <...
checkArgument(startPos <= endPos, "startPos must be non-negative and smaller than the number of items.");
98,604
protected static BundleEntryComponent provider(Bundle bundle, Provider provider) {<NEW_LINE>org.hl7.fhir.dstu3.model.Organization organizationResource = new org.hl7.fhir.dstu3.model.Organization();<NEW_LINE>List<CodeableConcept> organizationType = new ArrayList<CodeableConcept>();<NEW_LINE>organizationType.add(mapCodeT...
(coord.getY()));
670,970
private void calculateEMA() {<NEW_LINE>if (security == null)<NEW_LINE>return;<NEW_LINE>List<SecurityPrice<MASK><NEW_LINE>if (prices == null)<NEW_LINE>return;<NEW_LINE>int index = Collections.binarySearch(prices, new SecurityPrice(interval.getStart(), 0), new SecurityPrice.ByDate());<NEW_LINE>if (index < 0)<NEW_LINE>ind...
> prices = security.getPricesIncludingLatest();
335,289
public PCollection<KV<K, KV<V1, V2>>> expand(PCollection<KV<K, V1>> leftCollection) {<NEW_LINE>checkNotNull(leftCollection);<NEW_LINE>checkNotNull(rightCollection);<NEW_LINE>final TupleTag<V1> v1Tuple = new TupleTag<>();<NEW_LINE>final TupleTag<V2> v2Tuple = new TupleTag<>();<NEW_LINE>PCollection<KV<K, CoGbkResult>> co...
"CoGBK", CoGroupByKey.create());
751,913
final GetLabelDetectionResult executeGetLabelDetection(GetLabelDetectionRequest getLabelDetectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLabelDetectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
false), new GetLabelDetectionResultJsonUnmarshaller());
1,189,996
public Result call() throws Exception {<NEW_LINE>if (className == null || className.isEmpty())<NEW_LINE>throw new IllegalStateException("No class specified");<NEW_LINE>if (!getWorkspace().getPrimary().getClasses().containsKey(className))<NEW_LINE>throw new IllegalStateException("No class by the name '" + className + "'...
descStart = methodDef.indexOf("(");
639,049
protected final void checkForObserveOption(final Exchange exchange, final Resource resource) {<NEW_LINE>Request request = exchange.getRequest();<NEW_LINE>if (CoAP.isObservable(request.getCode()) && request.getOptions().hasObserve() && resource.isObservable()) {<NEW_LINE>InetSocketAddress source = request.getSourceConte...
ObserveRelation(remote, resource, exchange);
1,307,744
private CacheResult fetchContent(RuleKey contentHash, LazyPath output) {<NEW_LINE>CacheResult result = CacheResult.error(name, CACHE_MODE, String.format("Artifact fetch(%s, %s) stopped unexpectedly", contentHash, output));<NEW_LINE>try {<NEW_LINE>Optional<Content> content = db.selectContent(contentHash);<NEW_LINE>if (c...
e, "Artifact fetch(%s, %s) error", contentHash, output);
1,024,431
public static byte[] toPDFBytes(final BufferedImage image) {<NEW_LINE>try {<NEW_LINE>//<NEW_LINE>// PDF Image<NEW_LINE>final ByteArrayOutputStream imageBytes = new ByteArrayOutputStream();<NEW_LINE>ImageIO.write(image, "PNG", imageBytes);<NEW_LINE>final Image pdfImage = Image.<MASK><NEW_LINE>//<NEW_LINE>// PDF page siz...
getInstance(imageBytes.toByteArray());
307,356
private static PartitionMetricSample readV0(ByteBuffer buffer) {<NEW_LINE>MetricDef metricDef = KafkaMetricDef.commonMetricDef();<NEW_LINE><MASK><NEW_LINE>int partition = buffer.getInt(45);<NEW_LINE>String topic = new String(buffer.array(), 49, buffer.array().length - 49, UTF_8);<NEW_LINE>PartitionMetricSample sample =...
int brokerId = buffer.getInt();
174,715
public ListFiltersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFiltersResult listFiltersResult = new ListFiltersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
433,918
public static ListClustersResponse unmarshall(ListClustersResponse listClustersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClustersResponse.setRequestId(_ctx.stringValue("ListClustersResponse.RequestId"));<NEW_LINE>listClustersResponse.setHttpCode(_ctx.stringValue("ListClustersResponse.HttpCode"));<NEW_LINE>list...
("ListClustersResponse.Data[" + i + "].CreateTime"));
808,870
private int[] createExportBookmarks() {<NEW_LINE>// create array with all bookmark-categories<NEW_LINE>String[] bookmarkCategories = new String[bookmarks.getCategoryCount() + 1];<NEW_LINE>// first field is always "all"<NEW_LINE>bookmarkCategories[0] = getResourceMap().getString("exportBookmarkCatAll");<NEW_LINE>// retr...
] = bookmarks.getCategory(cnt);
1,463,801
public Partition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Partition partition = new Partition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
class).unmarshall(context));
1,262,946
public static DescribeCouponListResponse unmarshall(DescribeCouponListResponse describeCouponListResponse, UnmarshallerContext context) {<NEW_LINE>describeCouponListResponse.setRequestId(context.stringValue("DescribeCouponListResponse.RequestId"));<NEW_LINE>List<Coupon> coupons = new ArrayList<Coupon>();<NEW_LINE>for (...
+ "].TradeTypes[" + j + "]"));
347,208
public char[] computeGenericTypeSignature(TypeVariableBinding[] typeVariables) {<NEW_LINE>boolean isMemberOfGeneric = isMemberType() && hasEnclosingInstanceContext() && (enclosingType().modifiers & ExtraCompilerModifiers.AccGenericSignature) != 0;<NEW_LINE>if (typeVariables == Binding.NO_TYPE_VARIABLES && !isMemberOfGe...
sig.append(this.sourceName);
349,224
private static Text findMidPoint(Text minBS, Text maxBS) {<NEW_LINE>ByteArrayOutputStream startOS = new ByteArrayOutputStream();<NEW_LINE>// add a leading zero so bigint does not think its negative<NEW_LINE>startOS.write(0);<NEW_LINE>startOS.write(minBS.getBytes(), 0, minBS.getLength());<NEW_LINE>ByteArrayOutputStream ...
BigInteger(startOS.toByteArray());
1,760,158
public double evaluate(RecommendedList groundTruthList, RecommendedList recommendedList) {<NEW_LINE>double reciprocalRank = 0.0;<NEW_LINE>int numContext = groundTruthList.size();<NEW_LINE>int nonZeroContext = 0;<NEW_LINE>for (int contextIdx = 0; contextIdx < numContext; ++contextIdx) {<NEW_LINE>List<KeyValue<Integer, D...
get(0).getKey();
502,289
public Vector ifilter(double threshold) {<NEW_LINE>if (storage.isDense()) {<NEW_LINE>double[] values = ((IntDoubleVectorStorage) storage).getValues();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (Math.abs(values[i]) <= threshold) {<NEW_LINE>values[i] = 0;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} else if (sto...
Entry entry = iter.next();
134,815
public Flux<NumericResponse<BitCountCommand, Long>> bitCount(Publisher<BitCountCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Range<Long> range = command.getRange();<NEW_LINE>if (range == null) {<NEW_LINE>range = Range.unb...
INSTANCE, RedisCommands.BITCOUNT, keyBuf);
350,598
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>Object model = mModelList.get(viewType);<NEW_LINE>if (model instanceof Integer) {<NEW_LINE>if (((Integer) model) == 1) {<NEW_LINE>return new HeaderHolder(mActivity, LayoutInflater.from(parent.getContext()).inflate(R.layout<MASK><NE...
.item_about_header, parent, false));
1,768,485
static AdminEventEntity convertAdminEvent(AdminEvent adminEvent, boolean includeRepresentation) {<NEW_LINE>AdminEventEntity adminEventEntity = new AdminEventEntity();<NEW_LINE>adminEventEntity.setId(adminEvent.getId() == null ? UUID.randomUUID().toString(<MASK><NEW_LINE>adminEventEntity.setTime(adminEvent.getTime());<N...
) : adminEvent.getId());
295,374
static void updateMode(CharacterStateEvent state, boolean newSwimming, boolean newDiving, boolean newClimbing, boolean isCrouching) {<NEW_LINE>if (newDiving) {<NEW_LINE>if (state.getMode() != MovementMode.DIVING) {<NEW_LINE>state.setMode(MovementMode.DIVING);<NEW_LINE>}<NEW_LINE>} else if (newSwimming) {<NEW_LINE>if (s...
MovementMode.CROUCHING : MovementMode.WALKING);
1,501,052
public static // 2. Puts all Python methods defined on the class into the dictionary i.e. (method_name, function)<NEW_LINE>void initializeModule(java.lang.Class cls, java.util.Map<java.lang.String, org.python.Object> attrs) {<NEW_LINE>// Get the class annotation and add any properties.<NEW_LINE>org.python.Module mod_an...
org.python.Module.class);
364,696
private boolean tryStatusCache(PayloadInjector injector, String param, int attackDedication, short get404Code) {<NEW_LINE>String canary = Utilities.generateCanary() + ".jpg";<NEW_LINE>byte[] setPoison200Req = injector.getInsertionPoint().buildRequest(Utilities.helpers.stringToBytes(addStatusPayload(param)));<NEW_LINE>s...
Utilities.appendToPath(getPoison200Req, canary);
1,300,079
void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnSaveActionPerformed<NEW_LINE>// Add your handling code here:<NEW_LINE>JFileChooser fileChooser = new JFileChooser();<NEW_LINE>fileChooser.setLocale(this.getLocale());<NEW_LINE>fileChooser.updateUI();<NEW_LINE>for (int i = 0; i ...
(saveContributors.get(i));
1,725,002
public CommandFuture<?> migrate(BeaconMigrationRequest migrationRequest) {<NEW_LINE>logger.debug("[migrate][{}] begin", migrationRequest.getClusterName());<NEW_LINE>SequenceCommandChain migrateSequenceCmd = new SequenceCommandChain();<NEW_LINE>migrateSequenceCmd.add(new MigrationPreCheckCmd(migrationRequest, checker, c...
}, timeoutMilli, TimeUnit.MILLISECONDS);
265,813
private Index consolidateIndices(List<Index> indices) {<NEW_LINE>Index first = indices.get(0);<NEW_LINE>Index consolidated = new Index(first.getName());<NEW_LINE>consolidated.setRankType(first.getRankType());<NEW_LINE>consolidated.<MASK><NEW_LINE>for (Index current : indices) {<NEW_LINE>if (current.isPrefix()) {<NEW_LI...
setType(first.getType());
343,780
void visitElement_reload(Element element) {<NEW_LINE>// <reload><NEW_LINE>// element.getValue();<NEW_LINE>NamedNodeMap attrs = element.getAttributes();<NEW_LINE>for (int i = 0; i < attrs.getLength(); i++) {<NEW_LINE>Attr attr = (Attr) attrs.item(i);<NEW_LINE>if (attr.getName().equals("rule")) {<NEW_LINE>mapping.reloadR...
valueOf(attr.getValue());
1,083,201
public BotLocaleSortBy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BotLocaleSortBy botLocaleSortBy = new BotLocaleSortBy();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,013,891
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,570,101
public EnableFastSnapshotRestoreErrorItem unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>EnableFastSnapshotRestoreErrorItem enableFastSnapshotRestoreErrorItem = new EnableFastSnapshotRestoreErrorItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalD...
XMLEvent xmlEvent = context.nextEvent();
1,507,992
public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE>select.setSelectType(SelectType.DISTINCT);<NEW_LINE>select.setWhereClause(null);<NEW_LINE>String originalQueryString = SQLite3Visitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsString(originalQu...
combinedString, true, state, errors);
1,408,580
public void waitForAllocationCondition(final String modelId, final Predicate<ClusterState> predicate, @Nullable final TimeValue timeout, final WaitForAllocationListener listener) {<NEW_LINE>final ClusterStateObserver observer = new ClusterStateObserver(clusterService, timeout, logger, threadPool.getThreadContext());<NE...
modelId).orElse(null));
1,172,036
public WorkResult execute(final JavaCompileSpec spec) {<NEW_LINE>return buildOperationExecutor.call(new CallableBuildOperation<WorkResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public BuildOperationDescriptor.Builder description() {<NEW_LINE>return BuildOperationDescriptor.displayName("Compile Java for " + task.get...
), result.getExecutionTimeInMillis());
833,246
public void sendAlert(AlertType alertType, long dataCenterId, Long podId, String subject, String content) {<NEW_LINE>AlertVO alert = null;<NEW_LINE>if ((alertType != AlertManager.AlertType.ALERT_TYPE_HOST) && (alertType != AlertManager.AlertType.ALERT_TYPE_USERVM) && (alertType != AlertManager.AlertType.ALERT_TYPE_DOMA...
+ "skipping sending alert with subject [%s] and content [%s].", subject, content));
318,048
public org.inferred.freebuilder.processor.property.Property.Builder mergeFrom(org.inferred.freebuilder.processor.property.Property value) {<NEW_LINE>Property_Builder defaults = new org.inferred.freebuilder.processor.property.Property.Builder();<NEW_LINE>if (defaults._unsetProperties.contains(Property.TYPE) || !Objects....
addAllPutAnnotations(value.getPutAnnotations());
1,832,024
private DataObject selectResource() {<NEW_LINE>FileObject fo = null;<NEW_LINE>DataObject source = null;<NEW_LINE>for (DataObject dobj : sourceMap.keySet()) {<NEW_LINE>fo = dobj.getPrimaryFile();<NEW_LINE>source = dobj;<NEW_LINE>}<NEW_LINE>// Get i18n support for this source.<NEW_LINE>I18nSupport support = null;<NEW_LIN...
? support.getResourceHolder() : null;
1,655,194
private static CatalogBaseTable createNewTableDesc(ObjectPath objectPath, TableSchema schema, Params params) {<NEW_LINE>String[] partitionCols = new String[0];<NEW_LINE>String partitionSpec = params.get(HiveCatalogParams.PARTITION);<NEW_LINE>if (!StringUtils.isNullOrWhitespaceOnly(partitionSpec)) {<NEW_LINE>partitionCo...
schema.getFieldTypes(), fieldTypes);
1,350,907
private void deleteImageVersionAndRampupMetadata(final String imageTypeName, final int versionId, final List<Integer> planIds) throws ImageMgmtException {<NEW_LINE>// If there is no plan delete the corresponding image version.<NEW_LINE>if (CollectionUtils.isEmpty(planIds)) {<NEW_LINE>deleteImageVersion(imageTypeName, v...
imageRampupPlanDeleteQuery = strSubstitutor.replace(DELETE_IMAGE_RAMPUP_PLAN_BY_PLAN_ID_QUERY);
889,709
private Pair<Integer, Set<JMeterTreeNode>> searchInTree(GuiPackage guiPackage, Searcher searcher, String wordToSearch) {<NEW_LINE>int numberOfMatches = 0;<NEW_LINE><MASK><NEW_LINE>Set<JMeterTreeNode> nodes = new LinkedHashSet<>();<NEW_LINE>for (JMeterTreeNode jMeterTreeNode : jMeterTreeModel.getNodesOfType(Searchable.c...
JMeterTreeModel jMeterTreeModel = guiPackage.getTreeModel();
727,145
private void buildStartItem(@NonNull View view, final TargetPoint start, int[] startTime, final TransportRouteResultSegment segment, double walkSpeed) {<NEW_LINE>OsmandApplication app = requireMyApplication();<NEW_LINE>FrameLayout baseItemView = new FrameLayout(view.getContext());<NEW_LINE>LinearLayout imagesContainer ...
length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
1,031,489
public void addFileSystemVariableCreates(Collection<File> createdFiles, Map<String, DeltaType> deltaMap) {<NEW_LINE>for (File file : createdFiles) {<NEW_LINE>if (file.isFile()) {<NEW_LINE>if (file.getName().endsWith(".properties")) {<NEW_LINE>try (FileInputStream fis = new FileInputStream(file)) {<NEW_LINE>Properties p...
sbv.getName(), sbv);
1,735,724
private Mono<ServerResponse> render(WebExchangeBindException exception, ServerRequest request) {<NEW_LINE>Map<String, Set<String>> fieldErrorsMap = exception.getFieldErrors().stream().collect(Collectors.toMap(FieldError::getField, f -> Set.of(extractFieldErrorMsg(f)), Sets::union));<NEW_LINE>var fieldsErrors = fieldErr...
setFieldName(e.getKey());
1,628,408
public static DescribeResourceCoverageDetailResponse unmarshall(DescribeResourceCoverageDetailResponse describeResourceCoverageDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeResourceCoverageDetailResponse.setRequestId(_ctx.stringValue("DescribeResourceCoverageDetailResponse.RequestId"));<NEW_LINE>describe...
("DescribeResourceCoverageDetailResponse.Data.Items[" + i + "].ProductName"));
1,257,646
public static void createGlueModel(PosTexNormalWriterUnsafe buffer) {<NEW_LINE>Vec3 diff = Vec3.atLowerCornerOf(Direction.SOUTH.getNormal());<NEW_LINE>Vec3 extension = diff.normalize().scale(1 / 32f - 1 / 128f);<NEW_LINE>Vec3 plane = VecHelper.axisAlingedPlaneOf(diff);<NEW_LINE>Direction.Axis axis = Direction.getNeares...
a4 = plane.add(start);
430,452
static void generateCodeInternal(ModuleContext moduleContext, CompilerBackend compilerBackend, CompilerContext compilerContext) {<NEW_LINE>// Perform the rest of the compilation phases before generating platform-specific code<NEW_LINE>String bootstrapLangLibName = System.getProperty("BOOTSTRAP_LANG_LIB");<NEW_LINE>Comp...
compilerPhaseRunner.performBirGenPhases(moduleContext.bLangPackage);
690,136
public BuildOptions acceptTheirs(BuildOptions theirOptions) {<NEW_LINE>BuildOptionsBuilder buildOptionsBuilder = new BuildOptionsBuilder();<NEW_LINE>if (theirOptions.skipTests != null) {<NEW_LINE>buildOptionsBuilder.setSkipTests(theirOptions.skipTests);<NEW_LINE>} else {<NEW_LINE>buildOptionsBuilder.setSkipTests(this.s...
buildOptionsBuilder.setObservabilityIncluded(compilationOptions.observabilityIncluded);
1,830,452
private boolean validateTarget(String target, CommandTarget[] targets) {<NEW_LINE>List<String> validTarget <MASK><NEW_LINE>for (CommandTarget commandTarget : targets) {<NEW_LINE>validTarget.add(commandTarget.name());<NEW_LINE>}<NEW_LINE>if (target.equals("domain")) {<NEW_LINE>return validTarget.contains(CommandTarget.D...
= new ArrayList<String>();
834,514
public void registerMap() {<NEW_LINE>// 0 - Entity ID<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>// Parse this info<NEW_LINE>handler(new PacketHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>int entityID = wrapper.get(Type.VAR_INT, 0);<NEW_LINE>EntityTra...
map(Type.INT, toNewDouble);
1,610,440
public static void testFunc() {<NEW_LINE>String[][] table = new String[][] { { "id", "First Name", "Last Name", "Age", "Profile" }, { "1", "John", "Johnson", "45", "My name is John Johnson. My id is 1. My age is 45." }, { "2", "Tom", "", "35", "My name is Tom. My id is 2. My age is 35." }, { "3", "Rose", "Johnson Johns...
(Arrays.asList(table));
797,614
public void adjustTLSContext(FinishedMessage message) {<NEW_LINE>if (tlsContext.getChooser().getSelectedProtocolVersion().isTLS13()) {<NEW_LINE>if (tlsContext.getTalkingConnectionEndType() != tlsContext.getChooser().getConnectionEndType()) {<NEW_LINE>if (tlsContext.getTalkingConnectionEndType() == ConnectionEndType.SER...
getVerifyData().getValue());
458,346
private com.squareup.okhttp.Call applicationsApplicationIdPutValidateBeforeCall(String applicationId, Application body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) t...
ifMatch, ifUnmodifiedSince, progressListener, progressRequestListener);
1,770,649
private HikariDataSource dataSource(DrillConfig config) {<NEW_LINE>DbHelper.init(config).prepareDatabase();<NEW_LINE>try {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>if (config.hasPath(RdbmsConfigConstants.DATA_SOURCE_PROPERTIES)) {<NEW_LINE>Config propertiesConfig = config.getConfig(RdbmsConfigConstan...
.getString(RdbmsConfigConstants.DATA_SOURCE_PASSWORD));
44,609
public static <A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Arguments15<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> of(@Nullable A1 arg1, @Nullable A2 arg2, @Nullable A3 arg3, @Nullable A4 arg4, @Nullable A5 arg5, @Nullable A6 arg6, @Nullable A7 arg7, @Nullable A8 arg8, @Nulla...
arg12, arg13, arg14, arg15);
467,155
public static String applyRegexp(String line) {<NEW_LINE>LOG.d("md-before", line);<NEW_LINE>// bold<NEW_LINE>line = line.replaceAll("\\*\\*" + all("\\*\\*") + "\\*\\*", "<b>$1</b>");<NEW_LINE>// bold<NEW_LINE>line = line.replaceAll("__" + all("__") + "__", "<b>$1</b>");<NEW_LINE>// italic<NEW_LINE>line = line.replaceAl...
replace("-", "") + "</h2>";
830,006
// TODO: Use one of the new text classes, like /help ?<NEW_LINE>private void warpList(final CommandSource sender, final String[] args, final IUser user) throws Exception {<NEW_LINE>final IWarps warps = ess.getWarps();<NEW_LINE>final List<<MASK><NEW_LINE>if (warpNameList.isEmpty()) {<NEW_LINE>throw new Exception(tl("noW...
String> warpNameList = getAvailableWarpsFor(user);
1,407,164
protected boolean compileJsp(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse) throws Exception {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.logp(Level.FINER, CLASS_NAME, "compileJsp", "enter");<NEW_LINE>}<NEW_LINE...
CLASS_NAME, "compileJsp", "exit: " + rv);
1,511,867
private NotificationMessageFormatter prepareMessageFormatter(final UserNotificationRequest request) {<NEW_LINE>final NotificationMessageFormatter formatter = NotificationMessageFormatter.newInstance();<NEW_LINE>final TargetAction targetAction = request.getTargetAction();<NEW_LINE>if (targetAction instanceof TargetRecor...
String targetRecordDisplayText = targetRecordAction.getRecordDisplayText();
69,848
public void layout(LayoutContext c, int contentStart) {<NEW_LINE>boolean running = c.isPrint() && getTable().getStyle().isPaginateTable();<NEW_LINE>int prevExtraTop = 0;<NEW_LINE>int prevExtraBottom = 0;<NEW_LINE>if (running) {<NEW_LINE>prevExtraTop = c.getExtraSpaceTop();<NEW_LINE>prevExtraBottom = c.getExtraSpaceBott...
getTable().setNeedPageClear(true);
143,214
public synchronized TCPConnection openConnection() throws IOException {<NEW_LINE>// generate ID that should not be already used<NEW_LINE>// If all possible 32768 IDs are used,<NEW_LINE>// this method will block searching for a new ID forever.<NEW_LINE>int id;<NEW_LINE>do {<NEW_LINE>lastID = (++lastID) & 0x7FFF;<NEW_LIN...
Log.BRIEF, "exception: ", e);
163,602
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public Set<String> headers(List<CdsTrade> trades) {<NEW_LINE>// determine what elements of trades are present<NEW_LINE>boolean premium = false;<NEW_LINE>boolean stepInOffset = false;<NEW_LINE>boolean settleOffset = ...
.getStartDateBusinessDayAdjustment().isPresent();
1,149,225
public static double[] score(double[] input) {<NEW_LINE>double[] var0;<NEW_LINE>if ((input[2]) <= (2.449999988079071)) {<NEW_LINE>var0 = new double[<MASK><NEW_LINE>} else {<NEW_LINE>if ((input[3]) <= (1.75)) {<NEW_LINE>if ((input[2]) <= (4.950000047683716)) {<NEW_LINE>if ((input[3]) <= (1.6500000357627869)) {<NEW_LINE>...
] { 1.0, 0.0, 0.0 };
1,823,162
protected String doIt() throws Exception {<NEW_LINE>MClient client = MClient.get(getCtx());<NEW_LINE>if (client.isMultiLingualDocument())<NEW_LINE>throw new AdempiereUserError("@AD_Client_ID@: @IsMultiLingualDocument@");<NEW_LINE>//<NEW_LINE>log.info("" + client);<NEW_LINE>String sql = "SELECT * FROM AD_Table " + "WHER...
), client.getAD_Client_ID());
1,410,275
public static <T extends ArgumentType<?>> void serialize(FriendlyByteBuf buffer, T type) {<NEW_LINE>ArgumentTypes.Entry<T> entry = (ArgumentTypes.Entry<T>) get(type);<NEW_LINE>if (entry == null) {<NEW_LINE>LOGGER.error("Could not serialize {} ({}) - will not be sent to client!", type, type.getClass());<NEW_LINE>buffer....
writeResourceLocation(new ResourceLocation(""));
1,261,311
private Class<T> createProxyClass(Class<?> originalClass, String proxyClassName) throws Exception {<NEW_LINE>Set<Class<?>> specialInterfaces = Sets.newHashSet(LifecycleMixin.class, TargetInstanceProxy.class, ProxyObject.class);<NEW_LINE>addAdditionalInterfaces(specialInterfaces);<NEW_LINE>// Remove special interfaces f...
(proxyClass.getInterfaces()));
1,782,119
protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, Java builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case type:<NEW_LINE>return JavaTypeNodeGen.create(context, builtin, args().fixedArgs(1).createArgumentNodes(context));<NEW_LINE>case typeName:<NEW_LINE>retu...
1).createArgumentNodes(context));
1,054,942
private void drawSplitItems(Canvas canvas, RotatedTileBox tileBox, List<GpxDisplayItem> items, DrawSettings settings) {<NEW_LINE>final QuadRect latLonBounds = tileBox.getLatLonBounds();<NEW_LINE>int r = (int) (<MASK><NEW_LINE>paintTextIcon.setTextSize(r);<NEW_LINE>int dr = r * 3 / 2;<NEW_LINE>float px = -1;<NEW_LINE>fl...
12 * tileBox.getDensity());
416,259
public final void init() {<NEW_LINE>addDrawableChild(doneButton = new ButtonWidget(width / 2 - 100, height / 4 + 72 + 12, 200, 20, new LiteralText(getDoneButtonText()), b -> pressDoneButton()));<NEW_LINE>addDrawableChild(new ButtonWidget(width / 2 - 100, height / 4 + 120 + 12, 200, 20, new LiteralText("Cancel"), b -> c...
passwordBox.setText(getDefaultPassword());
825,611
private static InsnNode makeFilledArrayInsn(MethodNode mth, NewArrayNode newArrayNode, FillArrayInsn insn) {<NEW_LINE>ArgType insnArrayType = newArrayNode.getArrayType();<NEW_LINE>ArgType insnElementType = insnArrayType.getArrayElement();<NEW_LINE>ArgType elType = insn.getElementType();<NEW_LINE>if (!elType.isTypeKnown...
warn("Unknown array element type: {} in mth: {}", elType, mth);
936,669
public int[] twoSum(int[] arr, int target) {<NEW_LINE>int[] answer = { 0, 0 };<NEW_LINE>int start = 0, end = arr.length - 1;<NEW_LINE>int index = 0;<NEW_LINE>while (true) {<NEW_LINE>int mid = start <MASK><NEW_LINE>if (start == end) {<NEW_LINE>index = start;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>if (arr[mid] <= target)<NE...
+ (end - start) / 2;
1,026,754
public static void initType(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Descriptor desc) {<NEW_LINE>assert IsSubtypeNode.getUncached().execute(klass, PythonBuiltinClassType.PTuple);<NEW_LINE>// create descriptors for accessing named fields by their names<NEW_LINE>int unnamedFields = 0;<N...
d -> DisabledNewNodeGen.create());
782,617
public void handleWaitMultiple(Map<String, FutureValue> keyValues, MapValue<BString, Object> target) throws Throwable {<NEW_LINE>WaitContext ctx = new WaitMultipleContext(this.schedulerItem);<NEW_LINE>ctx.waitCount.set(keyValues.size());<NEW_LINE>ctx.lock();<NEW_LINE>for (Map.Entry<String, FutureValue> entry : keyValue...
ctx.waitCount.set(0);
96,663
public static BatchStartDevicesResponse unmarshall(BatchStartDevicesResponse batchStartDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchStartDevicesResponse.setRequestId(_ctx.stringValue("BatchStartDevicesResponse.RequestId"));<NEW_LINE>List<Result> results = new ArrayList<Result>();<NEW_LINE>for (int i = 0; ...
("BatchStartDevicesResponse.Results[" + i + "].Id"));
1,518,080
public static DescribeSuspEventsResponse unmarshall(DescribeSuspEventsResponse describeSuspEventsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSuspEventsResponse.setRequestId(_ctx.stringValue("DescribeSuspEventsResponse.RequestId"));<NEW_LINE>describeSuspEventsResponse.setCurrentPage(_ctx.integerValue("Describ...
("DescribeSuspEventsResponse.SuspEvents[" + i + "].Id"));
103,768
final DescribeEventSubscriptionsResult executeDescribeEventSubscriptions(DescribeEventSubscriptionsRequest describeEventSubscriptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventSubscriptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
DescribeEventSubscriptionsResult>(new DescribeEventSubscriptionsResultStaxUnmarshaller());
1,215,063
private void openFile(final DomainFile file) {<NEW_LINE>try {<NEW_LINE>SwingUtilities.invokeAndWait(() -> {<NEW_LINE>ToolServices toolServices = tool.getToolServices();<NEW_LINE>String defaultToolName = toolServices.getDefaultToolTemplate(file).getName();<NEW_LINE>for (PluginTool t : toolServices.getRunningTools()) {<N...
new DomainFile[] { file });
765,654
public boolean hasValidChecksum(InetAddress srcAddr, InetAddress dstAddr, boolean acceptZero) {<NEW_LINE>if (srcAddr == null || dstAddr == null) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("srcAddr: ").append(srcAddr).append<MASK><NEW_LINE>throw new NullPointerException(sb.toString());<NEW_LIN...
(" dstAddr: ").append(dstAddr);
1,619,205
private void registerDistributionArchiveArtifact(Project bwcProject, DistributionProject distributionProject, String buildBwcTask) {<NEW_LINE>String artifactFileName = distributionProject.getDistFile().getName();<NEW_LINE>String artifactName = "opensearch";<NEW_LINE>String suffix = artifactFileName.endsWith("tar.gz") ?...
).create(distributionProject.name);
62,701
IModule collectModuleEntries(ClasspathLocation bLocation, IPath path, boolean isOnModulePath, Set<String> limitModules, String patchedModuleName, IModule patchedModule, Map<String, IModulePathEntry> moduleEntries) {<NEW_LINE>if (bLocation instanceof IMultiModuleEntry) {<NEW_LINE>IMultiModuleEntry binaryModulePathEntry ...
valueOf(module.name());
1,274,871
public SBase convertProtocolBuffersMessageToSObject(Message message, SBase newInstance, SClass sClass) throws ConvertException {<NEW_LINE>try {<NEW_LINE>Descriptor descriptor = message.getDescriptorForType();<NEW_LINE>if (newInstance == null) {<NEW_LINE>newInstance = sClass.newInstance();<NEW_LINE>}<NEW_LINE>Message su...
) message.getField(fieldDescriptor));
1,241,616
public PushNotificationHandler buildHandler(final SSLSession sslSession) {<NEW_LINE>try {<NEW_LINE>// This will throw an exception if the peer hasn't authenticated (i.e. we're expecting<NEW_LINE>// token authentication).<NEW_LINE>final String principalName = sslSession.getPeerPrincipal().getName();<NEW_LINE>final Patte...
pattern = Pattern.compile(".*UID=([^,]+).*");
1,794,950
protected void rdataFromString(Tokenizer st, Name origin) throws IOException {<NEW_LINE>elements = new ArrayList<>(1);<NEW_LINE>while (true) {<NEW_LINE>Tokenizer.Token t = st.get();<NEW_LINE>if (!t.isString()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>boolean negative = false;<NEW_LINE>int family;<NEW_LINE>int prefix;<NEW_...
s.indexOf('/', colon);
17,595
private static Text[][] makeOptionList(OptionSpec option, ColorScheme scheme) {<NEW_LINE>// assumes every option has a short option<NEW_LINE>String shortOption = option.shortestName();<NEW_LINE>// assumes every option has a short and a long option<NEW_LINE>String longOption = option.longestName();<NEW_LINE>if (option.n...
, EMPTY, EMPTY, defaultValue });
623,811
public static ListInstancesResponse unmarshall(ListInstancesResponse listInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInstancesResponse.setRequestId<MASK><NEW_LINE>listInstancesResponse.setMessage(_ctx.stringValue("ListInstancesResponse.Message"));<NEW_LINE>listInstancesResponse.setCode(_ctx.stringValue(...
(_ctx.stringValue("ListInstancesResponse.RequestId"));
1,752,126
public static ClassNode inferLoopElementType(final ClassNode collectionType) {<NEW_LINE><MASK><NEW_LINE>if (componentType == null) {<NEW_LINE>if (implementsInterfaceOrIsSubclassOf(collectionType, ITERABLE_TYPE)) {<NEW_LINE>ClassNode intf = GenericsUtils.parameterizeType(collectionType, ITERABLE_TYPE);<NEW_LINE>Generics...
ClassNode componentType = collectionType.getComponentType();
937,939
public static ListClriskDataNodeResponse unmarshall(ListClriskDataNodeResponse listClriskDataNodeResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClriskDataNodeResponse.setRequestId(_ctx.stringValue("ListClriskDataNodeResponse.RequestId"));<NEW_LINE>listClriskDataNodeResponse.setResultCode(_ctx.stringValue("ListClris...
("ListClriskDataNodeResponse.DataNodeInfos[" + i + "].UpdateTime"));
535,547
private void reload() {<NEW_LINE>synchronized (this) {<NEW_LINE>version = null;<NEW_LINE>classpath = null;<NEW_LINE>}<NEW_LINE>changeSupport.fireChange();<NEW_LINE>// figure out the version on background<NEW_LINE>// default executor as general purpose should be enough for this<NEW_LINE>RequestProcessor.getDefault().pos...
.getInstance().getGrailsBase();
418,165
public void createSessionEnabledServiceBusProcessorClient() {<NEW_LINE>// BEGIN: com.azure.messaging.servicebus.servicebusprocessorclient#session-instantiation<NEW_LINE>Consumer<ServiceBusReceivedMessageContext> onMessage = context -> {<NEW_LINE>ServiceBusReceivedMessage message = context.getMessage();<NEW_LINE>System....
(ServiceBusException) context.getException();
270,625
private void onIceCandidate(RpcConnection rpcConnection, Request<JsonObject> request) {<NEW_LINE>Participant participant;<NEW_LINE>try {<NEW_LINE>participant = sanityCheckOfSession(rpcConnection, "onIceCandidate");<NEW_LINE>} catch (OpenViduException e) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String endpointName = getSt...
endpointName, sdpMid, sdpMLineIndex, candidate);
832,714
public Object methodsAnnotatedWithHystrixCommand(final ProceedingJoinPoint joinPoint) throws Throwable {<NEW_LINE>Method method = getMethodFromTarget(joinPoint);<NEW_LINE>Validate.notNull(method, "failed to get method from joinPoint: %s", joinPoint);<NEW_LINE>if (method.isAnnotationPresent(HystrixCommand.class) && meth...
throw new IllegalStateException("method cannot be annotated with HystrixCommand and HystrixCollapser " + "annotations at the same time");
654,443
public JourneyLimits unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>JourneyLimits journeyLimits = new JourneyLimits();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
923,942
public ParameterNameValue unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterNameValue parameterNameValue = new ParameterNameValue();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
893,300
private void init() {<NEW_LINE><MASK><NEW_LINE>JMenuItem historyButton = new JMenuItem(R.getI18NString("service.gui.HISTORY"));<NEW_LINE>historyButton.setName("history");<NEW_LINE>historyButton.setToolTipText(R.getI18NString("service.gui.HISTORY") + " Ctrl-H");<NEW_LINE>historyButton.addActionListener(this);<NEW_LINE>p...
ResourceManagementService R = GuiActivator.getResources();
1,633,151
public static GetIoTCloudConnectorGatewayResponse unmarshall(GetIoTCloudConnectorGatewayResponse getIoTCloudConnectorGatewayResponse, UnmarshallerContext _ctx) {<NEW_LINE>getIoTCloudConnectorGatewayResponse.setRequestId(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.RequestId"));<NEW_LINE>getIoTCloudConnectorGat...
("GetIoTCloudConnectorGatewayResponse.ZoneList[" + i + "]"));
434,824
final GetConsoleOutputResult executeGetConsoleOutput(GetConsoleOutputRequest getConsoleOutputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConsoleOutputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,646,854
private void updateSharesAndQuote() {<NEW_LINE>// do not auto-suggest shares and quote when editing an existing<NEW_LINE>// transaction<NEW_LINE>if (source != null)<NEW_LINE>return;<NEW_LINE>SecurityPosition position = null;<NEW_LINE>if (security != null) {<NEW_LINE>CurrencyConverter converter = new CurrencyConverterIm...
calculateValue().getAmount());
1,144,284
private DomainBase performUpdate(Update command, DomainBase domain, DateTime now) throws EppException {<NEW_LINE>AddRemove add = command.getInnerAdd();<NEW_LINE>AddRemove remove = command.getInnerRemove();<NEW_LINE>checkSameValuesNotAddedAndRemoved(add.getNameservers(), remove.getNameservers());<NEW_LINE>checkSameValue...
eppInput.getSingleExtension(SecDnsUpdateExtension.class);
677,274
private static Set<Dependency> processDependencies(final Set<Dependency> original, Set<UpdateElement> retval, Set<ModuleInfo> availableInfos, Set<Dependency> brokenDependencies, UpdateElement el, boolean agressive, Collection<UpdateElement> recommended, boolean avoidRecommended) {<NEW_LINE>Set<Dependency> res = new Has...
el.getCodeName(), original);