idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
278,302 | public static Object apply(Object fieldValue) {<NEW_LINE>BytesReference bytesRef = fieldValue == null ? new BytesArray("null") : new BytesArray(fieldValue.toString());<NEW_LINE>try (<MASK><NEW_LINE>XContentParser parser = JsonXContent.jsonXContent.createParser(NamedXContentRegistry.EMPTY, DeprecationHandler.THROW_UNSUP... | InputStream stream = bytesRef.streamInput(); |
1,379,336 | public static Properties loadRepoProperties() throws InstallException {<NEW_LINE>Properties repoProperties = null;<NEW_LINE>// Retrieves the Repository Properties file<NEW_LINE>File repoPropertiesFile = new File(getRepoPropertiesFileLocation());<NEW_LINE>// Check if default repository properties file location is overri... | ()), InstallException.IO_FAILURE); |
62,109 | public static DescribeExcelAnalysisResultResponse unmarshall(DescribeExcelAnalysisResultResponse describeExcelAnalysisResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExcelAnalysisResultResponse.setRequestId(_ctx.stringValue("DescribeExcelAnalysisResultResponse.RequestId"));<NEW_LINE>describeExcelAnalysisRe... | = new ArrayList<String>(); |
1,094,221 | private boolean handleTimeDependentOpsForNode(final ClusterState currentClusterState, final NodeStateOrHostInfoChangeHandler nodeListener, final long currentTime, final NodeInfo node) {<NEW_LINE>final NodeState currentStateInSystem = currentClusterState.<MASK><NEW_LINE>final NodeState lastReportedState = node.getReport... | getNodeState(node.getNode()); |
1,664,137 | public void read(org.apache.thrift.protocol.TProtocol prot, TAuthenticationKey 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(4);<NEW_LINE>if (incoming.get(0)... | .keyId = iprot.readI32(); |
679,355 | private void registerReflectionForApiResponseSchemaSerialization(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<ReflectiveHierarchyBuildItem> reflectiveHierarchy, Collection<AnnotationInstance> apiResponseAnnotationInstances) {<NEW_LINE>for (AnnotationInstance apiResponseAnnotationInstance : api... | schemaImplementationClass = schema.value(OPENAPI_SCHEMA_IMPLEMENTATION); |
1,261,492 | public void enableLedgerReplication() throws ReplicationException.UnavailableException {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("enableLedegerReplication()");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>zkc.delete(basePath + '/' + BookKeeperConstants.DISABLE_NODE, -1);<NEW_LINE>LOG.info("Resuming automatic ledg... | ReplicationException.UnavailableException("Exception while resuming auto ledger re-replication", ke); |
482,987 | private IQueryBuilder<I_PP_Order> toSqlQueryBuilder(final ManufacturingOrderQuery query) {<NEW_LINE>final IQueryBuilder<I_PP_Order> queryBuilder = queryBL.createQueryBuilder(I_PP_Order.class).addOnlyActiveRecordsFilter();<NEW_LINE>// Plant<NEW_LINE>if (query.getPlantId() != null) {<NEW_LINE>queryBuilder.addEqualsFilter... | COLUMNNAME_M_Warehouse_ID, query.getWarehouseId()); |
461,736 | public void marshall(LustreFileSystemConfiguration lustreFileSystemConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (lustreFileSystemConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha... | lustreFileSystemConfiguration.getDeploymentType(), DEPLOYMENTTYPE_BINDING); |
1,269,285 | public String serializeSpanContext() {<NEW_LINE>StringBuilder serializedValue = new StringBuilder();<NEW_LINE>serializedValue.append(TRACE_ID_KET).append(StringUtils.EQUAL).append(traceId).append(StringUtils.AND);<NEW_LINE>serializedValue.append(SPAN_ID_KET).append(StringUtils.EQUAL).append(spanId).append(StringUtils.A... | (this.sysBaggage, SYS_BAGGAGE_PREFIX_KEY)); |
1,078,231 | private synchronized ConnectionI createConnection(Transceiver transceiver, ConnectorInfo ci) {<NEW_LINE>assert (_pending.containsKey(ci.connector) && transceiver != null);<NEW_LINE>//<NEW_LINE>// Create and add the connection to the connection map. Adding the connection to the map<NEW_LINE>// is necessary to support th... | .zeroc.Ice.CommunicatorDestroyedException(); |
837,607 | public Request<ModifyNetworkInterfaceAttributeRequest> marshall(ModifyNetworkInterfaceAttributeRequest modifyNetworkInterfaceAttributeRequest) {<NEW_LINE>if (modifyNetworkInterfaceAttributeRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Reques... | > groupsList = modifyNetworkInterfaceAttributeRequest.getGroups(); |
1,590,533 | static void diffRowValues(RowBuilder rowBuilder, @Nullable Row baseRow, @Nullable Row deltaRow, TableMetadata inputMetadata) {<NEW_LINE>checkArgument(baseRow != null || deltaRow != null, "Both base and delta rows cannot be null");<NEW_LINE><MASK><NEW_LINE>checkArgument(inputMetadata.getColumnMetadata() != null, "column... | checkArgument(rowBuilder != null, "rowBuilder cannot be null"); |
177,324 | private static void tryChainedCountSum(RegressionEnvironment env, int numThreads, int numEvents) {<NEW_LINE>// setup statements<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public insert into MyStreamOne select count(*) as cnt from SupportBean", path);<NEW_LINE>env.compileDeploy("@n... | ] future = new Future[numThreads]; |
1,602,855 | public static MDLocalVariable create32(long[] args, Metadata md) {<NEW_LINE>final long lineAndArg = ParseUtil.asInt(args, ARGINDEX_32_LINEARG, md);<NEW_LINE>final long line = lineAndArg & DW_TAG_LOCAL_VARIABLE_LINE_MASK;<NEW_LINE>final long arg = (lineAndArg & DW_TAG_LOCAL_VARIABLE_ARG_MASK) >> DW_TAG_LOCAL_VARIABLE_AR... | , ARGINDEX_32_SCOPE, localVariable, md)); |
609,745 | private // "command=FINALIZE&media_id=601413451156586496"<NEW_LINE>UploadedMedia uploadMediaChunkedFinalize(long mediaId) throws TwitterException {<NEW_LINE>int tries = 0;<NEW_LINE>int maxTries = 20;<NEW_LINE>int lastProgressPercent = 0;<NEW_LINE>int currentProgressPercent = 0;<NEW_LINE>UploadedMedia uploadedMedia = up... | debug("Chunked finalize, wait for:" + waitSec + " sec"); |
1,355,524 | public byte[] decrypt(byte[] cipherTextWithIv) throws Exception {<NEW_LINE>checkHeader(cipherTextWithIv);<NEW_LINE>Cipher cipher = Cipher.getInstance(CIPHER_NAME);<NEW_LINE>int bufferLength = cipherTextWithIv.length - HEADER.length;<NEW_LINE>ByteBuffer buffer = ByteBuffer.wrap(cipherTextWithIv, HEADER.length, bufferLen... | byte[buffer.remaining()]; |
331,851 | public void init(boolean forEncryption, CipherParameters param) {<NEW_LINE>if (param instanceof ParametersWithRandom) {<NEW_LINE>ParametersWithRandom p = (ParametersWithRandom) param;<NEW_LINE>this.key = <MASK><NEW_LINE>this.random = p.getRandom();<NEW_LINE>} else {<NEW_LINE>this.key = (ElGamalKeyParameters) param;<NEW... | (ElGamalKeyParameters) p.getParameters(); |
1,069,766 | // This function assumes Python script is located in the "src/main/resources".<NEW_LINE>public List<String> runPython(String pyName) throws Exception {<NEW_LINE>String pyFullName = getFullResourcePath(pyName);<NEW_LINE>LOG.info(String.format("Run python script `%s`", pyFullName));<NEW_LINE>ProcessBuilder pBuilder = new... | collect(Collectors.toList()); |
1,007,828 | final ListComponentsResult executeListComponents(ListComponentsRequest listComponentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listComponentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | false), new ListComponentsResultJsonUnmarshaller()); |
242,255 | public Insn withSourceLiteral() {<NEW_LINE>RegisterSpecList sources = getSources();<NEW_LINE><MASK><NEW_LINE>if (szSources == 0) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>TypeBearer lastType = sources.get(szSources - 1).getTypeBearer();<NEW_LINE>if (!lastType.isConstant()) {<NEW_LINE>// Check for reverse subtraction,... | int szSources = sources.size(); |
1,794,372 | protected boolean checkNullableFieldDereference(Scope scope, FieldBinding field, long sourcePosition, FlowContext flowContext, int ttlForFieldCheck) {<NEW_LINE>if (field != null) {<NEW_LINE>if (ttlForFieldCheck > 0 && scope.compilerOptions().enableSyntacticNullAnalysisForFields)<NEW_LINE>flowContext.recordNullCheckedFi... | sourcePosition, scope.environment()); |
366,899 | public static void finish_time_warp() {<NEW_LINE>long completed_ticks = time_warp_scheduled_ticks - time_bias;<NEW_LINE>double milis_to_complete = System.nanoTime() - time_warp_start_time;<NEW_LINE>if (milis_to_complete == 0.0) {<NEW_LINE>milis_to_complete = 1.0;<NEW_LINE>}<NEW_LINE>milis_to_complete /= 1000000.0;<NEW_... | ) (1000.0D * completed_ticks / milis_to_complete); |
961,076 | public void save(JasperPrint jasperPrint, File file) throws JRException {<NEW_LINE>if (!file.getName().toLowerCase().endsWith(EXTENSION_XLS)) {<NEW_LINE>file = new File(file.getAbsolutePath() + EXTENSION_XLS);<NEW_LINE>}<NEW_LINE>if (!file.exists() || JOptionPane.OK_OPTION == JOptionPane.showConfirmDialog(null, Message... | = new JRXlsExporter(getJasperReportsContext()); |
649,647 | public Answer cloneVolumeFromBaseTemplate(final CopyCommand cmd) {<NEW_LINE>final Connection conn = hypervisorResource.getConnection();<NEW_LINE>final DataTO srcData = cmd.getSrcTO();<NEW_LINE>final DataTO destData = cmd.getDestTO();<NEW_LINE>final VolumeObjectTO volume = (VolumeObjectTO) destData;<NEW_LINE>VDI vdi = n... | <String, String>()); |
899,712 | public Map<String, Boolean> updateConfiguration(Map<String, String> propertiesMap) {<NEW_LINE>Map<String, Boolean> <MASK><NEW_LINE>int successCount = 0;<NEW_LINE>for (Map.Entry<String, String> entry : propertiesMap.entrySet()) {<NEW_LINE>try {<NEW_LINE>PropertyKey key = PropertyKey.fromString(entry.getKey());<NEW_LINE>... | result = new HashMap<>(); |
1,620,471 | public static void addCreatedTorrent(TOTorrent torrent) {<NEW_LINE>synchronized (created_torrents) {<NEW_LINE>try {<NEW_LINE>byte[] hash = torrent.getHash();<NEW_LINE>HashWrapper hw = new HashWrapper(hash);<NEW_LINE>boolean dirty = false;<NEW_LINE>long check = <MASK><NEW_LINE>COConfigurationManager.setParameter("my.cre... | COConfigurationManager.getLongParameter("my.created.torrents.check", 0); |
1,579,609 | public Request<DeleteBackupRequest> marshall(DeleteBackupRequest deleteBackupRequest) {<NEW_LINE>if (deleteBackupRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteBackupRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteBackupRequest> request = new DefaultRequest<DeleteBa... | request.addHeader("Content-Type", "application/x-amz-json-1.0"); |
862,921 | public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) {<NEW_LINE>// get a database update<NEW_LINE>DAO.observe();<NEW_LINE>String model = call.get("model", "");<NEW_LINE>String group = call.get("group", "");<NEW_LINE>String language =... | getValue().getImage()); |
672,128 | public boolean processStep(BottlingMachineTileEntity tile) {<NEW_LINE>int energyExtracted = (int) (8 * IEServerConfig.MACHINES.bottlingMachineConfig.energyModifier.get());<NEW_LINE>if (tile.energyStorage.extractEnergy(energyExtracted, true) >= energyExtracted) {<NEW_LINE>tile.energyStorage.extractEnergy(energyExtracted... | tile).get(0)); |
689,032 | public void search(float cx, float cy) {<NEW_LINE>peakX = cx;<NEW_LINE>peakY = cy;<NEW_LINE>if (radius <= 0) {<NEW_LINE>// can turn off refinement by setting radius to zero<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float offset = -radius + (weights.isOdd() ? 0 : 0.5f);<NEW_LINE>for (int i = 0; i < maxIterations; i++) {<NEW_... | float sumX = 0, sumY = 0; |
1,802,482 | public int generateForcastRunLines(MPPForecastRunDetail frd) {<NEW_LINE>List<Object> parameters = new ArrayList<Object>();<NEW_LINE>StringBuffer insertSQL = new StringBuffer();<NEW_LINE>MPPPeriod period = (MPPPeriod) frd.getPP_Period();<NEW_LINE>insertSQL.append("INSERT INTO ").append(MPPForecastRunLine.Table_Name).app... | .COLUMNNAME_Created).append(","); |
725,300 | public void createControl(Composite parent) {<NEW_LINE>initializeDialogUnits(parent);<NEW_LINE>SashForm settingsDivider = new SashForm(parent, SWT.VERTICAL);<NEW_LINE>settingsDivider.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>{<NEW_LINE>Composite inputFilesGroup = UIUtils.createComposite(settingsDivider,... | (DataTransferPipe) item.getData(); |
446,877 | private void readWebSocketFrame() throws IOException {<NEW_LINE>try {<NEW_LINE>Frame frame = Frame.read(this.inputStream);<NEW_LINE>if (frame.getType() == Frame.Type.PING) {<NEW_LINE>writeWebSocketFrame(new Frame(Frame.Type.PONG));<NEW_LINE>} else if (frame.getType() == Frame.Type.CLOSE) {<NEW_LINE>throw new Connection... | Frame.read(this.inputStream); |
1,799,517 | private List<DdlTask> createTasksForOneJob(PhysicalPlanData physicalPlanData) {<NEW_LINE>String schemaName = physicalPlanData.getSchemaName();<NEW_LINE>String logicalTableName = physicalPlanData.getLogicalTableName();<NEW_LINE>String indexName = physicalPlanData.getIndexName();<NEW_LINE>boolean isNewPart = DbInfoManage... | = new CdcDdlMarkTask(schemaName, physicalPlanData); |
1,776,185 | private static void serializeKeyToByteBuffer(final ByteBuffer buffer, final OType type, final Object key) {<NEW_LINE>switch(type) {<NEW_LINE>case BINARY:<NEW_LINE>final byte[] <MASK><NEW_LINE>buffer.putInt(array.length);<NEW_LINE>buffer.put(array);<NEW_LINE>return;<NEW_LINE>case BOOLEAN:<NEW_LINE>buffer.put((Boolean) k... | array = (byte[]) key; |
1,805,621 | public CreatePipelineResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreatePipelineResult createPipelineResult = new CreatePipelineResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
820,364 | private boolean handleNonReadyStatus() {<NEW_LINE>synchronized (this.syncObject) {<NEW_LINE>Status nodeStatus = this.node.getStatus();<NEW_LINE>boolean quickFinish = false;<NEW_LINE>final long time = System.currentTimeMillis();<NEW_LINE>if (Status.isStatusFinished(nodeStatus)) {<NEW_LINE>quickFinish = true;<NEW_LINE>} ... | this.node.setEndTime(time); |
163,659 | static byte[] toBytes(Object object, JSONWriter.Feature... features) {<NEW_LINE>try (JSONWriter writer = new JSONWriterJSONB(new JSONWriter.Context(JSONFactory.defaultObjectWriterProvider, features), null)) {<NEW_LINE>JSONWriter.Context context = writer.context;<NEW_LINE>if (object == null) {<NEW_LINE>writer.writeNull(... | getObjectWriter(valueClass, valueClass, fieldBased); |
1,455,292 | public ConfigData deepcopy() {<NEW_LINE>ConfigData data = new ConfigData();<NEW_LINE>data.serverUrl = serverUrl;<NEW_LINE>data.realm = realm;<NEW_LINE>data.truststore = truststore;<NEW_LINE>data.trustpass = trustpass;<NEW_LINE>data.endpoints = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Map<String, RealmConfigData... | item.getKey(), nuitems); |
998,891 | private List<Node> refreshOrder(Entry entry, Collection<Node> oldNodes, Collection<Node> newNodes) {<NEW_LINE>List<Node> toAdd = new LinkedList<Node>();<NEW_LINE>Set<Node> oldNodesSet = new HashSet<Node>(oldNodes);<NEW_LINE>Set<Node> toProcess = new HashSet<Node>(oldNodesSet);<NEW_LINE>Node[] permArray = new Node[oldNo... | size()]), permArray); |
1,039,770 | public GetInsightSelectorsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetInsightSelectorsResult getInsightSelectorsResult = new GetInsightSelectorsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | class).unmarshall(context)); |
1,088,684 | final DeleteIdentityResult executeDeleteIdentity(DeleteIdentityRequest deleteIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
36,711 | public View onCreateDemoView(LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) {<NEW_LINE>View view = layoutInflater.inflate(R.layout.cat_navigation_rail_fragment, viewGroup, false);<NEW_LINE>initNavigationRail(getContext(), view);<NEW_LINE>initNavigationRailDemoControls(view);<NEW_... | findViewById(R.id.page_4); |
768,660 | <R> void sendRpc(YRpc<R> rpc) {<NEW_LINE>if (!rpc.deadlineTracker.hasDeadline()) {<NEW_LINE>LOG.warn(getPeerUuidLoggingString() + " sending an rpc without a timeout " + rpc);<NEW_LINE>}<NEW_LINE>if (chan != null) {<NEW_LINE><MASK><NEW_LINE>if (serialized == null) {<NEW_LINE>// Error during encoding.<NEW_LINE>// Stop he... | final ChannelBuffer serialized = encode(rpc); |
1,448,975 | private void buildMoreTryStatementCompletionContext(TypeReference exceptionRef) {<NEW_LINE>if (this.astLengthPtr > 0 && this.astPtr > 2 && this.astStack[this.astPtr - 1] instanceof Block && this.astStack[this.astPtr - 2] instanceof Argument) {<NEW_LINE>TryStatement tryStatement = new TryStatement();<NEW_LINE>int newAst... | catchArguments = new Argument[1]); |
1,785,243 | private static DiscreteXYPainter createDiscretePainter(DiscreteXYItemDescriptor descriptor, int itemIndex, PointsComputer c) {<NEW_LINE>double dataFactor = descriptor.getDataFactor();<NEW_LINE>float lineWidth = descriptor.getLineWidth();<NEW_LINE>if (lineWidth == ProbeItemDescriptor.DEFAULT_LINE_WIDTH)<NEW_LINE>lineWid... | fillColor = TimelineColorFactory.getColor(itemIndex); |
39,834 | private void doStore(Task parentTask, GetResponse response, CreateModelFromSetRequest request, ActionListener<CreateModelFromSetResponse> listener) {<NEW_LINE>if (!response.isExists()) {<NEW_LINE>throw new IllegalArgumentException("Stored feature set [" + request.getFeatureSetName() + "] does not exist");<NEW_LINE>}<NE... | model, FeatureStoreRequest.Action.CREATE); |
1,754,200 | public double continueToMargin(double[] origin, double[] delta) {<NEW_LINE>assert (delta.length == 2 && origin.length == 2);<NEW_LINE>double factor = Double.POSITIVE_INFINITY;<NEW_LINE>if (delta[0] > 0) {<NEW_LINE>factor = Math.min(factor, (maxx - origin[0]) / delta[0]);<NEW_LINE>} else if (delta[0] < 0) {<NEW_LINE>fac... | ]) / delta[1]); |
180,075 | public void initBackfillMeta(ExecutionContext ec, long backfillId, String schemaName, String tableName, String indexName, List<BackfillObjectRecord> positionMarks) {<NEW_LINE>final List<BackfillObjectRecord> backfillObjectRecords = positionMarks.stream().map(bfo -> new BackfillObjectRecord(-1, backfillId, schemaName, t... | collect(Collectors.toList()); |
523,167 | protected void run() {<NEW_LINE>try {<NEW_LINE>runInterceptHook();<NEW_LINE>var preparedDelayedPayoutTx = processModel.getPreparedDelayedPayoutTx();<NEW_LINE>TradeDataValidation.validateDelayedPayoutTx(trade, preparedDelayedPayoutTx, processModel.getDaoFacade(), processModel.getBtcWalletService());<NEW_LINE>// If the d... | failed(e.getMessage()); |
480,883 | protected Password unlockEntry(String alias, KeyStoreState state) {<NEW_LINE>try {<NEW_LINE>KeyStore keyStore = state.getKeyStore();<NEW_LINE>DGetPassword dGetPassword = new DGetPassword(frame, MessageFormat.format(res.getString("KeyStoreExplorerAction.UnlockEntry.Title"), alias));<NEW_LINE>dGetPassword.setLocationRela... | .getString("KeyStoreExplorerAction.ProblemUnlockingEntry.Title"), problem); |
1,680,817 | public void marshall(ThingDocument thingDocument, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (thingDocument == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(thingDocument.getThingName(), THINGNAME_BINDI... | e.getMessage(), e); |
46,803 | private void renderRecordingIndicator(MatrixStack stack) {<NEW_LINE>if (guiControls.isStopped())<NEW_LINE>return;<NEW_LINE>if (settingsRegistry.get(Setting.INDICATOR)) {<NEW_LINE>TextRenderer fontRenderer = mc.textRenderer;<NEW_LINE>String text = guiControls.isPaused() ? I18n.translate("replaymod.gui.paused"<MASK><NEW_... | ) : I18n.translate("replaymod.gui.recording"); |
984,298 | public Operand buildPatternCase(PatternCaseNode patternCase) {<NEW_LINE>Variable result = temp();<NEW_LINE>Operand value = build(patternCase.getCaseNode());<NEW_LINE>label(end -> {<NEW_LINE>List<Label> labels = new ArrayList<>();<NEW_LINE>Map<Label, Node> <MASK><NEW_LINE>// build each "when"<NEW_LINE>Variable deconstru... | bodies = new HashMap<>(); |
465,309 | private static String stripGarbage(String contents) {<NEW_LINE>String working = contents;<NEW_LINE>working = removeMultiLineGarbage(working, PRAGMA);<NEW_LINE>// Windows<NEW_LINE>working = working.replaceAll("_+cdecl", "");<NEW_LINE>working = working.replaceAll("_+stdcall", "");<NEW_LINE>working = DECLSPEC.matcher(work... | working.replaceAll("(<?=\\s)_+inline", ""); |
521,668 | static NestedSet<?> expandSet(CompletionContext ctx, NestedSet<?> artifacts) {<NEW_LINE>NestedSetBuilder<Object> res = new NestedSetBuilder<>(Order.STABLE_ORDER);<NEW_LINE>for (Object artifact : artifacts.getLeaves()) {<NEW_LINE>if (artifact instanceof ExpandedArtifact) {<NEW_LINE>res.add(artifact);<NEW_LINE>} else if ... | boolean noDirects = res.isEmpty(); |
1,649,568 | private boolean constReturn(int type, int value, int nextOpcode, int iter) {<NEW_LINE>if (nextOpcode == type) {<NEW_LINE>instructions.remove(iter);<NEW_LINE>instructions.remove(iter);<NEW_LINE>if (synchronizedMethod && instructions.size() > 0) {<NEW_LINE>if (staticMethod) {<NEW_LINE>instructions.add(iter, new CustomInt... | + maxLocals + ");\n", dependentClasses)); |
694,639 | private // name of parent file<NEW_LINE>String createErrorMsg(JspLineId jspLineId, int errorLineNr) {<NEW_LINE>StringBuffer compilerOutput = new StringBuffer();<NEW_LINE>if (jspLineId.getSourceLineCount() <= 1) {<NEW_LINE>Object[] objArray = new Object[] { new Integer(jspLineId.getStartSourceLineNum()), jspLineId.getFi... | .getMsg("jsp.error.single.line.number", objArray)); |
325,664 | public void doFrame(long frameTimeNanos) {<NEW_LINE>postFrameCallback();<NEW_LINE>if (composition == null || !isRunning()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>L.beginSection("LottieValueAnimator#doFrame");<NEW_LINE>long timeSinceFrame = lastFrameTimeNs == 0 ? 0 : frameTimeNanos - lastFrameTimeNs;<NEW_LINE>float fram... | ? getMinFrame() : getMaxFrame(); |
1,022,088 | public Page<CommunityRest> findAllTop(Pageable pageable) {<NEW_LINE>try {<NEW_LINE>Context context = obtainContext();<NEW_LINE>List<Community> topLevelCommunities = new LinkedList<Community>();<NEW_LINE>DiscoverQuery discoverQuery = new DiscoverQuery();<NEW_LINE>discoverQuery.setQuery("*:*");<NEW_LINE>discoverQuery.set... | e.getMessage(), e); |
654,711 | public static ListDataStatisticsResponse unmarshall(ListDataStatisticsResponse listDataStatisticsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataStatisticsResponse.setRequestId(_ctx.stringValue("ListDataStatisticsResponse.RequestId"));<NEW_LINE>listDataStatisticsResponse.setCode(_ctx.stringValue("ListDataStatist... | (_ctx.stringValue("ListDataStatisticsResponse.Message")); |
1,070,242 | private static String localesToResourceQualifier(List<Locale> locs) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>for (int i = 0; i < locs.size(); i++) {<NEW_LINE>final Locale loc = locs.get(i);<NEW_LINE>final int l = loc.getLanguage().length();<NEW_LINE>if (l == 0) {<NEW_LINE>continue;<NEW_LINE>}<N... | append(loc.getCountry()); |
127,183 | public UserNotification save(@NonNull final UserNotificationRequest request) {<NEW_LINE>final I_AD_Note notificationPO = InterfaceWrapperHelper.newInstanceOutOfTrx(I_AD_Note.class);<NEW_LINE>notificationPO.setAD_User_ID(request.getRecipient().getUserId().getRepoId());<NEW_LINE>notificationPO.setIsImportant(request.isIm... | detailADMessageParamsJSON = jsonMapper.writeValueAsString(detailADMessageParams); |
1,777,831 | public CollectNFResult collectFromOperation(FieldCollectorNormalizedQueryParams parameters, OperationDefinition operationDefinition, GraphQLObjectType rootType) {<NEW_LINE>Set<GraphQLObjectType> possibleObjects = ImmutableSet.of(rootType);<NEW_LINE>List<CollectedField> collectedFields = new ArrayList<>();<NEW_LINE>coll... | > normalizedFieldToAstFields = ImmutableListMultimap.builder(); |
675,720 | public AttachSecurityProfileResult attachSecurityProfile(AttachSecurityProfileRequest attachSecurityProfileRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachSecurityProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe... | new JsonResponseHandler<AttachSecurityProfileResult>(unmarshaller); |
696,875 | public ScriptFailedResolution onScriptFailed(final IScript script, final ScriptExecutionException e) {<NEW_LINE>final File file = script.getLocalFile();<NEW_LINE>// printStackTrace=false<NEW_LINE>final String <MASK><NEW_LINE>final String message = "<html><body>" + "Script failed to run. Shall we add it to ignore list?<... | exceptionMessage = e.toStringX(false); |
642,888 | public EncryptionSetting unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EncryptionSetting encryptionSetting = new EncryptionSetting();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
1,248,955 | public void doIt(String regex, int eCount, int[] eCodes, int cCount, String[] c) {<NEW_LINE>if (incExc == ((!overlap(exc, eCount, eCodes)) && subset(sub, eCount, eCodes)))<NEW_LINE>try {<NEW_LINE>out.write("/*\n");<NEW_LINE>for (int j = 0; j < cCount; j++) {<NEW_LINE>out.write(c[j]);<NEW_LINE>out.write('\n');<NEW_LINE>... | eCodes[i]) + ");"); |
1,112,370 | public void errorHandlerEvent(RetrofitError error) {<NEW_LINE>String errorType;<NEW_LINE>String errorDesc;<NEW_LINE>ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);<NEW_LINE>NetworkInfo netinfo = connMgr != null ? connMgr.getActiveNetworkInfo() : null;<NEW_LINE>if (!(n... | .postEventOnUIThread(new ShowNetworkDialogEvent()); |
292,942 | public static List<Person> readXMLCharacterList(Document doc) {<NEW_LINE>List<Person> personList = new ArrayList<>();<NEW_LINE>NodeList characters = doc.getDocumentElement().getElementsByTagName("characters").item(0).getChildNodes();<NEW_LINE>for (int i = 0; i < characters.getLength(); i++) {<NEW_LINE>Node child = char... | (), gender, aliases)); |
1,392,811 | public void generateDocumentation(String outputDirectory, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException {<NEW_LINE>runInScope(new Scope.ScopedRunner() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() throws Exception {<NEW_LINE>LOG.info("Generating Database Documentation");<NEW_... | new File(outputDirectory), resourceAccessor); |
1,257,210 | protected void onPopulateNodeForVirtualView(int virtualViewId, AccessibilityNodeInfoCompat node) {<NEW_LINE>final Spanned spanned = (Spanned) mText;<NEW_LINE>final Rect sTempRect = new Rect();<NEW_LINE>// it can happen as part of an unmount/mount cycle that the accessibility framework will<NEW_LINE>// request the bound... | endLine = mLayout.getLineForOffset(end); |
1,622,118 | private static Certificate selfSign(KeyPair keyPair, String subjectDN) throws Exception {<NEW_LINE>Provider bcProvider = new BouncyCastleProvider();<NEW_LINE>Security.addProvider(bcProvider);<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE><MASK><NEW_LINE>X500Name dnName = new X500Name("CN=" + subjectDN);<NEW_... | Date startDate = new Date(now); |
798,869 | public static void main(String[] args) throws Exception {<NEW_LINE>ArgP argp = new ArgP();<NEW_LINE>CliOptions.addCommon(argp);<NEW_LINE>CliOptions.addAutoMetricFlag(argp);<NEW_LINE>argp.addOption("--skip-errors", "Whether or not to skip exceptions " + "during processing");<NEW_LINE>args = CliOptions.parse(argp, args);... | System.err.print(line); |
1,160,603 | private int releaseInternal(String path, long fd) {<NEW_LINE>try {<NEW_LINE>FileInStream is = mOpenFileEntries.remove(fd);<NEW_LINE>CreateFileEntry<FileOutStream> ce = <MASK><NEW_LINE>if (is == null && ce == null) {<NEW_LINE>LOG.error("Failed to release {}: Cannot find fd {}", path, fd);<NEW_LINE>return -ErrorCodes.EBA... | mCreateFileEntries.getFirstByField(ID_INDEX, fd); |
1,598,125 | static List<List<?>> chooseHyperParameterCombos(List<HyperParamValues<?>> ranges, int howMany) {<NEW_LINE>// Put some reasonable upper limit on the number of combos<NEW_LINE>Preconditions.checkArgument(howMany > 0 && howMany <= MAX_COMBOS);<NEW_LINE>int numParams = ranges.size();<NEW_LINE>int perParam = chooseValuesPer... | param).get(whichValueToTry)); |
1,734,759 | public Builder mergeFrom(emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq other) {<NEW_LINE>if (other == emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.getTargetReliquaryGuid() != 0L) {<NEW_LINE>setTar... | itemParamListBuilder_.addAllMessages(other.itemParamList_); |
582,522 | public void analyze(Analyzer analyzer) throws AnalysisException, UserException {<NEW_LINE>super.analyze(analyzer);<NEW_LINE>// check operation privilege<NEW_LINE>if (!Env.getCurrentEnv().getAuth().checkGlobalPriv(ConnectContext.get(), PrivPredicate.ADMIN)) {<NEW_LINE>ErrorReport.reportAnalysisException(ErrorCode.ERR_SP... | ErrorReport.reportAnalysisException(ErrorCode.ERR_CLUSTER_NAME_NULL); |
998,358 | public io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus result = new io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitF... | .conditions_ = conditionsBuilder_.build(); |
145,543 | public static String VRResources_GetResourceFullPath(@NativeType("char const *") CharSequence pchResourceName, @NativeType("char const *") CharSequence pchResourceTypeDirectory, @NativeType("uint32_t") int unBufferLen) {<NEW_LINE>MemoryStack stack = stackGet();<NEW_LINE>int stackPointer = stack.getPointer();<NEW_LINE>t... | , memAddress(pchPathBuffer), unBufferLen); |
1,559,715 | // If this is a supported change (currently only permanent changes are supported) apply it.<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>private void maybeApplyChanges(Map<String, String> queryMap) {<NEW_LINE>String changeStr = queryMap.get(CHANGE);<NEW_LINE>if (PERMANENT_CHANGE.equals(changeStr)) {<NEW_LINE>Trac... | maxNumberOfLinks = Integer.parseInt(maxNumverOfLinksStr); |
83,799 | private void writeSourceOauthParameter(final List<SourceOAuthParameter> configs, final DSLContext ctx) {<NEW_LINE>final OffsetDateTime timestamp = OffsetDateTime.now();<NEW_LINE>configs.forEach((sourceOAuthParameter) -> {<NEW_LINE>final boolean isExistingConfig = ctx.fetchExists(select().from(ACTOR_OAUTH_PARAMETER).whe... | ())).execute(); |
521,437 | /*<NEW_LINE>* This function detects numbers like 12 ,32h ,42m .. etc,. 1) plain number<NEW_LINE>* like 12 2) time or tablesize like 12h, 34m, 45k, 54m , here last<NEW_LINE>* character is non-digit but from known characters .<NEW_LINE>*/<NEW_LINE>private static boolean containsOnlyNumbers(final String str, final String ... | str.length() - 1]; |
1,704,386 | public final static int ycbcr_to_rgb24(int y, int cb, int cr) {<NEW_LINE>y = y << SCALEBITS;<NEW_LINE>cb = cb - 128;<NEW_LINE>cr = cr - 128;<NEW_LINE>int add_r = FIX_1_402 * cr + ONE_HALF;<NEW_LINE>int add_g = _FIX_0_34414 <MASK><NEW_LINE>int add_b = FIX_1_772 * cb + ONE_HALF;<NEW_LINE>int r = (y + add_r) >> SCALEBITS;... | * cb - FIX_0_71414 * cr + ONE_HALF; |
1,210,560 | private void handleSuccessfulDownload(Downloader downloader) {<NEW_LINE>DownloadRequest request = downloader.getDownloadRequest();<NEW_LINE><MASK><NEW_LINE>final int type = status.getFeedfileType();<NEW_LINE>if (type == Feed.FEEDFILETYPE_FEED) {<NEW_LINE>Log.d(TAG, "Handling completed Feed Download");<NEW_LINE>FeedSync... | DownloadStatus status = downloader.getResult(); |
830,970 | void doGeneric(VirtualFrame frame, SequenceStorage storage, WriteNode[] slots, int starredIndex, @Shared("getItemNode") @Cached SequenceStorageNodes.GetItemNode getItemNode, @Shared("lenNode") @Cached SequenceStorageNodes.LenNode lenNode) {<NEW_LINE>CompilerAsserts.partialEvaluationConstant(slots);<NEW_LINE>CompilerAss... | ].executeObject(frame, value); |
1,774,281 | private void parseEmbed(final Element e, final Metadata md) {<NEW_LINE>final Element embedElement = e.getChild("embed", getNS());<NEW_LINE>if (embedElement != null) {<NEW_LINE>final Embed embed = new Embed();<NEW_LINE>embed.setWidth(Integers.parse(embedElement.getAttributeValue("width")));<NEW_LINE>embed.setHeight(Inte... | getChildren("param", getNS()); |
527,044 | final DeleteCloudFrontOriginAccessIdentityResult executeDeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest deleteCloudFrontOriginAccessIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCloudFrontOriginAccessIdentityRequest);<NEW_LINE>AWSRequestMet... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,001,435 | public static String sshPublicKey() {<NEW_LINE>if (sshPublicKey == null) {<NEW_LINE>try {<NEW_LINE>KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");<NEW_LINE>keyGen.initialize(1024);<NEW_LINE>KeyPair pair = keyGen.generateKeyPair();<NEW_LINE>PublicKey publicKey = pair.getPublic();<NEW_LINE>RSAPublicKey rsa... | DataOutputStream dos = new DataOutputStream(byteOs); |
1,295,993 | public void testCriteriaQuery_double(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Asser... | CriteriaBuilder cb = em.getCriteriaBuilder(); |
1,200,584 | public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.saveButton:<NEW_LINE>final boolean isEdit = scaleMeasurement.getId() > 0;<NEW_LINE>saveScaleData();<NEW_LINE>if (isEdit) {<NEW_LINE>setViewMode(MeasurementView.MeasurementViewMode.VIEW);<NEW_LINE>} else {<NEW_LI... | PREF_EXPAND, expand).apply(); |
865,048 | private PropertyNode fieldDefinition(Expression propertyName, boolean isStatic, long startToken, boolean computed) {<NEW_LINE>// "constructor" or #constructor is not allowed as an instance field name<NEW_LINE>if (!computed && propertyName instanceof PropertyKey) {<NEW_LINE>TruffleString name = ((PropertyKey) propertyNa... | .message(MSG_STATIC_PROTOTYPE_FIELD), startToken); |
649,457 | public void actionPerformed(final ActionEvent e) {<NEW_LINE>if (RP.isRequestProcessorThread()) {<NEW_LINE><MASK><NEW_LINE>org.netbeans.modules.web.webkit.debugging.api.css.Rule rule = lookup.lookup(org.netbeans.modules.web.webkit.debugging.api.css.Rule.class);<NEW_LINE>Resource resource = lookup.lookup(Resource.class);... | Lookup lookup = node.getLookup(); |
1,177,140 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .<NEW_LINE>public void handleRunEmulator(Sketch sketch, AndroidEditor editor, RunnerListener listener) throws SketchException, IOException {<NEW_LINE>listener.startIndeterminate();<NEW_LINE>listener.statusNotice(AndroidMode.getTextString("androi... | launch(emu, comp, true); |
399,914 | public static int decompress(DataInput compressed, int decompressedLen, byte[] dest, int dOff) throws IOException {<NEW_LINE>final int destEnd = dOff + decompressedLen;<NEW_LINE>do {<NEW_LINE>// literals<NEW_LINE>final int token <MASK><NEW_LINE>int literalLen = token >>> 4;<NEW_LINE>if (literalLen != 0) {<NEW_LINE>if (... | = compressed.readByte() & 0xFF; |
1,110,358 | /* ------------------------------------------------------------------------ */<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public static Permission extractPermission(String permText) {<NEW_LINE>StreamTokenizer tokens = new <MASK><NEW_LINE>String className = null;<NEW_LINE>String resourceName = "";<NEW_LINE>String ... | StreamTokenizer(new StringReader(permText)); |
1,777,859 | private static Configuration buildConfiguration() {<NEW_LINE>String configTypeName = CURRENT_FILE_INSTANCE.getConfig(ConfigurationKeys.FILE_ROOT_CONFIG + ConfigurationKeys.FILE_CONFIG_SPLIT_CHAR + ConfigurationKeys.FILE_ROOT_TYPE);<NEW_LINE>if (StringUtils.isBlank(configTypeName)) {<NEW_LINE>throw new NotSupportYetExce... | getInstance().proxy(extConfiguration); |
486,597 | public void readLiteralSection() throws IOException {<NEW_LINE>if (log.isLoggable(Level.FINE))<NEW_LINE>log.fine("readLiteralSection");<NEW_LINE>final byte[] buf = in.read_size_and_inflate();<NEW_LINE>final EInputStream is = new EInputStream(buf);<NEW_LINE>int nLiterals = is.read4BE();<NEW_LINE>if (log.isLoggable(Level... | assert (pos_after_lit == pos_before_lit + lit_length); |
580,743 | /* package */<NEW_LINE>DoubleFunction<Color> buildColorFunction(ResourceManager resourceManager) {<NEW_LINE>switch(this) {<NEW_LINE>case GREEN_YELLOW_RED:<NEW_LINE>return performance -> {<NEW_LINE>// convert to 0 = -0.07 -> 1 = +0.07<NEW_LINE>final double max = 0.07f;<NEW_LINE>double p = performance;<NEW_LINE>p = Math.... | : Colors.RED.getRGB(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.