idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,785,878
public int compareTo(waitForFlush_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSec(<MASK><NEW_LINE>if (lastComparison !...
), other.isSetSec());
369,478
protected ArrayList<KeyNamePair> loadOrderData(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly) {<NEW_LINE>ArrayList<KeyNamePair> list = new ArrayList<KeyNamePair>();<NEW_LINE>// Display<NEW_LINE>StringBuffer display = new StringBuffer("o.DocumentNo||' - ' ||").append(DB.TO_CHAR("o.DateOrdered", Displa...
sql.toString(), null);
1,008,247
public void LAPACK_ztgsyl(String arg0, int[] arg1, int[] arg2, int[] arg3, double[] arg4, int[] arg5, double[] arg6, int[] arg7, double[] arg8, int[] arg9, double[] arg10, int[] arg11, double[] arg12, int[] arg13, double[] arg14, int[] arg15, double[] arg16, double[] arg17, double[] arg18, int[] arg19, int[] arg20, int...
arg18, arg19, arg20, arg21);
611,655
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource");
1,010,650
String censorMessage(final String username, final String message) {<NEW_LINE>String strippedMessage = jagexPrintableCharMatcher.retainFrom(message).replace('\u00A0', ' ');<NEW_LINE>String strippedAccents = StringUtils.stripAccents(strippedMessage);<NEW_LINE>assert strippedMessage.length() == strippedAccents.length();<N...
(strippedMessage.substring(idx));
1,305,227
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {<NEW_LINE>GlStateManager.disableLighting();<NEW_LINE>GlStateManager.disableBlend();<NEW_LINE>final <MASK><NEW_LINE>fontRenderer.drawString(I18n.format("container.repair"), 60, 6 + ANVIL_Y_OFFSET, 4210752);<NEW_LINE>if (anvil.anvil.getMaximumCost() ...
FontRenderer fontRenderer = parent.getFontRenderer();
52,146
public final ResultList<Location> listPrefixesAfter(Fields fields, String fqn, int limitParam, String after) throws IOException {<NEW_LINE>String service = EntityUtil.splitFQN(fqn)[0];<NEW_LINE>// forward scrolling, if after == null then first page is being asked<NEW_LINE>List<String> jsons = daoCollection.locationDAO(...
: RestUtil.decodeCursor(after));
1,001,563
public CreateCustomRoutingListenerResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateCustomRoutingListenerResult createCustomRoutingListenerResult = new CreateCustomRoutingListenerResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth...
String currentParentElement = context.getCurrentParentElement();
444,214
public JsonNode call(ObjectNode request) throws ReflectorException {<NEW_LINE>try {<NEW_LINE>if (tokenHolder.getToken() != null) {<NEW_LINE>request.put("token", tokenHolder.getToken());<NEW_LINE>}<NEW_LINE>HttpPost httppost = new HttpPost(remoteAddress);<NEW_LINE>httppost.setHeader("Content-Type", "application/json");<...
httpclient.execute(httppost, context);
1,728,947
public static void main(String[] args) {<NEW_LINE>Jsonb jsonb = JsonbBuilder.create();<NEW_LINE>Model instance = new Model();<NEW_LINE>instance.string = "Hello World!";<NEW_LINE>instance.number = 42;<NEW_LINE>instance.integers = Arrays.asList(1, 2, 3);<NEW_LINE>instance.decimals = new HashSet<>(Arrays.asList(BigDecimal...
age(42).build();
1,779,699
public static ErrorDescription apply(HintContext hc) {<NEW_LINE>if (hc.isCanceled()) {<NEW_LINE>// NOI18N<NEW_LINE>// we pass only if it is an annotation<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final JPAProblemContext ctx = ModelUtils.getOrCreateCachedContext(hc);<NEW_LINE>if (ctx == null || hc.isCanceled()) {<NEW_LI...
.NAMED_QUERIES, JPAAnnotations.NAMED_NATIVE_QUERIES));
513,692
public static boolean shouldColocateJoin(AbstractPhysicalJoin<PhysicalPlan, PhysicalPlan> join) {<NEW_LINE>if (ConnectContext.get() == null || ConnectContext.get().getSessionVariable().isDisableColocatePlan()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>DistributionSpec joinDistributionSpec = join.getPhysicalPropertie...
.getPhysicalProperties().getDistributionSpec();
667,933
public Mono<Response<Void>> updateWithResponseAsync(String objectId, String tenantId, ServicePrincipalUpdateParameters parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE...
error(new IllegalArgumentException("Parameter objectId is required and cannot be null."));
53,998
private Result equalsParametrizedTypes(List<Type> commandParametrizedTypes, List<Type> fallbackParametrizedTypes) {<NEW_LINE>if (commandParametrizedTypes.size() != fallbackParametrizedTypes.size()) {<NEW_LINE>return Result.failure(Collections.singletonList(new Error("Different size of types variables.\n" + "Command ty...
result = equals(commandParametrizedType, fallbackParametrizedType);
250,917
private void publishValue(String itemName, Object value, WeatherBindingConfig bindingConfig) {<NEW_LINE>if (value == null) {<NEW_LINE>context.getEventPublisher().postUpdate(itemName, UnDefType.UNDEF);<NEW_LINE>} else if (value instanceof Calendar) {<NEW_LINE>Calendar calendar = (Calendar) value;<NEW_LINE>context.getEve...
(value.toString()));
482,039
private void sendAlarmConsumerError(AlarmConfigInfo alarmConfing, AlarmConsumerInfo alarmConsumer, long lag, AlarmMessageInfo alarmMsg) {<NEW_LINE>if (alarmConfing.getAlarmType().equals(KConstants.AlarmType.EMAIL)) {<NEW_LINE>alarmMsg.setTitle("EFAK - Alert Consumer Notice");<NEW_LINE>alarmMsg.setAlarmStatus("PROBLEM")...
"msg", alarmMsg.toMail());
245,007
protected void encodeTabularLayout(FacesContext context, SelectOneRadio radio, String layout) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = radio.getClientId(context);<NEW_LINE>List<SelectItem> selectItems = getSelectItems(context, radio);<NEW_LINE>String ...
writer.startElement("table", radio);
1,175,968
private void reloadHistoryInternal() {<NEW_LINE>if (historySearchFragment != null) {<NEW_LINE>try {<NEW_LINE>List<QuickSearchListItem> <MASK><NEW_LINE>boolean historyEnabled = app.getSettings().SEARCH_HISTORY.get();<NEW_LINE>if (historyEnabled) {<NEW_LINE>SearchResultCollection res = searchUICore.shallowSearch(SearchHi...
rows = new ArrayList<>();
246,817
public static void main(String[] args) throws Exception {<NEW_LINE>if (args == null || args.length < 1) {<NEW_LINE>System.out.println("Invalid parameter");<NEW_LINE>usage();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String topologyName = args[0];<NEW_LINE>String[] str2 = Arrays.copyOfRange(args, 1, args.length);<NEW_LINE>Co...
w = commandLine.getOptionValue("w");
539,183
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final SecurityContext securityContext = getWebSocket().getSecurityContext();<NEW_LINE>try {<NEW_LINE>final String uuid = webSocketData.getId();<NEW_LINE>int sequenceNumber = webSocketData.getNodeDat...
).build(), true);
916,148
final AddFlowMediaStreamsResult executeAddFlowMediaStreams(AddFlowMediaStreamsRequest addFlowMediaStreamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addFlowMediaStreamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
618,033
public StatementMetricHandle addStatement(DeploymentIdNamePair statement) {<NEW_LINE>// determine group<NEW_LINE>int countGroups = 1;<NEW_LINE>int groupNumber = -1;<NEW_LINE>for (Map.Entry<String, ConfigurationRuntimeMetricsReporting.StmtGroupMetrics> entry : specification.getStatementGroups().entrySet()) {<NEW_LINE>Li...
.getValue().getPatterns();
557,867
public static void addToItemTooltip(ItemTooltipEvent event) {<NEW_LINE>if (!AllConfigs.CLIENT.tooltips.get())<NEW_LINE>return;<NEW_LINE>if (event.getPlayer() == null)<NEW_LINE>return;<NEW_LINE>ItemStack stack = event.getItemStack();<NEW_LINE>String translationKey = stack.getItem().getDescriptionId(stack);<NEW_LINE>if (...
itemTooltip.addAll(0, toolTip);
567,965
// ------------------------------------------------------------------------<NEW_LINE>// [NOT] BETWEEN predicates<NEW_LINE>// ------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public final BetweenAndStep16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15...
) dataType(15))));
1,089,983
<OUTPUT_TYPE extends QueryTarget> Set<OUTPUT_TYPE> eval(QueryEvaluator<NODE_TYPE> evaluator, QueryEnvironment<NODE_TYPE> env) throws QueryException {<NEW_LINE>ImmutableList<QueryExpression<NODE_TYPE>> operands = getOperands();<NEW_LINE>Set<QueryTarget> lhsValue = new LinkedHashSet<>(evaluator.eval(operands.get(0), env)...
.get(i), env);
179,695
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>TreeReader tr = new PennTreeReader(new StringReader("(S (NP (NNP Sam)) (VP (VBD died) (NP (NN today))))"), new LabeledScoredTreeFactory());<NEW_LINE>Tree t = tr.readTree();<NEW_LINE>System.out.println(t);<NEW_LINE>TreeGraphNode tgn = new TreeGraphNode(t, ...
EnglishGrammaticalStructure gs = new EnglishGrammaticalStructure(tgn);
1,522,664
private void passwordVisibilityToggled(boolean isMasked, CharSequence password) {<NEW_LINE>if (maskDrawable == null) {<NEW_LINE>// lazily create the drawable that morphs the dots<NEW_LINE>if (!isLaidOut() || getText() == null || getText().length() < 1)<NEW_LINE>return;<NEW_LINE>maskDrawable = new MaskMorphDrawable(getC...
) : maskDrawable.createHideMaskAnimator(password);
88,374
public void showClientMyLateTickets(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>ClientViewService clientViewService = Beans.get(ClientViewService.class);<NEW_LINE>User clientUser = clientViewService.getClientUser();<NEW_LINE>if (clientUser.getPartner() == null) {<NEW_LINE>response.setError...
(clientUser).get(0);
217,943
public void prepare() throws Exception {<NEW_LINE>// The task ID is different for local and cluster executions<NEW_LINE>// So including that in the log can help associate the log to the run<NEW_LINE>LOG.info("Task ID is {}", mBaseParameters.mId);<NEW_LINE>// Prepare block IDs to use for this test<NEW_LINE>// We prepare...
numWorkers, mWorkerPool.size());
70,745
public void updateIndices(SegmentDirectory.Writer segmentWriter, IndexCreatorProvider indexCreatorProvider) throws IOException {<NEW_LINE>// Remove indices not set in table config any more.<NEW_LINE>String segmentName = _segmentMetadata.getName();<NEW_LINE>Set<String> existingColumns = segmentWriter.toSegmentDirectory(...
info("Removed existing inverted index from segment: {}, column: {}", segmentName, column);
429,267
public void indexDocumentsAsync() {<NEW_LINE>// BEGIN: com.azure.search.documents.SearchAsyncClient.indexDocuments#IndexDocumentsBatch<NEW_LINE>SearchDocument searchDocument1 = new SearchDocument();<NEW_LINE>searchDocument1.put("hotelId", "1");<NEW_LINE><MASK><NEW_LINE>SearchDocument searchDocument2 = new SearchDocumen...
searchDocument1.put("hotelName", "test1");
1,694,467
private void extractColumns(ResultSet set, Table.Factory table) throws SQLException {<NEW_LINE>String col1 = set.getString(ExtensionTableProviderTable.COL_1);<NEW_LINE>if (col1 != null) {<NEW_LINE>table.columnOne(col1<MASK><NEW_LINE>table.columnOneFormat(extractFormat(set, ExtensionTableProviderTable.FORMAT_1));<NEW_LI...
, extractIcon(set, "i1"));
1,223,875
static void canonicalize(Buffer out, String input, int pos, int limit, String encodeSet, boolean alreadyEncoded, boolean plusIsSpace, boolean asciiOnly) throws Exception {<NEW_LINE>// Lazily allocated.<NEW_LINE>Buffer utf8Buffer = null;<NEW_LINE>int codePoint;<NEW_LINE>for (int i = pos; i < limit; i += Character.charCo...
>> 4) & 0xf]);
518,818
private Map<String, String> createTags(MonitorDataFrame mdf, String instanceId, String meId, String plusTag, Map<String, Object> fields) {<NEW_LINE>Map<String, String> tags = new LinkedHashMap<>();<NEW_LINE>// IP<NEW_LINE>String encodeIP = DataStoreHelper.encodeForOpenTSDB(mdf.getIP());<NEW_LINE>tags.put("ip", encodeIP...
temp = instanceId.split("_");
316,524
void validateSourceNatServiceCapablities(final Map<Capability, String> sourceNatServiceCapabilityMap) {<NEW_LINE>if (sourceNatServiceCapabilityMap != null && !sourceNatServiceCapabilityMap.isEmpty()) {<NEW_LINE>if (sourceNatServiceCapabilityMap.keySet().size() > 2) {<NEW_LINE>throw new InvalidParameterValueException("O...
perZone = value.contains("perzone");
1,829,318
public byte[] serialise(final TypeValue typeValue) throws SerialisationException {<NEW_LINE>String type = typeValue.getType();<NEW_LINE>String value = typeValue.getValue();<NEW_LINE>if ((null == type || type.isEmpty()) && (null == value || value.isEmpty())) {<NEW_LINE>throw new SerialisationException("TypeValue passed ...
throw new SerialisationException("Failed to serialise the Value from TypeValue Object", e);
1,398,538
// GEN-LAST:event_bnCancelActionPerformed<NEW_LINE>@Messages({ "AddNewOrganizationDialog.bnOk.addFailed.text=Failed to add new organization." })<NEW_LINE>private void bnOKActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_bnOKActionPerformed<NEW_LINE>try {<NEW_LINE>CentralRepository dbManager...
setPocName(tfPocName.getText());
696,453
private RequestBody createRequestBody(BaseRequest<?, ?> request) {<NEW_LINE>if (request.isMultipart()) {<NEW_LINE>MediaType contentType = MediaType.parse(request.getContentType());<NEW_LINE>MultipartBody.Builder builder = new MultipartBody.Builder().setType(MultipartBody.FORM);<NEW_LINE>for (Map.Entry<String, Object> p...
contentType, (File) value));
1,437,111
public boolean isQLowRemoteLimit() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "isQLowRemoteLimit");<NEW_LINE>long remoteLowLimit = _destHighMsgs;<NEW_LINE>boolean isUnderDestinationLowLimit = false;<NEW_LINE>// Find the halfway mark between the two high limits<N...
(_remoteQueueHighLimit - _destHighMsgs) / 2);
1,282,440
protected void writeToXml(EwsServiceXmlWriter writer) throws Exception {<NEW_LINE>writer.writeStartDocument();<NEW_LINE>writer.writeStartElement(XmlNamespace.Soap, XmlElementNames.SOAPEnvelopeElementName);<NEW_LINE>writer.writeAttributeValue("xmlns", EwsUtilities.getNamespacePrefix(XmlNamespace.Soap), EwsUtilities.getN...
EwsUtilities.WSSecurityUtilityNamespacePrefix, EwsUtilities.WSSecurityUtilityNamespace);
1,309,239
private static void copyResourceTableToTmpDirectory(String sourcePath, String tableName, File baseDir, File dataDir) throws IOException {<NEW_LINE>File schemaFile = new File(baseDir, tableName + "_schema.json");<NEW_LINE>File tableConfigFile = new File(baseDir, tableName + "_offline_table_config.json");<NEW_LINE>File i...
FileUtils.copyURLToFile(resource, schemaFile);
238,629
// snippet-start:[ec2.java2.describe_account.main]<NEW_LINE>public static void describeEC2Account(Ec2Client ec2) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>List<AccountAttribute> accountList = accountResults.accountAttributes();<NEW_LINE>for (ListIterator iter = accountList.listIterator(); iter.hasNext(); ) {<NEW_LINE>A...
DescribeAccountAttributesResponse accountResults = ec2.describeAccountAttributes();
1,108,560
private static void sendOrderEvent(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum, String orderId, String productId, double price, int quantity, boolean deletedFlag) {<NEW_LINE>if (eventRepresentationEnum.isObjectArrayEvent()) {<NEW_LINE>env.sendEventObjectArray(new Object[] { orderId, pro...
theEvent.put("quantity", quantity);
236,615
public static List<PEMObject> readPEMObjects(InputStream is) throws IOException {<NEW_LINE>List<PEMObject> pemContents = new ArrayList<PEMObject>();<NEW_LINE>boolean readingContent = false;<NEW_LINE>String beginMarker = null;<NEW_LINE>String endMarker = null;<NEW_LINE>StringBuffer sb = null;<NEW_LINE>String line;<NEW_L...
sb.toString())));
1,549,637
public boolean validate() throws ContractValidateException {<NEW_LINE>if (!VMConfig.allowTvmConstantinople()) {<NEW_LINE>throw new ContractValidateException("contract type error,unexpected type [ClearABIContract]");<NEW_LINE>}<NEW_LINE>if (this.any == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstan...
e.getMessage(), e);
43,951
private void mapResponseHeaders(org.springframework.cloud.contract.spec.internal.Response contractResponse, Response pactResponse) {<NEW_LINE>MatchingRuleCategory headerRules = pactResponse.getMatchingRules().rulesForCategory("header");<NEW_LINE>contractResponse.headers((headers) -> pactResponse.getHeaders().forEach((k...
getRules().get(0);
1,686,527
final AssociateIamInstanceProfileResult executeAssociateIamInstanceProfile(AssociateIamInstanceProfileRequest associateIamInstanceProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateIamInstanceProfileRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,627,443
static void c_3() throws Exception {<NEW_LINE>AkSourceBatchOp source = new AkSourceBatchOp().setFilePath(DATA_DIR + SPARSE_TRAIN_FILE);<NEW_LINE>source.link(new PcaTrainBatchOp().setK(39).setCalculationType(CalculationType.COV).setVectorCol(VECTOR_COL_NAME).lazyPrintModelInfo()).link(new AkSinkBatchOp().setFilePath(DAT...
println(sw.getElapsedTimeSpan());
612,856
public void s2iBuildFromNative(S2iConfig s2iConfig, ContainerImageConfig containerImageConfig, KubernetesClientBuildItem kubernetesClient, ContainerImageInfoBuildItem containerImage, ArchiveRootBuildItem archiveRoot, OutputTargetBuildItem out, PackageConfig packageConfig, List<GeneratedFileSystemResourceBuildItem> gene...
), nativeImage.getPath());
1,026,536
public Broadcast<List<PrestoSparkStorageHandle>> executeBroadcast(JavaSparkContext sparkContext) throws SparkException, TimeoutException {<NEW_LINE>List<PrestoSparkStorageHandle> broadcastValue = broadcastDependency.collectAndDestroyDependenciesWithTimeout(computeNextTimeout(queryCompletionDeadline), MILLISECONDS, wait...
size(), compressedBroadcastSizeInBytes, uncompressedBroadcastSizeInBytes);
1,685,500
public SortedMap<String, HealthCheck.Result> runHealthChecks(ExecutorService executor, HealthCheckFilter filter) {<NEW_LINE>final Map<String, Future<HealthCheck.Result>> futures = new HashMap<>();<NEW_LINE>for (final Map.Entry<String, HealthCheck> entry : healthChecks.entrySet()) {<NEW_LINE>final String name = entry.ge...
getValue().get());
385,941
public static JobTestBuilder aFailedJobWithRetries() {<NEW_LINE>final JobTestBuilder jobTestBuilder = aJob().withName("failed job").withJobDetails(systemOutPrintLnJobDetails("a test")).withState(new ScheduledState(now().minusSeconds(11 * 60 * 60)));<NEW_LINE>UUID serverId = UUID.randomUUID();<NEW_LINE>for (int i = 0; i...
1) + " of " + 10));
586,571
final Snapshot executeDeleteSnapshot(DeleteSnapshotRequest deleteSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecut...
addHandlerContext(HandlerContextKey.SERVICE_ID, "ElastiCache");
1,297,222
protected void handleMultiInstanceSubProcess(ExecutionEntityManager executionEntityManager, ExecutionEntity parentExecution) {<NEW_LINE>List<ExecutionEntity> activeChildExecutions = getActiveChildExecutionsForExecution(executionEntityManager, parentExecution.getId());<NEW_LINE>boolean containsOtherChildExecutions = fal...
(MultiInstanceActivityBehavior) subProcess.getBehavior();
526,410
public static DescribeDtsServiceLogResponse unmarshall(DescribeDtsServiceLogResponse describeDtsServiceLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDtsServiceLogResponse.setRequestId(_ctx.stringValue("DescribeDtsServiceLogResponse.RequestId"));<NEW_LINE>describeDtsServiceLogResponse.setHttpStatusCode(_ctx....
(_ctx.stringValue("DescribeDtsServiceLogResponse.ErrMessage"));
1,398,491
public void findOpposite(FileObject fileObj, int caretOffset, LocationListener callback) {<NEW_LINE>boolean isJavaFile = false;<NEW_LINE>ClassPath srcCP;<NEW_LINE>FileObject fileObjRoot;<NEW_LINE>Project project;<NEW_LINE>boolean sourceToTest = true;<NEW_LINE>if ((fileObj == null) || !fileObj.isFolder() && !(isJavaFile...
).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);
521,473
public static void main(final String... args) throws IOException, ProcessingException {<NEW_LINE>final JsonNode <MASK><NEW_LINE>final JsonNode good = Utils.loadResource("/fstab-good.json");<NEW_LINE>final JsonNode bad = Utils.loadResource("/fstab-bad.json");<NEW_LINE>final JsonNode bad2 = Utils.loadResource("/fstab-bad...
fstabSchema = Utils.loadResource("/fstab-inline.json");
1,488,124
public static EObject spawn_opt(EProc self, EObject tup) throws Pausable {<NEW_LINE>ETuple t;<NEW_LINE>EAtom m;<NEW_LINE>EAtom f;<NEW_LINE>ESeq a;<NEW_LINE>ESeq o;<NEW_LINE>if ((t = tup.testTuple()) == null || t.arity() != 4 || (m = t.elm(1).testAtom()) == null || (f = t.elm(2).testAtom()) == null || (a = t.elm(3).test...
p2.process_flag(am_priority, priority);
849,700
public AuthResult authenticate(CallHeaders incomingHeaders) {<NEW_LINE>try {<NEW_LINE>final String authEncoded = AuthUtilities.getValueFromAuthHeader(incomingHeaders, Auth2Constants.BASIC_PREFIX);<NEW_LINE>if (authEncoded == null) {<NEW_LINE>throw CallStatus.UNAUTHENTICATED.toRuntimeException();<NEW_LINE>}<NEW_LINE>// ...
authDecoded.substring(0, colonPos);
1,309,198
protected byte[] engineGetEncoded() throws IOException {<NEW_LINE>long cbbRef = 0;<NEW_LINE>long seqRef = 0;<NEW_LINE>try {<NEW_LINE>cbbRef = NativeCrypto.asn1_write_init();<NEW_LINE><MASK><NEW_LINE>writeHashAndMgfHash(seqRef, spec.getDigestAlgorithm(), (MGF1ParameterSpec) spec.getMGFParameters());<NEW_LINE>PSource.PSp...
seqRef = NativeCrypto.asn1_write_sequence(cbbRef);
505,701
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>// Verify that the request originates from the application.<NEW_LINE>if (req.getParameter("token").compareTo(pubsubVerificationToken) != 0) {<NEW_LINE>resp.setStatus(HttpServletResponse.SC_BAD_REQUEST);<...
.split(" ")[1];
158,080
public void verticalTransitionRotationMap(Direction facingOld, Direction facingNew) {<NEW_LINE>// see if it transition is to or from vertical. return if none of the directions are vertical<NEW_LINE>boolean toVert = false;<NEW_LINE>if (facingNew.getAxis() == Axis.Y)<NEW_LINE>toVert = true;<NEW_LINE>if ((facingOld.getAxi...
i + offset, rotationMapping.length);
1,340,364
public synchronized void reportTo(PrintWriter writer) {<NEW_LINE>// name is ignored: only one kind of report for now<NEW_LINE>writer.print("Queue ");<NEW_LINE>writer.print(classKey);<NEW_LINE>writer.print(" (p");<NEW_LINE><MASK><NEW_LINE>writer.print(")\n");<NEW_LINE>writer.print(" ");<NEW_LINE>writer.print(Long.toStr...
writer.print(getPrecedence());
1,034,086
private void init() {<NEW_LINE>GraphicsEnvironment gfx = GraphicsEnvironment.getLocalGraphicsEnvironment();<NEW_LINE>String[<MASK><NEW_LINE>// preload the font map with the font names as keys<NEW_LINE>// don't add the actual font objects because that would be a waste of memory<NEW_LINE>// we will only add them once we ...
] availableFonts = gfx.getAvailableFontFamilyNames();
327,553
public static void introduceTransposeError(HealthRecord.Encounter encounter, String obsType) {<NEW_LINE>HealthRecord.Observation obs;<NEW_LINE>if (obsType.equals("weight")) {<NEW_LINE>obs = weightObservation(encounter);<NEW_LINE>} else {<NEW_LINE>obs = heightObservation(encounter);<NEW_LINE>}<NEW_LINE>Double original =...
String originalString = original.toString();
385,689
final CreateContextResult executeCreateContext(CreateContextRequest createContextRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createContextRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(createContextRequest));
777,783
static List<CompositeBatch> groupBatches(List<Batch> batchList) {<NEW_LINE>Map<AggregationKey, CompositeBatch> batchGroups = new HashMap<AggregationKey, CompositeBatch>();<NEW_LINE>for (int i = 0; i < batchList.size(); i++) {<NEW_LINE>for (int j = i + 1; j < batchList.size(); ) {<NEW_LINE>final Batch <MASK><NEW_LINE>fi...
iBatch = batchList.get(i);
1,085,711
private void createNewDestLocalizations() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>SibTr.entry(tc, "createNewDestLocalizations", this);<NEW_LINE>}<NEW_LINE>if (!isInZOSServentRegion() && _mpAdmin != null) {<NEW_LINE>Iterator i = newDestinations.iterator();<NEW_LINE>while (i...
SibTr.exception(tc, e);
370,753
private Node createHistoryView(History history) {<NEW_LINE>byte[] data = history.peek();<NEW_LINE>boolean isClass = ClassUtil.isClass(data);<NEW_LINE>String type = isClass ? "class" : "file";<NEW_LINE>BorderPane pane = new BorderPane();<NEW_LINE>// Content<NEW_LINE>int count = history.size() - 1;<NEW_LINE>String sub = ...
.sha1Hex(updatedData))));
1,744,368
public void actionPerformed(ActionEvent e) {<NEW_LINE>final String centeredNodeId = slide.getPlacedNodeId();<NEW_LINE>final IMapSelection selection = Controller.getCurrentController().getSelection();<NEW_LINE>if (centeredNodeId == null) {<NEW_LINE>final NodeModel selected = selection.getSelected();<NEW_LINE>if (selecte...
true, slide.getPlacedNodePosition());
664,466
private void insertTargetF0Values() throws Exception {<NEW_LINE>NodeList phoneNodes;<NEW_LINE>try {<NEW_LINE>phoneNodes = getPhoneNodes();<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new Exception("Could not get the phone Nodes from the Document", e);<NEW_LINE>}<NEW_LINE>// count the number of Datagrams we need, wh...
subarray(f0Targets, f0TargetStartIndex, f0TargetMidIndex);
1,354,852
public static MediaType produceType(RequestHeaders headers) {<NEW_LINE>final MediaType contentType = headers.contentType();<NEW_LINE>if (HttpMethod.POST == headers.method() && contentType != null && contentType.is(MediaType.GRAPHQL)) {<NEW_LINE>return MediaType.GRAPHQL_JSON;<NEW_LINE>}<NEW_LINE>final List<MediaType<MAS...
> acceptTypes = headers.accept();
464,647
protected void nextIteration() {<NEW_LINE>if ((inner != null) && inner.hasNext()) {<NEW_LINE>next = inner.next();<NEW_LINE>hasNext = true;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>if (inner == null || !inner.hasNext()) {<NEW_LINE>if (innerStream != null) {<NEW_LINE>innerStream.close();...
result = mapper.apply(arg);
1,579,671
public List<IViewRow> retrievePage(final ViewEvaluationCtx viewEvalCtx, final ViewRowIdsOrderedSelection orderedSelection, final int firstRow, final int pageLength) throws DBException {<NEW_LINE>logger.debug("Getting page: firstRow={}, pageLength={} - {}", firstRow, pageLength, this);<NEW_LINE><MASK><NEW_LINE>final Vie...
logger.debug("Using: {}", orderedSelection);
781,480
public void mouseDown(MouseEvent e) {<NEW_LINE>if (control.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String text = provider.getText();<NEW_LINE>if (control.getMenu() != null || text == null || text.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!(e.button == 3 || (e.button == 1 && e.stateMas...
copyToClipProvider2) provider).getMenuResource();
1,556,548
public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>String name = wrapper.get(Type.STRING, 0);<NEW_LINE>SoundEffect effect = SoundEffect.getByName(name);<NEW_LINE>int catid = 0;<NEW_LINE>String newname = name;<NEW_LINE>if (effect != null) {<NEW_LINE>catid = effect.getCategory().getId();<NEW_LINE>newna...
wrapper.passthrough(Type.INT);
1,741,609
protected void writeRuntimeEsproc(RaqsoftConfig config) throws SAXException {<NEW_LINE>level = 2;<NEW_LINE><MASK><NEW_LINE>level = 3;<NEW_LINE>writeAttribute(ConfigConsts.CHAR_SET, config.getCharSet());<NEW_LINE>List<String> paths = config.getSplPathList();<NEW_LINE>if (paths != null && !paths.isEmpty()) {<NEW_LINE>sta...
startElement(ConfigConsts.ESPROC, null);
206,614
private void processContainerDependency(final Container container) {<NEW_LINE>try {<NEW_LINE>final String containerId = container.getIdentifier();<NEW_LINE>final Container containerById = APILocator.getContainerAPI().getWorkingContainerById(containerId, user, false);<NEW_LINE>// Host Dependency<NEW_LINE>tryToAddSilentl...
e.getMessage(), e);
1,846,550
public void redirectBranches(final InstructionHandle old_target, final InstructionHandle new_target) {<NEW_LINE>for (InstructionHandle ih = start; ih != null; ih = ih.getNext()) {<NEW_LINE>final Instruction i = ih.getInstruction();<NEW_LINE>if (i instanceof BranchInstruction) {<NEW_LINE>final BranchInstruction b = (Bra...
InstructionHandle target = b.getTarget();
1,055,041
public void onAcceptMediationResult(Trade trade, ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {<NEW_LINE>String tradeId = trade.getId();<NEW_LINE>Optional<Dispute> optionalDispute = findDispute(tradeId);<NEW_LINE>checkArgument(optionalDispute.isPresent(), "dispute must be present");<NEW_LINE>Di...
tradeId, Trade.DisputeState.MEDIATION_CLOSED);
749,611
public static void show(final Context c) {<NEW_LINE>final View inflate = LayoutInflater.from(c).inflate(R.layout.dialog_tap_zone, null, false);<NEW_LINE>final List<String> items = Arrays.asList(c.getString(R.string.next_page), c.getString(R.string.previous_page), c.getString(R.string.db_do_nothing));<NEW_LINE>final Bas...
findViewById(R.id.rightSide);
188,686
public Frame clone() {<NEW_LINE>Frame newFrame = new Frame();<NEW_LINE>// Video part<NEW_LINE>newFrame.imageWidth = imageWidth;<NEW_LINE>newFrame.imageHeight = imageHeight;<NEW_LINE>newFrame.imageDepth = imageDepth;<NEW_LINE>newFrame.imageChannels = imageChannels;<NEW_LINE>newFrame.imageStride = imageStride;<NEW_LINE>n...
= new Buffer[samples.length];
183,512
private final void internalEvent(Object source, Class sourceClass, String methodName, Throwable throwable) {<NEW_LINE>StringBuffer stringBuffer = new StringBuffer();<NEW_LINE>stringBuffer.append(methodName);<NEW_LINE>stringBuffer.append(" [");<NEW_LINE>if (source != null) {<NEW_LINE>stringBuffer.append(source);<NEW_LIN...
[] { "Exception caught: ", throwable });
1,226,573
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Map<UUID, Integer> destroyedCreatures = new HashMap<>();<NEW_LINE>for (Permanent permanent : game.getBattlefield().getActivePermanents(StaticFilters.FILTER...
count, game, source, false);
933,285
private boolean processSelector(@NotNull GoSelectorExpr parent, @NotNull GoScopeProcessor processor, @NotNull ResolveState state, @Nullable PsiElement another) {<NEW_LINE>List<GoExpression> list = parent.getExpressionList();<NEW_LINE>if (list.size() > 1 && list.get(1).isEquivalentTo(another)) {<NEW_LINE>GoExpression e ...
.getGoType(createContextOnElement(myElement));
1,265,170
final DescribeAuditSuppressionResult executeDescribeAuditSuppression(DescribeAuditSuppressionRequest describeAuditSuppressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAuditSuppressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
false), new DescribeAuditSuppressionResultJsonUnmarshaller());
1,414,156
private void ensureExpandedTexture() {<NEW_LINE>if (mExpandedTitleTexture != null || mExpandedBounds.isEmpty() || TextUtils.isEmpty(mTextToDraw)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>calculateOffsets(0f);<NEW_LINE>mTextureAscent = mTextPaint.ascent();<NEW_LINE>mTextureDescent = mTextPaint.descent();<NEW_LINE>final in...
h, Bitmap.Config.ARGB_8888);
1,227,860
public static Method wrapper(String name) throws NoSuchMethodException {<NEW_LINE>switch(name.toLowerCase()) {<NEW_LINE>case "boolean":<NEW_LINE>return Boolean.class.getDeclaredMethod("valueOf", Boolean.TYPE);<NEW_LINE>case "char":<NEW_LINE>case "character":<NEW_LINE>return Character.class.<MASK><NEW_LINE>case "byte":<...
getDeclaredMethod("valueOf", Character.TYPE);
1,360,810
public static ByteBuf encodeMetadata(ByteBufAllocator allocator, String customAuthType, ByteBuf metadata) {<NEW_LINE>int actualASCIILength = ByteBufUtil.utf8Bytes(customAuthType);<NEW_LINE>if (actualASCIILength != customAuthType.length()) {<NEW_LINE>throw new IllegalArgumentException("custom auth type must be US_ASCII ...
allocator.buffer(capacity, capacity);
1,142,573
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>lblFile = new javax.swing.JLabel();<NEW_LINE>txtFile = <MASK><NEW_LINE>btnFile = new javax.swing.JButton();<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(lblFile, "Javadoc Lo...
new javax.swing.JTextField();
893,977
public static void horizontal7(Kernel1D_S32 kernel, GrayU16 image, GrayI16 dest, int divisor) {<NEW_LINE>final short[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final ...
indexSrc++] & 0xFFFF) * k2;
1,634,821
final RejectSkillResult executeRejectSkill(RejectSkillRequest rejectSkillRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectSkillRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,292,205
public static void delete(final RheaKVStore rheaKVStore) {<NEW_LINE>rheaKVStore.bPut("delete_test", writeUtf8("1"));<NEW_LINE>LOG.info("Value={}", readUtf8(rheaKVStore.bGet("delete_test")));<NEW_LINE>final CompletableFuture<Boolean> f1 = rheaKVStore.delete(writeUtf8("delete_test"));<NEW_LINE>FutureHelper.get(f1);<NEW_L...
rheaKVStore.bGet("delete_test")));
1,080,505
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>super.setContentView(R.layout.activity_drawer);<NEW_LINE>mDrawer = findViewById(R.id.drawer);<NEW_LINE>mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);<NEW_LINE>mDrawerAccount = (TextView) <MASK><N...
findViewById(R.id.drawer_account);
503,917
public void marshall(CreateWorkspaceRequest createWorkspaceRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createWorkspaceRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createWorkspaceReq...
createWorkspaceRequest.getWorkspaceNotificationDestinations(), WORKSPACENOTIFICATIONDESTINATIONS_BINDING);
1,173,821
public String[][] generateFwRules(final LoadBalancerConfigCommand lbCmd) {<NEW_LINE>final String[][] result = new String[3][];<NEW_LINE>final Set<String> toAdd = new HashSet<String>();<NEW_LINE>final Set<String> toRemove = new HashSet<String>();<NEW_LINE>final Set<String> toStats = new HashSet<String>();<NEW_LINE>for (...
.lbStatsSrcCidrs).append(":,");
694,501
public void testSyncBulkheadSmall() throws Exception {<NEW_LINE>// the tasks notify that they are running<NEW_LINE>CountDownLatch notify = new CountDownLatch(2);<NEW_LINE>// and then wait to be released<NEW_LINE><MASK><NEW_LINE>// connectA has a poolSize of 2<NEW_LINE>// first two should be run straight away, in parall...
CountDownLatch wait = new CountDownLatch(1);
953,773
public static Flowable<Object[]> read(MigrateUtil.MigrateJdbcInput migrateJdbcInput, Partition backend) {<NEW_LINE>MycatRouterConfig routerConfig = MetaClusterCurrent.wrapper(MycatRouterConfig.class);<NEW_LINE>ReplicaSelectorManager replicaSelectorRuntime = MetaClusterCurrent.wrapper(ReplicaSelectorManager.class);<NEW_...
> datasources = routerConfig.getDatasources();
1,089,582
private static void solve() {<NEW_LINE>Solver solver = new Solver("SetCovering2");<NEW_LINE>//<NEW_LINE>// data<NEW_LINE>//<NEW_LINE>// Example 9.1-2 from<NEW_LINE>// Taha "Operations Research - An Introduction",<NEW_LINE>// page 354ff.<NEW_LINE>// Minimize the number of security telephones in street<NEW_LINE>// corner...
i][1] - 1];
1,795,766
public static PhysicalPartition parsePhysicalPartitionString(String pPartString, String del) throws IOException {<NEW_LINE>// format is name<del>id<NEW_LINE>String[] parts = pPartString.split(del);<NEW_LINE>if (parts.length <= 1)<NEW_LINE>throw new IOException("invalid physical source name/id format in " + pPartString ...
idS.length() - 1);