idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
557,585
private void loadDefaults(boolean listen) {<NEW_LINE>ClassLoader cl = AntBridge.getMainClassLoader();<NEW_LINE>InputStream taskDefaults = cl.getResourceAsStream("org/apache/tools/ant/taskdefs/defaults.properties");<NEW_LINE>if (taskDefaults != null) {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>defaults.load(taskDefault...
AntModule.err.log("Could not open default taskdefs");
1,708,785
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>int regNum0 = (decoder.state_reg + decoder.state_zs_extraRegisterBase + decoder.state_extraRegisterBaseEVEX);<NEW_LINE>instruction.setOp0Register(regNum0 + baseReg);<NEW_LINE>instruction.setOp1Register(decoder.state_vvv...
decoder.readOpMem(instruction, tupleType);
843,519
public String handleRequest(SQSEvent event, Context context) {<NEW_LINE>String response = new String();<NEW_LINE>// call Lambda API<NEW_LINE>logger.info("Getting account settings");<NEW_LINE>CompletableFuture<GetAccountSettingsResponse> accountSettings = lambdaClient.getAccountSettings(GetAccountSettingsRequest.builder...
info(msg.getBody());
514,167
private Mono<Response<Flux<ByteBuffer>>> deletePublicIpWithResponseAsync(String resourceGroupName, String publicIpId, String privateCloudName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and...
this.client.mergeContext(context);
386,254
public String putRecordingTextTrack(String recordId, String kind, String lang, File file, String label, String origFilename, String trackId, String contentType, String tempFilename) {<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE>logData.put("recordId", recordId);<NEW_LINE><MASK><NEW_LINE>logData.put...
logData.put("kind", kind);
78,686
private void chooseWorkspacePath() {<NEW_LINE>FileChooserDescriptor descriptor = // Show root project view file<NEW_LINE>new FileChooserDescriptor(true, false, false, false, false, false).// Show root project view file<NEW_LINE>withShowHiddenFiles(true).withHideIgnored(false).withTitle("Select Project View File").withD...
(file.getPath()));
657,796
double leftLabelPadding() {<NEW_LINE>double leftPadding = super.leftLabelPadding();<NEW_LINE>// RT-27167: we must take into account the disclosure node and the<NEW_LINE>// indentation (which is not taken into account by the LabeledSkinBase.<NEW_LINE>final double height = getCellSize();<NEW_LINE>TreeTableCell<S, T> cell...
, Double> mdwp = TableRowSkinBase.maxDisclosureWidthMap;
375,551
private void processSelectControl(ControlFontPair pair, Control ctrl, PDAcroForm acro, int i, Box root) throws IOException {<NEW_LINE>PDComboBox field = new PDComboBox(acro);<NEW_LINE>setPartialNameToField(ctrl, field);<NEW_LINE>List<String> labels = new ArrayList<>();<NEW_LINE>List<String> values = new ArrayList<>();<...
field.setOptions(values, labels);
1,660,626
public Path move(final Path file, final Path renamed, final TransferStatus status, final Delete.Callback callback, final ConnectionCallback connectionCallback) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>final IRODSFileSystemAO fs = session.getClient();<NEW_LINE>final IRODSFile s = fs.getIRODSFileFactory().<MA...
instanceIRODSFile(file.getAbsolute());
978,157
public SparkSubmitJobDriver unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SparkSubmitJobDriver sparkSubmitJobDriver = new SparkSubmitJobDriver();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
892,708
public ReplicaGlobalSecondaryIndexDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReplicaGlobalSecondaryIndexDescription replicaGlobalSecondaryIndexDescription = new ReplicaGlobalSecondaryIndexDescription();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentPar...
int originalDepth = context.getCurrentDepth();
427,818
public void readSnapshot(HollowBlobInput in, OptionalBlobPartInput optionalParts, TypeFilter filter) throws IOException {<NEW_LINE>validateMemoryMode(in.getMemoryMode());<NEW_LINE>Map<String, HollowBlobInput> optionalPartInputs = null;<NEW_LINE>if (optionalParts != null)<NEW_LINE>optionalPartInputs = optionalParts.getI...
optionalPartEntry.getValue(), filter);
505,120
public static <T> CompletableFuture<List<T>> runWithAvailableThreads(Executor executor, IntSupplier availableThreads, Collection<Supplier<T>> suppliers) throws RejectedExecutionException {<NEW_LINE>int threadsToUse = availableThreads.getAsInt();<NEW_LINE>if (threadsToUse < suppliers.size()) {<NEW_LINE>Iterable<List<Sup...
ArrayList<>(threadsToUse + 1);
1,467,899
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>int index = 0;<NEW_LINE>columns.add(new RelDataTypeFieldImpl("TABLE_SCHEMA", index++, typeFactory.createSqlType(SqlTypeName.VA...
createSqlType(SqlTypeName.VARCHAR)));
230,069
private void loadHeaderless(InputStream inStream, String encoding, boolean verbose) throws IOException, UnsupportedEncodingException {<NEW_LINE>int i;<NEW_LINE>DataInputStream in = new <MASK><NEW_LINE>// int fileSize= (int) f.length();<NEW_LINE>// TODO: how robust is this??<NEW_LINE>int fileSize = in.available();<NEW_L...
DataInputStream(new BufferedInputStream(inStream));
1,133,226
public static DescribeSnapshotGroupsResponse unmarshall(DescribeSnapshotGroupsResponse describeSnapshotGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotGroupsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotGroupsResponse.RequestId"));<NEW_LINE>describeSnapshotGroupsResponse.setNextToken(_ctx...
+ "].Snapshots[" + j + "].SnapshotId"));
1,321,232
public void onChildClicked(GroupBean groupItem, ChildBean childItem) {<NEW_LINE>if (childItem.mIconId == R.drawable.xiaoshipin) {<NEW_LINE>Intent intent <MASK><NEW_LINE>intent.setData(Uri.parse("http://dldir1.qq.com/hudongzhibo/liteav/XiaoShiPin.apk"));<NEW_LINE>startActivity(intent);<NEW_LINE>return;<NEW_LINE>} else i...
= new Intent(Intent.ACTION_VIEW);
489,672
public TypecheckingResult toResult(CheckTypeVisitor typechecker) {<NEW_LINE>if (myParameters.isEmpty()) {<NEW_LINE>return new TypecheckingResult(getCoreDefCall(), myResultType);<NEW_LINE>}<NEW_LINE>List<SingleDependentLink> parameters = new ArrayList<>();<NEW_LINE>ExprSubstitution substitution = new ExprSubstitution();...
add(new ReferenceExpression(parameter));
1,770,080
public void mousePressed(MouseEvent e) {<NEW_LINE>gui.getImagePanel().grabFocus();<NEW_LINE>double scale = gui.getScale();<NEW_LINE>Point2D_F64 p = new Point2D_F64(e.getX() / scale, e.getY() / scale);<NEW_LINE>System.out.printf("click %5.1f %5.1f\n", <MASK><NEW_LINE>synchronized (detected) {<NEW_LINE>for (int i = 0; i ...
p.x, p.y);
1,559,973
public String apply(String input) throws Exception {<NEW_LINE>// SortPom expects a file to sort, so we write the inpout into a temporary file<NEW_LINE>File pom = File.createTempFile("pom", ".xml");<NEW_LINE>pom.deleteOnExit();<NEW_LINE>IOUtils.write(input, new FileOutputStream(pom), cfg.encoding);<NEW_LINE>SortPomImpl ...
(pom), cfg.encoding);
1,543,331
public void takePicture(final TakePictureCallback callback) {<NEW_LINE>if (mCamera == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(cameraAngle) {<NEW_LINE>case 90:<NEW_LINE>nowAngle = Math.abs(angle + cameraAngle) % 360;<NEW_LINE>break;<NEW_LINE>case 270:<NEW_LINE>nowAngle = Math.abs(cameraAngle - angle);<NEW_LI...
matrix.setRotate(360 - nowAngle);
340,901
public static ListFunctionsResponse unmarshall(ListFunctionsResponse listFunctionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionsResponse.setRequestId(_ctx.stringValue("ListFunctionsResponse.RequestId"));<NEW_LINE>listFunctionsResponse.setHttpStatusCode(_ctx.stringValue("ListFunctionsResponse.HttpStatusCod...
(_ctx.booleanValue("ListFunctionsResponse.Success"));
1,171,499
public static void createLoginCookie(KeycloakSession keycloakSession, RealmModel realm, UserModel user, UserSessionModel session, UriInfo uriInfo, ClientConnection connection) {<NEW_LINE>String cookiePath = getIdentityCookiePath(realm, uriInfo);<NEW_LINE>String issuer = Urls.realmIssuer(uriInfo.getBaseUri(<MASK><NEW_LI...
), realm.getName());
751,179
private static void transformElements(JRElement[] elements, double scaleX, int offsetX, double scaleY, int offsetY) {<NEW_LINE>if (elements != null) {<NEW_LINE>for (int i = 0; i < elements.length; i++) {<NEW_LINE>JRFillElement element = (JRFillElement) elements[i];<NEW_LINE>if (scaleX != -1d) {<NEW_LINE>element.setX((i...
.getX() * scaleX));
185,191
public Request<ListAliasesRequest> marshall(ListAliasesRequest listAliasesRequest) {<NEW_LINE>if (listAliasesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListAliasesRequest)");<NEW_LINE>}<NEW_LINE>Request<ListAliasesRequest> request = new DefaultRequest<ListAliasesReq...
String snippet = stringWriter.toString();
882,036
public void prepareNettyResponse(HttpResponse nettyResponse) {<NEW_LINE>nettyResponse.headers().add("Accept-Ranges", "bytes");<NEW_LINE>if (unsatisfiable) {<NEW_LINE>nettyResponse.setStatus(HttpResponseStatus.REQUESTED_RANGE_NOT_SATISFIABLE);<NEW_LINE>nettyResponse.headers().set("Content-Range", "bytes " + 0 + "-" + (f...
).set("Content-length", 0);
1,064,721
public Collection<NewService> createServices(Server grpcServer, ApplicationContext applicationContext) {<NEW_LINE>final NewService grpcServicePrototype = SINGLE_SERVER_WITH_GLOBAL_CHECK.createServices(grpcServer, applicationContext).iterator().next();<NEW_LINE>List<NewService> newServices = new ArrayList<>();<NEW_LINE>...
.getId(), i));
1,419,097
private static void overrideCopierMethod(JDefinedClass templateClass, String methodName, Map<String, JVar> fields, boolean resetFields, JClass changeListenerClass) {<NEW_LINE>final JMethod copierMethod = templateClass.method(JMod.PUBLIC, templateClass, methodName);<NEW_LINE><MASK><NEW_LINE>copierMethod._throws(CloneNot...
copierMethod.annotate(Override.class);
326,677
private void printWorkerInfo(List<WorkerInfo> workerInfoList) {<NEW_LINE>mIndentationLevel = 0;<NEW_LINE>if (mCapacityTierInfoMap.size() == 0) {<NEW_LINE>return;<NEW_LINE>} else if (mCapacityTierInfoMap.size() == 1) {<NEW_LINE>// Do not print Total value when only one tier exists<NEW_LINE>printShortWorkerInfo(workerInf...
longInfoFormat = getInfoFormat(workerInfoList, false);
1,486,023
protected void validateServerConfig(EndpointType type, ServerConfig config) {<NEW_LINE>String endpointPrefixVariable = "flowable.admin.app.server-config." + type.name().toLowerCase();<NEW_LINE>Assert.hasText(config.getName(), endpointPrefixVariable + ".name must be set");<NEW_LINE>Assert.hasText(config.getDescription()...
getServerAddress(), endpointPrefixVariable + ".server-address must be set");
254,700
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.time_t, NativeType.SINT);
763,959
private void showForm() {<NEW_LINE>Form f = new Form("Hello", <MASK><NEW_LINE>Form prev = CN.getCurrentForm();<NEW_LINE>Toolbar tb = new Toolbar();<NEW_LINE>f.setToolbar(tb);<NEW_LINE>tb.addCommandToLeftBar("Back", null, evt -> {<NEW_LINE>prev.showBack();<NEW_LINE>});<NEW_LINE>SpanLabel profileText = new SpanLabel();<N...
new BorderLayout(BorderLayout.CENTER_BEHAVIOR_SCALE));
649,728
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("rgb" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>if (size < 3 || size > 4) {<NEW_LINE>MessageManager mm = Engi...
MessageManager mm = EngineMessage.get();
1,775,696
public WorkflowProcess defineProcess() {<NEW_LINE>// Configuration process<NEW_LINE>WorkflowProcess process = new WorkflowProcess();<NEW_LINE>process.setName(getProcessName().name());<NEW_LINE>process.setType(getProcessName().getDisplayName());<NEW_LINE>process.setDisplayName(getProcessName().getDisplayName());<NEW_LIN...
stopSortTask.setServiceTaskType(ServiceTaskType.STOP_SORT);
1,097,711
public void preparedData() {<NEW_LINE>AlterTableGroupMovePartition alterTableGroupMovePartition = (AlterTableGroupMovePartition) relDdl;<NEW_LINE>String tableGroupName = alterTableGroupMovePartition.getTableGroupName();<NEW_LINE>SqlAlterTableGroup sqlAlterTableGroup = (SqlAlterTableGroup) alterTableGroupMovePartition.g...
TableGroupLocation.getOrderedGroupList(schemaName, true);
632,341
final ListHumanLoopsResult executeListHumanLoops(ListHumanLoopsRequest listHumanLoopsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listHumanLoopsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new ListHumanLoopsResultJsonUnmarshaller());
1,631,000
public void marshall(ListEdgePackagingJobsRequest listEdgePackagingJobsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listEdgePackagingJobsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(...
listEdgePackagingJobsRequest.getCreationTimeAfter(), CREATIONTIMEAFTER_BINDING);
672,603
public static QueryToFilterAdapter<?> build(IndexSearcher searcher, String key, Query query) throws IOException {<NEW_LINE>// Wrapping with a ConstantScoreQuery enables a few more rewrite<NEW_LINE>// rules as of Lucene 9.2<NEW_LINE>query = searcher.rewrite(new ConstantScoreQuery(query));<NEW_LINE>if (query instanceof C...
ConstantScoreQuery) query).getQuery();
1,276,500
public boolean process(List<Point2D_I32> contour) {<NEW_LINE>// Reset internal book keeping variables<NEW_LINE>reset();<NEW_LINE>if (loops) {<NEW_LINE>// Reject pathological case<NEW_LINE>if (contour.size() < 3)<NEW_LINE>return false;<NEW_LINE>if (!findInitialTriangle(contour))<NEW_LINE>return false;<NEW_LINE>} else {<...
.splits.get(j));
1,601,566
public static void load(PluginInterface plugin_interface) {<NEW_LINE>plugin_interface.getPluginProperties().setProperty("plugin.version", "1.0");<NEW_LINE>plugin_interface.getPluginProperties().setProperty("plugin.name", PLUGIN_NAME);<NEW_LINE>synchronized (SimpleAPIPlugin.class) {<NEW_LINE>if (loaded) {<NEW_LINE>retur...
put(WebPlugin.PR_DISABLABLE, true);
550,456
private Mono<Response<List<ApplicationInsightsComponentExportConfigurationInner>>> listWithResponseAsync(String resourceGroupName, String resourceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is req...
error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
1,307,564
public void calculateWeights(BoltzmannMachine logic) {<NEW_LINE>for (int sourceTour = 0; sourceTour < NUM_CITIES; sourceTour++) {<NEW_LINE>for (int sourceCity = 0; sourceCity < NUM_CITIES; sourceCity++) {<NEW_LINE>int sourceIndex = sourceTour * NUM_CITIES + sourceCity;<NEW_LINE>for (int targetTour = 0; targetTour < NUM...
.distance[sourceCity][targetCity];
1,682,953
public void rerun(Set<Testcase> tests) {<NEW_LINE>setEnabled(false);<NEW_LINE>ArrayList<FileObject> tests2run = new ArrayList<>();<NEW_LINE>for (Testcase testcase : tests) {<NEW_LINE>testcase.getTrouble().getStackTrace();<NEW_LINE>TestRunnerReporter.CallStackCallback callStackCallback = new TestRunnerReporter.CallStack...
toFileObject(pair.first());
60,842
private Process runLocalSolr4ControlCommand(List<String> solrArguments) throws IOException {<NEW_LINE>// NON-NLS<NEW_LINE>final String MAX_SOLR_MEM_MB_PAR = "-Xmx" + UserPreferences.getMaxSolrVMSize() + "m";<NEW_LINE>// NON-NLS<NEW_LINE>File solr4Folder = InstalledFileLocator.getDefault().locate("solr4", Server.class.g...
redirectError(solrStderrPath.toFile());
788,232
private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void addBindings() {<NEW_LINE>amountTextField.textProperty().bindBidirectional(model.amount);<NEW_LINE>volumeTextField.textProperty().bindBidirectional(model.volume);<NEW_LINE>totalToPayTextField.textProperty()...
).bind(model.isTakeOfferButtonDisabled);
109,671
public void focusLost(FocusEvent e) {<NEW_LINE>if (// set by actionButton<NEW_LINE>e.isTemporary() || m_lookup == null || !m_button.isEnabled())<NEW_LINE>return;<NEW_LINE>// Text Lost focus<NEW_LINE>if (e.getSource() == m_text) {<NEW_LINE>String text = m_text.getText();<NEW_LINE>log.config(m_columnName + " (Text) " + m...
" = " + m_value + " - " + text);
1,079,385
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>securePercentage = view.findViewById(R.id.insights_dashboard_percent_secure);<NEW_LINE>progress = view.findViewById(R.id.insights_dashboard_progress);<NEW_LINE>progressContainer = view.findViewById(R.id.insights_dashboard_perc...
findViewById(R.id.insights_dashboard_this_stat_was_generated_locally);
356,566
static void orderMethods(Class<?> c, String orderS) throws Exception {<NEW_LINE>// #7023180<NEW_LINE>if (orderS == null) {<NEW_LINE>orderS = findOrder();<NEW_LINE>}<NEW_LINE>if ("natural".equals(orderS)) {<NEW_LINE>// NOI18N<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Method[] ms = null;<NEW_LINE>try {<NEW_LINE>Field declared...
>) rdF.get(c);
1,557,102
public JFreeChart createChart(String type) {<NEW_LINE>if (m_goal.getAD_Chart_ID() > 0) {<NEW_LINE>MChart chart = new MChart(m_goal.getCtx(), m_goal.getAD_Chart_ID(), m_goal.get_TrxName());<NEW_LINE>return chart.createChart();<NEW_LINE>} else {<NEW_LINE>if (X_PA_Goal.CHARTTYPE_BarChart.equals(type)) {<NEW_LINE>return cr...
throw new IllegalArgumentException("unknown chart type=" + type);
1,018,485
public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {<NEW_LINE>// Get the connected device<NEW_LINE>BluetoothDevice device = gatt.getDevice();<NEW_LINE>String address = device.getAddress();<NEW_LINE>HashMap<Object, Object> connection = connections.get(address);<N...
addProperty(returnObj, keyStatus, statusRead);
1,303,459
public ListSigningJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSigningJobsResult listSigningJobsResult = new ListSigningJobsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
int originalDepth = context.getCurrentDepth();
1,577,086
public void doAction() {<NEW_LINE>Array<Object[]> payload = getNotification().getBody();<NEW_LINE>for (int i = 0; i < payload.size; i++) {<NEW_LINE>Object[] itemData = payload.get(i);<NEW_LINE>Entity entity <MASK><NEW_LINE>Vector2 newLocation = (Vector2) itemData[1];<NEW_LINE>TransformComponent transformComponent = Com...
= (Entity) itemData[0];
526,764
public Socket createSocket() throws JedisConnectionException {<NEW_LINE>Socket socket = null;<NEW_LINE>try {<NEW_LINE>HostAndPort _hostAndPort = getSocketHostAndPort();<NEW_LINE>socket = connectToFirstSuccessfulHost(_hostAndPort);<NEW_LINE>socket.setSoTimeout(socketTimeout);<NEW_LINE>if (ssl) {<NEW_LINE>SSLSocketFactor...
_hostAndPort.getPort(), true);
278,498
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean canGetSourceDebugExtension0(com.sun.jdi.VirtualMachine a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.sun.jdi.V...
jpda.JDIExceptionReporter.report(ex);
240,505
public static OnsTrendGroupOutputTpsResponse unmarshall(OnsTrendGroupOutputTpsResponse onsTrendGroupOutputTpsResponse, UnmarshallerContext _ctx) {<NEW_LINE>onsTrendGroupOutputTpsResponse.setRequestId(_ctx.stringValue("OnsTrendGroupOutputTpsResponse.RequestId"));<NEW_LINE>onsTrendGroupOutputTpsResponse.setHelpUrl(_ctx.s...
= new ArrayList<StatsDataDo>();
424,942
public void run() {<NEW_LINE><MASK><NEW_LINE>while (thread == me && !isShowing() || getSize().width == 0) {<NEW_LINE>try {<NEW_LINE>thread.sleep(500);<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>while (thread == me && isShowing()) {<NEW_LINE>Dimension d = getSize();<NEW_L...
Thread me = Thread.currentThread();
1,804,069
private void computePreferredSize() {<NEW_LINE>inputVars = table.getInputVariables();<NEW_LINE>outputVars = table.getOutputVariables();<NEW_LINE>if (inputVars.isEmpty()) {<NEW_LINE><MASK><NEW_LINE>inputVars.add(new Var(S.get("tableNoInputs"), 0));<NEW_LINE>}<NEW_LINE>if (outputVars.isEmpty()) {<NEW_LINE>outputVars = ne...
inputVars = new ArrayList<>();
772,562
public static ReplicaMetadataRequestInfo readFrom(DataInputStream stream, ClusterMap clusterMap, FindTokenHelper findTokenHelper, short requestVersion) throws IOException {<NEW_LINE>String hostName = Utils.readIntString(stream);<NEW_LINE>String replicaPath = Utils.readIntString(stream);<NEW_LINE>ReplicaType replicaType...
findTokenFactory = findTokenHelper.getFindTokenFactoryFromReplicaType(replicaType);
1,513,040
public void continueTask() {<NEW_LINE>if (runInBackground) {<NEW_LINE>new Thread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final Handler handler = new Handler(context.getMainLooper());<NEW_LINE>Runnable nextStep;<NEW_LINE>try {<NEW_LINE>nextStep = user.initiateUserAuthenticatio...
clientMetadata, authenticationDetails, callback, RUN_IN_CURRENT);
1,231,860
final AssociateNetworkSettingsResult executeAssociateNetworkSettings(AssociateNetworkSettingsRequest associateNetworkSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateNetworkSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
973,541
public Query wildcardQuery(String value, MultiTermQuery.RewriteMethod method, boolean caseInsensitive, QueryShardContext context) {<NEW_LINE>failIfNotIndexed();<NEW_LINE>if (context.allowExpensiveQueries() == false) {<NEW_LINE>throw new OpenSearchException("[wildcard] queries cannot be executed when '" + ALLOW_EXPENSIV...
QueryParsers.setRewriteMethod(query, method);
1,692,371
private JTree buildTree() {<NEW_LINE>JTree tree = new JTree(treeRoot);<NEW_LINE>tree.setLayout(new BorderLayout());<NEW_LINE>tree.setBorder(BorderFactory.createEmptyBorder());<NEW_LINE>tree.setShowsRootHandles(false);<NEW_LINE>tree.setScrollsOnExpand(false);<NEW_LINE>tree.setSelectionModel(null);<NEW_LINE>tree.setCellR...
MethodTreeNode) node).getJMethod();
1,628,925
private // which indicating redirect or exception.<NEW_LINE>boolean findOwnerBrokerForTopic(boolean authoritative, AsyncResponse asyncResponse) {<NEW_LINE>PartitionedTopicMetadata metadata = internalGetPartitionedMetadata(authoritative, false);<NEW_LINE>List<String> redirectAddresses = Collections.synchronizedList<MASK...
(new ArrayList<>());
1,130,196
public ListenableFuture<?> execute(DropFunction statement, TransactionManager transactionManager, Metadata metadata, AccessControl accessControl, Session session, List<Expression> parameters, WarningCollector warningCollector) {<NEW_LINE>Map<NodeRef<Parameter>, Expression> parameterLookup = parameterExtractor(statement...
parameterTypes, statement.isExists());
198,056
private boolean extractAnnotation(CoreMap sourceAnnotation, CoreMapAggregator aggregator) {<NEW_LINE>Class<TypesafeMap.Key<List<? extends CoreMap>>> tokensAnnotationKey = extractFunc.tokensAnnotationField;<NEW_LINE>if (chunkOffsets != null) {<NEW_LINE>annotation = aggregator.merge((List<? extends CoreMap>) sourceAnnota...
, annotation2.get(tokensAnnotationKey));
1,466,785
public static SearchFaceResponse unmarshall(SearchFaceResponse searchFaceResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchFaceResponse.setRequestId(_ctx.stringValue("SearchFaceResponse.RequestId"));<NEW_LINE>searchFaceResponse.setCode(_ctx.stringValue("SearchFaceResponse.Code"));<NEW_LINE>searchFaceResponse.setMess...
("SearchFaceResponse.Data.MatchList[" + i + "].Location.X"));
959,599
private Mono<PagedResponse<DriveBitLockerKeyInner>> listSinglePageAsync(String jobName, String resourceGroupName, 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...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,483,983
private static StringLookupValue convertToStringLookupValue(@Nullable final Object value, @Nullable final LookupValueByIdSupplier lookupDataSource) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>} else if (value instanceof LookupValue) {<NEW_LINE>final LookupValue lookupValue = (LookupValue) value;<NEW_...
final String valueStr = (String) value;
1,345,655
private State _checkL(char command, boolean expectNumber, State state) throws IOException, DatatypeException {<NEW_LINE>for (; ; ) {<NEW_LINE>switch(state.current) {<NEW_LINE>default:<NEW_LINE>if (expectNumber) {<NEW_LINE>reportUnexpected("coordinate pair for " + "\u201c" + command + "\u201d command", state.current, st...
checkArg(command, "x coordinate", state);
514,538
protected Message doReceiveNoWait(final String queueName) {<NEW_LINE>Message message = execute(channel -> {<NEW_LINE>GetResponse response = channel.basicGet(queueName, !isChannelTransacted());<NEW_LINE>// Response can be null is the case that there is no message on the queue.<NEW_LINE>if (response != null) {<NEW_LINE>l...
channel.basicAck(deliveryTag, false);
420,267
public List<StoragePoolJoinVO> searchByIds(Long... spIds) {<NEW_LINE>// set detail batch query size<NEW_LINE>int DETAILS_BATCH_SIZE = 2000;<NEW_LINE>String batchCfg = _configDao.getValue("detail.batch.query.size");<NEW_LINE>if (batchCfg != null) {<NEW_LINE>DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);<NEW_LINE>}<NEW...
sc.setParameters("idIN", ids);
533,245
private Optional<PredicateFinalStep> buildExpansionPredicate(List<String> theCodes, SearchPredicateFactory thePredicate) {<NEW_LINE>if (CollectionUtils.isEmpty(theCodes)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (theCodes.size() < BooleanQuery.getMaxClauseCount()) {<NEW_LINE>return Optional.of(thePred...
join(" | ", theCodes)));
1,811,251
public static SearchTracesByPageResponse unmarshall(SearchTracesByPageResponse searchTracesByPageResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchTracesByPageResponse.setRequestId(_ctx.stringValue("SearchTracesByPageResponse.RequestId"));<NEW_LINE>PageBean pageBean = new PageBean();<NEW_LINE>pageBean.setPageNumber(...
(_ctx.integerValue("SearchTracesByPageResponse.PageBean.PageSize"));
307,240
private void validateGELFMessage(JsonNode jsonNode, UUID id, ResolvableInetSocketAddress remoteAddress) {<NEW_LINE>final String prefix = "GELF message <" + id + "> " + (remoteAddress == null ? "" : "(received from <" + remoteAddress + ">) ");<NEW_LINE>final JsonNode hostNode = jsonNode.path("host");<NEW_LINE>if (hostNo...
getNodeType().name());
753,509
private static List<ConsumerVO> convert(List<ConsumerGroupOffsets> consumerGroupOffsets, Collection<TopicVO> topicVos) {<NEW_LINE>final var topicVoMap = topicVos.stream().collect(Collectors.toMap(TopicVO::getName, Function.identity()));<NEW_LINE>final var groupTopicPartitionOffsetMap = new TreeMap<String, Map<String, M...
.getKey().topic();
1,361,013
static void writeExcel(List<ExcelSheetExport> exports, File path) throws IOException, ExcelExportException {<NEW_LINE>// Create a Workbook<NEW_LINE>// new HSSFWorkbook() for generating `.xls` file<NEW_LINE>Workbook workbook = new XSSFWorkbook();<NEW_LINE>// Create a Font for styling header cells<NEW_LINE>Font headerFon...
String sheetName = export.getSheetName();
175,945
private boolean processShortcut(KeyEvent ev) {<NEW_LINE>// ignore shortcut keys when the IDE is shutting down<NEW_LINE>if (NbLifecycleManager.isExiting()) {<NEW_LINE>ev.consume();<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>KeyStroke ks = KeyStroke.getKeyStrokeForEvent(ev);<NEW_LINE>Window w = SwingUtilities.windowForCom...
).lookup(Keymap.class);
1,382,272
/* public void operate(SimFunctionContext<String> context) {<NEW_LINE>String first = context.getFirstOperand();<NEW_LINE>String second = context.getSecondOperand();<NEW_LINE>double score1 = 0.0;<NEW_LINE>double score2 = 0.0;<NEW_LINE>double score = 0.0;<NEW_LINE>try {<NEW_LINE>if (!(first == null || first.trim().equals...
.split("\\s+")[0];
134,153
public Texture generateWhiteNoise(GL2 gl2, int width, int height) {<NEW_LINE>float[] noise = new float[width * height];<NEW_LINE>Bitmap bitmap = Bitmap.createBitmap(width / 2, height / 2, Bitmap.Config.ARGB_4444);<NEW_LINE>for (int i = 0; i < width / 2; i++) for (int j = 0; j < height / 2; j++) {<NEW_LINE>int a = (int)...
g = random.nextInt(256);
712,212
public static void vertical9(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.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 int k4 = kernel.data[3]...
indexDst++] = (short) total;
1,511,603
static KeyStore buildKeyStore(final InputStream certChainFile, final InputStream keyFile, final char[] keyPasswordChars) throws KeyStoreException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException, CertificateException, KeyException, IOException {<NEW_LINE>Byt...
throw new InvalidKeySpecException("Neither RSA, DSA nor EC worked", e);
514,214
private TScanRangeLocations newLocations(TFileScanRangeParams params, BackendPolicy backendPolicy) {<NEW_LINE>// Generate on file scan range<NEW_LINE>TFileScanRange fileScanRange = new TFileScanRange();<NEW_LINE>fileScanRange.setParams(params);<NEW_LINE>// Scan range<NEW_LINE>TExternalScanRange externalScanRange = new ...
setBackendId(selectedBackend.getId());
1,462,558
public Xavc4kIntraCbgProfileSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Xavc4kIntraCbgProfileSettings xavc4kIntraCbgProfileSettings = new Xavc4kIntraCbgProfileSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
class).unmarshall(context));
519,645
private static ProjectLibrary createScalaSdkLibrary(Project scalaProject, Iterable<File> files, boolean useScalaSdk, IdeaModule ideaModule) {<NEW_LINE>ScalaRuntime runtime = scalaProject.getExtensions(<MASK><NEW_LINE>if (runtime != null) {<NEW_LINE>FileCollection scalaClasspath = runtime.inferScalaClasspath(files);<NEW...
).findByType(ScalaRuntime.class);
497,421
public void createPartControl(Composite parent) {<NEW_LINE>Server server = ServerManager.getInstance().getServer(serverId);<NEW_LINE>this.setPartName("Connections[" + server.getName() + "][" + date + "]");<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidt...
new OpenDigestTableAction(serverId), true);
271,696
public void appendRuntimeTo(Appendable out) throws IOException {<NEW_LINE><MASK><NEW_LINE>if (!runtime.isEmpty()) {<NEW_LINE>mode.appendTraditional(runtime, out, null);<NEW_LINE>}<NEW_LINE>if (transpiler == Transpiler.NULL) {<NEW_LINE>mode.appendTraditional(es6ModuleTranspiler.runtime(), out, null);<NEW_LINE>}<NEW_LINE...
String runtime = transpiler.runtime();
1,463,036
private PlaybackInfo handlePositionDiscontinuity(MediaPeriodId mediaPeriodId, long positionUs, long requestedContentPositionUs, long discontinuityStartPositionUs, boolean reportDiscontinuity, @DiscontinuityReason int discontinuityReason) {<NEW_LINE>deliverPendingMessageAtStartPositionRequired = deliverPendingMessageAtS...
MediaPeriodHolder playingPeriodHolder = queue.getPlayingPeriod();
1,444,166
private void dbUpdate(ContentType type) throws DotDataException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>dc.setSQL(this.contentTypeSql.UPDATE_TYPE);<NEW_LINE>dc.addParam(type.name());<NEW_LINE>dc.addParam(type.description());<NEW_LINE>dc.addParam(type.defaultType());<NEW_LINE>dc.addParam(type.detailPage())...
addParam(type.icon());
16,001
private ReadableShoppingCart readableShoppingCart(ShoppingCart cartModel, PersistableShoppingCartItem item, MerchantStore store, Language language) throws Exception {<NEW_LINE>com.salesmanager.core.model.shoppingcart.ShoppingCartItem itemModel = <MASK><NEW_LINE>// need to check if the item is already in the cart<NEW_LI...
createCartItem(cartModel, item, store);
828,117
private StateChange remoteRestart() {<NEW_LINE>boolean debugMode = instance.getJvmMode() == PayaraJvmMode.DEBUG;<NEW_LINE>// Wrong scenario as default.<NEW_LINE>boolean debugPortActive = true;<NEW_LINE>int debugPort = -1;<NEW_LINE>if (debugMode) {<NEW_LINE>debugPort = instance.getDebugPort();<NEW_LINE>debugMode = updat...
TaskEvent.CMD_COMPLETED, "RestartTask.remoteRestart.completed", instanceName);
1,853,688
public org.python.Object __le__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Int) {<NEW_LINE>long other_val = ((org.python.types.Int) other).value;<NEW_LINE>return org.python.types.Bool.getBool(this.value <= ((double) other_val));<NEW_LINE>} else if (other instanceof org.python.types.Float)...
types.Float) other).value;
32,526
public static DeploymentBuilder kafkaClients(String namespaceName, boolean tlsListener, String kafkaClientsName, boolean hostnameVerification, String listenerName, String secretPrefix, KafkaUser... kafkaUsers) {<NEW_LINE>Map<String, String> label = new HashMap<>();<NEW_LINE>label.put(<MASK><NEW_LINE>label.put(Constants...
Constants.KAFKA_CLIENTS_LABEL_KEY, Constants.KAFKA_CLIENTS_LABEL_VALUE);
1,019,730
void draw(Canvas canvas, GeometryWayContext context) {<NEW_LINE>if (style instanceof GeometrySolidWayStyle && shouldDrawArrow()) {<NEW_LINE>Context ctx = style.getCtx();<NEW_LINE>GeometrySolidWayStyle<?> arrowsWayStyle = (GeometrySolidWayStyle<?>) style;<NEW_LINE>Bitmap bitmap = style.getPointBitmap();<NEW_LINE>boolean...
, PorterDuff.Mode.SRC_IN));
1,053,239
public void actionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>JButton but = (JButton) evt.getSource();<NEW_LINE>SectionContainer sc = null;<NEW_LINE>for (Container c = but.getParent(); c != null; c = c.getParent()) {<NEW_LINE>if (c instanceof SectionContainer) {<NEW_LINE>sc = (SectionContainer) c;<NEW_LINE>bre...
, punit.getName()));
16,314
static void removeElement(WSDLComponent c, Class cl, boolean underPolicy) {<NEW_LINE>if (c == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>WSDLModel model = c.getModel();<NEW_LINE><MASK><NEW_LINE>if (!isTransaction) {<NEW_LINE>model.startTransaction();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (underPolicy) {<NEW_LINE>List...
boolean isTransaction = model.isIntransaction();
212,201
public String changePassword(Model model, @RequestParam("current_password") String currentPassword, @RequestParam("new_password") String newPassword, @RequestParam("confirm_password") String confirmPassword, HttpServletResponse response, HttpServletRequest request) {<NEW_LINE>PasswordConfirmationValidation validation =...
String username = authentication.getName();
208,077
private static String relativizeFile(File basedir, File file) {<NEW_LINE>if (basedir.isFile()) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalArgumentException("Cannot relative w.r.t. a data file " + basedir);<NEW_LINE>}<NEW_LINE>if (basedir.equals(file)) {<NEW_LINE>// NOI18N<NEW_LINE>return ".";<NEW_LINE>}<NEW_LINE>St...
+ " and " + file + " with common root " + base;
141,507
public static boolean checkMacros(final Project project, final Set<String> usedMacros) {<NEW_LINE>final Set<String> defined = getDefinedMacros();<NEW_LINE>usedMacros.removeAll(defined);<NEW_LINE>// try to lookup values in System properties<NEW_LINE>@NonNls<NEW_LINE>final String pathMacroSystemPrefix = "path.macro.";<NE...
] result = new boolean[1];
66,580
public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>String projectName = commandLine.getValue(Options.PROJECT_OPTION);<NEW_LINE>String newDir = commandLine.getValue(Options.DIR_OPTION);<NEW_LINE>// moving into an existing directory<NEW_LINE>if (new File(newDir).exists()) {<NEW_LINE>newDir = newDi...
name.replaceFirst("^[A-Z]:", "");
738,243
private void updateDate() {<NEW_LINE>if (!text.getText().isEmpty()) {<NEW_LINE>try {<NEW_LINE>String enteredDate = text.getText();<NEW_LINE>setDate(getDateTimeService().parseDate(enteredDate, getFormatString(), lenient));<NEW_LINE>if (lenient) {<NEW_LINE>// If date value was leniently parsed, normalize text<NEW_LINE>//...
e.getMessage(), e);