idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
28,700
private RemotingCommand processReplyMessageRequest(final ChannelHandlerContext ctx, final RemotingCommand request, final SendMessageContext sendMessageContext, final SendMessageRequestHeader requestHeader) {<NEW_LINE>final RemotingCommand response = RemotingCommand.createResponseCommand(SendMessageResponseHeader.class)...
UtilAll.timeMillisToHumanString2(startTimstamp)));
267,044
private static void solve() {<NEW_LINE>int base = 10;<NEW_LINE>Solver solver = new Solver("SendMoreMoney");<NEW_LINE>IntVar s = solver.makeIntVar(0, base - 1, "s");<NEW_LINE>IntVar e = solver.makeIntVar(0, base - 1, "e");<NEW_LINE>IntVar n = solver.makeIntVar(0, base - 1, "n");<NEW_LINE>IntVar d = solver.makeIntVar(0, ...
y }, coeffs, 0));
1,452,816
private void loadNode1174() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_FilterOperand, new QualifiedName(0, "FilterOperand"), new LocalizedText("en", "FilterOperand"), LocalizedText.NULL_VALUE, UInteger.value...
.expanded(), false));
114,549
public AlgorithmSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AlgorithmSpecification algorithmSpecification = new AlgorithmSpecification();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
1,476,540
ReferenceBinding resolve() {<NEW_LINE>if ((this.tagBits & TagBits.HasUnresolvedTypeVariables) == 0)<NEW_LINE>return this;<NEW_LINE>// can be recursive so only want to call once<NEW_LINE><MASK><NEW_LINE>// still part of parameterized type ref<NEW_LINE>ReferenceBinding resolvedType = (ReferenceBinding) BinaryTypeBinding....
this.tagBits &= ~TagBits.HasUnresolvedTypeVariables;
1,411,636
private void uiInit() throws Exception {<NEW_LINE>setSize(250, 250);<NEW_LINE>setLayout(new BoxLayout(this, BoxLayout.X_AXIS));<NEW_LINE>setBackground(AppColors.BACKGROUND);<NEW_LINE>// setOpaque(true);<NEW_LINE>setAlignmentX(Component.LEFT_ALIGNMENT);<NEW_LINE>setBorder(BORDER_CONTROL);<NEW_LINE>checkbox = new JCheckB...
addMouseListener(new HighlightMouseListener(this));
1,139,090
private void processAckInputStream() {<NEW_LINE>Preconditions.checkNotNull(stream);<NEW_LINE>final byte[] buffer = new byte[FOUR_KB];<NEW_LINE>int bytesRead;<NEW_LINE>log.info("Starting ACK processing");<NEW_LINE>try {<NEW_LINE>while (!closed) {<NEW_LINE>// This is a blocking operation<NEW_LINE>bytesRead = ackStream.re...
log.debug("Received ACK bits: " + bytesString);
707,905
private ClassLoadContext createDeclarationContext(Collection<VariableDeclarationSnippet> variableDeclarations, Collection<Identifier> variableNames, Map<Identifier, ModuleMemberDeclarationSnippet> moduleDeclarations) {<NEW_LINE>// Load current declarations<NEW_LINE>Map<Identifier, VariableContext> oldVarDclns = globalV...
variableNameStrs, lastVarDclns.toString());
508,719
public static void quickSort(long[] array, float[] values, int low, int high) {<NEW_LINE>if (low < high) {<NEW_LINE>int mid = (low + high) / 2;<NEW_LINE>long tmp = array[mid];<NEW_LINE>float tmpValue = values[mid];<NEW_LINE>array[mid] = array[low];<NEW_LINE>values[mid] = values[low];<NEW_LINE>array[low] = tmp;<NEW_LINE...
values, low, ii - 1);
1,201,461
private void applyTypeValues(Destination dest, Name type) {<NEW_LINE>if (Destination.TYPE_XYZ.equals(type)) {<NEW_LINE>leftTextField.setText(getDestCoordinate(dest.getLeft()));<NEW_LINE>topTextField.setText(getDestCoordinate(dest.getTop()));<NEW_LINE>zoomTextField.setText(getDestCoordinate(dest.getZoom()));<NEW_LINE>} ...
(dest.getRight()));
243,768
final ListResolverEndpointIpAddressesResult executeListResolverEndpointIpAddresses(ListResolverEndpointIpAddressesRequest listResolverEndpointIpAddressesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResolverEndpointIpAddressesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
854,581
final GetWirelessGatewayTaskResult executeGetWirelessGatewayTask(GetWirelessGatewayTaskRequest getWirelessGatewayTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWirelessGatewayTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Wireless");
1,529,621
protected void lowerLoadHubOrNullNode(LoadHubOrNullNode loadHubOrNullNode, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = loadHubOrNullNode.graph();<NEW_LINE>if (tool.getLoweringStage() != LoweringTool.StandardLoweringStage.LOW_TIER) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (graph.getGuardsStage().allowsFloatin...
FixedWithNextNode predecessor = tool.lastFixedNode();
1,650,705
private static Cigar createNewCigarIfMapsOffEndOfReference(SAMFileHeader header, boolean isUnmapped, int referenceIndex, int alignmentEnd, int readLength, Cigar oldCigar) {<NEW_LINE>Cigar newCigar = null;<NEW_LINE>if (!isUnmapped) {<NEW_LINE>final SAMSequenceRecord refseq = header.getSequence(referenceIndex);<NEW_LINE>...
oldCigar.numCigarElements() - 1);
1,015,522
static Bundle jsonFromGoogleUser(@NonNull GoogleSignInAccount acct) {<NEW_LINE>Bundle auth = new Bundle();<NEW_LINE>auth.putString("accessToken", null);<NEW_LINE>auth.putString("accessTokenExpirationDate", null);<NEW_LINE>auth.putString("refreshToken", null);<NEW_LINE>auth.putString("idToken", acct.getIdToken());<NEW_L...
Uri photoUrl = acct.getPhotoUrl();
56,122
private void saveSettings(Client client, PClient.Builder newClient) {<NEW_LINE>PSettings.Builder newSettings = PSettings.newBuilder();<NEW_LINE>ClientSettings settings = client.getSettings();<NEW_LINE>settings.getBookmarks().forEach(b -> {<NEW_LINE>PBookmark.Builder newBookmark = PBookmark.newBuilder();<NEW_LINE>newBoo...
setData(config.getData());
1,734,169
public ListShardsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListShardsResult listShardsResult = new ListShardsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
569,899
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>refreshLabel = new javax.swing.JLabel();<NEW_LINE>refreshButton = new javax.swing.JButton();<NEW_LINE>closeButton = new jav...
java.awt.GridBagConstraints());
652,223
private void init() {<NEW_LINE>final AESemaphore sem = new AESemaphore("shell:create");<NEW_LINE>Utils.execSWTThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>shell = new Shell(display, SWT.SHELL_TRIM);<NEW_LINE>UIFunctionsManagerSWT.setUIFunctions(delayed_uif);<...
bEnableTray = COConfigurationManager.getBooleanParameter("Enable System Tray");
1,743,533
protected void buildBodyDeclarations(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration enumDeclaration2, EnumDeclaration enumDeclaration) {<NEW_LINE>// add body declaration in the lexical order<NEW_LINE>org.eclipse.jdt.internal.compiler.ast.TypeDeclaration[] members = enumDeclaration2.memberTypes;<NEW_LINE>org.ecli...
compiler.ast.FieldDeclaration nextFieldDeclaration = null;
1,007,592
public String restore(FlinkInfo flinkInfo) {<NEW_LINE>RestClusterClient<StandaloneClusterId> client = null;<NEW_LINE>String localJarPath = flinkInfo.getLocalJarPath();<NEW_LINE>String[] programArgs = genProgramArgs(flinkInfo);<NEW_LINE>String jobId = "";<NEW_LINE>try {<NEW_LINE>client = getFlinkClient();<NEW_LINE>Confi...
setSavepointRestoreSettings(savepointRestoreSettings).build();
1,146,243
public static SqlNode buildSqlLiteral(RexLiteral literal) {<NEW_LINE>switch(literal.getTypeName().getFamily()) {<NEW_LINE>case CHARACTER:<NEW_LINE>return SqlLiteral.createCharString((String) literal.getValue2(), POS);<NEW_LINE>case EXACT_INTEGER:<NEW_LINE>return SqlLiteral.createExactNumeric(literal.getValueAs(Integer....
).toString(), POS);
1,516,879
public static BucketOrder readOrder(StreamInput in) throws IOException {<NEW_LINE>byte id = in.readByte();<NEW_LINE>switch(id) {<NEW_LINE>case COUNT_DESC_ID:<NEW_LINE>return COUNT_DESC;<NEW_LINE>case COUNT_ASC_ID:<NEW_LINE>return COUNT_ASC;<NEW_LINE>case KEY_DESC_ID:<NEW_LINE>return KEY_DESC;<NEW_LINE>case KEY_ASC_ID:<...
int size = in.readVInt();
184,702
public long executeLargeUpdate(String sql, String[] columnNames) throws SQLException {<NEW_LINE>// KEEP CODE IN SYNC: This method is duplicated in WSJdbc42Statement, WSJdbc42PreparedStatement,<NEW_LINE>// and WSJdbc42CallableStatement because multiple inheritance isn't allowed.<NEW_LINE>final <MASK><NEW_LINE>if (isTrac...
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
1,853,176
private void prepareMount(LayoutState layoutState, @Nullable PerfEvent perfEvent) {<NEW_LINE>final boolean isTracing = RenderCoreSystrace.isEnabled();<NEW_LINE>if (isTracing) {<NEW_LINE>RenderCoreSystrace.beginSection("MountState.prepareMount");<NEW_LINE>}<NEW_LINE>final PrepareMountStats stats = unmountOrMoveOldItems(...
markerAnnotate(PARAM_UNCHANGED_COUNT, stats.unchangedCount);
1,518,809
public void deleteRepositoryTags(MetadataDAO metadataDAO, RepositoryIdentification repositoryIdentification, List<String> tagsList, boolean deleteAll, boolean canNotOperateOnProtected, RepositoryEnums.RepositoryTypeEnum repositoryType) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessio...
build(), tagsList, deleteAll);
894,035
private void printTerseNodeProperty(ConsoleView console, String indent, DiagnosticsNode property) {<NEW_LINE>boolean skip = true;<NEW_LINE>if (property.getLevel() == DiagnosticLevel.summary) {<NEW_LINE>skip = false;<NEW_LINE>} else if (property.hasChildren()) {<NEW_LINE>final CompletableFuture<ArrayList<DiagnosticsNode...
getContentTypeFor(property.getLevel());
798,888
@Consumes({ MediaType.APPLICATION_FORM_URLENCODED })<NEW_LINE>@Operation(operationId = "deleteSession", summary = "Delete the session associated with a refresh token.", responses = { @ApiResponse(responseCode = "200", description = "OK"), @ApiResponse(responseCode = "401", description = "User is not authenticated"), @A...
+ "-")).findAny();
1,350,704
public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws DDParser.ParseException {<NEW_LINE>if (nsURI == null) {<NEW_LINE>if ("type".equals(localName)) {<NEW_LINE>this.type = parser.parseEnumAttributeValue(index, com.ibm.ws.javaee.dd.webext.CacheVariable.TypeEnum.class);<NEW_LIN...
identifier = parser.parseStringAttributeValue(index);
233,790
public FXFormNode call(Void param) {<NEW_LINE>tableView.setEditable(true);<NEW_LINE>tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);<NEW_LINE>tableView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);<NEW_LINE>return new FXFormNodeWrapper(new VBox(3, tableView, new HBox(5, addButton, r...
(field.getName()));
1,221,065
public void actionPerformed(ActionEvent e) {<NEW_LINE>NotifyDescriptor nd = new NotifyDescriptor.Confirmation(MSG_Remove_Module(), NotifyDescriptor.YES_NO_OPTION);<NEW_LINE>Object ret = DialogDisplayer.<MASK><NEW_LINE>if (ret == NotifyDescriptor.YES_OPTION) {<NEW_LINE>FileObject fo = FileUtil.toFileObject(parent.getPOM...
getDefault().notify(nd);
1,072,569
private String issueProjectLine(MProject project) {<NEW_LINE>MProjectLine projectLine = new MProjectLine(getCtx(), getProjectLineId(), get_TrxName());<NEW_LINE>if (projectLine.getM_Product_ID() == 0)<NEW_LINE>throw new IllegalArgumentException("Projet Line has no Product");<NEW_LINE>if (projectLine.getC_ProjectIssue_ID...
projectIssue.getMovementQty(), null);
1,791,617
public void hook(ExtensionHook extensionHook) {<NEW_LINE>super.hook(extensionHook);<NEW_LINE>// Register the parameters<NEW_LINE>extensionHook.addOptionsParamSet(getParam());<NEW_LINE>extensionHook.addSessionListener(this);<NEW_LINE>extensionHook.addSiteMapListener(this);<NEW_LINE>extensionHook.addHttpSenderListener(th...
).addPopupMenuItem(getPopupMenuUnsetActiveSession());
441,915
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (System.getProperty(WebKeys.OSGI_ENABLED) == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String cmd = request.getParameter("cmd");<NEW_LINE>java.lang.reflect.Method meth = null;<NEW_LINE>Cla...
), e.getCause());
1,698,077
private void make(File baseFeatureApk, File apkFile, File bundleFile, CoreSigningConfig signingConfig) throws IOException, SigningException {<NEW_LINE>ZipFile zipFile = new ZipFile(apkFile);<NEW_LINE>Enumeration entries = zipFile.entries();<NEW_LINE>ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputSt...
(zipEntry.getName()));
61,044
public static UserPostListingURL parse(final Uri uri) {<NEW_LINE>Integer limit = null;<NEW_LINE>String before = null;<NEW_LINE>String after = null;<NEW_LINE>for (final String parameterKey : General.getUriQueryParameterNames(uri)) {<NEW_LINE>if (parameterKey.equalsIgnoreCase("after")) {<NEW_LINE>after = uri.getQueryPara...
>(pathSegmentsList.size());
1,218,960
private void testCodeFirstTestFormHighway(RestTemplate template, String cseUrlPrefix) {<NEW_LINE>HttpHeaders formHeaders = new HttpHeaders();<NEW_LINE>formHeaders.setContentType(MediaType.APPLICATION_FORM_URLENCODED);<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>String code = "servicecomb%2bwelcome%40%2...
.class).getBody());
1,116,328
public void marshall(SendVoiceMessageRequest sendVoiceMessageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sendVoiceMessageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sendVoiceMessag...
e.getMessage(), e);
620,685
final GetConfigurationProfileResult executeGetConfigurationProfile(GetConfigurationProfileRequest getConfigurationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConfigurationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.SERVICE_ID, "AppConfig");
1,537,197
public UtilizationMetric unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UtilizationMetric utilizationMetric = new UtilizationMetric();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
1,701,281
public int compareTo(getMetrics_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = Boolean.valueOf(is_set_topologyId()).<MASK><NEW_LINE>if (lastComparison != ...
compareTo(other.is_set_topologyId());
277,936
public boolean userDefinedFunctionCoercion(SqlValidatorScope scope, SqlCall call, SqlFunction function) {<NEW_LINE>final List<RelDataType> paramTypes = function.getParamTypes();<NEW_LINE>assert paramTypes != null;<NEW_LINE>boolean coerced = false;<NEW_LINE>for (int i = 0; i < call.operandCount(); i++) {<NEW_LINE>SqlNod...
.get(formalIndex)) || coerced;
1,180,126
private RefactoringStatus initialize(JavaRefactoringArguments extended) {<NEW_LINE>final String handle = extended.getAttribute(JavaRefactoringDescriptorUtil.ATTRIBUTE_INPUT);<NEW_LINE>if (handle != null) {<NEW_LINE>final IJavaElement element = JavaRefactoringDescriptorUtil.handleToElement(extended.getProject(), handle,...
.InitializableRefactoring_argument_not_exist, JavaRefactoringDescriptorUtil.ATTRIBUTE_REFERENCES));
1,307,037
private static short seghelper(Compressor cpi, Macroblock x, BestSegInfo bsi, BlockEnum bekind) {<NEW_LINE>int mvp1, mvp2;<NEW_LINE>if (bekind == BlockEnum.BLOCK_8X16) {<NEW_LINE>mvp1 = 2;<NEW_LINE>mvp2 = 1;<NEW_LINE>} else {<NEW_LINE>mvp1 = 1;<NEW_LINE>mvp2 = 2;<NEW_LINE>}<NEW_LINE>short sr = (short) Math.max((Math.ab...
vp8_cal_step_param(sr, bsi.sv_istep);
1,569,485
public void onDismiss(@NonNull DialogInterface dialog) {<NEW_LINE>boolean checked = false;<NEW_LINE>int selected = 0;<NEW_LINE>for (int i = 0; i < preferences.size(); i++) {<NEW_LINE>boolean active = preferences.<MASK><NEW_LINE>checked |= active;<NEW_LINE>if (active) {<NEW_LINE>selected++;<NEW_LINE>}<NEW_LINE>}<NEW_LIN...
get(i).get();
1,779,905
private BufferedImage scale(BufferedImage image, PageFormat pageFormat) {<NEW_LINE>// scale up to print density (using less of a stretch if image is already larger than page)<NEW_LINE>double upScale = dpiScale * Math.min((pageFormat.getImageableWidth() / image.getWidth()), (pageFormat.getImageableHeight() / image.getHe...
() * upScale), null);
624,813
private void emitParticles(ItemStack stack, IManaSpreader spreader) {<NEW_LINE>float rotationYaw = -(spreader.getRotationX() + 90F);<NEW_LINE>float rotationPitch = spreader.getRotationY();<NEW_LINE>// Lots of EntityThrowable copypasta<NEW_LINE>float f = 0.3F;<NEW_LINE>float mx = (float) (Mth.sin(rotationYaw / 180.0F * ...
0xFF0000) >> 16) / 255F;
1,067,690
private void waitForLoadJobs(Map<String, ListenableFuture<?>> loadJobs) throws Exception {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>System.err.println("Waiting for load jobs...");<NEW_LINE>// Add callbacks to each load job that print information on successful completion or failure.<NEW_LINE>...
"Job %s succeeded (%.3fs)\n", jobName, elapsedSeconds());
307,545
public static void openXlog() {<NEW_LINE>int pid = android<MASK><NEW_LINE>String processName = null;<NEW_LINE>ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);<NEW_LINE>for (ActivityManager.RunningAppProcessInfo appProcess : am.getRunningAppProcesses()) {<NEW_LINE>if (appProcess...
.os.Process.myPid();
1,209,788
public static DetectVehicleIllegalParkingResponse unmarshall(DetectVehicleIllegalParkingResponse detectVehicleIllegalParkingResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectVehicleIllegalParkingResponse.setRequestId(_ctx.stringValue("DetectVehicleIllegalParkingResponse.RequestId"));<NEW_LINE>detectVehicleIllegalPar...
+ "].Boxes[" + j + "].Left"));
655,182
private boolean runReadyJob(final ExecutableNode node) throws IOException {<NEW_LINE>if (Status.isStatusFinished(node.getStatus()) || Status.isStatusRunning(node.getStatus())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Status nextNodeStatus = getImpliedStatus(node);<NEW_LINE>if (nextNodeStatus == null) {<NEW_LI...
startNode = flow.getExecutableNode(startNodeId);
805,620
public Oql visit(Call call) {<NEW_LINE>final Operator op = call.operator();<NEW_LINE>final List<Expression> args = call.arguments();<NEW_LINE>if (op == Operators.NOT_IN || op == IterableOperators.NOT_EMPTY) {<NEW_LINE>// geode doesn't understand syntax foo not in [1, 2, 3]<NEW_LINE>// convert "foo not in [1, 2, 3]" int...
.joining(join)) + ")";
821,253
private boolean sendAck(ConnectionDescriptor descriptor, MqttConnectMessage msg, final String clientId) {<NEW_LINE>LOG.info("Sending connect ACK. CId={}", clientId);<NEW_LINE>final boolean success = descriptor.assignState(DISCONNECTED, SENDACK);<NEW_LINE>if (!success) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>MqttCo...
CONNECTION_ACCEPTED, payload.toByteArray());
320,296
public static List<ClassElement> typesToClasses(Collection<TypeElement> types) {<NEW_LINE>List<ClassElement> classes = new ArrayList<ClassElement>();<NEW_LINE>if (types != null) {<NEW_LINE>Map<String, ClassElement> classesByName = new HashMap<String, ClassElement>();<NEW_LINE>for (TypeElement type : types) {<NEW_LINE>S...
type.getName()) : typeName;
786,296
private static void doRenderOverlay(RenderGameOverlayEvent event, @Nonnull ItemStack equippedProbe) {<NEW_LINE>IconEIO icon1, icon2;<NEW_LINE>if (equippedProbe.getItemDamage() == 0) {<NEW_LINE>icon1 = IconEIO.PROBE_OVERLAY_PROBE;<NEW_LINE>icon2 = IconEIO.PROBE_OVERLAY_COPY_OFF;<NEW_LINE>} else {<NEW_LINE>icon1 = IconEI...
32, 32, 0, true);
1,838,550
private static void handleClientCommand(ServerPlayer player, CompoundTag commandData) {<NEW_LINE>String <MASK><NEW_LINE>String id = commandData.getString("id");<NEW_LINE>List<Component> output = new ArrayList<>();<NEW_LINE>Component[] error = { null };<NEW_LINE>int resultCode = -1;<NEW_LINE>if (player.getServer() == nu...
command = commandData.getString("command");
1,617,641
// SamlMetadataDescriptorUpdater interface<NEW_LINE>@Override<NEW_LINE>public void updateMetadata(IdentityProviderMapperModel mapperModel, EntityDescriptorType entityDescriptor) {<NEW_LINE>String attributeName = mapperModel.getConfig().get(UserAttributeMapper.ATTRIBUTE_NAME);<NEW_LINE>String attributeFriendlyName = map...
).get(UserAttributeMapper.ATTRIBUTE_FRIENDLY_NAME);
567,612
private AlertResult checkSendDingTalkSendMsgResult(String result) {<NEW_LINE>AlertResult alertResult = new AlertResult();<NEW_LINE>alertResult.setStatus("false");<NEW_LINE>if (null == result) {<NEW_LINE>alertResult.setMessage("send ding talk msg error");<NEW_LINE>logger.info("send ding talk msg error,ding talk server r...
"alert send ding talk msg error : {}", sendMsgResponse.getErrmsg());
1,106,870
private static Map<String, AliasOrIndex> suffixWildcard(Context context, MetaData metaData, String expression) {<NEW_LINE>assert expression.length() >= 2 : "expression [" + expression + "] should have at least a length of 2";<NEW_LINE>String fromPrefix = expression.substring(0, expression.length() - 1);<NEW_LINE>char[]...
String toPrefix = new String(toPrefixCharArr);
791,748
final GetActionResult executeGetAction(GetActionRequest getActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
329,979
private void runCustomWorker(String consumerClassName) {<NEW_LINE>LOG.info(String.format("Starting Kinesis Worker %s with %s", consumerClassName, this.getClass().getSimpleName()));<NEW_LINE>try {<NEW_LINE>final Class consumerClass = (Class) Class.forName(consumerClassName);<NEW_LINE>final Method runMethod = consumerCla...
new ConsumerRunner(runMethod, consumer));
971,532
public static boolean isClassLoderStarted(ClassLoader classLoader) {<NEW_LINE>String classLoaderClassName = (classLoader != null) ? classLoader.getClass().getName() : null;<NEW_LINE>// TODO: use interface instead of this hack<NEW_LINE>if ("org.glassfish.web.loader.WebappClassLoader".equals(classLoaderClassName) || "org...
"isClassLoderStarted() : {}", e.getMessage());
636,069
private void addSections(JTransactionMatcher transaction, PDFParser.Transaction<JTransaction> tx) {<NEW_LINE>for (JSection section : transaction.getSections()) {<NEW_LINE>List<String> attributes = new ArrayList<>();<NEW_LINE>for (String regexp : section.getPattern()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Pattern p = Patte...
)) sec.match(regexp);
112,436
private boolean upload(User loginUser, String fullName, MultipartFile file, ResourceType type) {<NEW_LINE>// save to local<NEW_LINE>String fileSuffix = Files.getFileExtension(file.getOriginalFilename());<NEW_LINE>String nameSuffix = Files.getFileExtension(fullName);<NEW_LINE>// determine file suffix<NEW_LINE>if (!(Stri...
e.getMessage(), e);
1,469,261
public static void main(String[] args) {<NEW_LINE>Options options = ConfigManager.Arguments.getOptions();<NEW_LINE>try {<NEW_LINE>DefaultParser parser = new DefaultParser();<NEW_LINE>CommandLine cmd = parser.parse(options, args, null, false);<NEW_LINE>ConfigManager.Arguments arguments = new ConfigManager.Arguments(cmd)...
e.getMessage(), options);
66,051
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Project project = call.rel(0);<NEW_LINE>final DruidQuery query = call.rel(1);<NEW_LINE>final RelOptCluster cluster = project.getCluster();<NEW_LINE>final RexBuilder rexBuilder = cluster.getRexBuilder();<NEW_LINE>if (!DruidQuery.isValidSignature(query.signature()...
.getTypeFactory().builder();
342,936
public void marshall(CreateDeploymentRequest createDeploymentRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDeploymentRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createDeploymen...
createDeploymentRequest.getDeploymentGroupName(), DEPLOYMENTGROUPNAME_BINDING);
1,365,590
public Object resolve(String key) {<NEW_LINE>switch(key) {<NEW_LINE>case "title":<NEW_LINE>return TaskFieldAdapters.TITLE.get(mContentSet);<NEW_LINE>case "description":<NEW_LINE>return TaskFieldAdapters.DESCRIPTION.get(mContentSet);<NEW_LINE>case "checklist":<NEW_LINE>return TaskFieldAdapters.CHECKLIST.get(mContentSet)...
getChoices().getTitle(status);
1,362,822
public void configure(Parameterization config) {<NEW_LINE>settings = new Settings();<NEW_LINE>//<NEW_LINE>//<NEW_LINE>new IntParameter(K_ID).//<NEW_LINE>addConstraint(CommonConstraints.GREATER_EQUAL_ONE_INT).grab(config, x -> settings.k = x);<NEW_LINE>//<NEW_LINE>new ObjectParameter<PCARunner>(PCARunner.Par.PCARUNNER_I...
x -> settings.epsilon = x);
614,158
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>int operandSize = decoder.state_operandSize;<NEW_LINE>instruction.setCode(codes[operandSize]);<NEW_LINE>instruction.setOp0Register((operandSize << 4) + decoder.state_reg + decoder.state_zs_extraRegisterBase + Register.AX);<NEW_LINE>if (decoder.state_mod =...
instruction.setOp2Kind(OpKind.IMMEDIATE32);
1,423,846
public void run() {<NEW_LINE>try {<NEW_LINE>while (currentPutCount.get() < totalPutCount) {<NEW_LINE>long startTimeInMs = SystemTime.getInstance().milliseconds();<NEW_LINE>int burstCount = threadLocalRandom.nextInt(maxParallelRequest) + 1;<NEW_LINE>logger.info("PutThread producing {} times ", burstCount);<NEW_LINE>fina...
).milliseconds() - startTimeInMs);
5,578
private <T> Function<Class, Boolean> typeMatches(BeanType<T> definition, AnnotationMetadata annotationMetadata) {<NEW_LINE>Class<T> bt;<NEW_LINE>if (definition instanceof ProxyBeanDefinition) {<NEW_LINE>bt = ((ProxyBeanDefinition<T>) definition).getTargetType();<NEW_LINE>} else if (definition instanceof AdvisedBeanType...
clazz -> clazz.isAssignableFrom(bt);
1,629,624
public static JsonRequestBPartnerUpsertItem mapHospitalToUpsertRequest(@NonNull final Hospital hospital, @Nullable final String orgCode) {<NEW_LINE>final String hospitalExternalIdentifier = formatExternalId(hospital.getId());<NEW_LINE>final JsonRequestBPartner jsonRequestBPartner = new JsonRequestBPartner();<NEW_LINE>j...
setAddress1(hospital.getAddress());
277,135
private void loadNode740() {<NEW_LINE>ProgramDiagnosticTypeNode node = new ProgramDiagnosticTypeNode(this.context, Identifiers.ProgramStateMachineType_ProgramDiagnostics, new QualifiedName(0, "ProgramDiagnostics"), new LocalizedText("en", "ProgramDiagnostics"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.va...
.expanded(), true));
1,135,428
private Optional<TimelineEvent> addOtherEventDesc(BlackboardArtifact artifact) throws TskCoreException, DuplicateException {<NEW_LINE>if (artifact == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Long timeVal = artifact.getAttributes().stream().filter((attr) -> attr.getAttributeType().getValueType() == ...
? TimelineEventType.STANDARD_ARTIFACT_CATCH_ALL : TimelineEventType.CUSTOM_ARTIFACT_CATCH_ALL;
1,100,746
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite area = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite container = withLayoutData(createComposite(area, new FillLayout()), new GridData(SWT.FILL, SWT.FILL, true, true));<NEW_LINE>Group catGroup = createGroup(container, "Categories"...
getTable().setHeaderVisible(false);
1,174,099
public ImmutableSortedMap<DocumentKey, Document> applyBundledDocuments(ImmutableSortedMap<DocumentKey, MutableDocument> documents, String bundleId) {<NEW_LINE>// Allocates a target to hold all document keys from the bundle, such that<NEW_LINE>// they will not get garbage collected right away.<NEW_LINE>TargetData umbrel...
documentMap = new HashMap<>();
1,840,450
private List<Address> processSegmentPointerChain(DyldChainedFixupHeader chainHeader, DyldChainedStartsInSegment chainStart) throws MemoryAccessException, CancelledException {<NEW_LINE>List<Address> fixedAddresses = new ArrayList<Address>();<NEW_LINE>long fixedAddressCount = 0;<NEW_LINE>if (chainStart.getPointerFormat()...
ptrFormat, page, pageOffset, authValueAdd);
1,081,796
protected void paintIcon(Graphics2D g2) {<NEW_LINE>// see HexDigit.getSegs()<NEW_LINE>final var segson = HexDigit.getSegs(isHexDisplay ? 10 : 7);<NEW_LINE>g2.setStroke(new BasicStroke(scale(2)));<NEW_LINE>g2.setColor(Color.WHITE);<NEW_LINE>g2.fillRect(scale(2), 0, scale(10), scale(16));<NEW_LINE>g2.setColor(Color.BLACK...
Color.RED : Color.LIGHT_GRAY);
1,235,200
private <T extends Statement> int validate(final ServiceContext serviceContext, final ConfiguredStatement<T> configured, final SessionProperties sessionProperties, final KsqlExecutionContext executionContext, final Injector injector) throws KsqlStatementException {<NEW_LINE>final Statement statement = configured.getSta...
> statementClass = statement.getClass();
1,220,485
int compare(/* const */<NEW_LINE>Treap treap, int left, int node) {<NEW_LINE>int right = treap.getElement(node);<NEW_LINE>Edge edge1 = m_helper.m_edges.get(left);<NEW_LINE>Edge edge2 = m_helper.m_edges.get(right);<NEW_LINE>boolean bEdge1Reversed = edge1.getReversed();<NEW_LINE>boolean bEdge2Reversed = edge2.getReversed...
m_segment.intersectionOfYMonotonicWithAxisX(y, 0);
1,261,634
private void initMaps(File homophoneOccurrenceFile) throws FileNotFoundException {<NEW_LINE>try (Scanner s = new Scanner(homophoneOccurrenceFile)) {<NEW_LINE>while (s.hasNextLine()) {<NEW_LINE>String line = s.nextLine();<NEW_LINE>String[] parts = line.split("\t");<NEW_LINE>if (parts.length != 3) {<NEW_LINE>throw new Ru...
(parts[2], occurrenceCount);
1,046,184
public okhttp3.Call applicationsApplicationIdMapKeysPostCall(String applicationId, ApplicationKeyMappingRequestDTO applicationKeyMappingRequestDTO, String xWSO2Tenant, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = applicationKeyMappingRequestDTO;<NEW_LINE>// create path and map v...
(applicationId.toString()));
839,371
/*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private Object fluxifyInputIfNecessary(Object input) {<NEW_LINE>if (input instanceof Message && !((Message) input).getHeaders().containsKey("user-agent") && this.isConsumer() && !this.isInputTypePublisher()) {<NEW_LINE>return input;<NEW_LINE>}<N...
debug("Converting JSON string representing collection to a list of Messages. Function '" + this + "' will be invoked iteratively");
1,000,198
public void start(Container container) throws Exception {<NEW_LINE>if (mapTilesPath == null || mapSettingsPath == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.info("Starting map service with tile data: " + mapTilesPath.toAbsolutePath());<NEW_LINE>Class.forName(org.sqlite.JDBC.class.getName());<NEW_LINE>connection =...
put("minZoom", metadata.minZoom);
1,137,675
public void write(SAML11StatusType status) throws ProcessingException {<NEW_LINE>StaxUtil.writeStartElement(writer, PROTOCOL_PREFIX, SAML11Constants.STATUS, namespace);<NEW_LINE>SAML11StatusCodeType statusCode = status.getStatusCode();<NEW_LINE>if (statusCode != null) {<NEW_LINE>write(statusCode);<NEW_LINE>}<NEW_LINE>S...
StaxUtil.writeCharacters(writer, statusMsg);
350,153
public void verifyParams(Universe universe) {<NEW_LINE>UserIntent userIntent = universe.getUniverseDetails().getPrimaryCluster().userIntent;<NEW_LINE>Map<String, String> universeConfig = universe.getConfig();<NEW_LINE>if (upgradeOption == UpgradeOption.ROLLING_UPGRADE && universe.nodesInTransit()) {<NEW_LINE>throw new ...
universeUUID + " as it is not helm 3 compatible. " + "Manually migrate the deployment to helm3 " + "and then mark the universe as helm 3 compatible.");
1,117,539
public String deleteTimeseries(PartialPath pathPattern, boolean isPrefixMatch) throws MetadataException {<NEW_LINE>List<SchemaRegion> schemaRegions = getInvolvedSchemaRegions(pathPattern, isPrefixMatch);<NEW_LINE>if (schemaRegions.isEmpty()) {<NEW_LINE>// In the cluster mode, the deletion of a timeseries will be forwar...
PathNotExistException(pathPattern.getFullPath());
1,163,976
public CreateSchemaResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSchemaResult createSchemaResult = new CreateSchemaResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
146,883
private <T extends Trait> SecurityScheme convertAuthScheme(Context<? extends Trait> context, SecuritySchemeConverter<T> converter, AuthorizerDefinition authorizer, String authorizerName) {<NEW_LINE>T authTrait = context.getService().expectTrait(converter.getAuthSchemeType());<NEW_LINE>SecurityScheme createdScheme = con...
::from)).build();
522,547
private static AbstractBeginNode createInvocationBlock(StructuredGraph graph, Invoke invoke, AbstractMergeNode returnMerge, PhiNode returnValuePhi, AbstractMergeNode exceptionMerge, PhiNode exceptionObjectPhi, boolean useForInlining) {<NEW_LINE>Invoke duplicatedInvoke = duplicateInvokeForInlining(graph, invoke, excepti...
.add(new EndNode());
1,141,699
public HTMLDocument createHTMLDocument(final Object titleObj) {<NEW_LINE>if (Undefined.isUndefined(titleObj) && getBrowserVersion().hasFeature(JS_DOMIMPLEMENTATION_CREATE_HTMLDOCOMENT_REQUIRES_TITLE)) {<NEW_LINE>throw Context.reportRuntimeError("Title is required");<NEW_LINE>}<NEW_LINE>// a similar impl is in<NEW_LINE>...
Context.toString(titleObj) + "</title></head><body></body></html>";
1,428,846
// ~ Methods ----------------------------------------------------------------<NEW_LINE>protected void explain_(RelNode rel, List<Pair<String, Object>> values) {<NEW_LINE>List<RelNode> inputs = rel.getInputs();<NEW_LINE>final RelMetadataQuery mq = rel.getCluster().getMetadataQuery();<NEW_LINE>if (!mq.isVisibleInExplain(...
()).append(":");
188,846
private static boolean decodePointVar(byte[] p, int pOff, boolean negate, PointExt r) {<NEW_LINE>byte[] py = copy(p, pOff, POINT_BYTES);<NEW_LINE>if (!checkPointVar(py)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int x_0 = (py[POINT_BYTES - 1] & 0x80) >>> 7;<NEW_LINE>py[POINT_BYTES - 1] &= 0x7F;<NEW_LINE>F.decode(py,...
] u = F.create();
1,731,402
public void marshall(DescribeVaultOutput describeVaultOutput, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describeVaultOutput == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(describeVaultOutput.getVaul...
e.getMessage(), e);
536,275
public void positionStmtsAfterEnumInitStmts(List<Statement> staticFieldStatements) {<NEW_LINE>MethodNode method = getOrAddStaticConstructorNode();<NEW_LINE>Statement statement = method.getCode();<NEW_LINE>if (statement instanceof BlockStatement) {<NEW_LINE>BlockStatement block = (BlockStatement) statement;<NEW_LINE>// ...
(FieldExpression) bExp.getLeftExpression();
772,456
public void project(double camX, double camY, double camZ, Point2D_F64 output) {<NEW_LINE>// angle between incoming ray and principle axis<NEW_LINE>// Principle Axis = (0,0,z)<NEW_LINE>// Incoming Ray = (x,y,z)<NEW_LINE>// uses dot product<NEW_LINE>double theta = Math.acos(camZ / UtilPoint3D_F64.norm(camX, camY, camZ...
skew * distY + model.cx);
978,025
private static Dependency loadDependencyFromManifest(JarFile jarFile, String path) throws IOException {<NEW_LINE>Manifest manifest = jarFile.getManifest();<NEW_LINE>if (manifest != null) {<NEW_LINE>Attributes attributes = manifest.getMainAttributes();<NEW_LINE>String name = attributes.getValue("implementation-title");<...
version, vendor, path, DEPENDENCY_SOURCE_MANEFEST_BUNDLE);
1,663,301
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>OsmandApplication app = requireMyApplication();<NEW_LINE>boolean night = <MASK><NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(requireContext(), night);<NEW_LINE>View view = themedInfl...
!requireSettings().isLightContent();
785,312
public static void executorServiceExecuted(Object callRunnable) {<NEW_LINE>try {<NEW_LINE>TraceContext ctx = TraceContextManager.getContext(true);<NEW_LINE>if (ctx == null)<NEW_LINE>return;<NEW_LINE>if (callRunnable == null)<NEW_LINE>return;<NEW_LINE>if (callRunnable instanceof WrTaskCallable)<NEW_LINE>return;<NEW_LINE...
? ctx.txid : ctx.gxid;