idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
911,484
static WebServer startServer() {<NEW_LINE>LogConfig.initClass();<NEW_LINE>Config config = Config.create();<NEW_LINE>Routing routing = // must be configured first, to protect endpoints<NEW_LINE>Routing.builder().register(WebSecurity.create(config.get("security"))).register("/static", StaticContentSupport.create("/WEB"))...
)).orElse("Security context is null"));
570,284
private DefaultModelCriteria<Resource> filterEntryToDefaultModelCriteria(Map.Entry<Resource.FilterOption, String[]> entry) {<NEW_LINE>Resource.FilterOption name = entry.getKey();<NEW_LINE>String[] value = entry.getValue();<NEW_LINE>DefaultModelCriteria<MASK><NEW_LINE>switch(name) {<NEW_LINE>case ID:<NEW_LINE>case SCOPE...
<Resource> mcb = criteria();
1,001,814
public static List<Text> generateSymmetricHighlighting(String baseString, String modifiedString, String separator) {<NEW_LINE>List<String> stringList = Arrays.asList(baseString.split(separator));<NEW_LINE>List<Text> result = stringList.stream().map(text -> DiffHighlighting.forUnchanged(text + separator)).collect(Collec...
separator))).getDeltas();
432,699
public void aggregateGroupBySV(int length, int[] groupKeyArray, GroupByResultHolder groupByResultHolder, Map<ExpressionContext, BlockValSet> blockValSetMap) {<NEW_LINE>BlockValSet blockValSet = blockValSetMap.get(_expression);<NEW_LINE>if (blockValSet.getValueType() != DataType.BYTES) {<NEW_LINE>double[] doubleValues =...
), avgPair.getCount());
1,498,956
public com.amazonaws.services.simplesystemsmanagement.model.OpsItemRelatedItemAssociationNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.OpsItemRelatedItemAssociationNotFoundException opsItemRelatedItemAssociationN...
simplesystemsmanagement.model.OpsItemRelatedItemAssociationNotFoundException(null);
509,586
public ItemStack assemble(CraftingContainer inv) {<NEW_LINE>int[] colourArray = new int[3];<NEW_LINE>int j = 0;<NEW_LINE>int totalColourSets = 0;<NEW_LINE>ItemStack itemToColour = ItemStack.EMPTY;<NEW_LINE>for (int i = 0; i < inv.getContainerSize(); i++) {<NEW_LINE>ItemStack stackInSlot = inv.getItem(i);<NEW_LINE>if (!...
getOrCreateTag().getInt(colorKey);
1,364,781
public void testRxObservableInvoker_post3WithGenericType(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String <MASK><NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultThreadFactory();<NEW_LINE>T...
serverPort = param.get("serverPort");
1,493,855
final DeleteAttendeeResult executeDeleteAttendee(DeleteAttendeeRequest deleteAttendeeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAttendeeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
702,582
/*<NEW_LINE>private Image loadImage(Display display, String key) {<NEW_LINE>for (SkinProperties sp : skinProperties) {<NEW_LINE>String value = sp.getStringValue(key);<NEW_LINE>if (value != null) {<NEW_LINE>return loadImage(display, sp.getClassLoader(), value, key);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return loadImage(displa...
, sKey) * -1 - 1;
312,037
private Element createPageElement(ProductPage page) {<NEW_LINE>if (!page.isValid()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Element pageElem = dom.createElement("page");<NEW_LINE>if (page.getTitle() != null && !("".equals(page.getTitle().trim()))) {<NEW_LINE>// <title> ... </title><NEW_LINE>createChildElement(pageE...
"frequency", page.getFrequency());
1,065,725
public synchronized void kill() {<NEW_LINE>if (this.state == ContainerState.PREP) {<NEW_LINE>this.state = ContainerState.KILLED_BEFORE_LAUNCH;<NEW_LINE>} else if (!isCompletelyDone()) {<NEW_LINE>LOG.info("KILLING " + taskId);<NEW_LINE>ContainerManagementProtocolProxyData proxy = null;<NEW_LINE>try {<NEW_LINE>proxy = ge...
this.containerMgrAddress, this.containerId);
1,251,623
public static Stream<DocumentedEnumEntry<Environment>> documentedEntries() {<NEW_LINE>Properties props = new Properties();<NEW_LINE><MASK><NEW_LINE>final String cliOptionsPath = values[0].getClass().getSimpleName() + ".javadoc.properties";<NEW_LINE>try (InputStream in = Environment.class.getResourceAsStream(cliOptionsP...
Environment[] values = values();
1,794,622
public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>if (!shouldHoistConstantExpressions()) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>if (!INIT_LOGGER.matches(tree, state)) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>Type loggerType = LOGGER_TYPE.get(state);<NEW_L...
Tree parent = owner.getLeaf();
56,381
private static Matcher<Task> dependsOn(final Matcher<? extends Iterable<String>> matcher, final boolean matchOnPaths) {<NEW_LINE>return new BaseMatcher<Task>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean matches(Object o) {<NEW_LINE>Task task = (Task) o;<NEW_LINE>Set<String> names <MASK><NEW_LINE>Set<? exten...
= new HashSet<String>();
1,120,244
public AddressSet flowConstants(final Program program, Address flowStart, AddressSetView flowSet, final SymbolicPropogator symEval, final TaskMonitor monitor) throws CancelledException {<NEW_LINE>// follow all flows building up context<NEW_LINE>// use context to fill out addresses on certain instructions<NEW_LINE>Conte...
] refs = instruction.getReferencesFrom();
1,152,273
public ImageTestsConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImageTestsConfiguration imageTestsConfiguration = new ImageTestsConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
class).unmarshall(context));
1,258,432
final BatchDeleteTableRowsResult executeBatchDeleteTableRows(BatchDeleteTableRowsRequest batchDeleteTableRowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteTableRowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,447,445
public void initAndStart() throws Exception {<NEW_LINE>// Init control connection manager<NEW_LINE>controlConnectManager = TConnectionManager.getConnection(conf);<NEW_LINE>// Get ps locations from master and put them to the location cache.<NEW_LINE>locationManager = new PSAgentLocationManager(PSAgentContext.get());<NEW...
"PSAgent get matrices from master," + matrixMetas.size());
57,199
public static PWDKeyMaterial generateKeyMaterial(EllipticCurve curve, Point passwordElement, Chooser chooser) {<NEW_LINE>BigInteger mask;<NEW_LINE>PWDKeyMaterial keyMaterial = new PWDKeyMaterial();<NEW_LINE>if (chooser.getConnectionEndType() == ConnectionEndType.CLIENT) {<NEW_LINE>mask = new BigInteger(1, chooser.getCo...
.mult(mask, passwordElement));
161,277
public BufferedImage filter(BufferedImage src, BufferedImage dst) {<NEW_LINE>int width = src.getWidth();<NEW_LINE>int height = src.getHeight();<NEW_LINE>int[] inPixels = getRGB(src, 0, 0, width, height, null);<NEW_LINE>int w = width;<NEW_LINE>int h = height;<NEW_LINE>int newW = w;<NEW_LINE>int newH = h;<NEW_LINE>switch...
int newIndex = newRow * newW + newCol;
1,308,599
private DocLine[] loadLines(MJournal journal) {<NEW_LINE>ArrayList<DocLine> list = new ArrayList<DocLine>();<NEW_LINE>MJournalLine[] lines = journal.getLines(false);<NEW_LINE>for (int i = 0; i < lines.length; i++) {<NEW_LINE>MJournalLine line = lines[i];<NEW_LINE>DocLine docLine = new DocLine(line, this);<NEW_LINE>// -...
line.getQty(), false);
1,491,108
public Response<Void> deleteEventHubConsumerGroupByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resour...
Utils.getValueFromIdByName(id, "ConsumerGroups");
208,289
static int encodeAsProperties(Query query, ByteBuffer buffer, boolean encodeQueryData) {<NEW_LINE>// Make sure we don't encode anything here if we have turned the property feature off<NEW_LINE>// Due to sendQuery we sometimes end up turning this feature on and then encoding a 0 int as the number of<NEW_LINE>// property...
, createModelMap(query), buffer);
738,938
public AmazonServiceException handle(HttpResponse errorResponse) throws IOException {<NEW_LINE>final InputStream is = errorResponse.getContent();<NEW_LINE>if (is == null) {<NEW_LINE>return newAmazonS3Exception(errorResponse.getStatusText(), errorResponse);<NEW_LINE>}<NEW_LINE>// Try to read the error response<NEW_LINE>...
content = IOUtils.toString(is);
1,693,925
public void start() throws ArkRuntimeException {<NEW_LINE>if (started.compareAndSet(false, true)) {<NEW_LINE>ClassLoader oldClassLoader = ClassLoaderUtils.pushContextClassLoader(getClass().getClassLoader());<NEW_LINE>try {<NEW_LINE>LOGGER.info("Begin to start ArkServiceContainer");<NEW_LINE>injector = Guice.createInjec...
(arkServiceList, new OrderComparator());
6,828
private Map<String, ParameterObject> createHeaderParameters(Context<T> context, List<HttpBinding> bindings, MessageType messageType) {<NEW_LINE>Map<String, ParameterObject> result = new TreeMap<>();<NEW_LINE>for (HttpBinding binding : bindings) {<NEW_LINE>MemberShape member = binding.getMember();<NEW_LINE>ParameterObje...
refSchema = context.inlineOrReferenceSchema(member);
639,845
protected Long countCompletedTask(Business business, DateRange dateRange, String applicationId, String processId, String activityId, String unit, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder(...
TaskCompleted_.activity), activityId));
1,750,327
public void addCoordinate(Object newCoordinate) {<NEW_LINE>List<NLGElement> <MASK><NEW_LINE>if (coordinates == null) {<NEW_LINE>coordinates = new ArrayList<NLGElement>();<NEW_LINE>setFeature(InternalFeature.COORDINATES, coordinates);<NEW_LINE>} else if (coordinates.size() == 0) {<NEW_LINE>setFeature(InternalFeature.COO...
coordinates = getFeatureAsElementList(InternalFeature.COORDINATES);
1,691,815
void recordConstraint(Symbol<Type> type, Klass k, StaticObject loader) {<NEW_LINE>int loaderID = getLoaderID(loader, getMeta());<NEW_LINE>int klass = getKlassID(k);<NEW_LINE>ConstraintBucket bucket = lookup(type);<NEW_LINE>if (bucket == null) {<NEW_LINE>bucket = new ConstraintBucket();<NEW_LINE>Constraint newConstraint...
.create(klass, loaderID));
1,185,849
private static void writeGeometryByteBuffer(ByteBuffer byteBuffer, Geometry geometry) {<NEW_LINE>switch(geometry.getGeometryType()) {<NEW_LINE>case "Point":<NEW_LINE>writePoint(byteBuffer, (Point) geometry);<NEW_LINE>break;<NEW_LINE>case "MultiPoint":<NEW_LINE>writeMultiPoint(byteBuffer, (MultiPoint) geometry);<NEW_LIN...
writePolyline(byteBuffer, geometry, false);
50,488
public static DescribeDBProxyResponse unmarshall(DescribeDBProxyResponse describeDBProxyResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBProxyResponse.setRequestId(_ctx.stringValue("DescribeDBProxyResponse.RequestId"));<NEW_LINE>describeDBProxyResponse.setDBProxyServiceStatus(_ctx.stringValue("DescribeDBProxyRe...
(_ctx.stringValue("DescribeDBProxyResponse.DBProxyInstanceName"));
434,875
private // end of commit().<NEW_LINE>void validateTree(Map<Object, ElementInfo> elementToInfoMap) {<NEW_LINE>// We need a tree, not a forest.<NEW_LINE>HashSet<Object> rootElements = new HashSet<>();<NEW_LINE>for (Map.Entry<Object, ElementInfo> entry : elementToInfoMap.entrySet()) {<NEW_LINE>final Object element = entry...
.format("elementInfo.get(elementInfo.children.get(%s)) == null", i));
1,803,363
public DescribeScheduledQueryResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeScheduledQueryResult describeScheduledQueryResult = new DescribeScheduledQueryResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
int originalDepth = context.getCurrentDepth();
1,583,727
private static void load(EscapeMode e, String pointsData, int size) {<NEW_LINE>e.nameKeys = new String[size];<NEW_LINE>e.codeVals = new int[size];<NEW_LINE>e.codeKeys = new int[size];<NEW_LINE>e.nameVals = new String[size];<NEW_LINE>int i = 0;<NEW_LINE>CharacterReader reader = new CharacterReader(pointsData);<NEW_LINE>...
char codeDelim = reader.current();
1,406,656
public int compareTo(IndexedWord w) {<NEW_LINE>if (this.equals(IndexedWord.NO_WORD)) {<NEW_LINE>if (w.equals(IndexedWord.NO_WORD)) {<NEW_LINE>return 0;<NEW_LINE>} else {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (w.equals(IndexedWord.NO_WORD)) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>// Override the default...
(CoreAnnotations.DocIDAnnotation.class));
15,434
final CreateTaskSetResult executeCreateTaskSet(CreateTaskSetRequest createTaskSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTaskSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
990,497
final DescribeDominantLanguageDetectionJobResult executeDescribeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDominantLanguageDetectionJobRequest);<NEW_LINE>AWSRequestMet...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
742,110
final DeleteApiDestinationResult executeDeleteApiDestination(DeleteApiDestinationRequest deleteApiDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApiDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
779,173
private ClientIOTaskResult.ThreadCountResult runForThreadCount(int numThreads) throws Exception {<NEW_LINE>LOG.info("Running benchmark for thread count: " + numThreads);<NEW_LINE>ExecutorService service = ExecutorServiceFactories.fixedThreadPool("bench-thread", numThreads).create();<NEW_LINE>long durationMs = FormatUti...
= new BenchContext(startMs, endMs);
14,481
protected char[][] findMethodParameterNames(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] paramTypeNames) {<NEW_LINE>if (paramTypeNames == null || declaringTypeName == null)<NEW_LINE>return null;<NEW_LINE>char[][] parameters = null;<NEW_LINE>int length = paramTypeNames.length;<NEW...
parameters = CompletionEngine.createDefaultParameterNames(length);
1,251,844
private void processFundsMigration(Transaction rskTx) throws IOException {<NEW_LINE>Wallet retiringFederationWallet = activations.isActive(RSKIP294) ? getRetiringFederationWallet(true, bridgeConstants.getMaxInputsPerPegoutTransaction()) : getRetiringFederationWallet(true);<NEW_LINE>List<UTXO> availableUTXOs = getRetiri...
panicProcessor.panic("updateCollection", "Unable to complete retiring federation migration.");
1,830,885
public void ignoreFolder(String deviceId, String folderId, String folderLabel) {<NEW_LINE>synchronized (mConfigLock) {<NEW_LINE>for (Device device : mConfig.devices) {<NEW_LINE>if (deviceId.equals(device.deviceID)) {<NEW_LINE>for (IgnoredFolder ignoredFolder : device.ignoredFolders) {<NEW_LINE>if (folderId.equals(ignor...
.toJson(device.ignoredFolders));
797,557
public void doSetup() {<NEW_LINE>a = new VectorFloat3(numElements);<NEW_LINE>b = new VectorFloat3(numElements);<NEW_LINE>c = new float[numElements];<NEW_LINE>Random r = new Random();<NEW_LINE>for (int i = 0; i < numElements; i++) {<NEW_LINE>float[<MASK><NEW_LINE>IntStream.range(0, ra.length).forEach(x -> ra[x] = r.next...
] ra = new float[3];
1,271,084
final PublishTypeResult executePublishType(PublishTypeRequest publishTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(publishTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,038,070
public boolean validate() {<NEW_LINE><MASK><NEW_LINE>if (StringUtil.isEmpty(projectRootPath)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>VirtualFile projectRoot = LocalFileSystem.getInstance().refreshAndFindFileByPath(projectRootPath);<NEW_LINE>if (projectRoot == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if ...
String projectRootPath = myProjectRootComponent.getText();
1,200,548
public void combine(CRFClassifier<IN> crf, double weight) {<NEW_LINE>Timing timer = new Timing();<NEW_LINE>// Check the CRFClassifiers are compatible<NEW_LINE>if (!this.pad.equals(crf.pad)) {<NEW_LINE>throw new RuntimeException("Incompatible CRFClassifier: pad does not match");<NEW_LINE>}<NEW_LINE>if (this.windowSize !...
= crf.featureIndex.size();
1,619,896
public void createHeaders(boolean invalidate, List<IconDataParcelable> uris) {<NEW_LINE>boolean[] headers = new boolean[] { false, false };<NEW_LINE>for (int i = 0; i < getItemsDigested().size(); i++) {<NEW_LINE>if (getItemsDigested().get(i).elem != null) {<NEW_LINE>LayoutElementParcelable nextItem = getItemsDigested()...
uris.add(i, null);
1,267,559
public PageInfo<InlongStreamInfo> listAll(InlongStreamPageRequest request) {<NEW_LINE>LOGGER.debug("begin to list full inlong stream page by {}", request);<NEW_LINE>Preconditions.checkNotNull(request, "request is empty");<NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>Preconditions.checkNotNull(groupId,...
setTotal(pageInfo.getTotal());
871,288
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {<NEW_LINE>HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, file);<NEW_LINE>try {<NEW_LINE>HttpResponse<InputStream> localVarResponse = member...
.currentThread().interrupt();
83,769
public int deformRegion(final Region region, final Vector3 zero, final Vector3 unit, final Expression expression, final int timeout) throws ExpressionException, MaxChangedBlocksException {<NEW_LINE>final Variable x = expression.getSlots().getVariable("x").orElseThrow(IllegalStateException::new);<NEW_LINE>final Variable...
), z.getValue());
1,281,340
public void updateCodegenProject(String userId, CodegenProject project) throws StorageException, NotFoundException {<NEW_LINE>logger.debug("Updating a codegen project: {}", project.getId());<NEW_LINE>try {<NEW_LINE>this.jdbi.withHandle(handle -> {<NEW_LINE><MASK><NEW_LINE>String attrs = CodegenProjectRowMapper.toString...
String statement = sqlStatements.updateCodegenProject();
142,449
public void testSetDeliveryDelayTopicClassicApi(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>TopicConnection con = jmsTCFBindings.createTopicConnection();<NEW_LINE>con.start();<NEW_LINE>TopicSession session = con.createTopicSession(false, Ses...
sendMsg = session.createTextMessage("testSetDeliveryDelayTopicClassicApi");
1,829,236
public void addRenderPartition(JobAddRenderPartRequest request, StreamObserver<JobAddRenderPartResponse> responseObserver) {<NEW_LINE>try {<NEW_LINE>setupJobData(request.getJob());<NEW_LINE>LocalHostAssignment lha = new LocalHostAssignment();<NEW_LINE>lha.setJobId(job.getId());<NEW_LINE>lha.setThreads(request.getThread...
setMaxMemory(request.getMaxMemory());
553,829
public void run() {<NEW_LINE>if (roomChat.getMultiUserChat() != multiUserChat) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>roomChat.setState(RoomState.error);<NEW_LINE>addAuthorizationError(account, room);<NEW_LINE><MASK><NEW_LINE>if (xmppError != null && xmppError.getCondition() == XMPPError.Condition.conflict) {<NEW_LINE>...
XMPPError xmppError = e.getXMPPError();
1,175,534
protected void executeShardAction(ActionListener<MultiGetResponse> listener, AtomicArray<MultiGetItemResponse> responses, Map<ShardId, MultiGetShardRequest> shardRequests) {<NEW_LINE>final AtomicInteger counter = new AtomicInteger(shardRequests.size());<NEW_LINE>for (final MultiGetShardRequest shardRequest : shardReque...
.failures.get(i));
1,398,190
public Flux<NumericResponse<ZUnionStoreCommand, Long>> zUnionStore(Publisher<ZUnionStoreCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Destination key must not be null!");<NEW_LINE>Assert.notEmpty(<MASK><NEW_LINE>byte[] keyBuf = toByteArray(command.getKey(...
command.getSourceKeys(), "Source keys must not be null or empty!");
872,144
protected void rehash(int newCapacity) {<NEW_LINE>int oldLength = this.table.length;<NEW_LINE>Object[] old = this.table;<NEW_LINE>this.allocate(newCapacity);<NEW_LINE>this.occupied = 0;<NEW_LINE>for (int i = 0; i < oldLength; i += 2) {<NEW_LINE>Object cur = old[i];<NEW_LINE>if (cur == CHAINED_KEY) {<NEW_LINE>Object[] c...
]) old[i + 1];
1,600,817
public void testXAOptionBCommit() throws Exception {<NEW_LINE>prepareTRA();<NEW_LINE>resetData(keyCommit03);<NEW_LINE>String deliveryID = "TX_test1c";<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTNonJMSRequired", 203);<NEW_LINE>// Add a FVTXAResou...
xaTerm.commit(xid, false);
896,425
private void connectAlgorithm(NetworkRouteSegment segment, Map<RouteKey, GPXFile> res) throws IOException {<NEW_LINE>RouteKey rkey = segment.routeKey;<NEW_LINE>List<NetworkRouteSegment> loaded = new ArrayList<>();<NEW_LINE>debug("START ", null, segment);<NEW_LINE>loadData(segment, rkey, loaded);<NEW_LINE>System.out.pri...
endChains, CONNECT_POINTS_DISTANCE_MAX / 2, CONNECT_POINTS_DISTANCE_MAX);
699,489
static DefineDeclaration from(Node callNode) {<NEW_LINE>// Match a few different forms, depending on the call node's parent:<NEW_LINE>// 1. EXPR_RESULT: goog.define('foo', 1);<NEW_LINE>// 2. ASSIGN: a.b = goog.define('c', 2);<NEW_LINE>// 3. NAME: var x = goog.define('d', 3);<NEW_LINE>switch(callNode.getParent().getToke...
parent, callNode.getLastChild());
1,141,271
final CreateDocumentationPartResult executeCreateDocumentationPart(CreateDocumentationPartRequest createDocumentationPartRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDocumentationPartRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,333,931
public void initializeDefaultPreferences() {<NEW_LINE>// Init default preferences<NEW_LINE>DBPPreferenceStore store = DBWorkbench.getPlatform().getPreferenceStore();<NEW_LINE>// Navigator<NEW_LINE>PrefUtils.setDefaultPreferenceValue(store, NavigatorPreferences.NAVIGATOR_EXPAND_ON_CONNECT, false);<NEW_LINE>PrefUtils.set...
store, NavigatorPreferences.NAVIGATOR_RESTORE_FILTER, false);
181,028
final ListDataSourceSyncJobsResult executeListDataSourceSyncJobs(ListDataSourceSyncJobsRequest listDataSourceSyncJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDataSourceSyncJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
418,675
public void processPdu(CommandResponderEvent event) {<NEW_LINE>Address addr = event.getPeerAddress();<NEW_LINE>if (addr == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String s = addr.toString().split("/")[0];<NEW_LINE>if (s == null) {<NEW_LINE>logger.error("TRAP: failed to translate address {}", addr);<NEW_LINE>dispat...
addr, event.getPDU());
1,479,330
public void run() {<NEW_LINE>final int NUM_UPDATES = 100;<NEW_LINE>final long NUM_LOOKUPS = 10000000;<NEW_LINE>final List<Long> upd = new ArrayList<Long>(NUM_UPDATES);<NEW_LINE>upd.add(0l);<NEW_LINE>long missRate = 0;<NEW_LINE>long sum = 0;<NEW_LINE>for (long i = 0; i < NUM_LOOKUPS; i++) {<NEW_LINE>long t = i % upd.siz...
get((int) t));
507,318
public Timer cancelTimer(String info) {<NEW_LINE>if (svLogger.isLoggable(Level.FINER)) {<NEW_LINE>svLogger.entering(CLASSNAME, "cancelTimer", info);<NEW_LINE>}<NEW_LINE>if (info == null) {<NEW_LINE>IllegalArgumentException iae = new IllegalArgumentException();<NEW_LINE>svLogger.throwing(CLASSNAME, "cancelTimer", iae);<...
FINEST, CLASSNAME, "cancelTimer", "Timers in ivAllTimers:");
1,542,936
void drawResult(Canvas canvas) {<NEW_LINE>if (barcodeResult.isEmpty())<NEW_LINE>return;<NEW_LINE>float width = canvas.getWidth();<NEW_LINE>float height = canvas.getHeight();<NEW_LINE>float bottomBorder = getBottomBorder(width, height);<NEW_LINE>float leftBorder = getLeftBorder(width, height);<NEW_LINE>textHeigh = Math....
+= (textWidth - measuredWidth) / 2f;
1,795,738
private void updateForkJoinTaskClass(@NonNull final CtClass clazz) throws CannotCompileException, NotFoundException {<NEW_LINE>final String className = clazz.getName();<NEW_LINE>// add new field<NEW_LINE>final String capturedFieldName = "captured$field$added$by$ttl";<NEW_LINE>final CtField capturedField = CtField.make(...
doExecMethod, doExec_renamed_method_name, beforeCode, finallyCode);
1,547,044
protected void instantiateVmFromNewCreate(final InstantiateNewCreatedVmInstanceMsg msg, final SyncTaskChain taskChain) {<NEW_LINE>refreshVO();<NEW_LINE>ErrorCode error = validateOperationByState(msg, self.<MASK><NEW_LINE>if (error != null) {<NEW_LINE>throw new OperationFailureException(error);<NEW_LINE>}<NEW_LINE>error...
getState(), SysErrors.OPERATION_ERROR);
498,819
protected Control createDialogArea(Composite parent) {<NEW_LINE>// Help<NEW_LINE>PlatformUI.getWorkbench().getHelpSystem(<MASK><NEW_LINE>setTitle(Messages.UserPropertiesManagerDialog_1);<NEW_LINE>setMessage(Messages.UserPropertiesManagerDialog_2);<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent...
).setHelp(parent, HELP_ID);
1,622,303
public void updateUserInfo(final String userId) {<NEW_LINE>if (!getUserVisibleHint()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getActivity() != null) {<NEW_LINE>this.getActivity().runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pub...
setText(contact.getDisplayName());
57,616
public InputSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputSource inputSource = new InputSource();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok...
int originalDepth = context.getCurrentDepth();
1,041,122
private byte printKeywordsFor(GherkinDialect dialect) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>List<List<String>> table = new ArrayList<>();<NEW_LINE>addKeywordRow(table, "feature", dialect.getFeatureKeywords());<NEW_LINE>addKeywordRow(table, "background", dialect.getBackgroundKeywords());<NEW_L...
"but", dialect.getButKeywords());
592,316
public Blob createBlob() throws SQLException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "createBlob");<NEW_LINE>Blob blob;<NEW_LINE>try {<NEW_LINE>activate();<NEW_LINE>blob = connImpl.createBlob();<NEW_LINE>if (fr...
) + ".createBlob", "1108", this);
914,686
public Expression<?> visit(Path<?> expr, @Nullable Void context) {<NEW_LINE>expr = (Path<?>) super.visit(expr, null);<NEW_LINE>PathMetadata pathMetadata = expr.getMetadata();<NEW_LINE>if (pathMetadata.getPathType() == PathType.MAPVALUE || pathMetadata.getPathType() == PathType.MAPVALUE_CONSTANT) {<NEW_LINE>Path<?> <MAS...
replacement = replacements.get(expr);
747,089
public static List<MetricMappingInfo> scanMappingInfo(RestHighLevelClient highLevelClient, String indexName, QueryBuilder query) throws IOException {<NEW_LINE>final Scroll scroll = new Scroll(TimeValue.timeValueMinutes(1L));<NEW_LINE>SearchRequest searchRequest = new SearchRequest(indexName);<NEW_LINE>searchRequest.scr...
String scrollId = searchResponse.getScrollId();
1,802,364
public String WSTXLPS10FVT(String test) {<NEW_LINE>XAResourceImpl.clear();<NEW_LINE>final ExtendedTransactionManager TM = TransactionManagerFactory.getTransactionManager();<NEW_LINE>boolean result1 = false, result2 = false, result3 = false, result4 = false, result5 = false;<NEW_LINE>try {<NEW_LINE>XAResourceImpl onePha...
TM.enlist(xaRes3, recoveryId3);
826,454
public void createWithByForField(AccessLevel level, EclipseNode fieldNode, EclipseNode sourceNode, boolean whineIfExists, List<Annotation> onMethod) {<NEW_LINE>ASTNode source = sourceNode.get();<NEW_LINE>if (fieldNode.getKind() != Kind.FIELD) {<NEW_LINE>sourceNode.addError("@WithBy is only supported on a class or a fie...
EclipseNode typeNode = fieldNode.up();
1,548,168
public View onCreateViewWithToolbar(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.scene_history, container, false);<NEW_LINE>View content = ViewUtils.$$(view, R.id.content);<NEW_LINE>mRecyclerView = (EasyRecyclerView) ViewUt...
Resources resources = context.getResources();
435,326
protected void onFinishInflate() {<NEW_LINE>super.onFinishInflate();<NEW_LINE>mDivider = findViewById(R.id.divider);<NEW_LINE>for (int i = 0; i < mYearInput.length; i++) {<NEW_LINE>mYearInput[i] = 0;<NEW_LINE>}<NEW_LINE>mKeyboardIndicator = (UnderlinePageIndicatorPicker) findViewById(R.id.keyboard_indicator);<NEW_LINE>...
findViewById(R.id.keyboard_pager);
980,944
private Authorization authenticate(@Nullable Credential credential, Map<String, String> repositoryScopes) throws RegistryAuthenticationFailedException, RegistryCredentialsNotSentException {<NEW_LINE><MASK><NEW_LINE>String imageName = registryEndpointRequestProperties.getImageName();<NEW_LINE>try {<NEW_LINE>URL url = ge...
String registryUrl = registryEndpointRequestProperties.getServerUrl();
796,219
public boolean acceptIndexMatch(String documentPath, SearchPattern indexRecord, SearchParticipant participant, AccessRuleSet access) {<NEW_LINE>SuperTypeReferencePattern record = (SuperTypeReferencePattern) indexRecord;<NEW_LINE>boolean isLocalOrAnonymous = record.enclosingTypeName == IIndexConstants.ONE_ZERO;<NEW_LINE...
lastSlash = documentPath.lastIndexOf('/');
1,152,762
private static void collectInstructionsRecursively(VirtualFile directory, final IncrementalCompilerInstructionCreatorBase creator, @Nullable final PackagingFileFilter filter, final ProjectFileIndex index, final boolean copyExcluded) {<NEW_LINE>final FileTypeManager fileTypeManager = FileTypeManager.getInstance();<NEW_L...
child, child.getName());
1,250,043
public static ArJavaI420Buffer wrap(int var0, int var1, ByteBuffer var2, int var3, ByteBuffer var4, int var5, ByteBuffer var6, int var7, Runnable var8) {<NEW_LINE>if (var2 != null && var4 != null && var6 != null) {<NEW_LINE>if (var2.isDirect() && var4.isDirect() && var6.isDirect()) {<NEW_LINE>var2 = var2.slice();<NEW_L...
var5, var6, var7, var8);
1,052,202
static Map<ChannelOption<?>, Object> applyDefaultChannelOptions(boolean enabled, TransportType transportType, Map<ChannelOption<?>, Object> channelOptions, long idleTimeoutMillis, long pingIntervalMillis) {<NEW_LINE>if (!enabled) {<NEW_LINE>return channelOptions;<NEW_LINE>}<NEW_LINE>final ImmutableMap.Builder<ChannelOp...
Ints.saturatedCast(idleTimeoutMillis + TCP_USER_TIMEOUT_BUFFER_MILLIS);
1,698,486
public void optionsChanged(DebugOptions options) {<NEW_LINE>boolean debug = options.getBooleanOption(DEBUG, false);<NEW_LINE>BufferManager.VERBOSE = debug && options.getBooleanOption(BUFFER_MANAGER_DEBUG, false);<NEW_LINE>JavaBuilder.DEBUG = debug && options.getBooleanOption(BUILDER_DEBUG, false);<NEW_LINE>Compiler.DEB...
PERF_VARIABLE_INITIALIZER = PerformanceStats.isEnabled(VARIABLE_INITIALIZER_PERF);
1,591,966
public static UniformPair<EventBean[]> finalizeOutputMaySortMayRStream(List<EventBean> newEvents, List<Object> newEventsSortKey, List<EventBean> oldEvents, List<Object> oldEventsSortKey, boolean selectRStream, OrderByProcessor orderByProcessor, ExprEvaluatorContext exprEvaluatorContext) {<NEW_LINE>EventBean[] newEvents...
sortWOrderKeys(oldEventsArr, sortKeysOld, exprEvaluatorContext);
1,065,590
private static void onVideoReturnedFromCamera(Activity activity, @NonNull FilePicker.Callbacks callbacks) {<NEW_LINE>try {<NEW_LINE>String lastVideoUri = PreferenceManager.getDefaultSharedPreferences(activity).getString(KEY_VIDEO_URI, null);<NEW_LINE>if (!TextUtils.isEmpty(lastVideoUri)) {<NEW_LINE>revokeWritePermissio...
(activity, singleFileList(photoFile));
371,545
public static void internStringsInElement(@Nonnull Element element, @Nonnull Interner<String> interner) {<NEW_LINE>element.setName(intern(interner, element.getName()));<NEW_LINE>for (Attribute attr : element.getAttributes()) {<NEW_LINE>attr.setName(intern(interner, attr.getName()));<NEW_LINE>attr.setValue(intern(intern...
, text.getText()));
1,815,267
public void execute(Arguments arguments, ClassLoader classLoader) {<NEW_LINE>// Get the selector from --selector or from STDIN/<NEW_LINE>Selector selector = arguments.has("--selector") ? Selector.parse(arguments.parameter("--selector")) : Selector.parse(IoUtils.toUtf8String(System.in));<NEW_LINE>// Don't write the summ...
match)).build());
1,740,236
static void listDevices(List<Device> collectTo) {<NEW_LINE>collectTo.clear();<NEW_LINE>Device loading = new Device().assignId(ID_UNKNOWN).assignName(Bundle.MSG_Loading()).<MASK><NEW_LINE>collectTo.add(loading);<NEW_LINE>ProcessBuilder pb = ProcessBuilder.getLocal();<NEW_LINE>pb.setExecutable("instruments");<NEW_LINE>pb...
assignInfo(Bundle.MSG_Loading());
232,004
public void initComponents() {<NEW_LINE>jPanel = new JPanel();<NEW_LINE>jScrollPane1 = new JScrollPane(jPanel);<NEW_LINE>jScrollPane1.getViewport().setBackground(new Color(0, 0, 0, 0));<NEW_LINE>hand = new mage.client.cards.Cards(true, jScrollPane1);<NEW_LINE>hand.setCardDimension(GUISizeHelper.handCardDimension);<NEW_...
add(jScrollPane1, BorderLayout.CENTER);
152,555
private void addInternal(String name, int startIndex, boolean isMethod, Type type, HasDeclaringClass ref) {<NEW_LINE>int ix = <MASK><NEW_LINE>String segment;<NEW_LINE>if (ix == -1) {<NEW_LINE>segment = name.substring(startIndex);<NEW_LINE>} else {<NEW_LINE>segment = name.substring(startIndex, ix);<NEW_LINE>}<NEW_LINE>P...
name.indexOf('.', startIndex);
1,456,138
final UpdateUserRoutingProfileResult executeUpdateUserRoutingProfile(UpdateUserRoutingProfileRequest updateUserRoutingProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserRoutingProfileRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,660,722
public TrainingAndTestSet nextPartitioning() {<NEW_LINE>if (fold >= nfold) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final int tesize = sizes[fold], trsize = bundle.dataLength() - tesize;<NEW_LINE>MultipleObjectsBundle training = new MultipleObjectsBundle();<NEW_LINE>MultipleObjectsBundle test = new MultipleObjectsBu...
.data(i, c));
263,935
public InteractionResult use(BlockState state, Level worldIn, BlockPos pos, Player player, InteractionHand handIn, BlockHitResult hit) {<NEW_LINE>if (!player.mayBuild())<NEW_LINE>return InteractionResult.PASS;<NEW_LINE>ItemStack heldItem = player.getItemInHand(handIn);<NEW_LINE>boolean isSlimeBall = heldItem.is(Tags.It...
Vec3 vec = hit.getLocation();
1,650,376
public static void optimizeNodeRelation(StreamInfo streamInfo, List<TransformResponse> transformResponses) {<NEW_LINE>if (CollectionUtils.isEmpty(transformResponses)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, TransformDefinition> transformTypeMap = transformResponses.stream().collect(Collectors.toMap(Transform...
> outputs = relation.getOutputs();
602,309
protected void postConstruct(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE>ResultsLocal results = ResultsLocalBean.getSFBean();<NEW_LINE>results.addPostConstruct(CLASS_NAME, "postConstruct");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<...
throw new EJBException("unexpected Throwable", e);
462,462
private Mono<Response<Void>> deleteWithResponseAsync(String scope, String policyExemptionName, Context context) {<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>}<NEW_LINE>if (sco...
this.client.mergeContext(context);
989,683
public static void logElapsed(int connectionId, long timeElapsedNanos, Category category, Loggable loggable) {<NEW_LINE>// usually an expensive operation => cache where possible<NEW_LINE>String sql = loggable.getSql();<NEW_LINE>String url = loggable.getConnectionInformation().getUrl();<NEW_LINE>if (logger != null && me...
+ ", meetsTreshold=" + meetsThresholdRequirement(timeElapsedNanos));