idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
285,398 | public void read(org.apache.thrift.protocol.TProtocol prot, continueScan_result 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(5);<NEW_LINE>if (incoming.get(0... | struct.nste.read(iprot); |
1,598,866 | protected boolean copyFile(IFileStore sourceStore, IFileStore sourceRoot, IFileStore destinationRoot, IProgressMonitor monitor) {<NEW_LINE>if (sourceStore == null || CloakingUtils.isFileCloaked(sourceStore)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean success = true;<NEW_LINE>IFileStore[] sourceStores = null, ... | = getFolderStore(targetStores[0]); |
1,318,365 | public // ignored by this CTR mode<NEW_LINE>void // ignored by this CTR mode<NEW_LINE>init(boolean encrypting, CipherParameters params) throws IllegalArgumentException {<NEW_LINE>if (params instanceof ParametersWithIV) {<NEW_LINE>ParametersWithIV ivParam = (ParametersWithIV) params;<NEW_LINE>initArrays();<NEW_LINE>IV =... | true, ivParam.getParameters()); |
775,306 | private static CallbackHandlerConfiguration createCallbackHandlerConfiguration(Binding b, boolean client) {<NEW_LINE>WSDLModel model = b.getModel();<NEW_LINE>Policy p = PolicyModelHelper.getPolicyForElement(b);<NEW_LINE>CallbackHandlerConfiguration chc = (CallbackHandlerConfiguration) PolicyModelHelper.getTopLevelEleme... | p, CallbackHandlerConfiguration.class, false); |
866,356 | public RestMethodResult doPatch(final List<Map<String, Object>> propertySets) throws FrameworkException {<NEW_LINE>final RestMethodResult result = new RestMethodResult(HttpServletResponse.SC_OK);<NEW_LINE>final App app = StructrApp.getInstance(securityContext);<NEW_LINE>final Iterator<Map<String, Object>> iterator = pr... | idSource = propertySet.get("id"); |
550,609 | public List<SelectionRange> selectionRange(SelectionRangeParams params, IProgressMonitor monitor) {<NEW_LINE>if (params.getPositions() == null || params.getPositions().isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>ITypeRoot root = JDTUtils.resolveTypeRoot(params.getTextDocument().getUri());<... | listIterator(nodes.size()); |
228,134 | public void putInt(long t, int v) {<NEW_LINE>if (writeCurArrayIndex == capacity) {<NEW_LINE>if (capacity >= CAPACITY_THRESHOLD) {<NEW_LINE>timeRet.add(new long[capacity]);<NEW_LINE>intRet.add(new int[capacity]);<NEW_LINE>writeCurListIndex++;<NEW_LINE>writeCurArrayIndex = 0;<NEW_LINE>} else {<NEW_LINE>int newCapacity = ... | ] newTimeData = new long[newCapacity]; |
1,775,320 | public Request<ChangeMessageVisibilityRequest> marshall(ChangeMessageVisibilityRequest changeMessageVisibilityRequest) {<NEW_LINE>if (changeMessageVisibilityRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ChangeMessageVisibilityRequest> r... | (changeMessageVisibilityRequest.getReceiptHandle())); |
1,612,267 | protected JavaType _narrow(Class<?> subclass) {<NEW_LINE>if (_class == subclass) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>// Should we check that there is a sub-class relationship?<NEW_LINE>// 15-Jan-2016, tatu: Almost yes, but there are some complications with<NEW_LINE>// placeholder values (`Void`, `NoClass`), so ... | " to " + _class.getName()); |
1,216,575 | public static int binarySearch(long[] array, int startIndex, int endIndex, long value) {<NEW_LINE>checkIndexForBinarySearch(array.length, startIndex, endIndex);<NEW_LINE>int low = startIndex, mid = -1, high = endIndex - 1;<NEW_LINE>while (low <= high) {<NEW_LINE>mid = (low + high) >>> 1;<NEW_LINE>if (value > array[mid]... | [mid] ? 1 : 2); |
839,882 | public AirbyteConnectionStatus checkStorageIamPermissions(JsonNode config) {<NEW_LINE>final JsonNode loadingMethod = config.get(BigQueryConsts.LOADING_METHOD);<NEW_LINE>final String bucketName = loadingMethod.get(BigQueryConsts.GCS_BUCKET_NAME).asText();<NEW_LINE>try {<NEW_LINE>ServiceAccountCredentials credentials = g... | collect(Collectors.toList()); |
1,648,570 | public Object execute(VirtualFrame frame) {<NEW_LINE>JSDynamicObject functionObject = JSFrameUtil.getFunctionObject(frame);<NEW_LINE>JSDynamicObject promise = (JSDynamicObject) getPromise(functionObject);<NEW_LINE>Object resolution = resolutionNode.execute(frame);<NEW_LINE>AlreadyResolved alreadyResolved = (AlreadyReso... | promiseEnqueueJob(getRealm(), job); |
654,875 | private IterOutcome doWork(BatchStatusWrappper batchStatus, boolean newSchema) {<NEW_LINE>Preconditions.checkArgument(batchStatus.batch.getSchema().getFieldCount() == container.getSchema().getFieldCount(), "Input batch and output batch have different field counthas!");<NEW_LINE>if (newSchema) {<NEW_LINE>createUnionAlle... | batchStatus.recordsProcessed, recordsToProcess, 0); |
187,217 | final CreateAddonResult executeCreateAddon(CreateAddonRequest createAddonRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAddonRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,061,731 | private String handleParseErrorException(final org.apache.lucene.queryparser.classic.ParseException exception) {<NEW_LINE>final SystemMessageBuilder systemMessageBuilder = new SystemMessageBuilder();<NEW_LINE>final StringBuilder message = new StringBuilder();<NEW_LINE>final String errorMessage = WordUtils.wrap(UtilMeth... | String messageAsString = message.toString(); |
702,480 | protected void handleHide(KrollDict options) {<NEW_LINE>if (view != null) {<NEW_LINE>synchronized (pendingAnimationLock) {<NEW_LINE>if (pendingAnimation != null) {<NEW_LINE>handlePendingAnimation(false);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (TiConvert.toBoolean(options, TiC.PROPERTY_ANIMATED, false)) {<NEW_LINE>View nativ... | height / 2, radius, 0); |
500,728 | private void calculateContentRect(int outerWidth, int outerHeight, Rectangle2D rect) {<NEW_LINE>int paddingLeft = 0;<NEW_LINE>int paddingRight = 0;<NEW_LINE>int paddingBottom = 0;<NEW_LINE>int paddingTop = 0;<NEW_LINE>if (stroke != null) {<NEW_LINE>if (stroke[TOP] != null) {<NEW_LINE>paddingTop += Math.ceil(stroke[TOP]... | () + boxShadow.spreadPx(); |
445,962 | public JRDataSource createDatasource() throws JRException {<NEW_LINE>try {<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>Workbook workbook = (Workbook) getParameterValue(JRXlsxQueryExecuterFactory.XLSX_WORKBOOK);<NEW_LINE>if (workbook == null) {<NEW_LINE>workbook = (Workbook) getParameterValue(AbstractXlsQueryExec... | xlsxSource = getStringParameterOrProperty(JRXlsxQueryExecuterFactory.XLSX_SOURCE); |
754,091 | private void saveBPartnerLocation(@NonNull final BPartnerLocationSaveRequest request) {<NEW_LINE>final BPartnerLocation partnerLocation = request.getLocation();<NEW_LINE>final BPartnerLocationId partnerLocationId = partnerLocation.getId();<NEW_LINE>final OrgId orgId = request.getOrgId();<NEW_LINE>final boolean validate... | getExistingLocationId().getRepoId()); |
1,467,074 | public static void main(String[] argv) {<NEW_LINE>if (argv.length == 0) {<NEW_LINE>System.out.println("Usage : java JavaSignatureLexer [ --encoding <name> ] <inputfile(s)>");<NEW_LINE>} else {<NEW_LINE>int firstFilePos = 0;<NEW_LINE>String encodingName = "UTF-8";<NEW_LINE>if (argv[0].equals("--encoding")) {<NEW_LINE>fi... | io.InputStreamReader(stream, encodingName); |
1,209,086 | private void listWithFromActivityTokenBackward(String activityToken, List<String> results) throws Exception {<NEW_LINE>List<String> from = SetUniqueList.setUniqueList(new ArrayList<String>());<NEW_LINE>List<String> ids = this.listWithArrivedActivityToken(activityToken);<NEW_LINE>if (!ids.isEmpty()) {<NEW_LINE>for (Work... | add(o.getId()); |
1,403,010 | public int copyLinesFrom(MInvoiceBatch invoiceBatchFrom) {<NEW_LINE>if (isProcessed())<NEW_LINE>return 0;<NEW_LINE>List<MInvoiceBatchLine> fromInvoiceBatchLines = Arrays.asList(invoiceBatchFrom.getLines(true));<NEW_LINE>AtomicInteger count = new AtomicInteger();<NEW_LINE>fromInvoiceBatchLines.stream().forEach(invoiceBa... | ), 0, get_TrxName()); |
5,843 | private void handle(final APIReconnectVirtualRouterMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return syncThreadName;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(final SyncTaskChain chain) {<NEW_LINE>fin... | APIReconnectVirtualRouterEvent(msg.getId()); |
361,020 | void addPlugins(List<String> classNames) throws PluginException {<NEW_LINE>PluginException pe = null;<NEW_LINE>List<Plugin> list = new ArrayList<>(classNames.size());<NEW_LINE>List<String> badList = new ArrayList<>();<NEW_LINE>for (String className : classNames) {<NEW_LINE>try {<NEW_LINE>Class<? extends Plugin> pluginC... | pe = e.getPluginException(pe); |
220,277 | public HttpResponse testGroupParametersForHttpResponse(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Map<String, Object> params) throws IOException {<NEW_LINE>// verify the required parameter 'requiredStringGroup' is set<NEW_LINE>if (requiredStringGroup == null) {<NEW_LINE>throw ne... | Object value = entry.getValue(); |
1,255,414 | public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException {<NEW_LINE>final AuthState authState = (AuthState) context.getAttribute(ClientContext.TARGET_AUTH_STATE);<NEW_LINE>final CredentialsProvider credsProvider = (CredentialsProvider) context.getAttribute(ClientContex... | context.getAttribute(ExecutionContext.HTTP_TARGET_HOST); |
250,482 | public boolean needRecycle(String workerTag) {<NEW_LINE>if (s_logger.isInfoEnabled())<NEW_LINE>s_logger.info("Check to see if a worker VM with tag " + workerTag + " needs to be recycled");<NEW_LINE>if (workerTag == null || workerTag.isEmpty()) {<NEW_LINE>s_logger.error("Invalid worker VM tag " + workerTag);<NEW_LINE>re... | .value()) * SECONDS_PER_MINUTE); |
1,776,236 | private void process(JaxbXmlPart part) throws Docx4JException {<NEW_LINE>log.info("/n Processing " + part.getPartName().getName());<NEW_LINE>org.docx4j.openpackaging.packages.OpcPackage pkg = part.getPackage();<NEW_LINE>// Binding is a concept which applies more broadly<NEW_LINE>// than just Word documents.<NEW_LINE>or... | .docx4j.jaxb.JaxbValidationEventHandler(); |
438,656 | public Object compute(Object[] args, ExecutionContext ec) {<NEW_LINE>for (Object arg : args) {<NEW_LINE>if (FunctionUtils.isNull(arg)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Long hour = DataTypes.LongType.convertFrom(args[0]);<NEW_LINE>Long minute = DataTypes.LongType.convertFrom(args[1]);<NEW_LINE>Doub... | .convertFrom(args[2]); |
1,527,558 | public boolean addVelocimacro(String name, Node macroBody, String[] argArray, String sourceTemplate) {<NEW_LINE>// Called by RuntimeInstance.addVelocimacro<NEW_LINE>if (name == null || macroBody == null || argArray == null || sourceTemplate == null) {<NEW_LINE>String msg = "VM '" + name + "' addition rejected : ";<NEW_... | Logger.error(this, msg); |
1,447,766 | /* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.j2ee.persistence.wizard.fromdb.FacadeGenerator#generate(org.netbeans.api.project.Project, java.util.Map, org.openide.filesystems.FileObject, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>publ... | targetFolder, entitySimpleName + REST_FACADE_SUFFIX, null); |
134,956 | public MutableDateTime parseMutableDateTime(String text) {<NEW_LINE>InternalParser parser = requireParser();<NEW_LINE>Chronology chrono = selectChronology(null);<NEW_LINE>DateTimeParserBucket bucket = new DateTimeParserBucket(0, chrono, iLocale, iPivotYear, iDefaultYear);<NEW_LINE>int newPos = parser.parseInto(bucket, ... | parsedZone = DateTimeZone.forOffsetMillis(parsedOffset); |
1,665,797 | public void startMoving(String[] compIds, Rectangle[] bounds, Point hotspot) {<NEW_LINE>if (logTestCode()) {<NEW_LINE>// NOI18N<NEW_LINE>testCode.add("// > START MOVING");<NEW_LINE>}<NEW_LINE>LayoutComponent[] comps = new LayoutComponent[compIds.length];<NEW_LINE>for (int i = 0; i < compIds.length; i++) {<NEW_LINE>comp... | writeRectangleArray(testCode, "bounds", bounds); |
514,611 | public MTable deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {<NEW_LINE>final ObjectCodec codec = jsonParser.getCodec();<NEW_LINE>final JsonNode node = codec.readTree(jsonParser);<NEW_LINE>final JsonNode schemaNode = node.get(M_TABLE_SCHEMA_... | [j]).elements(); |
907,530 | public static ServiceAccountCredentialsNodesResponse fromXContent(XContentParser parser) throws IOException {<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.currentToken(), parser);<NEW_LINE>NodesResponseHeader header = null;<NEW_LINE>List<ServiceTokenInfo> fileTokenInfos = List.of();<NEW_LINE>X... | NodesResponseHeader.fromXContent(parser, null); |
1,340,620 | private void dropDatabase() throws SQLException {<NEW_LINE>String name = mongoDB.getName();<NEW_LINE>mongoDB.getCollection(OAUTHCLIENT).drop();<NEW_LINE>mongoDB.getCollection(OAUTHCONSENT).drop();<NEW_LINE>mongoDB.getCollection(OAUTHTOKEN).drop();<NEW_LINE>// just in case, clean up generic tables<NEW_LINE>if (mongoDB.c... | OAUTHCLIENT_BASE + "defaultUID").drop(); |
1,168,798 | static void saveCreateCaseOutput(Case caseForJob, String outputDirPath, String baseCaseName) {<NEW_LINE>JsonFactory jsonGeneratorFactory = new JsonFactory();<NEW_LINE>String reportOutputPath = outputDirPath + File.separator + "createCase_" + TimeStampUtils.createTimeStamp() + ".json";<NEW_LINE>java.io.File reportFile =... | reportFile.toString() + " for 'Create Case' command"); |
123,009 | public void transfer(final Session<?> source, final Session<?> destination, final Path file, final Local local, final TransferOptions options, final TransferStatus overall, final TransferStatus segment, final ConnectionCallback connectionCallback, final ProgressListener listener, final StreamListener streamListener) th... | source.getFeature(Upload.class); |
1,299,178 | public Projector visitSysUpdateProjection(SysUpdateProjection projection, Context context) {<NEW_LINE>Map<Reference, Symbol> assignments = projection.assignments();<NEW_LINE>assert !assignments.isEmpty() : "at least one assignment is required";<NEW_LINE>List<Input<?>> valueInputs = new ArrayList<>(assignments.size());<... | ().expressions())); |
1,711,502 | public Map<String, Comparative> toColumnCondition(List<String> columns) {<NEW_LINE>final Map<String, Comparative> result = new HashMap<>();<NEW_LINE>if (null == label || GeneralUtil.isEmpty(predicates) || columns == null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>Preconditions.checkArgument(label instanceof TableSc... | composeConjunction(builder, sorted, true); |
518,178 | private void doAction(final MyAction action) {<NEW_LINE>LOG.debug("doAction: START " + action.name());<NEW_LINE>final MyExitAction[] exitActions;<NEW_LINE>List<Runnable> toBeCalled = null;<NEW_LINE>synchronized (myLock) {<NEW_LINE>final MyState oldState = myState;<NEW_LINE>myState = myState.transition(action);<NEW_LINE... | = new ArrayList<>(myWaitingFinishListeners); |
482,524 | public void run() {<NEW_LINE>if (!hasValidSelection()) {<NEW_LINE>setEnabled(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IFolder parent = (IFolder<MASK><NEW_LINE>CompoundCommand compoundCommand = new NonNotifyingCompoundCommand() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getLabel() {<NEW_LINE>return getCom... | ) getSelection().getFirstElement(); |
1,114,915 | protected void readNodeChildren(org.w3c.dom.Node node, java.util.Map namespacePrefixes) {<NEW_LINE>org.w3c.dom.NodeList children = node.getChildNodes();<NEW_LINE>for (int i = 0, size = children.getLength(); i < size; ++i) {<NEW_LINE>org.w3c.dom.Node childNode = children.item(i);<NEW_LINE>if (!(childNode instanceof org.... | info("Found extra unrecognized childNode '" + childNodeName + "'"); |
869,571 | public static ClientMessage encodeRequest(java.lang.String name, com.hazelcast.internal.serialization.Data key, boolean includeValue, int listenerFlags, boolean localOnly) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOper... | initialFrame.content, TYPE_FIELD_OFFSET, REQUEST_MESSAGE_TYPE); |
1,728,965 | public void installFeature(Collection<String> featureIds, File fromDir, String toExtension, boolean acceptLicense, boolean offlineOnly) throws InstallException {<NEW_LINE>// fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));<NEW_LINE>this.installAssets = ... | "ALREADY_INSTALLED", featureIds.toString()); |
1,307,117 | // Convert the list to XML to pass back to the view.<NEW_LINE>private Document toXml(List<Post> itemsList) {<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder();<NEW_LINE>Document doc = builder.newDocument();<NEW_... | desc = doc.createElement("Content"); |
958,064 | public HazelcastInstance hazelcastInstance(JHipsterProperties jHipsterProperties) {<NEW_LINE>log.debug("Configuring Hazelcast");<NEW_LINE>Config config = new Config();<NEW_LINE>config.setInstanceName("gateway");<NEW_LINE>// The serviceId is by default the application's name, see Spring Boot's eureka.instance.appname pr... | System.setProperty("hazelcast.local.localAddress", "127.0.0.1"); |
1,016,732 | public String order(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer C_Order_ID = (Integer) value;<NEW_LINE>if (// assuming it is resetting value<NEW_LINE>isCalloutActive() || C_Order_ID == null || C_Order_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>mTab.setValue("C_In... | "C_Currency_ID", new Integer(C_Currency_ID)); |
1,429,983 | final StartMonitoringMemberResult executeStartMonitoringMember(StartMonitoringMemberRequest startMonitoringMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startMonitoringMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
660,329 | protected void printPoint(UnifiedImageBuilder<?> imageBdr, MapNode node, DefaultEntityViewInfo pInfo, UColor nameColor) {<NEW_LINE>int x = transformer.x(node.getLon());<NEW_LINE>int y = transformer.y(node.getLat());<NEW_LINE>int width = 0;<NEW_LINE>if (pInfo.icon != null) {<NEW_LINE>width = Math.round(pInfo.icon.size *... | imageBdr, x, y, displayFactor); |
1,745,024 | public PlanBean createPlan(String organizationId, NewPlanBean bean) throws OrganizationNotFoundException, PlanAlreadyExistsException, NotAuthorizedException, InvalidNameException {<NEW_LINE>securityContext.checkPermissions(PermissionType.planEdit, organizationId);<NEW_LINE>FieldValidator.validateName(bean.getName());<N... | .planCreated(newPlan, securityContext)); |
932,436 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(<MASK><NEW_LINE>// Skip the argument number check because we do not access the arguments ... | environment, instruction, instructions, "cdq"); |
974,550 | public static DataflowWorkerHarnessOptions createFromSystemProperties() throws IOException {<NEW_LINE>ObjectMapper objectMapper = new ObjectMapper();<NEW_LINE>DataflowWorkerHarnessOptions options;<NEW_LINE>if (System.getProperties().containsKey("sdk_pipeline_options")) {<NEW_LINE>// TODO: remove this method of getting ... | (System.getProperty("worker_pool")); |
1,325,806 | private <T> T doSaveVersioned(AdaptibleEntity<T> source, String collectionName) {<NEW_LINE>if (source.isNew()) {<NEW_LINE>return (T) doInsert(collectionName, source.getBean(), this.mongoConverter);<NEW_LINE>}<NEW_LINE>// Create query for entity with the id and old version<NEW_LINE><MASK><NEW_LINE>// Bump version number... | Query query = source.getQueryForVersion(); |
892,298 | public static Bitmap hookDecodeByteArray(byte[] array, int offset, int length, @Nullable BitmapFactory.Options opts) {<NEW_LINE>StaticWebpNativeLoader.ensure();<NEW_LINE>Bitmap bitmap;<NEW_LINE>if (WebpSupportStatus.sIsWebpSupportRequired && isWebpHeader(array, offset, length)) {<NEW_LINE>bitmap = nativeDecodeByteArray... | array, offset, length, opts); |
840,578 | public ListComponentBuildVersionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListComponentBuildVersionsResult listComponentBuildVersionsResult = new ListComponentBuildVersionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | int originalDepth = context.getCurrentDepth(); |
1,358,372 | public byte[] compress(byte[] data) {<NEW_LINE>byte[] input = data;<NEW_LINE>byte[] output = new byte[MAX_COMPRESSION_TEXT_LENGTH];<NEW_LINE>Deflater compressor = new Deflater();<NEW_LINE>compressor.setInput(<MASK><NEW_LINE>int compressedDataLength = compressor.deflate(output, 0, MAX_COMPRESSION_TEXT_LENGTH, compressor... | input, 0, input.length); |
47,451 | public Request<PutRecordRequest> marshall(PutRecordRequest putRecordRequest) {<NEW_LINE>if (putRecordRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<PutRecordRequest> request = new DefaultRequest<PutRecordRequest>(putRecordRequest, "Am... | request.addHeader("Content-Type", "application/x-amz-json-1.1"); |
1,421,587 | private Slime osVersions() {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor root = slime.setObject();<NEW_LINE>Set<OsVersionTarget> targets = controller.osVersionTargets();<NEW_LINE>Cursor versions = root.setArray("versions");<NEW_LINE>controller.osVersionStatus().versions().forEach((osVersion, nodeVersions) -> {<... | cloud().value()); |
1,478,493 | public Object calculate(Context ctx) {<NEW_LINE>IParam param = this.param;<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("cor" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression()... | (Variant.isTrue(obj)); |
773,918 | public void connect(final OnTransportConnected callback) {<NEW_LINE>new Thread(() -> {<NEW_LINE>final int timeout = candidate.getType() == JingleCandidate.TYPE_DIRECT ? SOCKET_TIMEOUT_DIRECT : SOCKET_TIMEOUT_PROXY;<NEW_LINE>try {<NEW_LINE>final boolean useTor = this.account.isOnion() || connection.getConnectionManager(... | createSocksConnection(socket, destination, 0); |
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... | partitionId, hostAccountStorageStatsMapEntry.getValue()); |
237,961 | public static void deleteObjectsInPath(OSS client, OssInputDataConfig config, String bucket, String prefix, Predicate<OSSObjectSummary> filter) throws Exception {<NEW_LINE>final List<String> keysToDelete = new ArrayList<>(config.getMaxListingLength());<NEW_LINE>final OssObjectSummaryIterator iterator = new OssObjectSum... | ), config.getMaxListingLength()); |
474,373 | // object.<NEW_LINE>private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>in.defaultReadObject();<NEW_LINE>byte[] ec = new byte[Constants.EYE_CATCHER_LENGTH];<NEW_LINE>// d164415 start<NEW_LINE>int bytesRead = 0;<NEW_LINE>for (int offset = 0; offset < Constants.EYE_... | IOException("Invalid eye catcher '" + eyeCatcherString + "' in FinderResultClientEnumeration input stream"); |
1,772,478 | public Change createChange(IProgressMonitor monitor) throws CoreException, OperationCanceledException {<NEW_LINE>Assert.isNotNull(monitor);<NEW_LINE>try {<NEW_LINE>Change change = fChange;<NEW_LINE>if (change != null) {<NEW_LINE>String project = null;<NEW_LINE>IJavaProject javaProject = fTypeParameter.getJavaProject();... | new Change[] { change }); |
893,525 | private void buildNewBinaryPredicate(Expr slotToLiteral, List<Expr> slotEqSlotExpr, Set<Pair<Expr, Expr>> slotToLiteralDeDuplication, List<Pair<Expr, Boolean>> newExprWithState, Analyzer analyzer, ExprRewriter.ClauseType clauseType) {<NEW_LINE>SlotRef checkSlot = slotToLiteral.getChild(0).unwrapSlotRef();<NEW_LINE>if (... | , clauseType), analyzer, clauseType); |
338,349 | private static String decrypt(byte[] key, String cipherText) throws CryptoException {<NEW_LINE>try {<NEW_LINE>PaddedBufferedBlockCipher cipher = new PaddedBufferedBlockCipher(new <MASK><NEW_LINE>cipher.init(false, new KeyParameter(key));<NEW_LINE>byte[] cipherTextBytes = DECODER.decode(cipherText);<NEW_LINE>byte[] plai... | CBCBlockCipher(new DESEngine())); |
1,233,582 | private CompilationResult.ContractMetadata compileContract() throws IOException {<NEW_LINE>logger.info("Compiling contract...");<NEW_LINE>SolidityCompiler.Result result = compiler.compileSrc(contract.getBytes(), true, true, SolidityCompiler.Options.ABI, SolidityCompiler.Options.BIN);<NEW_LINE>if (result.isFailed()) {<N... | .iterator().next(); |
68,183 | public void visitOnEntry(ImmutableTransition<?, ?, ?, ?> visitable) {<NEW_LINE>ImmutableState<?, ?, ?, ?> sourceState = visitable.getSourceState();<NEW_LINE>ImmutableState<?, ?, ?, ?> targetState = visitable.getTargetState();<NEW_LINE>String sourceStateId = getName(sourceState.getStateId());<NEW_LINE>String targetState... | sourceIsCluster) ? "cluster_" + sourceStateId : null; |
1,032,777 | private double computeImpactB(IntVar v, int a, int b, double before) {<NEW_LINE>model.getEnvironment().worldPush();<NEW_LINE>double after;<NEW_LINE>try {<NEW_LINE>v.updateBounds(a, b, this);<NEW_LINE>model.getSolver().getEngine().propagate();<NEW_LINE>after = searchSpaceSize(vars);<NEW_LINE>return 1.0d - (after / befor... | .getEngine().flush(); |
899,162 | 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... | RFXComException("Can't convert " + valueSelector + " to NumberItem"); |
230,045 | private Mono<Response<ClusterInner>> updateWithResponseAsync(String resourceGroupName, String clusterName, ClusterPatch cluster, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nul... | error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); |
64,168 | public int fill(ByteBuffer sink) throws IOException {<NEW_LINE>Entry entry;<NEW_LINE>try (AutoLock l = lock.lock()) {<NEW_LINE>entry = dataQueue.poll();<NEW_LINE>}<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("filled {} on {}", entry, this);<NEW_LINE>if (entry == null)<NEW_LINE>return 0;<NEW_LINE>if (entry.isE... | source.position() + length); |
967,261 | private void verifyBrace(final DetailAST brace, final DetailAST startToken) {<NEW_LINE>final String braceLine = getLine(<MASK><NEW_LINE>// Check for being told to ignore, or have '{}' which is a special case<NEW_LINE>if (braceLine.length() <= brace.getColumnNo() + 1 || braceLine.charAt(brace.getColumnNo() + 1) != '}') ... | brace.getLineNo() - 1); |
595,381 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.openhab.binding.digitalSTROM2.internal.client.job.SensorJob#execute(org.openhab.binding.digitalSTROM2.<NEW_LINE>* internal.client.DigitalSTROMAPI)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void execute(DigitalSTROMAPI digitalSTROM, String token) {<NEW_LINE... | this.device.setSlatPosition(value); |
537,895 | private void removeValue(int inputId, Object fileSet, Value value) {<NEW_LINE>if (fileSet == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (fileSet instanceof ChangeBufferingList) {<NEW_LINE><MASK><NEW_LINE>changesList.remove(inputId);<NEW_LINE>if (!changesList.isEmpty())<NEW_LINE>return;<NEW_LINE>} else if (fileSet ... | final ChangeBufferingList changesList = (ChangeBufferingList) fileSet; |
333,929 | /*<NEW_LINE>* Ideally, this would not use HTML to make the table, but the other methods tried were far uglier / not useful.<NEW_LINE>*/<NEW_LINE>private JScrollPane createSyscallsHelpPane() {<NEW_LINE>ArrayList<AbstractSyscall> list = SyscallLoader.getSyscallList();<NEW_LINE>String[] columnNames = { "Name", "Number", "... | (Globals.helpPath + "SyscallHelpConclusion.html")); |
861,411 | public void start() throws Exception {<NEW_LINE>HttpServer server = vertx.createHttpServer(new HttpServerOptions().setUseAlpn(true).setSsl(true).setPemKeyCertOptions(new PemKeyCertOptions().setKeyPath("server-key.pem").setCertPath("server-cert.pem")));<NEW_LINE>server.requestHandler(req -> {<NEW_LINE>String path = req.... | System.out.println("Server started"); |
1,701,131 | private void drawCross(Graphics2D g2d) {<NEW_LINE>int x, y;<NEW_LINE>final String cross = "+";<NEW_LINE>final int w = g2d.getFontMetrics().stringWidth(cross);<NEW_LINE>final int h = g2d.getFontMetrics().getMaxAscent();<NEW_LINE>if (_offset.x > _imgW / 2) {<NEW_LINE>x = getWidth() - w;<NEW_LINE>} else if (_offset.x < -_... | () + h / 2 - 3; |
489,904 | protected JComponent createCenterPanel() {<NEW_LINE>final JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>// Should be called from here to initialize fields !!!<NEW_LINE>final JComponent optionsPanel = createOptionsPanel();<NEW_LINE>final JPanel subPanel = new JPanel(new BorderLayout());<NEW_LINE>final List<Pai... | setBorder(IdeBorderFactory.createEmptyBorder()); |
129,434 | public F5LoadBalancerResponse createF5LoadBalancerResponse(ExternalLoadBalancerDeviceVO lbDeviceVO) {<NEW_LINE>F5LoadBalancerResponse response = new F5LoadBalancerResponse();<NEW_LINE>Host lbHost = _hostDao.<MASK><NEW_LINE>Map<String, String> lbDetails = _detailsDao.findDetails(lbDeviceVO.getHostId());<NEW_LINE>respons... | findById(lbDeviceVO.getHostId()); |
996,420 | final DeleteResourcePolicyResult executeDeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,380,015 | Set<SubscriptionName> decode(byte[] data) {<NEW_LINE>MessageHeaderDecoder header = new MessageHeaderDecoder();<NEW_LINE>AssignmentsDecoder body = new AssignmentsDecoder();<NEW_LINE>UnsafeBuffer buffer = new UnsafeBuffer(data);<NEW_LINE>header.wrap(buffer, 0);<NEW_LINE>if (header.schemaId() != AssignmentsDecoder.SCHEMA_... | ), header.templateId()); |
874,821 | public String longestPalindrome(String s) {<NEW_LINE><MASK><NEW_LINE>boolean[][] dp = new boolean[n][n];<NEW_LINE>int mx = 1, start = 0;<NEW_LINE>for (int j = 0; j < n; ++j) {<NEW_LINE>for (int i = 0; i <= j; ++i) {<NEW_LINE>if (j - i < 2) {<NEW_LINE>dp[i][j] = s.charAt(i) == s.charAt(j);<NEW_LINE>} else {<NEW_LINE>dp[... | int n = s.length(); |
1,132,341 | public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>AlterTableGroupBackfill backfill = (AlterTableGroupBackfill) logicalPlan;<NEW_LINE>String schemaName = backfill.getSchemaName();<NEW_LINE>String logicalTable = backfill.getLogicalTableName();<NEW_LINE>BackfillExecutor backfillExecut... | >(inputs.size()); |
623,016 | public static ScreenInfo computeScreenInfo(DisplayInfo displayInfo, Rect crop, int maxSize, int lockedVideoOrientation) {<NEW_LINE>int rotation = displayInfo.getRotation();<NEW_LINE>if (lockedVideoOrientation == Device.LOCK_VIDEO_ORIENTATION_INITIAL) {<NEW_LINE>// The user requested to lock the video orientation to the... | ), deviceSize.getHeight()); |
237,271 | private void appendReleases(StringBuilder buffer, List<StyleRange> styles) {<NEW_LINE>Version currentVersion = FrameworkUtil.getBundle(this.getClass()).getVersion();<NEW_LINE>for (Release release : newVersion.getReleases()) {<NEW_LINE>if (release.getVersion().compareTo(currentVersion) <= 0)<NEW_LINE>continue;<NEW_LINE>... | appendMessages(buffer, styles, release); |
461,235 | public ByteBuffer transcode(List<ByteBuffer> data, ByteBuffer _out) {<NEW_LINE>for (ByteBuffer nalUnit : data) {<NEW_LINE><MASK><NEW_LINE>NALUnit marker = NALUnit.read(nalUnit);<NEW_LINE>_out.putInt(1);<NEW_LINE>marker.write(_out);<NEW_LINE>if (marker.type == NALUnitType.NON_IDR_SLICE || marker.type == NALUnitType.IDR_... | NIOUtils.skip(nalUnit, 4); |
854,820 | private void print(IntVar[][] pos) {<NEW_LINE>System.out.printf("%-13s%-13s%-13s%-13s%-13s%-13s%n", "", sHouse[0], sHouse[1], sHouse[2], sHouse[3], sHouse[4]);<NEW_LINE>for (int i = 0; i < SIZE; i++) {<NEW_LINE>String[] sortedLine = new String[SIZE];<NEW_LINE>for (int j = 0; j < SIZE; j++) {<NEW_LINE>sortedLine[pos[i][... | ("%-13s", sAttrTitle[i]); |
111,315 | protected void executeServiceCode(ServiceProxy proxy) {<NEW_LINE>final String EXTRA_NAME = "interval";<NEW_LINE>IntentProxy intentProxy = proxy.getIntent();<NEW_LINE>if (intentProxy == null || !intentProxy.hasExtra(EXTRA_NAME)) {<NEW_LINE>Log.w(<MASK><NEW_LINE>super.executeServiceCode(proxy);<NEW_LINE>return;<NEW_LINE>... | TAG, "The intent is missing the extra value '" + EXTRA_NAME + "', therefore the code will be executed only once."); |
600,427 | private static Vector apply(CompLongFloatVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>LongFloatVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getSt... | (int) (i / subDim); |
1,271,233 | public com.amazonaws.services.machinelearning.model.InvalidInputException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.machinelearning.model.InvalidInputException invalidInputException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.g... | machinelearning.model.InvalidInputException(null); |
1,092,141 | public final ConstraintContext constraint() throws RecognitionException {<NEW_LINE>ConstraintContext _localctx = new ConstraintContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 20, RULE_constraint);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>// Model aModel, String... | Expression> exps = new ArrayList(); |
1,795,740 | private SelectorContext findSelectorContext(String text) {<NEW_LINE>int index = text.length() - 1;<NEW_LINE>StringBuilder prefix = new StringBuilder();<NEW_LINE>while (index > -1) {<NEW_LINE>char <MASK><NEW_LINE>switch(c) {<NEW_LINE>case ' ':<NEW_LINE>case '(':<NEW_LINE>case ',':<NEW_LINE>return new SelectorContext(pre... | c = text.charAt(index); |
903,514 | public void vmDefaultL3NetworkChanged(VmInstanceInventory vm, String previousL3, String nowL3) {<NEW_LINE>List<String> l3Uuids = new ArrayList<String>();<NEW_LINE>if (previousL3 != null) {<NEW_LINE>l3Uuids.add(previousL3);<NEW_LINE>}<NEW_LINE>if (nowL3 != null) {<NEW_LINE>l3Uuids.add(nowL3);<NEW_LINE>}<NEW_LINE>SimpleQ... | invs = L3NetworkInventory.valueOf(vos); |
66,215 | public static BrowserWrapper create(Composite composite, int style) {<NEW_LINE>try {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>for (BrowserProvider provider : providers) {<NEW_LINE>try {<NEW_LINE>BrowserWrapper browser = provider.create(composite, style, properties);<NEW_LINE>if (browser != null) {<NEW_LINE>return (... | properties = new HashMap<>(); |
1,525,840 | public NetworkModule createNetworkModule(URI brokerUri, MqttConnectOptions options, String clientId) throws MqttException {<NEW_LINE>String host = brokerUri.getHost();<NEW_LINE>// -1 if not defined<NEW_LINE>int port = brokerUri.getPort();<NEW_LINE>if (port == -1) {<NEW_LINE>port = 1883;<NEW_LINE>}<NEW_LINE>String path ... | factory, host, port, clientId); |
1,500,238 | public final <T> Lookup.Result<T> lookup(Lookup.Template<T> template) {<NEW_LINE>beforeLookupResult(template);<NEW_LINE>for (; ; ) {<NEW_LINE>AbstractLookup.ISE toRun = null;<NEW_LINE>AbstractLookup.Storage<?> t = enterStorage();<NEW_LINE>try {<NEW_LINE>Lookup.Result<T> prev = t.findResult(template);<NEW_LINE>if (prev ... | >(r, this, template); |
1,412,177 | final UpdateNetworkAnalyzerConfigurationResult executeUpdateNetworkAnalyzerConfiguration(UpdateNetworkAnalyzerConfigurationRequest updateNetworkAnalyzerConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateNetworkAnalyzerConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,576,934 | public void resourceResourceIdDelete(String resourceId, String cookie, String ifMatch) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'resourceId' is set<NEW_LINE>if (resourceId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'res... | = new ArrayList<Pair>(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.