idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,838,543 | private void appendStringify(Writer writer, HollowDataAccess dataAccess, String type, int ordinal, int indentation) throws IOException {<NEW_LINE>if (excludeObjectTypes.contains(type)) {<NEW_LINE>writer.append("null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HollowTypeDataAccess typeDataAccess = dataAccess.getTypeDataAcce... | HollowListTypeDataAccess) typeDataAccess, ordinal, indentation); |
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 <M... | RuntimeException("Unexpected format: '" + line + "'"); |
270,697 | public static QueryAdvancedDomainListResponse unmarshall(QueryAdvancedDomainListResponse queryAdvancedDomainListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAdvancedDomainListResponse.setRequestId(_ctx.stringValue("QueryAdvancedDomainListResponse.RequestId"));<NEW_LINE>queryAdvancedDomainListResponse.setTotalIte... | ("QueryAdvancedDomainListResponse.Data[" + i + "].InstanceId")); |
546,455 | private void purgeSelectExprsKeepAliases() {<NEW_LINE>List<Token> sublist = findClause(TokenType.SELECT);<NEW_LINE>List<Token> newSelectClause = new ArrayList<Token>();<NEW_LINE>newSelectClause.add(sublist.get(0));<NEW_LINE>int itemStart = 1;<NEW_LINE>for (int i = 1; i < sublist.size(); i++) {<NEW_LINE>Token token = su... | (TokenType.ID, "AS")); |
1,636,307 | public void exitRedistribute_ospf_bgp_tail(Redistribute_ospf_bgp_tailContext ctx) {<NEW_LINE>BgpProcess proc = currentVrf().getBgpProcess();<NEW_LINE>// Intentional identity comparison<NEW_LINE>if (_currentPeerGroup == proc.getMasterBgpPeerGroup()) {<NEW_LINE>RoutingProtocol sourceProtocol = RoutingProtocol.OSPF;<NEW_L... | = ctx.map.getText(); |
1,493,771 | public void marshall(ScheduledQueryRunSummary scheduledQueryRunSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (scheduledQueryRunSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(scheduledQue... | e.getMessage(), e); |
1,543,781 | public void runMerge(HoodieTable<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> table, HoodieMergeHandle<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> upsertHandle) throws IOException {<NEW_LINE>final boolean externalSchemaTransformation = table.getConfig().shouldUseExternalSchemaTransfor... | readerIterator = reader.getRecordIterator(readSchema); |
583,803 | public void run() {<NEW_LINE>// check state and behave accordingly<NEW_LINE>if (createDataSource() && openDbConn()) {<NEW_LINE>do {<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>long maxDBScn = getMaxTxlogSCN(_con);<NEW_LINE>_log.info("Max DB Scn = " + maxDBScn);<NEW_LI... | close(rs, pstmt, null); |
60,436 | private void hbCreateDecodeTables(int[] limit, int[] base, int[] perm, byte[] length, int minLen, int maxLen, int alphaSize) {<NEW_LINE>int i, j, vec;<NEW_LINE>int pp = 0;<NEW_LINE>for (i = minLen; i <= maxLen; i++) {<NEW_LINE>for (j = 0; j < alphaSize; j++) {<NEW_LINE>if ((length[j] & 0xFF) == i) {<NEW_LINE>perm[pp] =... | ] & 0xFF) + 1]++; |
908,885 | public void onCompletion(RecordMetadata md, Exception e) {<NEW_LINE>if (e != null) {<NEW_LINE>this.failedMessageCount.inc();<NEW_LINE>this.failedMessageMeter.mark();<NEW_LINE>LOGGER.error(e.getClass().getSimpleName() + " @ " + position + " -- " + topic + ": " + key);<NEW_LINE>LOGGER.<MASK><NEW_LINE>boolean nonFatal = e... | error(e.getLocalizedMessage()); |
205,452 | private static void consumeOutput(final String bootstrapServers, final String schemaRegistryUrl) {<NEW_LINE>final Properties consumerProperties = new Properties();<NEW_LINE>consumerProperties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers);<NEW_LINE>consumerProperties.put(ConsumerConfig.KEY_DESERIALIZER_... | String().deserializer()); |
95,630 | final GetAccessPointForObjectLambdaResult executeGetAccessPointForObjectLambda(GetAccessPointForObjectLambdaRequest getAccessPointForObjectLambdaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAccessPointForObjectLambdaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAccessPointForObjectLambda"); |
1,744,182 | public String resolve(String string, ClassLoader loader) {<NEW_LINE>Matcher matcher;<NEW_LINE>String parsed = string;<NEW_LINE>matcher = Pattern.compile<MASK><NEW_LINE>while (matcher.find()) {<NEW_LINE>String classname = matcher.group(1);<NEW_LINE>String fieldname = matcher.group(2);<NEW_LINE>try {<NEW_LINE>Object obje... | ("(?<!\\\\)\\$F\\{((?:[a-zA-Z_][a-zA-Z_0-9]*\\.)+[a-zA-Z_][a-zA-Z_0-9]*)\\.([a-zA-Z_][a-zA-Z_0-9]*)\\}").matcher(parsed); |
1,151,717 | protected CompletableFuture<byte[]> doGetTargetVar(AddressSpace space, long offset, int size, boolean truncateAddressableUnit) {<NEW_LINE>if (space.isMemorySpace()) {<NEW_LINE>Address addr = space.getAddress(truncateOffset(space, offset));<NEW_LINE>AddressSet set = new AddressSet(addr, space.getAddress(offset + size - ... | getRegisterValue(register).getUnsignedValue(); |
901,118 | private int processBlock128(byte[] in, int inOff, byte[] out, int outOff) {<NEW_LINE>int[] state = new int[4];<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>state[i] = bytes2int(in, inOff + (i * 4)) ^ kw[i];<NEW_LINE>}<NEW_LINE>camelliaF2(state, subkey, 0);<NEW_LINE>camelliaF2(state, subkey, 4);<NEW_LINE>camelliaF2(s... | camelliaFLs(state, ke, 4); |
1,224,598 | public void paint(Graphics g, JComponent c) {<NEW_LINE>JLabel label = (JLabel) c;<NEW_LINE>String text = label.getText();<NEW_LINE>Icon icon = label.isEnabled() ? label.getIcon() : label.getDisabledIcon();<NEW_LINE>if (icon == null && text == null)<NEW_LINE>return;<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>Affi... | g, clippedText, textX, textY); |
921,975 | protected TaskResult run(GcsClient gcs, String projectId) {<NEW_LINE>Optional<String> command = params.getOptional("_command", String.class);<NEW_LINE>Optional<String> bucket = params.getOptional("bucket", String.class);<NEW_LINE>Optional<String> object = params.getOptional("object", String.class);<NEW_LINE>// ToDo imp... | ), object.get()); |
3,620 | public void keyTyped(InstanceState state, KeyEvent e) {<NEW_LINE>final var c = e.getKeyChar();<NEW_LINE>final var val = Character.digit(e.getKeyChar(), 16);<NEW_LINE>final var data = (MemState) state.getData();<NEW_LINE>if (val >= 0) {<NEW_LINE>curValue = curValue * 16 + val;<NEW_LINE>data.getContents().set(data.getCur... | data.getCursor() + 1); |
476,550 | public void addFormForAddAccount() {<NEW_LINE>// this payment method is currently restricted to United States/USD<NEW_LINE>account.setSingleTradeCurrency(new FiatCurrency("USD"));<NEW_LINE>CountryUtil.findCountryByCode("US").ifPresent(c -> account.setCountry(c));<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>InputTextFi... | gridRow, addressLabel, addressLabel).second; |
71,372 | public void loadOneRow() throws IOException {<NEW_LINE>Trip t = new Trip();<NEW_LINE>// offset line number by 1 to account for 0-based row index<NEW_LINE>t.sourceFileLine = row + 1;<NEW_LINE>t.route_id = getStringField("route_id", true);<NEW_LINE>t.service_id = getStringField("service_id", true);<NEW_LINE>t.trip_id = g... | block_id = getStringField("block_id", false); |
296,658 | // Writes a .SF file with a digest to the manifest.<NEW_LINE>private static void writeSignatureFile(SignatureOutputStream out, Manifest manifest) throws IOException, GeneralSecurityException {<NEW_LINE>Manifest sf = new Manifest();<NEW_LINE>Attributes main = sf.getMainAttributes();<NEW_LINE>main.putValue("Signature-Ver... | att.getValue() + "\r\n"); |
997,283 | public int compare(T o1, T o2) {<NEW_LINE>Matcher m1 = parts.matcher(converter.apply(o1));<NEW_LINE>Matcher m2 = parts.matcher<MASK><NEW_LINE>while (m1.find() && m2.find()) {<NEW_LINE>int compareCharGroup = m1.group(ALPHA_PART).compareTo(m2.group(ALPHA_PART));<NEW_LINE>if (compareCharGroup != 0) {<NEW_LINE>return compa... | (converter.apply(o2)); |
1,817,485 | private static Response prepareRamIndex(Request request, CheckedBiFunction<QueryShardContext, LeafReaderContext, Response, IOException> handler, IndexService indexService) throws IOException {<NEW_LINE>Analyzer defaultAnalyzer = indexService.getIndexAnalyzers().getDefaultIndexAnalyzer();<NEW_LINE>try (Directory directo... | ().get(0)); |
22,941 | public static void colorizeGradient(GrayS16 derivX, GrayS16 derivY, int maxAbsValue, Bitmap output, @Nullable DogArray_I8 _storage) {<NEW_LINE>shapeShape(derivX, derivY, output);<NEW_LINE>_storage = ConvertBitmap.resizeStorage(output, _storage);<NEW_LINE>final byte[] storage = _storage.data;<NEW_LINE>if (maxAbsValue < ... | v = -255 * valueY / maxAbsValue; |
1,543,078 | default byte[] writeBatch(BufferAllocator bufferAllocator, List<Map<String, Object>> rows) {<NEW_LINE>try (final VectorSchemaRoot root = VectorSchemaRoot.create(schemaFor(rows), bufferAllocator);<NEW_LINE>final ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>final ArrowWriter writer = newArrowWriter(r... | (fe.getName())); |
972,626 | final DescribeReservedNodesResult executeDescribeReservedNodes(DescribeReservedNodesRequest describeReservedNodesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedNodesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
166,071 | public static void registerMBeanCatchAndLogExceptions(final Object mbean, final String objectName) {<NEW_LINE>final MBeanServer server = ManagementFactory.getPlatformMBeanServer();<NEW_LINE>try {<NEW_LINE>final ObjectName on = new ObjectName(objectName);<NEW_LINE>try {<NEW_LINE>// throws exception if bean doesn't exist... | ("name", objectName), e); |
392,342 | public Object readFrom(Class<Object> clazz, Type genericType, Annotation[] anns, MediaType mt, MultivaluedMap<String, String> headers, InputStream entityStream) throws IOException, WebApplicationException {<NEW_LINE>MultipartReader reader = new MultipartReader();<NEW_LINE>reader.workers = providers;<NEW_LINE>MultipartI... | anns, mt, headers, entityStream); |
793,799 | public static void chekAndRegisterCommands(DocumentServiceContext context) {<NEW_LINE><MASK><NEW_LINE>LSClientLogger clientLogger = LSClientLogger.getInstance(serverContext);<NEW_LINE>ServerCapabilities serverCapabilities = serverContext.get(ServerCapabilities.class);<NEW_LINE>if (serverCapabilities.getExecuteCommandPr... | LanguageServerContext serverContext = context.languageServercontext(); |
403,407 | final DeleteReplicationInstanceResult executeDeleteReplicationInstance(DeleteReplicationInstanceRequest deleteReplicationInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReplicationInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
819,519 | public boolean apply(Game game, Ability source) {<NEW_LINE>Card sourceCard = game.getCard(source.getSourceId());<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null || sourceCard == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<String> names = new HashSet<>();<NEW_LINE>while (controller.ca... | getPlayer(source.getControllerId()); |
252,095 | private void rewriteAllInComment(final String text, final int offset, final String originalName) {<NEW_LINE>for (int index = text.indexOf(originalName); index != -1; index = text.indexOf(originalName, index + 1)) {<NEW_LINE>if (index > 0 && Character.isJavaIdentifierPart(text.charAt(index - 1))) {<NEW_LINE>continue;<NE... | originalName.length(), newName); |
1,780,942 | public static void main(String[] args) throws Exception {<NEW_LINE>CommandLine commandLine = parseCommandLine(args);<NEW_LINE>String zookeeper = commandLine.getOptionValue(ZOOKEEPER);<NEW_LINE>String topic = commandLine.getOptionValue(TOPIC);<NEW_LINE>int num_messages = Integer.parseInt(commandLine.getOptionValue(NUM_M... | = new TopicPartition(topic, 0); |
866,714 | static OpcUaClientConfigBuilder copy(OpcUaClientConfig config) {<NEW_LINE>OpcUaClientConfigBuilder builder = new OpcUaClientConfigBuilder();<NEW_LINE>// UaStackClientConfig values<NEW_LINE>builder.setEndpoint(config.getEndpoint());<NEW_LINE>config.getKeyPair().ifPresent(builder::setKeyPair);<NEW_LINE>config.getCertific... | setSessionName(config.getSessionName()); |
1,605,594 | private void decompressBlock() throws IOException {<NEW_LINE>// The first term is kept uncompressed, so no need to decompress block if only<NEW_LINE>// look up the first term when doing seek block.<NEW_LINE>term.length = bytes.readVInt();<NEW_LINE>bytes.readBytes(term.bytes, 0, term.length);<NEW_LINE>long offset = byte... | decompressLength, blockBuffer.bytes, 0); |
921,415 | private static InsnNode convertStringBuilderChain(MethodNode mth, InvokeNode toStrInsn, List<InsnNode> chain) {<NEW_LINE>try {<NEW_LINE>int chainSize = chain.size();<NEW_LINE>if (chainSize < 2) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<InsnArg> args = new ArrayList<>(chainSize);<NEW_LINE>InsnNode firstInsn = cha... | InsnNode(InsnType.STR_CONCAT, simplifiedArgs); |
1,431,407 | public void validate(final String name, final String value) throws ParameterException {<NEW_LINE>// Make sure the value is a valid URI<NEW_LINE>final URI uri;<NEW_LINE>try {<NEW_LINE>uri = new URI(value);<NEW_LINE>} catch (URISyntaxException e) {<NEW_LINE>throw new ParameterException("Invalid URI " + value + " (for opt... | get(uri.getPath()); |
654,993 | private boolean updateNotebookStatus(String resourceId, Map<String, Object> updateObject) {<NEW_LINE>Notebook notebook = notebookService.select(resourceId);<NEW_LINE>if (notebook == null) {<NEW_LINE>throw new SubmarineRuntimeException(Status.NOT_FOUND.getStatusCode(), String.format("cannot find notebook with id:%s", re... | ("deletedTime").toString()); |
91,513 | public static <K extends Kernel2D> SteerableKernel<K> gaussian(Class<K> kernelType, int orderX, int orderY, double sigma, int radius) {<NEW_LINE>if (orderX < 0 || orderX > 4)<NEW_LINE>throw new IllegalArgumentException("derivX must be from 0 to 4 inclusive.");<NEW_LINE>if (orderY < 0 || orderY > 4)<NEW_LINE>throw new I... | GKernelMath.convolve(kerY, kerX); |
917,661 | private static void testSpringMvcDefaultValuesJavaPrimitiveAllTransport(RestTemplate template) {<NEW_LINE>String microserviceName = "jaxrs";<NEW_LINE>for (String transport : DemoConst.transports) {<NEW_LINE>CategorizedTestCaseRunner.changeTransport(microserviceName, transport);<NEW_LINE>String cseUrlPrefix = "cse://" +... | TestMgr.check("Hello", result); |
1,034,479 | public Response submitJob(List<Job> jobs) {<NEW_LINE>Response response;<NEW_LINE>try {<NEW_LINE>response = superSubmitJob(jobs);<NEW_LINE>} catch (JobSubmitProtectException e) {<NEW_LINE>response = new Response();<NEW_LINE>response.setSuccess(false);<NEW_LINE>response.setFailedJobs(jobs);<NEW_LINE>response.setCode(Resp... | response.getMsg() + ", submit too busy"); |
661,826 | public void mulligan(Game game, UUID playerId) {<NEW_LINE>Player player = game.getPlayer(playerId);<NEW_LINE>int numCards = player.getHand().size();<NEW_LINE>int numToMulliganTo = numCards;<NEW_LINE>player.getLibrary().addAll(player.getHand().getCards(game), game);<NEW_LINE>player.getHand().clear();<NEW_LINE>player.shu... | get(player.getId()); |
710,447 | private static String stringValue(final Object arg) {<NEW_LINE>if (arg instanceof NativeFunction) {<NEW_LINE>// Don't return the string value of the function, because it's usually<NEW_LINE>// multiple lines of content and messes up the log.<NEW_LINE>final String name = StringUtils.defaultIfEmpty(((NativeFunction) arg).... | asString = String.valueOf(arg); |
1,094,645 | protected JFreeChart createPie3DChart() throws JRException {<NEW_LINE>JFreeChart jfreeChart = super.createPie3DChart();<NEW_LINE>PiePlot3D piePlot3D = (PiePlot3D) jfreeChart.getPlot();<NEW_LINE>JRPie3DPlot jrPiePlot = (JRPie3DPlot) getPlot();<NEW_LINE>boolean isShowLabels = jrPiePlot.getShowLabels() == null ? true : jr... | piePlot3D.setLabelBackgroundPaint(ChartThemesConstants.TRANSPARENT_PAINT); |
553,367 | private void addCovariantMethods(ClassNode classNode, List declaredMethods, Map abstractMethods, Map methodsToAdd, Map oldGenericsSpec) {<NEW_LINE>ClassNode sn = classNode.getUnresolvedSuperClass(false);<NEW_LINE>if (sn != null) {<NEW_LINE>Map genericsSpec = createGenericsSpec(sn, oldGenericsSpec);<NEW_LINE>List<Method... | > classMethods = sn.getMethods(); |
395,487 | final DescribeConfigurationResult executeDescribeConfiguration(DescribeConfigurationRequest describeConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | invoke(request, responseHandler, executionContext); |
678,556 | public ReportSettings prepareReportSettings(StockMove stockMove, String format) throws AxelorException {<NEW_LINE>if (stockMove.getPrintingSettings() == null) {<NEW_LINE>throw new AxelorException(TraceBackRepository.CATEGORY_MISSING_FIELD, String.format(I18n.get(IExceptionMessage.STOCK_MOVES_MISSING_PRINTING_SETTINGS),... | IReport.STOCK_MOVE, title + " - ${date}"); |
206,848 | @Secured(action = ActionTypes.WRITE)<NEW_LINE>public ResponseEntity update(HttpServletRequest request) throws NacosException {<NEW_LINE>String healthyString = WebUtils.optional(request, HEALTHY_KEY, StringUtils.EMPTY);<NEW_LINE>if (StringUtils.isBlank(healthyString)) {<NEW_LINE>healthyString = WebUtils.optional(request... | health = ConvertUtils.toBoolean(healthyString); |
1,652,804 | public static void arcPrint(final RasterPlotter matrix, final int cx, final int cy, final int radius, final double angle, final String message, final int intensity) {<NEW_LINE>final int x = cx + (int) ((radius + 1) * Math.cos<MASK><NEW_LINE>final int y = cy - (int) ((radius + 1) * Math.sin(RasterPlotter.PI180 * angle))... | (RasterPlotter.PI180 * angle)); |
749,410 | private <T> Future<List<InetSocketAddress>> resolveAddresses(Request request, ProxyServer proxy, NettyResponseFuture<T> future, AsyncHandler<T> asyncHandler) {<NEW_LINE>Uri uri = request.getUri();<NEW_LINE>final Promise<List<InetSocketAddress>> promise = ImmediateEventExecutor.INSTANCE.newPromise();<NEW_LINE>if (proxy ... | int port = uri.getExplicitPort(); |
1,074,354 | public void draw(DrawHandler drawHandler, LifelineDrawingInfo drawingInfo, int lifelineLastTick) {<NEW_LINE>// draw Head with text<NEW_LINE>if (createdOnStart) {<NEW_LINE>drawHead(drawHandler, drawingInfo.getHorizontalStart(), drawingInfo.getVerticalHeadStart(), drawingInfo.getWidth(), drawingInfo.getHeadHeight());<NEW... | , drawingInfo.getVerticalStart(tick)); |
386,784 | public ProjectEntity patchProjectsId(ProjectsIdBody body, Integer id) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling patchProjects... | throw new ApiException(400, "Missing the required parameter 'id' when calling patchProjectsId"); |
351,117 | public void start(@NonNull final Properties ctx, @NonNull final IReplicationProcessor replicationProcessor, final String trxName) throws Exception {<NEW_LINE>getLogger(Level.INFO).addLog("Starting {} ({})", replicationProcessor, replicationProcessor.getMImportProcessor());<NEW_LINE>final I_IMP_Processor impProcessor = ... | "IMP_Processor_ID", impProcessor.getIMP_Processor_ID()); |
795,544 | public void handleCommand(ChannelUID channelUID, Command command) {<NEW_LINE>Objects.requireNonNull(channelUID, "channelUID cannot be null");<NEW_LINE>Objects.requireNonNull(command, "command cannot be null");<NEW_LINE>final NeeoDeviceProtocol protocol = deviceProtocol.get();<NEW_LINE>if (protocol == null) {<NEW_LINE>l... | String localGroupId = channelUID.getGroupId(); |
1,823,466 | private static List<Supplier<Path>> checkMaven(Map<String, Map.Entry<String, String>> map) {<NEW_LINE>List<Supplier<Path>> incomplete = new ArrayList<>();<NEW_LINE>for (Map.Entry<String, Map.Entry<String, String>> entry : map.entrySet()) {<NEW_LINE>String maven = entry.getKey();<NEW_LINE>String hash = entry<MASK><NEW_L... | .getValue().getKey(); |
569,195 | public void drawFluid(FluidStack fluid, int x, int y, int width, int height, int maxCapacity) {<NEW_LINE>if (fluid == null || fluid.getFluid() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TextureAtlasSprite sprite = FluidRenderer.getFluidTexture(fluid.getFluid(), FluidType.STILL);<NEW_LINE>mc.renderEngine.bindTextur... | ().getColor(fluid)); |
1,463,002 | private ClickHandler buttonClickHandler(DownloadType downloadType) {<NEW_LINE>return clickEvent -> {<NEW_LINE>if (timer != null) {<NEW_LINE>timer.cancel();<NEW_LINE>}<NEW_LINE>timer = new Timer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>int oldZoom = drawPanelDiagram.getGridSize();<NEW_LINE>... | setGridAndZoom(oldZoom, false, null); |
595,805 | private void initNotificationsList() {<NEW_LINE>String[] columnToolTips = { "plugin.notificationconfig.tableheader.ENABLE", "plugin.notificationconfig.tableheader.EXECUTE", "plugin.notificationconfig.tableheader.POPUP", <MASK><NEW_LINE>JLabel icon1 = new JLabel(new ImageIcon(Resources.getImageInBytes("plugin.notificati... | "plugin.notificationconfig.tableheader.SOUND", "plugin.notificationconfig.tableheader.PLAYBACK_SOUND", "plugin.notificationconfig.tableheader.PCSPEAKER_SOUND", "plugin.notificationconfig.tableheader.DESCRIPTION" }; |
1,134,069 | final GetIPSetResult executeGetIPSet(GetIPSetRequest getIPSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getIPSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,358,316 | public static void main(String[] args) {<NEW_LINE>if (!(args.length == 1 && !args[0].startsWith(CHECKER_ARG)) && !(args.length == 2 && args[0].startsWith(CHECKER_ARG))) {<NEW_LINE>printUsage();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// process arguments<NEW_LINE>String checkerName = null;<NEW_LINE>if (args[0].startsWith(... | substring(CHECKER_ARG.length()); |
1,190,659 | final StartRouteAnalysisResult executeStartRouteAnalysis(StartRouteAnalysisRequest startRouteAnalysisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startRouteAnalysisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,207,345 | final AssociateLicenseResult executeAssociateLicense(AssociateLicenseRequest associateLicenseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateLicenseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateLicense"); |
1,528,565 | final DescribePublishingDestinationResult executeDescribePublishingDestination(DescribePublishingDestinationRequest describePublishingDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePublishingDestinationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,536,241 | public EncodedClusterStateBundle encode(ClusterStateBundle stateBundle) {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor root = slime.setObject();<NEW_LINE>if (stateBundle.deferredActivation()) {<NEW_LINE>root.setBool("deferred-activation", stateBundle.deferredActivation());<NEW_LINE>}<NEW_LINE>Cursor states = roo... | spaces = states.setObject("spaces"); |
347,862 | // outputSolutions<NEW_LINE>@Override<NEW_LINE>public void outputJoinSet(final IBuffer<IBindingSet> out) {<NEW_LINE>try {<NEW_LINE>@SuppressWarnings({ "rawtypes", "unchecked" })<NEW_LINE>final Constant t = askVar == null ? null : new Constant(XSDBooleanIV.valueOf(true));<NEW_LINE>final HTree joinSet = getJoinSet();<NEW... | bset = bset.copy(selectVars); |
1,103,244 | public static String wrapQuery(final DBPDataSource dataSource, String sqlQuery, final DBDDataFilter dataFilter) {<NEW_LINE>// Append filter conditions to query<NEW_LINE>StringBuilder modifiedQuery = new StringBuilder(<MASK><NEW_LINE>modifiedQuery.append("SELECT * FROM (\n");<NEW_LINE>modifiedQuery.append(sqlQuery);<NEW... | sqlQuery.length() + 100); |
673,587 | public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>getDialog().getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);<NEW_LINE>Bundle args = getArguments();<NEW_LINE>mTransactionIds = args.getLongArray(UxArgument.SELECTED_TRANS... | accountsDbAdapter.getCurrencyCode(mOriginAccountUID) }); |
967,601 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("Syntax: <in.mov> <out.mov>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SeekableByteChannel input = readableChannel(new File(args[0]));<NEW_LINE>MP4Demuxer demuxer = MP4Demuxer.createMP4Demuxer(input);<NEW_... | long cur = System.currentTimeMillis(); |
1,235,903 | public void execute() throws Throwable {<NEW_LINE>pagedItems = streamOperation.retrievePage(holder.getVal(), pageSize);<NEW_LINE>streamOperation.pagedExecute(pagedItems);<NEW_LINE>int pagedItemCount = ((Collection) pagedItems<MASK><NEW_LINE>if (pagedItemCount == 0) {<NEW_LINE>holder.setVal(totalCount.intValue());<NEW_L... | [0]).size(); |
629,966 | private void addToQueueBasedOnUserDefinition(String applicationType, int applicationSupportId, int queueId, KeyNamePair recipient) {<NEW_LINE>MADQueue queue = new MADQueue(getContext(), queueId, getTransactionName());<NEW_LINE>MADNotificationQueue notification = new MADNotificationQueue(queue);<NEW_LINE>notification.se... | notification.setDescription(getDescription()); |
483,564 | private void write_pin_swap(app.freerouting.board.Pin p_pin_1, app.freerouting.board.Pin p_pin_2) throws java.io.IOException {<NEW_LINE>int layer_no = Math.max(p_pin_1.first_layer(), p_pin_2.first_layer());<NEW_LINE>String layer_name = board.layer_structure.arr[layer_no].name;<NEW_LINE>this.out_file.write("CHANGE LAYER... | this.out_file.write(";\n"); |
1,609,998 | private void createDateField(Builder builder, Field field) {<NEW_LINE>AnnotationSpec column = AnnotationSpec.builder(Column.class).addMember("name", "ColumnNamePrefix + " + field.<MASK><NEW_LINE>AnnotationSpec temporal = AnnotationSpec.builder(Temporal.class).addMember("value", "javax.persistence.TemporalType.DATE").bu... | fieldName()).build(); |
228,734 | public void onBindViewHolder(GifViewHolder holder, int position) {<NEW_LINE>final Api.GifResult result = results[position];<NEW_LINE>holder.gifView.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View view) {<NEW_LINE>ClipboardManager clipboard = (ClipboardManag... | preloadSizeProvider.setView(holder.gifView); |
891,391 | private PolynomialApproximation approximateKnnDistances(double[] knnDistances) {<NEW_LINE>StringBuilder msg = new StringBuilder();<NEW_LINE>// count the zero distances (necessary of log-log space is used)<NEW_LINE>int k_0 = 0;<NEW_LINE>if (settings.log) {<NEW_LINE>for (int i = 0; i < settings.kmax; i++) {<NEW_LINE>doub... | y, x, settings.p); |
413,476 | final DeleteBGPPeerResult executeDeleteBGPPeer(DeleteBGPPeerRequest deleteBGPPeerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBGPPeerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
52,360 | public static void mainHmmVoiceConversion() throws IOException {<NEW_LINE>String baseInputFolder = "D:/Oytun/DFKI/voices/hmmVoiceConversionTest2/output/final/";<NEW_LINE>String baseOutputFolder = "D:/Oytun/DFKI/voices/hmmVoiceConversionTest2/objective_test/";<NEW_LINE>boolean isBark = true;<NEW_LINE>String method1, met... | + method1 + "_" + method2 + ".txt"; |
28,220 | public void initLayer(@NonNull final OsmandMapTileView view) {<NEW_LINE>app = getApplication();<NEW_LINE>this.view = view;<NEW_LINE>cacheMetricSystem = app.getSettings().METRIC_SYSTEM.get();<NEW_LINE>cacheMapDensity = getMapDensity();<NEW_LINE>cacheDistances = new ArrayList<>();<NEW_LINE>cacheCenter = new QuadPoint();<... | app, R.color.active_color_primary_light); |
1,582,472 | public void channelRead0(ChannelHandlerContext ctx, FullHttpRequest request) throws Exception {<NEW_LINE>FullHttpResponse response = null;<NEW_LINE>if (request.uri().startsWith("/get_books")) {<NEW_LINE>response = new DefaultFullHttpResponse(HTTP_1_1, OK, Unpooled.wrappedBuffer(objectWriter.writeValueAsBytes(booksDB.va... | content().readableBytes()); |
1,434,137 | public void add(StatefulBeanO beanO) {<NEW_LINE>BeanId id = beanO.beanId;<NEW_LINE>TimeoutElement elt = beanO.ivTimeoutElement;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "add " + beanO.beanId + ", " + elt.timeout);<NEW_LINE>// LIDB2775-23.4 Begins<NEW_LINE>Object ob... | Tr.exit(tc, "add"); |
1,282,549 | public Flux<V> receive(StreamOffset<K> streamOffset) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug(String.format("receive(%s)", streamOffset));<NEW_LINE>}<NEW_LINE>RedisSerializationContext.SerializationPair<K> keySerializer = template.getSerializationContext().getKeySerializationPair();<NEW_LINE>Byte... | ()).arm()); |
194,532 | void logResponseHeader(long seqId, String serviceName, String methodName, Metadata metadata, int maxHeaderBytes, GrpcLogRecord.EventLogger eventLogger, String rpcId, @Nullable SocketAddress peerAddress) {<NEW_LINE>checkNotNull(serviceName, "serviceName");<NEW_LINE>checkNotNull(methodName, "methodName");<NEW_LINE>checkN... | .truncated).setRpcId(rpcId); |
1,717,628 | // clamp timerange to case<NEW_LINE>@SuppressWarnings("AssignmentToMethodParameter")<NEW_LINE>synchronized public void pushTimeAndType(Interval timeRange, TimelineEventType.HierarchyLevel typeZoom) throws TskCoreException {<NEW_LINE>Interval overlappingTimeRange = this.filteredEvents.getSpanningInterval().overlap(timeR... | (currentZoom.withTimeRange(overlappingTimeRange)); |
1,268,851 | public void marshall(UpdateTableRequest updateTableRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateTableRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarsha... | updateTableRequest.getAttributeDefinitions(), ATTRIBUTEDEFINITIONS_BINDING); |
677,658 | protected StateFactory init(MetaStreamEvent metaStreamEvent, AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, StreamEventClonerHolder streamEventClonerHolder, boolean outputExpectsExpiredEvents, boolean findToBeExecuted, SiddhiQueryContext siddhiQueryCont... | [0]).getValue(); |
1,814,736 | protected void addGuiElements() {<NEW_LINE>super.addGuiElements();<NEW_LINE>addRenderableWidget(new GuiDownArrow(this, 159, 44));<NEW_LINE>addRenderableWidget(new GuiHorizontalPowerBar(this, tile.getEnergyContainer(), 115, 75)).warning(WarningType.NOT_ENOUGH_ENERGY, tile.getWarningCheck(RecipeError.NOT_ENOUGH_ENERGY)).... | .getWarningCheck(RecipeError.NOT_ENOUGH_ENERGY_REDUCED_RATE)); |
423,111 | public static DescribeMPCoSPhaseInfoResponse unmarshall(DescribeMPCoSPhaseInfoResponse describeMPCoSPhaseInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeMPCoSPhaseInfoResponse.setRequestId(_ctx.stringValue("DescribeMPCoSPhaseInfoResponse.RequestId"));<NEW_LINE>describeMPCoSPhaseInfoResponse.setCode(_ctx.inte... | (_ctx.stringValue("DescribeMPCoSPhaseInfoResponse.Data.DataHash")); |
1,255,401 | private void analyzeMethod(ClassContext classContext, Method method) throws CFGBuilderException, ClassNotFoundException, DataflowAnalysisException {<NEW_LINE>CFG cfg = classContext.getCFG(method);<NEW_LINE>for (Iterator<Location> i = cfg.locationIterator(); i.hasNext(); ) {<NEW_LINE>Location location = i.next();<NEW_LI... | ins, classContext.getConstantPoolGen()); |
286,118 | public String toModelName(final String name) {<NEW_LINE>final String sanitizedName = sanitizeName(modelNamePrefix + this.stripPackageName(name) + modelNameSuffix);<NEW_LINE>// camelize the model name<NEW_LINE>// phone_number => PhoneNumber<NEW_LINE><MASK><NEW_LINE>// model name cannot use reserved keyword, e.g. return<... | final String camelizedName = camelize(sanitizedName); |
801,191 | private void constructFlow(final Flow flow, final Node node, final Set<String> visitedOnPath, final Set<String> visitedEver) {<NEW_LINE>visitedOnPath.add(node.getId());<NEW_LINE>visitedEver.add(node.getId());<NEW_LINE>flow.addNode(node);<NEW_LINE>flow.setCondition(node.getCondition());<NEW_LINE>if (SpecialJobTypes.EMBE... | get(edge.getSourceId()); |
518,099 | private boolean tryConnection() {<NEW_LINE>m_user = userTextField.getText();<NEW_LINE>m_pwd = new String(passwordField.getPassword());<NEW_LINE>// Establish connection<NEW_LINE>if (!DB.isConnected(false))<NEW_LINE>validateConnection();<NEW_LINE>if (!DB.isConnected(false)) {<NEW_LINE>statusBar.setStatusLine(txt_NoDataba... | setBackground(AdempierePLAF.getFieldBackground_Normal()); |
741,198 | private static void writeForDdlExternalProperty(Element properties) throws Exception {<NEW_LINE>Element property = properties.addElement("property");<NEW_LINE>property.addAttribute("name", "javax.persistence.jdbc.driver");<NEW_LINE>property.addAttribute("value", Config.externalDataSources().get(0).getDriverClassName())... | property.addAttribute("name", "openjpa.DynamicEnhancementAgent"); |
938,669 | /*<NEW_LINE>* jint AttachCurrentThreadAsDaemon(JavaVM *vm, void <MASK><NEW_LINE>*/<NEW_LINE>@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class, exceptionHandler = JNIFunctions.Support.JNIExceptionHandlerDetachAndReturnJniErr.class)<NEW_LINE>@CEntryPointOptions(prologue = JNIJavaVMEnterAttachThreadManualJ... | **p_env, void *thr_args); |
529,498 | public static void printDevService(StringBuilder builder, DevServiceDescriptionBuildItem devService, boolean withStatus) {<NEW_LINE>if (devService.hasContainerInfo()) {<NEW_LINE>builder.append(BOLD).append(devService.getName()).append(NO_BOLD);<NEW_LINE>if (withStatus) {<NEW_LINE>builder.append(" - ").append(devService... | ()).append("\n"); |
1,449,015 | public boolean retainAll(Collection<?> collection) {<NEW_LINE>int retainedSize = collection.size();<NEW_LINE>UnifiedMap<K, V> retainedCopy = (UnifiedMap<K, V>) UnifiedMap.this.newEmpty(retainedSize);<NEW_LINE>for (Object obj : collection) {<NEW_LINE>if (obj instanceof Entry) {<NEW_LINE>Entry<?, ?> otherEntry = (Entry<?... | .this.maxSize = retainedCopy.maxSize; |
317,068 | final CreateEndpointResult executeCreateEndpoint(CreateEndpointRequest createEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
741,811 | public static void addVoidMethodReturnsProposals(IInvocationContext context, IProblemLocationCore problem, Collection<ChangeCorrectionProposal> proposals) {<NEW_LINE>ICompilationUnit cu = context.getCompilationUnit();<NEW_LINE>CompilationUnit astRoot = context.getASTRoot();<NEW_LINE>ASTNode selectedNode = problem.getCo... | binding = ast.resolveWellKnownType("java.lang.Object"); |
1,677,201 | private void configureViewerPreferredSize() {<NEW_LINE>int vertexCount = graph.vertexSet().size();<NEW_LINE><MASK><NEW_LINE>// set the layoutModel's initials size to a minimal value. Not sure this should be necessary<NEW_LINE>// but it makes the initial scaling look better for small graphs. Otherwise it seems<NEW_LINE>... | Dimension viewSize = viewer.getPreferredSize(); |
1,050,971 | private static void appendGroupStatus(StringBuilder buffer, Map<ActionExecutionMetadata, Pair<String, Long>> statusMap, String status, long currentTime) {<NEW_LINE>List<Pair<Long, ActionExecutionMetadata>> actions = new ArrayList<>();<NEW_LINE>for (Map.Entry<ActionExecutionMetadata, Pair<String, Long>> entry : statusMa... | append("\n " + status + ":"); |
489,820 | public void deletePet(Long petId, String apiKey) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/pet/{petId}".replac... | throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); |
199,307 | public static void main(String[] args) throws IOException, ClassNotFoundException {<NEW_LINE>// Write V1<NEW_LINE>var fishV1 = new RainbowFish("Zed", 10, 11, 12);<NEW_LINE>LOGGER.info("fishV1 name={} age={} length={} weight={}", fishV1.getName(), fishV1.getAge(), fishV1.getLengthMeters(), fishV1.getWeightTons());<NEW_L... | RainbowFishSerializer.writeV1(fishV1, "fish1.out"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.