idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,524,416 | private void walkIndirectDescribedPushes(WalkState walkState, UDATAPointer highestIndirectSlot, int slotCount, int[] descriptionSlots) throws CorruptDataException {<NEW_LINE>int descriptionBitsRemaining = 0;<NEW_LINE>int description = 0;<NEW_LINE>int descriptionSlotPointer = 0;<NEW_LINE>while (slotCount > 0) {<NEW_LINE... | highestIndirectSlot = highestIndirectSlot.sub(1); |
902,606 | private void drawCross(Graphics2D g2d) {<NEW_LINE>int drawX, drawY;<NEW_LINE>final String cross = "+";<NEW_LINE>g2d.setFont(new Font("arial", Font.PLAIN, 24));<NEW_LINE>Rectangle2D crossBounds = g2d.getFontMetrics(<MASK><NEW_LINE>final int crossW = (int) crossBounds.getWidth();<NEW_LINE>final int crossH = (int) crossBo... | ).getStringBounds("+", g2d); |
3,827 | private Type internalAddImport(ITypeBinding binding, AST ast, ImportRewriteContext context, Type currentType, boolean getBase, TypeLocation location) {<NEW_LINE>Type type = null;<NEW_LINE>ITypeBinding normalizedBinding = null;<NEW_LINE>if (binding.isPrimitive()) {<NEW_LINE>type = ast.newPrimitiveType(PrimitiveType.toCo... | ast, context, TypeLocation.ARRAY_CONTENTS); |
1,842,658 | private List<EquivalentAddressGroup> resolveBalancerAddresses() {<NEW_LINE>List<SrvRecord> srvRecords = Collections.emptyList();<NEW_LINE>Exception srvRecordsException = null;<NEW_LINE>ResourceResolver resourceResolver = getResourceResolver();<NEW_LINE>if (resourceResolver != null) {<NEW_LINE>try {<NEW_LINE>srvRecords ... | Level.FINE, "SRV-provided hostname lookup failure", balancerAddressesException); |
1,275,666 | public void eval(EvaluationContext ctx) {<NEW_LINE>super.evalChildren(ctx);<NEW_LINE>MutableChunk chunk = ctx.getPreAllocatedChunk();<NEW_LINE>int batchSize = chunk.batchSize();<NEW_LINE>boolean isSelectionInUse = chunk.isSelectionInUse();<NEW_LINE>int[] sel = chunk.selection();<NEW_LINE>RandomAccessBlock outputVectorS... | ), 0, toParse.length); |
638,885 | private void nextSentence() throws IOException {<NEW_LINE>List<String> tokenList = new ArrayList<>();<NEW_LINE>List<String> typeList = new ArrayList<>();<NEW_LINE>sentenceTokenAttrs.clear();<NEW_LINE>boolean endOfSentence = false;<NEW_LINE>while (!endOfSentence && (moreTokensAvailable = input.incrementToken())) {<NEW_L... | .size()]) : null; |
427,864 | public static byte[] computePubkey(byte[] seckey) throws AssertFailException {<NEW_LINE>Preconditions.checkArgument(seckey.length == 32);<NEW_LINE>ByteBuffer byteBuff = nativeECDSABuffer.get();<NEW_LINE>if (byteBuff == null || byteBuff.capacity() < seckey.length) {<NEW_LINE>byteBuff = ByteBuffer.allocateDirect(seckey.l... | byteBuff, Secp256k1Context.getContext()); |
1,302,760 | final DeleteProvisionedProductPlanResult executeDeleteProvisionedProductPlan(DeleteProvisionedProductPlanRequest deleteProvisionedProductPlanRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProvisionedProductPlanRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,568,197 | public void checkOut(int id, String stationName, int t) {<NEW_LINE>LinkedList<StationAndTime> list = travelerMap.get(id);<NEW_LINE>StationAndTime stationAndTime = list.getLast();<NEW_LINE>String startToEndStation = stationAndTime.getStation() + "->" + stationName;<NEW_LINE>int duration = t - stationAndTime.getTime();<N... | (pair[1] + 1); |
233,496 | // TODO: This will be fixed in the https://github.com/zeebe-io/zeebe/issues/5640<NEW_LINE>@Override<NEW_LINE>public void wrap(final DirectBuffer buffer, int offset, final int length) {<NEW_LINE>reset();<NEW_LINE>final int frameEnd = offset + length;<NEW_LINE>headerDecoder.wrap(buffer, offset);<NEW_LINE>offset += header... | PartitionRolesDecoder partitionRolesDecoder = bodyDecoder.partitionRoles(); |
165,061 | public void parseJsonQuery(String json, FeatureHandler<String> featureHandler, FeatureHandler<Long> rangeFeatureHandler) throws IllegalArgumentException {<NEW_LINE>try (JsonParser parser = factory.createParser(json)) {<NEW_LINE>skipToken(parser, JsonToken.START_OBJECT);<NEW_LINE>while (parser.nextToken() != JsonToken.E... | String fieldName = parser.getCurrentName(); |
278,331 | public static void computeProjectPackages(final Project project, boolean subprojects, String[][] storage) {<NEW_LINE>if ((storage == null) || (storage.length != 2)) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalArgumentException("Storage must be a non-null String[2][] array");<NEW_LINE>}<NEW_LINE>if (storage[0] == nul... | addSubpackages(packages2, "", root); |
353,580 | public void testObservableRxInvoker_post2WithClass(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultTh... | (book), JAXRS21Book.class); |
453,569 | public void run(final FlowTrigger trigger, Map data) {<NEW_LINE>// 2.create image<NEW_LINE>TaskProgressRange <MASK><NEW_LINE>VolumeSnapshotVO vo = dbf.findByUuid(snapshot.getUuid(), VolumeSnapshotVO.class);<NEW_LINE>String treeUuid = vo.getTreeUuid();<NEW_LINE>CreateTemplateFromVolumeSnapshotMsg cmsg = new CreateTempla... | stage = markTaskStage(parentStage, CREATE_IMAGE_STAGE); |
1,111,517 | private Expression importExpression(boolean yield, boolean await) {<NEW_LINE>final long importToken = token;<NEW_LINE>final int importLine = line;<NEW_LINE>final int importStart = start;<NEW_LINE>assert type == IMPORT;<NEW_LINE>next();<NEW_LINE>if (type == PERIOD) {<NEW_LINE>next();<NEW_LINE>expectDontAdvance(IDENT);<N... | finish, IMPORT_META_NAME).setIsImportMeta(); |
1,314,082 | public void configurarCores() {<NEW_LINE>labelVersao.setForeground(ColorController.COR_LETRA_TITULO);<NEW_LINE>arvoreExemplos.setBackground(ColorController.FUNDO_CLARO);<NEW_LINE>imagePane.setBackground(ColorController.FUNDO_ESCURO);<NEW_LINE>description.setForeground(ColorController.COR_LETRA);<NEW_LINE>scrollArvoreEx... | textRecentes.setBackground(ColorController.FUNDO_ESCURO); |
447,937 | protected int sendDataCommand(UDPConnection connection, ByteBuffer[] buffers, int offset, int length) throws IOException {<NEW_LINE>int payload_to_send = 0;<NEW_LINE>for (int i = offset; i < offset + length; i++) {<NEW_LINE>payload_to_send += buffers[i].remaining();<NEW_LINE>}<NEW_LINE>byte[] header = new byte[256];<NE... | = new byte[header_size + payload_to_send]; |
811,955 | private void checkMandatory(final List<AttributeInfo> attributes, final int start) throws IOException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (int i = start; i < attributes.size(); i++) {<NEW_LINE>AttributeInfo attr = attributes.get(i);<NEW_LINE>if (!attr.canReadInput())<NEW_LINE>continue;<NEW_L... | append(sb.toString()); |
1,011,939 | private static User loadFromCore(UserId userId, SharedPreferences securePrefs, UserManager userManager, KeyStoreCrypto keyStoreCrypto) throws ApiException, StoreException {<NEW_LINE>// Core UserManager (UserRepository & UserAddressRepository) have a memory cache.<NEW_LINE>// Core UserManager will only do a network call... | UserManagerKt.getUserBlocking(userManager, userId); |
181,558 | protected void addEventInParameters(List<ExtensionElement> eventParameterElements, ObjectNode propertiesNode) {<NEW_LINE>if (CollectionUtils.isEmpty(eventParameterElements)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ObjectNode valueNode = objectMapper.createObjectNode();<NEW_LINE><MASK><NEW_LINE>for (ExtensionElement elem... | ArrayNode arrayNode = objectMapper.createArrayNode(); |
25,710 | private Repository parseCollectionsRepositoryData(Element element) throws Exception {<NEW_LINE>String fullName = element.select("div > h1 > a").attr("href");<NEW_LINE>fullName = fullName.substring(1);<NEW_LINE>String owner = fullName.substring(0, fullName.lastIndexOf("/"));<NEW_LINE>String repoName = fullName.substring... | languageElements = numElement.select("span > span > span"); |
444,381 | static int encodeToChar(byte[] sArr, char[] dArr, final int start) {<NEW_LINE>final int sLen = sArr.length;<NEW_LINE>// Length of even 24-bits.<NEW_LINE>final int eLen = (sLen / 3) * 3;<NEW_LINE>// Returned character count<NEW_LINE>final int dLen = ((sLen - 1) / 3 + 1) << 2;<NEW_LINE>// Encode even 24-bits<NEW_LINE>for... | ] = CA[i & 0x3f]; |
474,832 | public World[] updates(@QueryParam("queries") String queriesParam) throws InterruptedException, ExecutionException {<NEW_LINE>final int queries = getQueries(queriesParam);<NEW_LINE>final World[] worlds = new World[queries];<NEW_LINE>Callable<World[]> callable = () -> {<NEW_LINE>Session session = emf.createEntityManager... | .persist(worlds[i]); |
126,968 | public static IRubyObject doAcceptNonblock(RubySocket sock, ThreadContext context, boolean ex) {<NEW_LINE>try {<NEW_LINE>Channel channel = sock.getChannel();<NEW_LINE>if (channel instanceof SelectableChannel) {<NEW_LINE>SelectableChannel selectable = (SelectableChannel) channel;<NEW_LINE>synchronized (selectable.blocki... | doAccept(sock, context, ex); |
1,622,206 | private void loadEquipment(T entity, EntityEquipment equip, CompoundTag compound) {<NEW_LINE>// Deprecated since 15w31a, left here for compatibilty for now<NEW_LINE>compound.readCompoundList("Equipment", list -> {<NEW_LINE>equip.setItemInMainHand(getItem(list, 0));<NEW_LINE>equip.setBoots(getItem(list, 1));<NEW_LINE>eq... | (getItem(list, 3)); |
365,623 | public DescribeAssessmentTargetsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAssessmentTargetsResult describeAssessmentTargetsResult = new DescribeAssessmentTargetsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | int originalDepth = context.getCurrentDepth(); |
400,600 | public static HistoricDecisionInstanceDto fromHistoricDecisionInstance(HistoricDecisionInstance historicDecisionInstance) {<NEW_LINE>HistoricDecisionInstanceDto dto = new HistoricDecisionInstanceDto();<NEW_LINE>dto.id = historicDecisionInstance.getId();<NEW_LINE>dto.decisionDefinitionId = historicDecisionInstance.getDe... | .rootProcessInstanceId = historicDecisionInstance.getRootProcessInstanceId(); |
1,632,053 | public void marshall(CalculateRouteRequest calculateRouteRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (calculateRouteRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(calculateRouteRequest... | calculateRouteRequest.getDepartureTime(), DEPARTURETIME_BINDING); |
359,484 | private void loadAllFromPersistence() {<NEW_LINE>allCookies = new HashMap<>();<NEW_LINE>Map<String, ?> allPairs = sharedPreferences.getAll();<NEW_LINE>for (Map.Entry<String, ?> entry : allPairs.entrySet()) {<NEW_LINE>String[] uriAndName = entry.getKey().split(SP_KEY_DELIMITER, 2);<NEW_LINE>try {<NEW_LINE>URI uri = new ... | allCookies.put(uri, targetCookies); |
1,195,870 | public void render(HumanoidModel<? extends LivingEntity> baseModel, @Nonnull PoseStack matrix, @Nonnull MultiBufferSource renderer, int light, int overlayLight, float partialTicks, boolean hasEffect, LivingEntity entity, ItemStack stack) {<NEW_LINE>if (!baseModel.body.visible) {<NEW_LINE>// If the body model shouldn't ... | baseModel.bodyYOffset / 16.0F, 0.0D); |
1,663,375 | public void initialize() {<NEW_LINE>navigationListener = (viewPath, data) -> {<NEW_LINE>if (viewPath.size() != 4 || viewPath.indexOf(MonitorView.class) != 2)<NEW_LINE>return;<NEW_LINE>selectedViewClass = viewPath.tip();<NEW_LINE>loadView(selectedViewClass);<NEW_LINE>};<NEW_LINE>toggleGroup = new ToggleGroup();<NEW_LINE... | ), DaoStateMonitorView.class, baseNavPath); |
679,786 | protected Entity loadEntityInstance(EntityLoadInfo info) {<NEW_LINE>if (info.isNewEntity()) {<NEW_LINE>return metadata.create(info.getMetaClass());<NEW_LINE>}<NEW_LINE>String pkName = referenceToEntitySupport.getPrimaryKeyForLoadingEntityFromLink(info.getMetaClass());<NEW_LINE>// noinspection unchecked<NEW_LINE>LoadCon... | entity = dataService.load(ctx); |
210,623 | public J visitIdentifier(J.Identifier ident, ExecutionContext ctx) {<NEW_LINE>// if the ident's type is equal to the type we're looking for, and the classname of the type we're looking for is equal to the ident's string representation<NEW_LINE>// Then transform it, otherwise leave it alone<NEW_LINE>J.Identifier i = vis... | String className = originalType.getClassName(); |
612,109 | public static void rotateCW(ImageBase image) {<NEW_LINE>if (image instanceof ImageGray) {<NEW_LINE>if (GrayI8.class.isAssignableFrom(image.getClass())) {<NEW_LINE>ImageMiscOps.rotateCW((GrayI8) image);<NEW_LINE>} else if (GrayI16.class.isAssignableFrom(image.getClass())) {<NEW_LINE>ImageMiscOps<MASK><NEW_LINE>} else if... | .rotateCW((GrayI16) image); |
1,078,178 | public void run(CompilationController controller) throws IOException {<NEW_LINE>controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);<NEW_LINE>TypeElement jc = controller.getElements().getTypeElement(entityClass);<NEW_LINE>arrEntityClassFO[0] = org.netbeans.api.java.source.SourceUtils.getFile(ElementHandle.create(jc)... | ] = JpaControllerUtil.isFieldAccess(jc); |
332,210 | public TransitionState unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TransitionState transitionState = new TransitionState();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | class).unmarshall(context)); |
176,612 | public static void main(String[] args) {<NEW_LINE>int size = 64;<NEW_LINE>CSP<Variable, Integer> csp = new NQueensCSP(size);<NEW_LINE>CspListener.StepCounter<Variable, Integer> stepCounter = new CspListener.StepCounter<>();<NEW_LINE>CspSolver<Variable, Integer> solver;<NEW_LINE>Optional<Assignment<Variable, Integer>> s... | stepCounter.getResults() + "\n"); |
584,632 | public void dumpsignatureNameThread(String signatureName, String title) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(title);<NEW_LINE>sb.append("\nASYNC TASK QUEUE DUMP:");<NEW_LINE>sb.append(String.format("\nTASK QUEUE NUMBER: %s\n", chainTasks.size()));<NEW_LINE>List<String> asyncTasks = new ... | .join(asyncTasks, "\n")); |
124,737 | public int load(ModelLoadContext loadContext) throws IOException {<NEW_LINE>try {<NEW_LINE>lock.lock();<NEW_LINE>if (isLoading()) {<NEW_LINE>throw new IllegalStateException("Angel is loading now, loading context=" + loadContexts.get(currentRequestId));<NEW_LINE>}<NEW_LINE>currentRequestId = loadRequestIdGen++;<NEW_LINE... | currentRequestId, new ModelLoadResult(currentRequestId)); |
281,882 | void drop(Collection<Mutation> mutations, Collection<Event.SchemaChange> events) {<NEW_LINE>logger.debug("drop keyspaces={} droppableKeyspace={} droppableTables={} unindexableTables={}", keyspace, droppableKeyspace, droppableTables, unindexableTables);<NEW_LINE>if (droppableKeyspace) {<NEW_LINE>MetaDataDeleteIndexServi... | cfm = ksm.getTableOrViewNullable(table); |
75,259 | private void performRemoteAction(ClusterState state, ShardRouting primary, DiscoveryNode node) {<NEW_LINE>if (state.version() < request.routedBasedOnClusterVersion()) {<NEW_LINE>logger.trace("failed to find primary [{}] for request [{}] despite sender thinking it would be here. Local cluster state " + "version [{}]] is... | request.routedBasedOnClusterVersion() + "]"); |
531,412 | public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.err.println("Usage: ParseExample <file-name> <class-name e.g. V1Pod>");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>ApiClient client = Config.defaultClient();<NEW_LINE>FileR... | "Error, expected:\n" + output + "\nto equal\n" + output2); |
622,072 | @SuppressFBWarnings("SERVLET_QUERY_STRING")<NEW_LINE>public void include(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {<NEW_LINE>if (lambdaContainerHandler == null) {<NEW_LINE>throw new IllegalStateException("Null container handler in dispatcher");<NEW_LINE>}<NEW_... | ) servletRequest).getPathInfo()); |
188,664 | private void fastCopyRecords(int recordsToCopy) {<NEW_LINE>long setPointerAndSizeBitsToCopy = (long) recordsToCopy * target.bitsPerFixedLengthSetPortion;<NEW_LINE>long eachSetPointerDifference = currentWriteStartBucket - currentFromStateStartBucket;<NEW_LINE>target.setPointerAndSizeData.copyBits(from.setPointerAndSizeD... | currentWriteStartBucket * from.bitsPerElement, bitsToCopy); |
1,529,781 | public com.squareup.okhttp.Call userGetWalletCall(String currency, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>St... | HashMap<String, String>(); |
1,247,339 | public CodecDocument openDocumentInner(String fileName, String password) {<NEW_LINE>if (!cacheFile.isFile()) {<NEW_LINE>String outputTemp = cacheFile.getPath() + ".tmp";<NEW_LINE>final int res = LibMobi.convertDocToHtml(fileName, outputTemp);<NEW_LINE>LOG.d("convertDocToHtml", res);<NEW_LINE>if (res == 0) {<NEW_LINE>re... | BufferedOutputStream(new FileOutputStream(cacheFile)); |
423,769 | private static jsonstep parseStep(JSONObject obj) throws JSONException {<NEW_LINE>jsonstep js = new jsonstep();<NEW_LINE>js.order = obj.getInt("stepOrder");<NEW_LINE>js.group = getInt(obj, "groupId");<NEW_LINE>js.parentGroup = getInt(obj, "parentGroupId");<NEW_LINE>Intensity intensity = getIntensity(obj);<NEW_LINE>Pair... | duration = getDuration(obj, intensity); |
1,045,123 | public void marshall(DeliveryStreamDescription deliveryStreamDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (deliveryStreamDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(deliveryS... | deliveryStreamDescription.getVersionId(), VERSIONID_BINDING); |
1,089,287 | public Sample createSample(String dropwizardName, String nameSuffix, List<String> additionalLabelNames, List<String> additionalLabelValues, double value) {<NEW_LINE>// this is a ratis metrics, where the second part is an instance id.<NEW_LINE>if (dropwizardName.startsWith(RATIS_APPLICATION_NAME_METRICS)) {<NEW_LINE>Lis... | = new ArrayList<>(additionalLabelValues); |
400,143 | private void configureHttpsPipeline(NioSocketChannel ctx, Http2Connection connection) throws Exception {<NEW_LINE>JdkSslContext context = new // We should not use the non deprecated version to avoid breaking forward compatibility<NEW_LINE>JdkSslContext(// We should not use the non deprecated version to avoid breaking f... | ClientAuth.REQUIRE : ClientAuth.OPTIONAL); |
325,537 | private void convertObjects(Map<Uid, NamedManagementObject> objs) {<NEW_LINE><MASK><NEW_LINE>objs.values().forEach(obj -> {<NEW_LINE>if (obj instanceof UnknownTypedManagementObject) {<NEW_LINE>UnknownTypedManagementObject utmo = (UnknownTypedManagementObject) obj;<NEW_LINE>_w.redFlag(String.format("Batfish does not han... | AddressSpaceToIpSpace addressSpaceToIpSpace = new AddressSpaceToIpSpace(objs); |
814,708 | protected // e.g. 'a[1] = 2 #=> 2' or 'a[1] = 1,2,3 #=> [1,2,3]'<NEW_LINE>Operand buildAttrAssignCallArgs(List<Operand> argsList, Node args, boolean containsAssignment) {<NEW_LINE>if (args == null)<NEW_LINE>return manager.getNil();<NEW_LINE>switch(args.getNodeType()) {<NEW_LINE>case ARRAYNODE:<NEW_LINE>{<NEW_LINE>// a[... | , lhs, rhs, true)); |
269,524 | public void createDhcpEntryCommand(final VirtualRouter router, final UserVm vm, final NicVO nic, boolean remove, final Commands cmds) {<NEW_LINE>final DhcpEntryCommand dhcpCommand = new DhcpEntryCommand(nic.getMacAddress(), nic.getIPv4Address(), vm.getHostName(), nic.getIPv6Address(), _networkModel.getExecuteInSeqNtwkE... | findById(router.getDataCenterId()); |
257,368 | final ListDomainNamesResult executeListDomainNames(ListDomainNamesRequest listDomainNamesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainNamesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
274,313 | private File generateMainDexClassesJar(CommandExecutor executor) throws MojoExecutionException {<NEW_LINE>List<String> commands = jarDefaultCommands();<NEW_LINE>commands.add(getAndroidSdk().getProguardJarPath());<NEW_LINE>commands.add("-dontnote");<NEW_LINE>commands.add("-dontwarn");<NEW_LINE>commands.add("-forceproces... | <File> inputFiles = getDexInputFiles(); |
1,304,558 | private Config buildConfig(ClassLoader loader) {<NEW_LINE>MpConfigBuilder builder = getBuilder();<NEW_LINE>builder.forClassLoader(loader);<NEW_LINE>// MP Meta Configuration<NEW_LINE>Optional<io.helidon.config.Config<MASK><NEW_LINE>if (meta.isEmpty()) {<NEW_LINE>meta = MetaConfig.metaConfig();<NEW_LINE>if (meta.isPresen... | > meta = MpMetaConfig.metaConfig(); |
483,480 | public Request<ListContactReferencesRequest> marshall(ListContactReferencesRequest listContactReferencesRequest) {<NEW_LINE>if (listContactReferencesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListContactReferencesRequest)");<NEW_LINE>}<NEW_LINE>Request<ListContactRe... | <ListContactReferencesRequest>(listContactReferencesRequest, "AmazonConnect"); |
1,713,520 | public byte[] decrypt(byte[] iv, int tagLength, byte[] someBytes) throws CryptoException {<NEW_LINE>GCMParameterSpec decryptIv = new GCMParameterSpec(tagLength, iv);<NEW_LINE>try {<NEW_LINE>cipher = Cipher.<MASK><NEW_LINE>String keySpecAlgorithm = BulkCipherAlgorithm.getBulkCipherAlgorithm(algorithm).getJavaName();<NEW... | getInstance(algorithm.getJavaName()); |
1,426,485 | private boolean isCorrelated(SqlNode expression) {<NEW_LINE>String queryString = expression.toSqlString(CalciteSqlDialect.DEFAULT).getSql();<NEW_LINE>Boolean isCorrelatedSubquery = SubqueryCorrMemo.get(queryString);<NEW_LINE>if (null != isCorrelatedSubquery) {<NEW_LINE>return isCorrelatedSubquery;<NEW_LINE>}<NEW_LINE>t... | dataDir, dbSqlOperatorTable, dbPort, sock_transport_properties); |
44,683 | public static void blurFractional(int[] in, int[] out, int width, int height, float radius) {<NEW_LINE>radius -= (int) radius;<NEW_LINE>float f = 1.0f / (1 + 2 * radius);<NEW_LINE>int inIndex = 0;<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>int outIndex = y;<NEW_LINE>out[outIndex] = in[0];<NEW_LINE>outIndex +=... | (rgb3 >> 24) & 0xff; |
968,201 | public void onInboundNext(ChannelHandlerContext ctx, Object frame) {<NEW_LINE>if (frame instanceof CloseWebSocketFrame && ((CloseWebSocketFrame) frame).isFinalFragment()) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(format(channel(), "CloseWebSocketFrame detected. Closing Websocket"));<NEW_LINE>}<NEW_LINE>... | super.onInboundNext(ctx, frame); |
1,247,957 | private static MapModelCriteriaBuilder<Object, MapPolicyEntity, Policy> checkAssociatedPolicy(MapModelCriteriaBuilder<Object, MapPolicyEntity, Policy> mcb, Operator op, Object[] values) {<NEW_LINE>Function<MapPolicyEntity, ?> getter;<NEW_LINE>if (op == Operator.IN && values != null && values.length == 1 && (values[0] i... | ASSOCIATED_POLICY_ID, "associated_policy_id", op, values); |
946,656 | public Connector create(final String connectorId, Map<String, String> config, ConnectorContext context) {<NEW_LINE>requireNonNull(connectorId, "connectorId is null");<NEW_LINE>requireNonNull(config, "config is null");<NEW_LINE>try {<NEW_LINE>Bootstrap app = new Bootstrap(new JsonModule(), new MBeanModule(), new PinotMo... | ).in(Scopes.SINGLETON); |
1,470,659 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | false), new TagResourceResultJsonUnmarshaller()); |
1,425,116 | public PageDTO buildPageDTO(Page page, boolean secure) {<NEW_LINE>PageDTO pageDTO = new PageDTO();<NEW_LINE>pageDTO.setId(page.getId());<NEW_LINE>pageDTO.setDescription(page.getDescription());<NEW_LINE>pageDTO.setUrl(page.getFullUrl());<NEW_LINE>pageDTO.setPriority(page.getPriority());<NEW_LINE>if (page.getPageTemplate... | getPageTemplate().getTemplatePath()); |
221,026 | URI[] createPath() {<NEW_LINE>Collection<URI> col = new ArrayList<URI>();<NEW_LINE>col.addAll(Arrays.asList(getMavenProject().getSourceRoots(false)));<NEW_LINE>col.addAll(Arrays.asList(getMavenProject(<MASK><NEW_LINE>// #180020 remote items from resources that are either duplicate or child roots of source roots.<NEW_LI... | ).getGeneratedSourceRoots(false))); |
674,075 | void doCallNatives(@NonNull HippyCallNativeParams params) {<NEW_LINE>PromiseImpl promise = new PromiseImpl(mContext, params.moduleName, params.moduleFunc, params.callId);<NEW_LINE>try {<NEW_LINE>HippyNativeModuleInfo moduleInfo = mNativeModuleInfo.get(params.moduleName);<NEW_LINE>if (moduleInfo == null) {<NEW_LINE>prom... | new RuntimeException(e), true); |
932,973 | public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException {<NEW_LINE>if (!(message instanceof TextMessage))<NEW_LINE>throw new MessageFormatException("Message: " + message);<NEW_LINE>String tableName;<NEW_LINE>if (destination instanceof Queue)<NEW_LI... | Queue) destination).getQueueName(); |
1,326,688 | public static void main(String[] args) throws Exception {<NEW_LINE>// Need the source doc as a DOM for later, and also<NEW_LINE>// as XSLT input<NEW_LINE>Document doc = XmlUtils.getNewDocumentBuilder().parse(new File(System.getProperty("user.dir") + "/sample-docs/glox/extracted/data-sample.xml"));<NEW_LINE>GloxPackage ... | SaveToZipFile saver = new SaveToZipFile(pkg); |
1,648,198 | public TransformSortCriteria unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TransformSortCriteria transformSortCriteria = new TransformSortCriteria();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | int originalDepth = context.getCurrentDepth(); |
371,179 | private SourceLineAnnotation createSourceLineAnnotation(String qName, Attributes attributes) throws SAXException {<NEW_LINE>String classname = getRequiredAttribute(attributes, "classname", qName);<NEW_LINE>String sourceFile = getOptionalAttribute(attributes, "sourcefile");<NEW_LINE>if (sourceFile == null) {<NEW_LINE>so... | .parseInt(startLine) : -1; |
839,871 | private void findTestAndDo(AnActionEvent anActionEvent, BiConsumer<PsiClass, PsiMethod> action) {<NEW_LINE>PsiElement psiElement = anActionEvent.getData(CommonDataKeys.PSI_ELEMENT);<NEW_LINE>PsiFile psiFile = anActionEvent.getData(LangDataKeys.PSI_FILE);<NEW_LINE>if (psiElement == null) {<NEW_LINE>Editor editor = anAct... | action.accept(null, null); |
473,963 | public void actionPerformed(ActionEvent e) {<NEW_LINE>JButton sourceButton = (JButton) e.getSource();<NEW_LINE>if (sourceButton.equals(newButton)) {<NEW_LINE>NewPropertyDialog dialog = new NewPropertyDialog();<NEW_LINE>Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();<NEW_LINE>dialog.pack();<NEW_LINE>... | .getHeight()) / 2); |
409,031 | public static void execute(ManagerService service, boolean isOn) {<NEW_LINE>String onOffStatus = isOn ? "enable" : "disable";<NEW_LINE>try {<NEW_LINE>WriteDynamicBootstrap.getInstance().changeValue("enableBatchLoadData", isOn ? "1" : "0");<NEW_LINE>} catch (IOException e) {<NEW_LINE>String msg = onOffStatus + " load_da... | service + " " + onOffStatus + " load_data_batch success by manager"); |
1,335,330 | protected void onHandleIntent(Intent intent) {<NEW_LINE>final Locale locale = (Locale) intent.getSerializableExtra(LOCALE_ID);<NEW_LINE>if (locale == null) {<NEW_LINE>geocoder = new Geocoder(this);<NEW_LINE>} else {<NEW_LINE>geocoder = new Geocoder(this, locale);<NEW_LINE>}<NEW_LINE>if (intent.hasExtra(DIRECT_GEOCODING... | response = addressFromName(name, maxResults); |
389,358 | public void dataReceived(String data) {<NEW_LINE>if (data.startsWith("K")) {<NEW_LINE>int firstByte = Integer.parseInt(data.substring(1, 2), 16);<NEW_LINE>int typByte = Integer.parseInt(data.substring(2, 3), 16) & 7;<NEW_LINE>int sfirstByte = firstByte & 7;<NEW_LINE>if (sfirstByte == 7) {<NEW_LINE>logger.debug("Receive... | logger.warn("Received unparseable message: " + data); |
394,722 | private void reject(MongoResponse response, Feedback feedback, Integer idx) {<NEW_LINE>var error = document().put("message", idx == null ? "Password is too weak" : "Password is too weak in user document at index " + idx).put("http status code", HttpStatus.SC_NOT_ACCEPTABLE).put("http status description", HttpStatus.get... | error.put("suggestions", _suggestions); |
1,261,178 | public void store(DomRepresentation mailRep) throws IOException {<NEW_LINE>// Configure the XML Schema used for validation<NEW_LINE>Representation mailXsd = new ClientResource(LocalReference.createClapReference(getClass().getPackage()) + "/Mail.xsd").get();<NEW_LINE>mailRep.setSchema(mailXsd);<NEW_LINE>mailRep.setError... | out.println("Status: " + status); |
1,779,064 | protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {<NEW_LINE>super.<MASK><NEW_LINE>if (requestCode == REQUEST_CODE_QR_SCAN) {<NEW_LINE>if (data == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String result = data.getStringExtra("com.blikoon.qrcodescanner.got_qr_scan_relult");<NEW_L... | onActivityResult(requestCode, resultCode, data); |
1,302,964 | private void parseStringTable() {<NEW_LINE>int chunk = getLEWord(mParserOffset + (1 * WORD_SIZE));<NEW_LINE>mStringsCount = getLEWord(<MASK><NEW_LINE>mStylesCount = getLEWord(mParserOffset + (3 * WORD_SIZE));<NEW_LINE>int strOffset = mParserOffset + getLEWord(mParserOffset + (5 * WORD_SIZE));<NEW_LINE>int styleOffset =... | mParserOffset + (2 * WORD_SIZE)); |
1,832,673 | public String toStringDetail() {<NEW_LINE>StringBuffer sb = new StringBuffer(m_apps_host);<NEW_LINE>sb.append("{").append(m_db_host).append("-").append(m_db_name).append("-").append<MASK><NEW_LINE>//<NEW_LINE>Connection conn = getConnection(true, Connection.TRANSACTION_READ_COMMITTED);<NEW_LINE>if (conn != null) {<NEW_... | (m_db_uid).append("}"); |
1,614,596 | public static ListPoliciesForGroupResponse unmarshall(ListPoliciesForGroupResponse listPoliciesForGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPoliciesForGroupResponse.setRequestId(_ctx.stringValue("ListPoliciesForGroupResponse.RequestId"));<NEW_LINE>List<Policy> policies <MASK><NEW_LINE>for (int i = 0; i < ... | = new ArrayList<Policy>(); |
1,404,983 | public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>SMALL_CARD = Utils.convertDpToPixel(getContext(), 116);<NEW_LINE>MED_CARD = Utils.convertDpToPixel(getContext(), 175);<NEW_LINE>LARGE_CARD = Utils.convertDpToPixel(getContext(), 210);<NEW_LINE>SMALL_BANNER ... | .SortName, SortOrder.Descending)); |
47,937 | private BufferedImage imageFromINDArray(INDArray array) {<NEW_LINE>long[] shape = array.shape();<NEW_LINE>long height = shape[2];<NEW_LINE>long width = shape[3];<NEW_LINE>BufferedImage image = new BufferedImage((int) width, (int) height, BufferedImage.TYPE_INT_RGB);<NEW_LINE>for (int x = 0; x < width; x++) {<NEW_LINE>f... | 0, 1, y, x); |
340,905 | public State convertToState(RFXComValueSelector valueSelector) throws RFXComException {<NEW_LINE>org.openhab.core.types.State state = UnDefType.UNDEF;<NEW_LINE>if (valueSelector.getItemClass() == NumberItem.class) {<NEW_LINE>if (valueSelector == RFXComValueSelector.SIGNAL_LEVEL) {<NEW_LINE>state = new DecimalType(signa... | (DatatypeConverter.printHexBinary(rawMessage)); |
847,838 | private void runAssertionSelectNested(RegressionEnvironment env, String typename, FunctionSendEvent send, Function<Object, Object> optionalValueConversion, Pair[] tests, Class expectedPropertyType, RegressionPath path) {<NEW_LINE>String stmtText = "@name('s0') select " + " item.nested?.nestedValue as n1, " + " exists(i... | pair.getFirst(), typename); |
275,063 | public void loadMetaData(ArrayList<String> sourceCustomPrefixes, ArrayList<String> sourceCustomEntities) {<NEW_LINE>s_logger.log(Level.CONFIG, "");<NEW_LINE>s_logger.log(Level.CONFIG, "loadMetadata", getDirection());<NEW_LINE>loadDBVendor();<NEW_LINE>loadDBProductVersion();<NEW_LINE>loadDBCatalog();<NEW_LINE>loadDBSche... | CONFIG, "metadataLoaded", getDirection()); |
996,528 | public void addAll(PairedStats values) {<NEW_LINE>if (values.count() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>xStats.addAll(values.xStats());<NEW_LINE>if (yStats.count() == 0) {<NEW_LINE>sumOfProductsOfDeltas = values.sumOfProductsOfDeltas();<NEW_LINE>} else {<NEW_LINE>// This is a generalized version of the calcul... | )) * values.count(); |
915,493 | public static void main(String[] args) {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.format("Usage: <the bucket name> <the AWS Region to use>\n" + "Example: my-test-bucket us-east-2\n");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String bucket_name = args[0];<NEW_LINE>String region = args[1];<NEW_LINE>s3 = AmazonS3Cl... | out.format("\nCreating a new bucket named '%s'...\n\n", bucket_name); |
216,820 | public void go(boolean shouldLoop, AgentBootstrapperArgs bootstrapperArgs) {<NEW_LINE>loop = shouldLoop;<NEW_LINE>launcherThread = Thread.currentThread();<NEW_LINE>validate();<NEW_LINE>cleanupTempFiles();<NEW_LINE>int returnValue = 0;<NEW_LINE>DefaultAgentLaunchDescriptorImpl descriptor = new DefaultAgentLaunchDescript... | ClassLoader tccl = launcherThread.getContextClassLoader(); |
404,909 | void selectRawHostAccountStorageStatsMap(Map<Long, Map<Short, Map<Short, ContainerStorageStats>>> selectedHostAccountStorageStatsMap, Map<Long, Map<Short, Map<Short, ContainerStorageStats>>> hostAccountStorageStatsMap, Map<Long, Long> partitionTimestampMap, Map<Long, Long> partitionPhysicalStorageMap, long snapshotTime... | partitionPhysicalStorageMap.put(partitionId, currentValue); |
930,221 | public com.amazonaws.services.iotanalytics.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotanalytics.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.iotanalytics.model.ResourceNotFoundExce... | int originalDepth = context.getCurrentDepth(); |
1,790,475 | private void runLater(Runnable runnable, Runnable defer) {<NEW_LINE>if (mc.isCallingFromMinecraftThread() && inRunLater) {<NEW_LINE>// #if MC>=10800<NEW_LINE>FML_BUS.register(new Object() {<NEW_LINE><NEW_LINE>@SubscribeEvent<NEW_LINE>public void onRenderTick(TickEvent.RenderTickEvent event) {<NEW_LINE>if (event.phase =... | MinecraftAccessor) mc).getScheduledTasks(); |
27,625 | public BatchPushResult batchSendPush(String url, List<PushPayload> pushPayloadList) throws APIConnectionException, APIRequestException {<NEW_LINE>Preconditions.checkArgument((null != pushPayloadList), "param should not be null");<NEW_LINE>Preconditions.checkArgument((!pushPayloadList.isEmpty()), "pushPayloadList should... | pushPayloadList.size(), "push"); |
1,234,893 | public RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq) {<NEW_LINE>final RelNode buildInput;<NEW_LINE>final RelNode streamInput;<NEW_LINE>if (joinType != JoinRelType.RIGHT) {<NEW_LINE>streamInput = left;<NEW_LINE>buildInput = right;<NEW_LINE>} else {<NEW_LINE>streamInput = right;<NEW_LINE>buildInp... | cpu, memory, 0, 0); |
1,590,524 | private void generateColorMaps() {<NEW_LINE>HashMap<Theme.PredefinedColors, ColorOwn> colorMap = new HashMap<PredefinedColors, ColorOwn>();<NEW_LINE>colorMap.put(PredefinedColors.BLACK, BLACK);<NEW_LINE>colorMap.put(PredefinedColors.BLUE, BLUE);<NEW_LINE>colorMap.put(PredefinedColors.CYAN, CYAN);<NEW_LINE>colorMap.put(... | put(PredefinedColors.RED, RED); |
464,917 | public void testPurchaseValueOfSecurityPositionWithTransfers() throws IOException, TradeCollectorException {<NEW_LINE>Client client = ClientFactory.load(// $NON-NLS-1$<NEW_LINE>Issue1898TradeIRRwithPortfolioTransfers.class.// $NON-NLS-1$<NEW_LINE>getResourceAsStream("Issue1898TradeIRRwithPortfolioTransfers.xml"));<NEW_... | trades = collector.collect(security); |
495,263 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>LocaleUtil.initLocale(this);<NEW_LINE>boolean shouldRefresh = getIntent().getBooleanExtra(EXTRA_SHOULD_REFRESH, false);<NEW_LINE>binding = DataBindingUtil.setContentView(this, R.layout.activity_main);<NEW_LINE>Dat... | (SessionsFragment.newInstance(shouldRefresh)); |
1,055,869 | void updateChildViews() {<NEW_LINE>final int opCount = mPendingUpdates.size();<NEW_LINE>for (int i = 0; i < opCount; i++) {<NEW_LINE>final UpdateOp op = mPendingUpdates.get(i);<NEW_LINE>switch(op.cmd) {<NEW_LINE>case UpdateOp.ADD:<NEW_LINE>if (DEBUG) {<NEW_LINE>// Log.d(TAG, "UpdateOp.ADD start=" + op.positionStart + "... | op.positionStart, op.itemCount); |
1,454,537 | public Model copyIntoForeignSpec(final Spec foreignSpec, final String newModelName) {<NEW_LINE>final IProject foreignProject = foreignSpec.getProject();<NEW_LINE>final ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();<NEW_LINE>final ILaunchConfigurationType launchConfigurationType = launchMana... | launchConfigurationType.newInstance(foreignProject, wholeName); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.