idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,566,713
public final static AuthUserSession parseHttpResponse(String responseStr) {<NEW_LINE>if (responseStr == null || responseStr.isEmpty()) {<NEW_LINE>throw new AuthInvalidParameterException("Invalid (null) response from Amazon Cognito Auth endpoint");<NEW_LINE>}<NEW_LINE>AccessToken accessToken = new AccessToken(null);<NEW...
.getString(ClientConstants.HTTP_RESPONSE_ID_TOKEN));
840,561
private <F> void parseFrameSections(boolean eof, Set<OntologyAxiomPair> axioms, F frameSubject, Map<ManchesterOWLSyntax, AnnAxiom<F, ?>> sectionParsers) {<NEW_LINE>while (true) {<NEW_LINE>String sect = peekToken();<NEW_LINE>AnnAxiom<F, ?> parser = sectionParsers.get(parse(sect));<NEW_LINE>if (parser != null) {<NEW_LINE...
expected = new ArrayList<>();
1,735,014
public static <T> String applySortingPagingQueryOptions(Class<T> entityClass, SpannerPageableQueryOptions options, String sql, SpannerMappingContext mappingContext, boolean fetchInterleaved) {<NEW_LINE>SpannerPersistentEntity<?> persistentEntity = mappingContext.getPersistentEntity(entityClass);<NEW_LINE>// Cloud Spann...
getChildrenSubquery(persistentEntity, mappingContext) : "";
410,540
private void addConstructor(AnnotationTypeDeclaration node, Map<ExecutableElement, VariableElement> fieldElements) {<NEW_LINE><MASK><NEW_LINE>String typeName = nameTable.getFullName(type);<NEW_LINE>FunctionDeclaration constructorDecl = new FunctionDeclaration("create_" + typeName, type.asType());<NEW_LINE>Block constru...
TypeElement type = node.getTypeElement();
633,539
public void rebalance(final URI uri, final String clientRole) {<NEW_LINE>if (!isWorkerServiceAvailable()) {<NEW_LINE>throwUnavailableException();<NEW_LINE>}<NEW_LINE>if (worker().getWorkerConfig().isAuthorizationEnabled() && !isSuperUser(clientRole)) {<NEW_LINE>log.error("Client [{}] is not authorized to rebalance clus...
RestException(Status.BAD_REQUEST, "Rebalance already in progress");
157,802
protected ResolveResult[] innerResolve(boolean caseSensitive, @NotNull PsiFile file) {<NEW_LINE>if (isFirst()) {<NEW_LINE>if (".".equals(getCanonicalText())) {<NEW_LINE>PsiDirectory directory = getDirectory();<NEW_LINE>return directory != null ? new PsiElementResolveResult[] { new PsiElementResolveResult(directory) } :...
[result.size()]);
624,018
public void transition(PSAttempt psAttempt, PSAttemptEvent event) {<NEW_LINE>psAttempt.setFinishTime();<NEW_LINE>// send PS_ATTEMPT_FAILED to AMParameterServer, AMParameterServer will retry another attempt<NEW_LINE>// or failed<NEW_LINE>switch(finishState) {<NEW_LINE>case FAILED:<NEW_LINE>psAttempt.getContext().getEven...
).unRegister(psAttempt.attemptId);
1,438,224
public int networkDelayTime(int[][] times, int N, int K) {<NEW_LINE>// Dijkstra<NEW_LINE>Map<Integer, List<int[]>> graph = new HashMap();<NEW_LINE>for (int[] edge : times) {<NEW_LINE>if (!graph.containsKey(edge[0]))<NEW_LINE>graph.put(edge[0], new ArrayList<int[]>());<NEW_LINE>graph.get(edge[0]).add(new int[] { edge[1]...
dist.put(K, 0);
364,474
public void writeToParcel(Parcel parcel, int i) {<NEW_LINE>parcel.writeString(id);<NEW_LINE>parcel.writeString(fullName);<NEW_LINE>parcel.writeString(subredditName);<NEW_LINE>parcel.writeString(subredditNamePrefixed);<NEW_LINE>parcel.writeString(subredditIconUrl);<NEW_LINE>parcel.writeString(author);<NEW_LINE>parcel.wr...
(isImgur ? 1 : 0));
838,827
private String safelyExecuteRequest(String url, ClassicHttpRequest request) {<NEW_LINE>if (hostHeader != null) {<NEW_LINE>request.addHeader(HOST, hostHeader);<NEW_LINE>}<NEW_LINE>List<HttpHeader> httpHeaders = authenticator.generateAuthHeaders();<NEW_LINE>for (HttpHeader header : httpHeaders) {<NEW_LINE>for (String val...
read(body, Errors.class);
51,878
public T overwrite(@NonNull final T other) {<NEW_LINE>checkNotNull(other, "Can't overwrite with null value");<NEW_LINE>if (equals(other)) {<NEW_LINE>return (T) this;<NEW_LINE>}<NEW_LINE>for (Field field : getTypeParameterClass().getDeclaredFields()) {<NEW_LINE>final int modifiers = field.getModifiers();<NEW_LINE>if (ha...
, field.get(other));
157,247
public static String[] formatBytesParts(long bytes, boolean showTB) {<NEW_LINE>DecimalFormat formatter = new DecimalFormat(FILE_SIZE_FORMAT_PATTERN);<NEW_LINE>if (bytes < 1048576) {<NEW_LINE>// less than 1MB<NEW_LINE>return new String[] { formatter.format(bytes / 1024.0), "KB" };<NEW_LINE>}<NEW_LINE>if (bytes < 1073741...
1024.0 * 1024.0)), "TB" };
630,747
private void writeFileHistories(IndentXmlStreamWriter xmlOut, Collection<PartialFileHistory> fileHistories) throws XMLStreamException, IOException {<NEW_LINE>xmlOut.writeStartElement("fileHistories");<NEW_LINE>for (PartialFileHistory fileHistory : fileHistories) {<NEW_LINE>xmlOut.writeStartElement("fileHistory");<NEW_L...
"linkTarget", fileVersion.getLinkTarget());
1,447,804
private static String extractXMLCertificateSubject(String certificateInputDirectory, String rootCertificate) {<NEW_LINE>// Register XmlClasses and Types<NEW_LINE>Registry.getInstance();<NEW_LINE>CcaFileManager ccaFileManager = CcaFileManager.getReference(certificateInputDirectory);<NEW_LINE>// Load X.509 root certifica...
certificateFactory = CertificateFactory.getInstance("X.509");
595,240
public Integer handleUpload(JobChunk<Integer> jc, File upload) {<NEW_LINE>String karateLog = upload.getPath() + File.separator + "karate.log";<NEW_LINE>File karateLogFile = new File(karateLog);<NEW_LINE>if (karateLogFile.exists()) {<NEW_LINE>karateLogFile.renameTo(new File(karateLog + ".txt"));<NEW_LINE>}<NEW_LINE>Stri...
= buildDir + File.separator + reportDir;
993,475
public final // /home/matthias/src/netbeans/ide/css.lib/src/org/netbeans/modules/css/lib/Css3.g:548:1: vendorAtRule : ( moz_document | webkitKeyframes | generic_at_rule );<NEW_LINE>void vendorAtRule() throws RecognitionException {<NEW_LINE>try {<NEW_LINE>dbg.enterRule(getGrammarFileName(), "vendorAtRule");<NEW_LINE>if ...
"", 122, 0, input);
473,446
final DisassociateTeamMemberResult executeDisassociateTeamMember(DisassociateTeamMemberRequest disassociateTeamMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateTeamMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,148,834
public Message unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Message message = new Message();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>i...
int originalDepth = context.getCurrentDepth();
627,131
private static MediaType create(String type, String subtype, Multimap<String, String> parameters) {<NEW_LINE>checkNotNull(type);<NEW_LINE>checkNotNull(subtype);<NEW_LINE>checkNotNull(parameters);<NEW_LINE>String normalizedType = normalizeToken(type);<NEW_LINE>String normalizedSubtype = normalizeToken(subtype);<NEW_LINE...
normalizeToken(entry.getKey());
445,302
public static QueryRecordPlansResponse unmarshall(QueryRecordPlansResponse queryRecordPlansResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRecordPlansResponse.setRequestId(_ctx.stringValue("QueryRecordPlansResponse.RequestId"));<NEW_LINE>queryRecordPlansResponse.setSuccess(_ctx.booleanValue("QueryRecordPlansRespons...
("QueryRecordPlansResponse.Data.List[" + i + "].TemplateId"));
1,591,524
public void cleanUpFeature(ClusterService clusterService, Client client, ActionListener<ResetFeatureStateStatus> listener) {<NEW_LINE>Collection<SystemDataStreamDescriptor> dataStreamDescriptors = getSystemDataStreamDescriptors();<NEW_LINE>if (dataStreamDescriptors.isEmpty() == false) {<NEW_LINE>try {<NEW_LINE>Request ...
cleanUpFeature(clusterService, client, listener);
952,693
final CreatePoolResult executeCreatePool(CreatePoolRequest createPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
224,844
public void afterCreateL2Network(L2NetworkInventory l2Network) {<NEW_LINE>if (!supportedL2NetworkTypes.contains(l2Network.getType())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>NetworkServiceProviderVO vo = getRouterVO();<NEW_LINE>NetworkServiceProvider router = providerFactory.getNetworkServiceProvider(vo);<NEW_LINE>try {...
setNetworkServiceProviderUuid(vo.getUuid());
1,556,697
public RefactoringUI create(CompilationInfo info, TreePathHandle[] handles, FileObject[] files, NonRecursiveFolder[] packages) {<NEW_LINE>assert handles.length == 1;<NEW_LINE>Collection<? extends ParameterInfo> params = lookup.lookupAll(ParameterInfo.class);<NEW_LINE>final ParameterInfo[] configuration = params.isEmpty...
getTrees().getPath(method);
1,408,237
public ExperimentTemplateS3LogConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExperimentTemplateS3LogConfiguration experimentTemplateS3LogConfiguration = new ExperimentTemplateS3LogConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
class).unmarshall(context));
1,508,276
public void performOperationStep(DeploymentOperation operationContext) {<NEW_LINE>final AbstractProcessApplication processApplication = operationContext.getAttachment(PROCESS_APPLICATION);<NEW_LINE>final Map<URL, ProcessesXml> processesXmls = operationContext.getAttachment(PROCESSES_XML_RESOURCES);<NEW_LINE>final Map<S...
processApplicationInfo = createProcessApplicationInfo(processApplication, processArchiveDeploymentMap);
1,293,317
private String generateScriptsForDynamicOrderedNumbers() {<NEW_LINE>StringBuilder script = new StringBuilder();<NEW_LINE>// Start if<NEW_LINE>String startIf = formatter.getStartIfDirectiveIfExists(DocxContextHelper.NUMBERING_REGISTRY_KEY);<NEW_LINE>script.append(startIf);<NEW_LINE>String listInfos = formatter.formatAsS...
DocxContextHelper.NUMBERING_REGISTRY_KEY, NumberingRegistry.numbersMethod);
620,294
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
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...
message = latestMessageForEachContact.get(userId);
1,013,393
public void deleteFoldersId(String folderId, String ifMatch, Boolean recursive) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'folderId' is set<NEW_LINE>if (folderId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'folderId' when...
final String[] localVarContentTypes = {};
1,236,847
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>// handle menu item selection<NEW_LINE>// if-else is used because this sample is used elsewhere as a Library module<NEW_LINE>int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.Cities) {<NEW_LINE>if (mLayers.get(0).isVisible() && mCities.isChecked())...
0).getOpacity()));
1,358,818
private CollisionShape createShape(Transform vertexToShape, Vector3f center, VectorSet vertexLocations) {<NEW_LINE>int numVectors = vertexLocations.numVectors();<NEW_LINE>assert numVectors > 0 : numVectors;<NEW_LINE>Vector3f tempLocation = new Vector3f();<NEW_LINE>int numPoints = vertexLocations.numVectors();<NEW_LINE>...
.y = buffer.get();
1,749,914
public void removeMap(final JSONArray args, final CallbackContext callbackContext) throws JSONException {<NEW_LINE>String mapId = args.getString(0);<NEW_LINE>if (mPluginLayout.pluginOverlays.containsKey(mapId)) {<NEW_LINE>IPluginView pluginOverlay = mPluginLayout.removePluginOverlay(mapId);<NEW_LINE>if (pluginOverlay !...
getClass().getDeclaredField("pluginMap");
335,697
public void run(RegressionEnvironment env) {<NEW_LINE>final long startTime = 1000;<NEW_LINE>sendTimer(env, startTime);<NEW_LINE>String epl = "@name('s0') select symbol, sum(price) as s from SupportMarketDataBean#time_length_batch(5, 10, \"START_EAGER\") group by symbol order by symbol asc";<NEW_LINE>env.compileDeployAd...
sendTimer(env, startTime + 11000);
439,170
public FieldValue applyTo(FieldValue fval) {<NEW_LINE>if (fval instanceof Array) {<NEW_LINE>Array array = (Array) fval;<NEW_LINE>FieldValue element = array.getFieldValue(((IntegerFieldValue) value).getInteger());<NEW_LINE>element = update.applyTo(element);<NEW_LINE>array.set(((IntegerFieldValue) value).getInteger(), el...
wset.put(value, weight);
939,879
final DeleteOptedOutNumberResult executeDeleteOptedOutNumber(DeleteOptedOutNumberRequest deleteOptedOutNumberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteOptedOutNumberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
677,151
public okhttp3.Call readNamespacedEndpointSliceCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpoin...
localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
1,599,121
final DeleteTemplateResult executeDeleteTemplate(DeleteTemplateRequest deleteTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteTempl...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
309,513
private void generate(final Instant start, final Instant end, final ResourceId resourceId) {<NEW_LINE>if (start == null || end == null || resourceId == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ResourceType resourceType = getResourceType(resourceId);<NEW_LINE>final TemporalUnit durationUnit = resourceType.getD...
BigDecimal.ZERO, rowKey_DailyCapacity, columnKey);
1,111,592
public void translateTag(NbtMapBuilder builder, CompoundTag tag, int blockState) {<NEW_LINE>if (tag == null || tag.size() < 5) {<NEW_LINE>// These values aren't here<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Java infers from the block state, but Bedrock needs it in the tag<NEW_LINE>builder.put("conditionalMode", BlockSta...
"UpdateLastExecution")).getValue());
1,719,469
public void postAction(Object action, final Runnable actionPerformedNotifier) {<NEW_LINE>logger.fine("S StartActionProvider.postAction ()");<NEW_LINE>JPDADebuggerImpl debugger = (JPDADebuggerImpl) lookupProvider.lookupFirst(null, JPDADebugger.class);<NEW_LINE>if (debugger != null && debugger.getVirtualMachine() != null...
logger.fine("S StartActionProvider." + "postAction () setStarting");
1,043,422
public static Map<String, String> byBufferedReader(String filePath, DupKeyOption dupKeyOption) {<NEW_LINE>HashMap<String, String> map = new HashMap<>();<NEW_LINE>String line;<NEW_LINE>try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {<NEW_LINE>while ((line = reader.readLine()) != null) {<NEW_L...
map.putIfAbsent(key, value);
799,883
final ListInvitationsResult executeListInvitations(ListInvitationsRequest listInvitationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInvitationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListInvitations");
414,147
final SubscribeResult executeSubscribe(SubscribeRequest subscribeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(subscribeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
false), new SubscribeResultJsonUnmarshaller());
822,720
public final long ctxTypeGenericNew(long typeHandle) {<NEW_LINE>Counter.UpcallTypeGenericNew.increment();<NEW_LINE>Object type = getObjectForHPyHandle(GraalHPyBoxing.unboxHandle(typeHandle)).getDelegate();<NEW_LINE>if (type instanceof PythonClass) {<NEW_LINE>PythonClass clazz = (PythonClass) type;<NEW_LINE>PythonObject...
, basicSize, (byte) 0);
672,398
private static void tryAssertion12(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "volume", "sum(price)" };<NEW_LINE>ResultAssertTestResult ...
"IBM", 100L, 72d } });
1,755,108
final void updatePresence() {<NEW_LINE>if (connection == null) {<NEW_LINE>parent.getEss().getLogger().warning(tl("xmppNotConfigured"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int usercount;<NEW_LINE>final StringBuilder stringBuilder = new StringBuilder();<NEW_LINE>usercount = parent.getEss().getOnlinePlayers().size...
, Presence.Mode.dnd));
1,656,708
final CreateStackInstancesResult executeCreateStackInstances(CreateStackInstancesRequest createStackInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStackInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,337,906
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<...
constructorMethod.addInterceptor(FluxAndMonoOperatorConstructorInterceptor.class);
211,561
// this is dynamic, don't have concrete classes for the FieldDef<NEW_LINE>@SuppressWarnings({ "unchecked", "rawtypes" })<NEW_LINE>private ActionMetadata toActionMetadata(ActionSchema action) {<NEW_LINE>ArrayList<FieldDef<?>> fieldDefs = new ArrayList<>();<NEW_LINE>if (action.hasParameters()) {<NEW_LINE>for (ParameterSc...
?> returnClass = toType(returnType);
916,271
public void startDrag(DragSourceContext dsc, Cursor c, Image di, Point p) throws InvalidDnDOperationException {<NEW_LINE>if (getTrigger().getTriggerEvent() == null) {<NEW_LINE>throw new InvalidDnDOperationException("DragGestureEvent has a null trigger");<NEW_LINE>}<NEW_LINE>dragSourceContext = dsc;<NEW_LINE>cursor = c;...
().getFlavorMap()));
1,403,356
void anonfun_9(Guard pc_21, EventBuffer effects, NamedTupleVS var_rTrans) {<NEW_LINE>PrimitiveVS<Machine> var_$tmp0 = new PrimitiveVS<Machine>().restrict(pc_21);<NEW_LINE>PrimitiveVS<Machine> var_$tmp1 = new PrimitiveVS<Machine>().restrict(pc_21);<NEW_LINE>PrimitiveVS<Event> var_$tmp2 = new PrimitiveVS<Event>(_null).re...
var_$tmp3.updateUnderGuard(pc_21, temp_var_73);
554,448
public void checkAvailability(final ReturnValueCompletion<Boolean> completion) {<NEW_LINE>ConsoleProxyCommands.CheckAvailabilityCmd cmd = new ConsoleProxyCommands.CheckAvailabilityCmd();<NEW_LINE>cmd.setProxyHostname(self.getProxyHostname());<NEW_LINE>cmd.<MASK><NEW_LINE>cmd.setTargetSchema(self.getTargetSchema());<NEW...
setProxyPort(self.getProxyPort());
1,052,119
public static void convolve5(Kernel2D_S32 kernel, GrayS32 src, GrayS32 dest) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dest.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>final int kernelRadius = kernel.getRadius();<NEW_LINE>// CONC...
dataSrc[indexSrc++]) * k3;
289,086
static void selectNextPrev(final boolean next, boolean isQuery, JTree tree) {<NEW_LINE>int[] rows = tree.getSelectionRows();<NEW_LINE>int newRow = rows == null || rows.length == 0 ? 0 : rows[0];<NEW_LINE>int maxcount = tree.getRowCount();<NEW_LINE>CheckNode node;<NEW_LINE>do {<NEW_LINE>if (next) {<NEW_LINE>newRow++;<NE...
(CheckNode) path.getLastPathComponent();
176,074
public void read(org.apache.thrift.protocol.TProtocol prot, BuckCacheMultiContainsRequest struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (inco...
STRUCT, iprot.readI32());
1,133,239
public static void main(String[] args) {<NEW_LINE>// Queue for incoming messages represented as Flux<NEW_LINE>// Imagine that every fireAndForget that is pushed is processed by a worker<NEW_LINE>BlockingQueue<Runnable> tasksQueue <MASK><NEW_LINE>ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, CONCURRE...
= new ArrayBlockingQueue<>(QUEUE_CAPACITY);
1,791,802
public GetScalingPlanResourceForecastDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetScalingPlanResourceForecastDataResult getScalingPlanResourceForecastDataResult = new GetScalingPlanResourceForecastDataResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCu...
int originalDepth = context.getCurrentDepth();
126,223
void storeFinishedSessions(List<FinishedSession> sessions) {<NEW_LINE>if (sessions.isEmpty())<NEW_LINE>return;<NEW_LINE>if (storeLocation.toFile().exists()) {<NEW_LINE>sessions.addAll(loadFinishedSessions());<NEW_LINE>}<NEW_LINE>List<String> lines = sessions.stream().map(FinishedSession::serializeCSV).collect(Collector...
).getAbsolutePath() + " if you wish to store missing sessions:");
180,813
default void applyTaskIdHistoryBaseQuery(StringBuilder sqlBuilder, Map<String, Object> binds, Optional<String> requestId, Optional<String> deployId, Optional<String> runId, Optional<String> host, Optional<ExtendedTaskState> lastTaskStatus, Optional<Long> startedBefore, Optional<Long> startedAfter, Optional<Long> update...
"requestId", requestId.get());
1,109,658
protected void createBpmnZipEntries(List<AppModelDefinition> modelDefinitions, ZipOutputStream zipOutputStream, ConverterContext converterContext) throws Exception {<NEW_LINE>for (AppModelDefinition modelDef : modelDefinitions) {<NEW_LINE>Model model = modelService.<MASK><NEW_LINE>List<Model> referencedModels = modelRe...
getModel(modelDef.getId());
1,202,878
private ORawBuffer readRecord(final ORecordId rid, final boolean prefetchRecords) {<NEW_LINE>checkOpennessAndMigration();<NEW_LINE>if (!rid.isPersistent()) {<NEW_LINE>throw new ORecordNotFoundException(rid, "Cannot read record " + rid + " since the position is invalid in database '" + name + '\'');<NEW_LINE>}<NEW_LINE>...
doReadRecord(cluster, rid, prefetchRecords);
89,706
private void registerActions() {<NEW_LINE>InputMap inputMap = getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);<NEW_LINE>ActionMap actionMap = getActionMap();<NEW_LINE>final String filterKey = org.netbeans.lib.profiler.ui.swing.FilterUtils.FILTER_ACTION_KEY;<NEW_LINE>Action filterAction = new AbstractAction()...
filterKey, filterAction, actionMap, inputMap);
1,752,501
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>pastOccurrencesCheckbox = <MASK><NEW_LINE>crFrequencyList = new org.sleuthkit.autopsy.guiutils.CheckBoxListPanel<>();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocal...
new javax.swing.JCheckBox();
61,854
public void execute() {<NEW_LINE>updateOutputComboBox();<NEW_LINE>boolean hasRelevantFigureSettings = has("fig.width") || has("fig.height");<NEW_LINE>useCustomFigureCheckbox_.setValue(hasRelevantFigureSettings);<NEW_LINE>if (hasRelevantFigureSettings)<NEW_LINE>useCustomFigureCheckbox_.setVisible(true);<NEW_LINE>figureD...
.setText(get("fig.width"));
175,601
private void init(ApplicationListener listener, AndroidApplicationConfiguration config, boolean isForView) {<NEW_LINE>if (this.getVersion() < MINIMUM_SDK) {<NEW_LINE>throw new GdxRuntimeException("libGDX requires Android API Level " + MINIMUM_SDK + " or later.");<NEW_LINE>}<NEW_LINE>GdxNativesLoader.load();<NEW_LINE>se...
.clipboard = new AndroidClipboard(this);
434,385
private Pair<KeyspaceMetadata, UserType> createOrUpdateUserType(KeyspaceMetadata ksm, String typeName, Map<String, CQL3Type.Raw> fields, final Collection<Mutation> mutations, final Collection<Event.SchemaChange> events) {<NEW_LINE>ColumnIdentifier ci = new ColumnIdentifier(typeName, true);<NEW_LINE>Optional<UserType> u...
ksm.name, typeName, fields);
1,273,324
public void layout(LayoutContext c, int contentStart) {<NEW_LINE>BlockFormattingContext bfc = new BlockFormattingContext(this, c);<NEW_LINE>c.pushBFC(bfc);<NEW_LINE>addBoxID(c);<NEW_LINE>this.calcDimensions(c);<NEW_LINE>int colCount = getStyle().columnCount();<NEW_LINE>int colGapCount = colCount - 1;<NEW_LINE>float col...
setContainingLayer(this.getContainingLayer());
1,701,897
protected void createTask(com.android.build.gradle.api.BaseVariant variant, TaskProvider<?> parentTask, com.android.build.gradle.api.BaseVariantOutput output, Consumer<LegacyGeneratePackageTreeTask> applyInputConfiguration) {<NEW_LINE>String slug = StringUtils.capitalize(variant.getName());<NEW_LINE>String path = Strin...
).set(getExt());
924,886
public ListResourcesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResourcesResult listResourcesResult = new ListResourcesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
1,811,896
public static TypeSpecDataHolder generateDelegates(SpecModel specModel, Map<Class<? extends Annotation>, DelegateMethodDescription> delegateMethodsMap, EnumSet<RunMode> runMode) {<NEW_LINE>TypeSpecDataHolder.Builder typeSpecDataHolder = TypeSpecDataHolder.newBuilder();<NEW_LINE>boolean hasAttachDetachCallback = false;<...
typeSpecDataHolder.addMethod(generateHasAttachDetachCallback());
856,539
private static int shop(int money, int g) {<NEW_LINE>// fail, return a large negative number (1B)<NEW_LINE>if (money < 0)<NEW_LINE>return -1000000000;<NEW_LINE>// we have bought last garment, done<NEW_LINE>if (g == C)<NEW_LINE>return M - money;<NEW_LINE>// this state has been visited before<NEW_LINE>if (memo[money][g] ...
[money][g] = ans;
1,845,302
public static void main(String[] args) {<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph = new EdgeWeightedDigraph(8);<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(4, 5, 0.35));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(5, 4, 0.35));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(4, 7, 0.37...
edge.to() + " ");
1,757,217
protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = <MASK><NEW_LINE>JLabel nameLabel = new JLabel(IdeBundle.message("label.todo.filter.name"));<NEW_LINE>panel.add(nameLabel, new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 10), 0, 0));<NEW_LIN...
new JPanel(new GridBagLayout());
371,645
public static GetStackResponse unmarshall(GetStackResponse getStackResponse, UnmarshallerContext _ctx) {<NEW_LINE>getStackResponse.setRequestId(_ctx.stringValue("GetStackResponse.RequestId"));<NEW_LINE>List<StackInfoItem> stackInfo = new ArrayList<StackInfoItem>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("GetStac...
("GetStackResponse.StackInfo[" + i + "].ExtInfo.Type"));
243,755
public Boolean update(TransformRequest request, String operator) {<NEW_LINE>LOGGER.info("begin to update transform info: {}", request);<NEW_LINE>this.checkParams(request);<NEW_LINE>// Check whether the transform can be modified<NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>groupCheckService.checkGroupS...
throw new BusinessException(ErrorCodeEnum.CONFIG_EXPIRED);
992,475
public I_M_HU_PI_Item_Product retrieveM_HU_PI_Item_Product() {<NEW_LINE>if (getQtyTypeToUse().isOnlyUseToDeliver() && (shipmentScheduleQtyPicked == null || shipmentScheduleQtyPicked.isAnonymousHuPickedOnTheFly())) {<NEW_LINE>return retrievePiipForReferencedRecord();<NEW_LINE>}<NEW_LINE>final I_M_HU topLevelHU = getTopL...
retrieveVirtualPIMaterialItemProduct(Env.getCtx());
1,354,451
private void removePropertiesDeclaredInComposedClass(String className, List<CodegenModel> allModels, CodegenModel cm) {<NEW_LINE>CodegenModel otherModel = allModels.stream().filter(m -> m.classname.equals(className)).findFirst().orElse(null);<NEW_LINE>if (otherModel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>other...
.equals(v.baseName));
1,695,036
public UploadStatistics loadIcd10cm(List<FileDescriptor> theFiles, RequestDetails theRequestDetails) {<NEW_LINE>ourLog.info("Beginning ICD-10-cm processing");<NEW_LINE>CodeSystem cs = new CodeSystem();<NEW_LINE>cs.setUrl(ICD10CM_URI);<NEW_LINE>cs.setName("ICD-10-CM");<NEW_LINE>cs.setContent(CodeSystem.CodeSystemContent...
codeSystemVersion, cs, null, null);
18,943
private void checkName(String tName) throws SQLException {<NEW_LINE>if (StringUtils.isEmptyOrWhitespaceOnly(tName)) {<NEW_LINE>throw new SQLException("tableName should not be empty", "S1009");<NEW_LINE>} else {<NEW_LINE>boolean needsHexEscape = false;<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < trimmedTableName.length...
String trimmedTableName = tName.trim();
730,119
void unroll(T x) {<NEW_LINE>Optional<? extends Iterable<? extends T>> splitX = split(x);<NEW_LINE>if (splitX.isPresent()) {<NEW_LINE>for (T part : splitX.get()) {<NEW_LINE>unroll(part);<NEW_LINE>}<NEW_LINE>} else if (specialJoinableType.isInstance(x)) {<NEW_LINE>// We shouldn't implement special joinable for AttributeP...
(Preconditions.checkNotNull(x));
185,977
public List<PrelinkMap> parse(TaskMonitor monitor) throws IOException, JDOMException, NoPreLinkSectionException {<NEW_LINE>InputStream inputStream = findPrelinkInputStream();<NEW_LINE>monitor.setMessage("Parsing prelink plist...");<NEW_LINE>SAXBuilder sax = XmlUtilities.createSecureSAXBuilder(false, false);<NEW_LINE>Do...
monitor, list, iterator, element);
360,739
private void checkAndSwapLog() {<NEW_LINE>if (!bLogToFile) {<NEW_LINE>if (logFilePrinter != null) {<NEW_LINE>logFilePrinter.close();<NEW_LINE>logFilePrinter = null;<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long lMaxBytes = (iLogFileMaxMB * 1024L * 1024L) / 2;<NEW_LINE>File logFile = FileUtil.newFile(sLogDir, LOG...
FileUtil.newFile(sLogDir, BAK_FILE_NAME);
297,365
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>final List<MapPack> values = new ArrayList<MapPack>();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("stime", stime);<NEW_LINE>param.put("etime", etime);<NEW_LINE>param.put("obj...
value = mpack.getList("value");
343,803
public void update(RowBasedPartition partition, int factor, double[] scalars) {<NEW_LINE>double gamma = scalars[0];<NEW_LINE>double epsilon = scalars[1];<NEW_LINE>double beta = scalars[2];<NEW_LINE>double lr = scalars[3];<NEW_LINE>double regParam = scalars[4];<NEW_LINE>double epoch = scalars[5];<NEW_LINE>double batchSi...
gradient = ServerRowUtils.getVector(gradientServerRow);
183,362
public Void run() {<NEW_LINE>synchronized (modifiedMetadataPaths) {<NEW_LINE>Element root = getConfigurationDataRoot(shared);<NEW_LINE>Element existing = XMLUtil.findElement(root, fragment.getLocalName(), fragment.getNamespaceURI());<NEW_LINE>// XXX first compare to existing and return if the same<NEW_LINE>if (existing...
NodeList list = root.getChildNodes();
1,472,751
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>final View v = inflater.inflate(R.layout.fingerprint_dialog, container, false);<NEW_LINE>final TextView mFingerprintDescription = (TextView) v.findViewById(R.id.fingerprint_description);<NEW_LINE>mFingerprintDes...
).setTitle(this.dialogTitle);
568,951
public static MemberSignatureParts fromBytecodeSignature(String fqClassName, String toParse) {<NEW_LINE>if (signatureHasGenerics(toParse)) {<NEW_LINE>toParse = isolateGenericsTag(toParse);<NEW_LINE>}<NEW_LINE>MemberSignatureParts msp = new MemberSignatureParts();<NEW_LINE>msp.fullyQualifiedClassName = fqClassName;<NEW_...
compile(builder.toString());
874,201
void generate() throws IOException {<NEW_LINE>try (Writer libRs = outputManager.createOutput("lib")) {<NEW_LINE>indent(libRs, 0, "#![forbid(unsafe_code)]\n");<NEW_LINE>indent(libRs, 0, "#![allow(clippy::upper_case_acronyms)]\n");<NEW_LINE><MASK><NEW_LINE>indent(libRs, 0, "use ::core::{convert::TryInto};\n\n");<NEW_LINE...
indent(libRs, 0, "#![allow(non_camel_case_types)]\n");
1,816,455
public static void main(String[] args) throws Exception {<NEW_LINE>Properties properties = Utils.readPropertiesFile(ExampleConstants.CONFIG_FILE_NAME);<NEW_LINE>final String eventMeshIp = properties.getProperty(ExampleConstants.EVENTMESH_IP);<NEW_LINE>final int eventMeshTcpPort = Integer.parseInt(properties.getProperty...
logger.warn("AsyncPublishBroadcast failed", e);
1,426,258
public static void fontToWidgetHeight(Text text, Runnable runOnFontSizeChange) {<NEW_LINE>text.addListener(SWT.Resize, new Listener() {<NEW_LINE><NEW_LINE>Font lastFont = null;<NEW_LINE><NEW_LINE>int lastHeight = -1;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleEvent(Event event) {<NEW_LINE>Text text = (Text...
pctAdjust = h / (float) lineHeightPX;
1,687,810
public Recommendation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Recommendation recommendation = new Recommendation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
1,213,184
public Message readEntity(Cursor cursor, int offset) {<NEW_LINE>Message entity = new //<NEW_LINE>// id<NEW_LINE>Message(// entityID<NEW_LINE>cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // date<NEW_LINE>cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // type<NEW_LINE>cursor.isNull(off...
.getString(offset + 9));
510,979
public net.osmand.binary.OsmandOdb.OsmAndPoiBox buildPartial() {<NEW_LINE>net.osmand.binary.OsmandOdb.OsmAndPoiBox result = new net.osmand.binary.OsmandOdb.OsmAndPoiBox(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LI...
.subBoxes_ = subBoxesBuilder_.build();
662,818
public UpdateDomainAssociationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateDomainAssociationResult updateDomainAssociationResult = new UpdateDomainAssociationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
635,086
public Template copy(final Template sourceTemplate, final Host destination, final boolean forceOverwrite, final List<ContainerRemapTuple> containerMappings, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException {<NEW_LINE>Logger.debug(this, () -> "Calling copy template for t...
newTemplate, destination, user, respectFrontendRoles);
664,895
public Request<CreatePlatformApplicationRequest> marshall(CreatePlatformApplicationRequest createPlatformApplicationRequest) {<NEW_LINE>if (createPlatformApplicationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreatePlatformApplication...
(entry.getValue()));
275,183
private void validateAddressPool(IpRangeInventory ipr) {<NEW_LINE>L3NetworkVO l3Vo = Q.New(L3NetworkVO.class).eq(L3NetworkVO_.uuid, ipr.getL3NetworkUuid()).find();<NEW_LINE>List<String> l3Uuids = Q.New(L3NetworkVO.class).eq(L3NetworkVO_.l2NetworkUuid, l3Vo.getL2NetworkUuid()).select(L3NetworkVO_.uuid).listValues();<NEW...
, r.getEndIp()));
995,419
public BLangNode transform(FunctionTypeDescriptorNode functionTypeDescriptorNode) {<NEW_LINE>BLangFunctionTypeNode functionTypeNode = (BLangFunctionTypeNode) TreeBuilder.createFunctionTypeNode();<NEW_LINE>functionTypeNode.pos = getPosition(functionTypeDescriptorNode);<NEW_LINE>functionTypeNode.returnsKeywordExists = tr...
SimpleVariableNode) child.apply(this);
1,813,806
public <T> void create(String modelPathString, Class<T> type, Closure<?> closure) {<NEW_LINE>ModelPath modelPath = ModelPath.path(modelPathString);<NEW_LINE>DeferredModelAction modelAction = ruleFactory.toAction(type, closure);<NEW_LINE>ModelRuleDescriptor descriptor = modelAction.getDescriptor();<NEW_LINE>ModelType<T>...
.getNodeInitializer(forType(modelType));