idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
693,114 | public static FetchLibrariesResponse unmarshall(FetchLibrariesResponse fetchLibrariesResponse, UnmarshallerContext context) {<NEW_LINE>fetchLibrariesResponse.setRequestId(context.stringValue("FetchLibrariesResponse.RequestId"));<NEW_LINE>fetchLibrariesResponse.setCode(context.stringValue("FetchLibrariesResponse.Code"))... | ("FetchLibrariesResponse.Libraries[" + i + "].LibraryId")); |
1,734,007 | public Request<AnalyzeIDRequest> marshall(AnalyzeIDRequest analyzeIDRequest) {<NEW_LINE>if (analyzeIDRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(AnalyzeIDRequest)");<NEW_LINE>}<NEW_LINE>Request<AnalyzeIDRequest> request = new DefaultRequest<AnalyzeIDRequest>(analyzeI... | content = snippet.getBytes(UTF8); |
488,807 | public TFImportStatus merge(@NonNull TFImportStatus other) {<NEW_LINE>List<String> newModelPaths = new ArrayList<>(modelPaths);<NEW_LINE>newModelPaths.addAll(other.modelPaths);<NEW_LINE>List<String> newCantImportModelPaths = new ArrayList<>(cantImportModelPaths);<NEW_LINE>newCantImportModelPaths.addAll(other.cantImport... | newOpCounts, newImportSupportedOpNames, newUnsupportedOpNames, newUnsupportedOpModels); |
1,389,099 | public static CharSequence generateHorIconText(CharSequence text, int leftPadding, Drawable iconLeft, int iconLeftTintAttr, int rightPadding, Drawable iconRight, int iconRightTintAttr, int iconOffsetY, @Nullable View skinFollowView) {<NEW_LINE>if (iconLeft == null && iconRight == null) {<NEW_LINE>return text;<NEW_LINE>... | ), iconLeft.getIntrinsicHeight()); |
925,937 | final CreatePrefetchScheduleResult executeCreatePrefetchSchedule(CreatePrefetchScheduleRequest createPrefetchScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPrefetchScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | invoke(request, responseHandler, executionContext); |
1,268,978 | protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>page.setLocation(getInsets().left, getInsets().top);<NEW_LINE>Point mousePos = component.getMousePosition();<NEW_LINE>if (mousePos != null) {<NEW_LINE>int pageRelativeX = mousePos.x - page.get... | (), getY())); |
144,865 | private void parseResourceStatement(ShapeId id, SourceLocation location) {<NEW_LINE>ws();<NEW_LINE>ResourceShape.Builder builder = ResourceShape.builder().id(id).source(location);<NEW_LINE>modelFile.onShape(builder);<NEW_LINE>ObjectNode shapeNode = IdlNodeParser.parseObjectNode(this, id.toString());<NEW_LINE>LoaderUtil... | shapeNode, DELETE_KEY, builder::delete); |
266,429 | public Payment createCredit(final boolean isApiPayment, @Nullable final UUID attemptId, final Account account, @Nullable final UUID paymentMethodId, @Nullable final UUID paymentId, final BigDecimal amount, final Currency currency, @Nullable final DateTime effectiveDate, @Nullable final String paymentExternalKey, @Nulla... | null, properties, callContext, internalCallContext); |
1,614,987 | // parses the payment schedule<NEW_LINE>private PaymentSchedule parseSwapPaymentSchedule(XmlElement legEl, XmlElement calcEl, FpmlDocument document) {<NEW_LINE>// supported elements:<NEW_LINE>// 'paymentDates/paymentFrequency'<NEW_LINE>// 'paymentDates/payRelativeTo'<NEW_LINE>// 'paymentDates/paymentDaysOffset?'<NEW_LI... | .ofCalendarDays(0, payAdjustment)); |
1,201,409 | protected synchronized void processGcEvent(CompositeData lastGc) throws JMException, IOException {<NEW_LINE>long id = along(lastGc.get("id"));<NEW_LINE>if (lastReportedEvent == id) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>lastReportedEvent = id;<NEW_LINE>long dur = along<MASK><NEW_LINE>long startTs = along(lastGc.get("st... | (lastGc.get("duration")); |
164,260 | public void driverFinished(DriverContext driverContext) {<NEW_LINE>requireNonNull(driverContext, "driverContext is null");<NEW_LINE>if (!drivers.remove(driverContext)) {<NEW_LINE>throw new IllegalArgumentException("Unknown driver " + driverContext);<NEW_LINE>}<NEW_LINE>// always update last execution end time<NEW_LINE>... | ().roundTo(NANOSECONDS)); |
1,739,977 | public void read(ReadContext context, Double maxAge, TimestampsToReturn timestamps, List<ReadValueId> readValueIds) {<NEW_LINE>List<DataValue> results = Lists.newArrayListWithCapacity(readValueIds.size());<NEW_LINE>for (ReadValueId readValueId : readValueIds) {<NEW_LINE>UaServerNode node = nodeManager.get(readValueId.g... | ), node.getNodeId()); |
1,125,015 | private void onJoin(Session session, SessionDetails details) {<NEW_LINE>System.out.println("Joined...");<NEW_LINE>mWasConnected = true;<NEW_LINE>SharedPreferences.Editor editor = mPrefs.edit();<NEW_LINE><MASK><NEW_LINE>editor.putString("xbr_realm", mRealm);<NEW_LINE>editor.apply();<NEW_LINE>session.call("xbr.marketmake... | editor.putString("xbr_uri", mURI); |
1,190,927 | final DeletePipelineResult executeDeletePipeline(DeletePipelineRequest deletePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | endClientExecution(awsRequestMetrics, request, response); |
195,312 | final CreatePrivateDnsNamespaceResult executeCreatePrivateDnsNamespace(CreatePrivateDnsNamespaceRequest createPrivateDnsNamespaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPrivateDnsNamespaceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,640,122 | private static void testCrossPackageOverrides_independentOverrideChains() {<NEW_LINE>// This is the pattern<NEW_LINE>//<NEW_LINE>// package a package b<NEW_LINE>// class M1 { m() {} }<NEW_LINE>// |<NEW_LINE>// V class M2 extends M1 { m() {} }<NEW_LINE>// cl... | callM_b(new M2())); |
72,024 | public static void vertical3(Kernel1D_F32 kernel, GrayF32 src, GrayF32 dst) {<NEW_LINE>final float[] dataSrc = src.data;<NEW_LINE>final float[] dataDst = dst.data;<NEW_LINE>final float k1 = kernel.data[0];<NEW_LINE>final float k2 = kernel.data[1];<NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>final int radius = ke... | (dataSrc[indexSrc]) * k2; |
1,009,798 | public static QueryDeviceBySQLResponse unmarshall(QueryDeviceBySQLResponse queryDeviceBySQLResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceBySQLResponse.setRequestId(_ctx.stringValue("QueryDeviceBySQLResponse.RequestId"));<NEW_LINE>queryDeviceBySQLResponse.setSuccess(_ctx.booleanValue("QueryDeviceBySQLRespons... | (_ctx.stringValue("QueryDeviceBySQLResponse.Code")); |
1,520,522 | public Timesheet createTimesheet(User user, LocalDate fromDate, LocalDate toDate) {<NEW_LINE>Timesheet timesheet = new Timesheet();<NEW_LINE>timesheet.setUser(user);<NEW_LINE>Company company = null;<NEW_LINE>Employee employee = user.getEmployee();<NEW_LINE>if (employee != null && employee.getMainEmploymentContract() !=... | ? null : employee.getTimeLoggingPreferenceSelect(); |
93,084 | public static Collection<AbstractTreeNode> doGetDirectoryChildren(final PsiDirectory psiDirectory, final ViewSettings settings, final boolean withSubDirectories) {<NEW_LINE>final List<AbstractTreeNode> children = new ArrayList<>();<NEW_LINE>final Project project = psiDirectory.getProject();<NEW_LINE>final ProjectFileIn... | PsiDirectory parentDir = psiDirectory.getParentDirectory(); |
765,817 | public void visitInvokeCallMember(InvokeCallMemberNode irInvokeCallMemberNode, Consumer<ExpressionNode> scope) {<NEW_LINE>for (int i = 0; i < irInvokeCallMemberNode.getArgumentNodes().size(); i++) {<NEW_LINE>int j = i;<NEW_LINE>irInvokeCallMemberNode.getArgumentNodes().get(i).visit(this, (e) -> irInvokeCallMemberNode.g... | .set(j, e)); |
694,320 | private void loadArmor(String armorType, List<Material> materialList) {<NEW_LINE>if (needsUpdate) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConfigurationSection armorSection = config.getConfigurationSection(armorType);<NEW_LINE>if (armorSection == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> armorConfigSet = a... | "." + armorName + ".Repair_XpMultiplier", 1); |
293,789 | final CreateOriginEndpointResult executeCreateOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOriginEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,508,165 | public static TakeBreakResponse unmarshall(TakeBreakResponse takeBreakResponse, UnmarshallerContext _ctx) {<NEW_LINE>takeBreakResponse.setRequestId(_ctx.stringValue("TakeBreakResponse.RequestId"));<NEW_LINE>takeBreakResponse.setCode(_ctx.stringValue("TakeBreakResponse.Code"));<NEW_LINE>takeBreakResponse.setHttpStatusCo... | (_ctx.stringValue("TakeBreakResponse.Data.WorkMode")); |
1,130,723 | public Request<ListGroupsForUserRequest> marshall(ListGroupsForUserRequest listGroupsForUserRequest) {<NEW_LINE>if (listGroupsForUserRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListGroupsForUserRequest> request = new DefaultRequest<Li... | request.addParameter("Action", "ListGroupsForUser"); |
306,310 | public static CodegenMethod codegenMethod(ExprNode[] expressionNodes, MultiKeyClassRef multiKeyClassRef, CodegenMethodScope parent, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod eventUnpackMethod = parent.makeChildWithScope(EPTypePremade.OBJECT.getEPType(), CodegenLegoMethodExpression.class, CodegenSymbolProvi... | exprMethod.getBlock(), classScope); |
134,165 | public void run() throws IOException {<NEW_LINE>if (this.isStarted() || this.isComplete()) {<NEW_LINE>throw new IllegalStateException("The process can only be used once.");<NEW_LINE>}<NEW_LINE>final ProcessBuilder builder = new ProcessBuilder(this.cmd);<NEW_LINE>builder.directory(new File(this.workingDir));<NEW_LINE>bu... | info("Spawned process with id " + this.processId); |
1,731,122 | public void loadImage(final int requestId, final Uri uri, final Callback callback) {<NEW_LINE>final boolean[] cacheMissed = new boolean[1];<NEW_LINE>ImageDownloadTarget target = new ImageDownloadTarget(uri.toString()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResourceReady(@NonNull File resource, Transition... | onFail(new GlideLoaderException(errorDrawable)); |
371,798 | final ListClustersResult executeListClusters(ListClustersRequest listClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListClustersRequest> ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
836,883 | protected void doExecute(MultiSearchTemplateRequest request, ActionListener<MultiSearchTemplateResponse> listener) {<NEW_LINE>List<Integer> originalSlots = new ArrayList<>();<NEW_LINE>MultiSearchRequest multiSearchRequest = new MultiSearchRequest();<NEW_LINE>multiSearchRequest.<MASK><NEW_LINE>if (request.maxConcurrentS... | indicesOptions(request.indicesOptions()); |
1,490,426 | private void genWorkerReceiveIns(BIRTerminator.WorkerReceive ins, int localVarOffset) {<NEW_LINE>this.mv.visitVarInsn(ALOAD, localVarOffset);<NEW_LINE>if (!ins.isSameStrand) {<NEW_LINE>this.mv.visitFieldInsn(GETFIELD, STRAND_CLASS, "parent", GET_STRAND);<NEW_LINE>}<NEW_LINE>this.mv.visitFieldInsn(GETFIELD, STRAND_CLASS... | ins.lhsOp.variableDcl.type); |
1,378,428 | private static String findInstallArea() {<NEW_LINE>// NOI18N<NEW_LINE>String ia = System.getProperty("netbeans.home");<NEW_LINE>LOG.log(Level.FINE, "Home is {0}", ia);<NEW_LINE>// NOI18N<NEW_LINE>String <MASK><NEW_LINE>if (rest != null) {<NEW_LINE>for (String c : rest.split(File.pathSeparator)) {<NEW_LINE>File cf = new... | rest = System.getProperty("netbeans.dirs"); |
1,153,456 | public static Object extractDorisLiteral(Expr expr) {<NEW_LINE>if (!expr.isLiteral()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (expr instanceof BoolLiteral) {<NEW_LINE>BoolLiteral boolLiteral = (BoolLiteral) expr;<NEW_LINE>return boolLiteral.getValue();<NEW_LINE>} else if (expr instanceof DateLiteral) {<NEW_LINE>... | SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss"); |
1,619,474 | public Scriptable loadModule(Context cx, String moduleName, Scriptable loadingScope) throws IOException {<NEW_LINE>Repository local = engine.getParentRepository(loadingScope);<NEW_LINE>ReloadableScript script = engine.getScript(moduleName, local);<NEW_LINE>// check if we already came across the module in the current co... | modules.get(script.resource); |
1,661,382 | public void testSingletonAnnMethod() throws Exception {<NEW_LINE>long currentThreadId = Thread.currentThread().getId();<NEW_LINE>BasicMixedLocal bean = lookupBasicSingletonMixedBean();<NEW_LINE>assertNotNull("Bean created successfully", bean);<NEW_LINE>// initialize latch<NEW_LINE>BasicSingletonMixedBean<MASK><NEW_LINE... | .svBasicLatch = new CountDownLatch(1); |
683,353 | private Blob cipheredBlob(String container, Blob blob, InputStream payload, long contentLength, boolean addEncryptedMetadata) {<NEW_LINE>// make a copy of the blob with the new payload stream<NEW_LINE>BlobMetadata blobMeta = blob.getMetadata();<NEW_LINE>ContentMetadata contentMeta = blob.getMetadata().getContentMetadat... | setUri(blobMeta.getUri()); |
1,026,165 | private void rollingUpdate(final BigInteger oldHash) {<NEW_LINE>final var newNode = getCurrentNode();<NEW_LINE>final <MASK><NEW_LINE>BigInteger resultNew;<NEW_LINE>// go the path to the root<NEW_LINE>do {<NEW_LINE>final Node node = pageTrx.prepareRecordForModification(getCurrentNode().getNodeKey(), IndexType.DOCUMENT, ... | BigInteger hash = newNode.computeHash(); |
1,370,298 | final ListTemplateVersionsResult executeListTemplateVersions(ListTemplateVersionsRequest listTemplateVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTemplateVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTemplateVersions"); |
77,603 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.MessageEventListener#messageEventOccurred(int, com.ibm.ws.sib.processor.impl.interfaces.SIMPMessage,<NEW_LINE>* com.ibm.ws.sib.msgstore.Transaction)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void messageEventOccurred(in... | SibTr.exit(tc, "messageEventOccurred"); |
74,566 | private void replaceFunctionnalType(DeclarationContainer container, TypedDeclaration currentTypedElement, TypeReference currentType, ParameterDeclaration[] parameters, TypeReference returnType) {<NEW_LINE>if (parameters.length <= 3) {<NEW_LINE>TypeReference functionType = new TypeReference(null, "unamed", null);<NEW_LI... | parameters[i].getType(); |
699,500 | private static long findFirstHoleByDichotomy(Long[] allocatedIps) {<NEW_LINE>if (isConsecutiveRange(allocatedIps)) {<NEW_LINE>String[] ips = longToIpv4String(allocatedIps);<NEW_LINE>List<String> dips = new ArrayList<String>(allocatedIps.length);<NEW_LINE>Collections.addAll(dips, ips);<NEW_LINE>String err = "You can not... | int mIndex = allocatedIps.length / 2; |
1,335,036 | public static CloneModelFromCommitResponse unmarshall(CloneModelFromCommitResponse cloneModelFromCommitResponse, UnmarshallerContext _ctx) {<NEW_LINE>cloneModelFromCommitResponse.setRequestId(_ctx.stringValue("CloneModelFromCommitResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.string... | (_ctx.stringValue("CloneModelFromCommitResponse.Data.SchemaVersion")); |
1,090 | public void run(FlowTrigger trigger, Map data) {<NEW_LINE>new SQLBatch() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void scripts() {<NEW_LINE>// Do a swap to keep volume uuid ...<NEW_LINE>sql(VolumeVO.class).eq(VolumeVO_.uuid, transientVolume.getUuid()).set(VolumeVO_.installPath, volume.getInstallPath()).set(Vol... | getActualSize()).update(); |
462,076 | public static String formatCallStack(List<StarlarkThread.CallStackEntry> callstack, String message, SourceReader src) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>// n > 0<NEW_LINE>int n = callstack.size();<NEW_LINE>String prefix = "Error: ";<NEW_LINE>// If the topmost frame is a built-in, don't show it... | = "Error in " + leaf.name + ": "; |
1,290,527 | private void recalculateScoresFromVector(Vulnerability vuln) {<NEW_LINE>// Recalculate V2 score based on vector passed to resource and normalize vector<NEW_LINE>final Cvss v2 = Cvss.fromVector(vuln.getCvssV2Vector());<NEW_LINE>if (v2 != null) {<NEW_LINE>final Score score = v2.calculateScore();<NEW_LINE>vuln.setCvssV2Ba... | (score.getExploitabilitySubScore())); |
249,455 | public NpmPackageMetadataJson loadPackageMetadata(String thePackageId) {<NEW_LINE>NpmPackageMetadataJson retVal = new NpmPackageMetadataJson();<NEW_LINE>Optional<NpmPackageEntity> pkg = myPackageDao.findByPackageId(thePackageId);<NEW_LINE>if (!pkg.isPresent()) {<NEW_LINE>throw new ResourceNotFoundException(Msg.code<MAS... | (1306) + "Unknown package ID: " + thePackageId); |
142,062 | public static // ////////////////////////////////////////////////////////////////////<NEW_LINE>String // ////////////////////////////////////////////////////////////////////<NEW_LINE>encode(// ////////////////////////////////////////////////////////////////////<NEW_LINE>final byte[] octetString) {<NEW_LINE>int bits24;<... | (bits24 & 0x00000FC0) >> 6; |
1,428,301 | public void fillCompletionVariants(@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) {<NEW_LINE>PsiElement position = parameters.getPosition();<NEW_LINE>PsiFile file = parameters.getOriginalFile();<NEW_LINE>ASTNode node = position.getNode();<NEW_LINE>if (file instanceof GoFile && position.g... | isTestFile = GoTestFinder.isTestFile(file); |
1,063,724 | private void processRunAs(Servlet servlet) {<NEW_LINE>String servletName = servlet.getServletName();<NEW_LINE>Map<String, ConfigItem<String>> runAsMap = this.configurator.getConfigItemMap(RUN_AS_KEY);<NEW_LINE>ConfigItem<String> <MASK><NEW_LINE>RunAs runAs = servlet.getRunAs();<NEW_LINE>String roleName = (runAs != null... | existingRunAs = runAsMap.get(servletName); |
992,761 | private void invokeSimpleImplProviderService(String msg, String warName, String serviceName, PrintWriter writer) {<NEW_LINE>StringBuilder sBuilder = new StringBuilder("http://").append(hostname).append(":").append(port).append("/").append(warName).append("/").append(serviceName).append("?wsdl");<NEW_LINE>// System.out.... | msgRtn.writeTo(System.out); |
704,299 | public int executeUpdate(String sql, String[] columnNames) throws SQLException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "executeUpdate", sql, Arrays.toString(columnNames));<NEW_LINE>int numUpdates;<NEW_LINE>try ... | this, tc, "executeUpdate", ex); |
819,197 | public Asset Open(String path, AccessMode mode) {<NEW_LINE>CHECK(zip_handle_ != null);<NEW_LINE>String name = path;<NEW_LINE>ZipEntryRO entry;<NEW_LINE>entry = zipFileRO.findEntryByName(name);<NEW_LINE>// int result = FindEntry(zip_handle_.get(), name, &entry);<NEW_LINE>// if (result != 0) {<NEW_LINE>// LOG(ERROR) + "N... | map = zipFileRO.createEntryFileMap(entry); |
76,149 | public List<AbstractRecord> parseRecordsSoftly(byte[] rawRecordData) {<NEW_LINE>List<AbstractRecord> records = new LinkedList<>();<NEW_LINE>int dataPointer = 0;<NEW_LINE>while (dataPointer != rawRecordData.length) {<NEW_LINE>try {<NEW_LINE>RecordParser parser = new RecordParser(dataPointer, rawRecordData, tlsContext.ge... | Record record = parser.parse(); |
1,329,913 | final GetDomainResult executeGetDomain(GetDomainRequest getDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,551,786 | void populateCommonInterfaceProperties(InterfacesInterface vsIface, org.batfish.datamodel.Interface viIface) {<NEW_LINE>// addresses<NEW_LINE>if (!vsIface.getAddresses().isEmpty()) {<NEW_LINE>List<ConcreteInterfaceAddress> addresses = vsIface.getAddresses();<NEW_LINE>ImmutableList.Builder<ConcreteInterfaceAddress> owne... | = vsIface.getLinkSpeed() * SPEED_CONVERSION_FACTOR; |
278,986 | public com.amazonaws.services.simplesystemsmanagement.model.UnsupportedInventorySchemaVersionException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.UnsupportedInventorySchemaVersionException unsupportedInventorySchemaVersionExcep... | String currentParentElement = context.getCurrentParentElement(); |
91,013 | // Take a DNS queue + admin registrar id as input so that it can be called from the mapper as well<NEW_LINE>private static void softDeleteDomain(DomainBase domain, String registryAdminRegistrarId, DnsQueue localDnsQueue) {<NEW_LINE>DomainBase deletedDomain = domain.asBuilder().setDeletionTime(tm().getTransactionTime())... | setStatusValues(null).build(); |
1,066,043 | private TreeMap<Long, Double> metricDivide(NavigableMap<Long, Double> metricsNum, NavigableMap<Long, Double> metricsDenom) {<NEW_LINE>TreeMap<Long, Double> <MASK><NEW_LINE>for (Entry<Long, Double> entry : metricsNum.entrySet()) {<NEW_LINE>Entry<Long, Double> entry2 = metricsDenom.floorEntry(entry.getKey());<NEW_LINE>if... | timeToVal = new TreeMap<>(); |
1,344,312 | private void onIntentProcessed() {<NEW_LINE>List<ShareInfo> infos = filePreparedInfos;<NEW_LINE>if (getIntent() != null && getIntent().getAction() != ACTION_PROCESSED) {<NEW_LINE>getIntent().setAction(ACTION_PROCESSED);<NEW_LINE>}<NEW_LINE>if (statusDialog != null) {<NEW_LINE>try {<NEW_LINE>statusDialog.dismiss();<NEW_... | EXTRA_SIZE, info.getSize()); |
1,029,653 | private void initMethods() {<NEW_LINE>Method[] methodsToExport <MASK><NEW_LINE>for (Method method : methodsToExport) {<NEW_LINE>method.setAccessible(true);<NEW_LINE>MethodDescriptor methodDescriptor = new ReflectionMethodDescriptor(method);<NEW_LINE>List<MethodDescriptor> methodModels = methods.computeIfAbsent(method.g... | = this.serviceInterfaceClass.getMethods(); |
1,341,431 | public void handle(AnnotationValues<NonNull> annotation, JCAnnotation ast, JavacNode annotationNode) {<NEW_LINE>handleFlagUsage(annotationNode, ConfigurationKeys.NON_NULL_FLAG_USAGE, "@NonNull");<NEW_LINE>if (annotationNode.up().getKind() == Kind.FIELD) {<NEW_LINE>// This is meaningless unless the field is used to gene... | ).up(), annotationNode); |
960,329 | public static <T> PersistentResource<T> createObject(PersistentResource<?> parent, String parentRelationship, Type<T> entityClass, RequestScope requestScope, Optional<String> uuid) {<NEW_LINE>T obj = requestScope.getTransaction().createNewObject(entityClass, requestScope);<NEW_LINE>String id = uuid.orElse(null);<NEW_LI... | , newResource.getObject())); |
416,351 | private TypeProto generateTypeProto(Color color) {<NEW_LINE>final TypeProto.<MASK><NEW_LINE>if (color.isUnion()) {<NEW_LINE>typeProtoBuilder.getUnionBuilder().addAllUnionMember(addColors(color.getUnionElements()));<NEW_LINE>} else {<NEW_LINE>final ObjectTypeProto.Builder objectTypeProtoBuilder = typeProtoBuilder.getObj... | Builder typeProtoBuilder = TypeProto.newBuilder(); |
641,805 | public static void changeTableMeta(Connection metaDbConnection, String schemaName, String logicalTableName, String dbIndex, String phyTableName, List<String> addedColumns, List<String> droppedColumns) {<NEW_LINE>TableInfoManager.PhyInfoSchemaContext phyInfoSchemaContext = CommonMetaChanger.getPhyInfoSchemaContext(<MASK... | schemaName, logicalTableName, dbIndex, phyTableName); |
1,706,133 | private void addGroupUser(Group group, String userId, List<String> sourceIds) {<NEW_LINE>String id = group.getId();<NEW_LINE>String type = group.getType();<NEW_LINE>if (StringUtils.equals(type, UserGroupType.SYSTEM)) {<NEW_LINE>UserGroup userGroup = new UserGroup();<NEW_LINE>userGroup.setId(UUID.randomUUID().toString()... | setUpdateTime(System.currentTimeMillis()); |
890,272 | public boolean onNodeChildren(FactoryBuilderSupport builder, Object node, Closure content) {<NEW_LINE>Xpp3Dom dom = (Xpp3Dom) node;<NEW_LINE>NodeBuilder nodes = new NodeBuilder() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void setClosureDelegate(final Closure c, final Object o) {<NEW_LINE>c.setDelegate(this);<NE... | c.setResolveStrategy(Closure.DELEGATE_FIRST); |
899,410 | private Object decodeNtcb(Channel channel, SocketAddress remoteAddress, ByteBuf buf) {<NEW_LINE>prefix = buf.toString(buf.readerIndex(), 4, StandardCharsets.US_ASCII);<NEW_LINE>// prefix @NTC by default<NEW_LINE>buf.skipBytes(prefix.length());<NEW_LINE>serverId = buf.readUnsignedIntLE();<NEW_LINE>deviceUniqueId = buf.r... | deviceSession = getDeviceSession(channel, remoteAddress); |
901,381 | private void doOperation(final SplitStoreFromIterable<String> operation, final AccumuloStore store) throws OperationException {<NEW_LINE>if (null == operation.getInput()) {<NEW_LINE>throw new OperationException("Operation input is required.");<NEW_LINE>}<NEW_LINE>final SortedSet<Text> splits = new TreeSet<>();<NEW_LINE... | ), store.getTableName()); |
1,357,340 | public static BaseRippleDrawable bindView(final View view, AttributeSet attrs, int defStyleAttr, int defStyleRes) {<NEW_LINE>final BaseRippleDrawable drawable;<NEW_LINE>if (attrs == null && defStyleAttr == 0 && defStyleRes == 0) {<NEW_LINE>drawable = initRippleDrawable(view);<NEW_LINE>} else {<NEW_LINE>drawable = new B... | new WeakReference<View>(view); |
976,543 | private void initRowPredict() {<NEW_LINE>final TableSchema dataSchema = getDataSchema();<NEW_LINE>final TableSchema modelSchema = getModelSchema();<NEW_LINE>String[] categoricalColNames = null;<NEW_LINE>if (treeModel.meta.contains(HasCategoricalCols.CATEGORICAL_COLS)) {<NEW_LINE>categoricalColNames = treeModel.meta.get... | initFeatureIndices(treeModel.meta, dataSchema); |
1,256,791 | public void read(org.apache.thrift.protocol.TProtocol prot, checkTableClass_args 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(... | .className = iprot.readString(); |
1,357,178 | public void respondWithError(final ErrorInformation errorInformation, final Flag... flags) throws IOException, ServletException, PwmUnrecoverableException {<NEW_LINE>LOGGER.error(pwmRequest.getLabel(), errorInformation);<NEW_LINE>pwmRequest.setAttribute(PwmRequestAttribute.PwmErrorInfo, errorInformation);<NEW_LINE>if (... | "forcing logout due to error " + errorInformation.toDebugStr()); |
920,022 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
366,874 | final CancelJobExecutionResult executeCancelJobExecution(CancelJobExecutionRequest cancelJobExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelJobExecutionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CancelJobExecut... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,626,192 | public ImmutableSortedMap<K, V> buildOrThrow() {<NEW_LINE>switch(size) {<NEW_LINE>case 0:<NEW_LINE>return emptyMap(comparator);<NEW_LINE>case 1:<NEW_LINE>// requireNonNull is safe because the first `size` elements have been filled in.<NEW_LINE>return of(comparator, (K) requireNonNull(keys[0]), (V) requireNonNull(values... | <V>asImmutableList(sortedValues)); |
678,026 | private Map<String, Map<String, Long>> buildGroupNeedAdjustDomains(Map<String, Map<Server, Long>> gaps, Map<String, Map<String, Machine>> statistics) {<NEW_LINE>Map<String, Map<String, Long>> results = new HashMap<String, Map<String, Long>>();<NEW_LINE>Map<String, Map<String, Long>> datas = new HashMap<String, Map<Stri... | results.put(group, ds); |
607,007 | private void addFixedRecipe(int index, PositionedItemStack[] recipe) {<NEW_LINE>int height = 0;<NEW_LINE>for (PositionedItemStack stack : recipe) if (stack.y > height)<NEW_LINE>height = stack.y;<NEW_LINE>height += 18;<NEW_LINE>if (this.heightPixels[index] < height) {<NEW_LINE>int offset = (height - heightPixels[index])... | [index].add(recipe); |
793,840 | public void evaluateInstanceList(TransducerTrainer trainer, InstanceList instances, String description) {<NEW_LINE>@Var<NEW_LINE>int numCorrectTokens;<NEW_LINE>@Var<NEW_LINE>int totalTokens;<NEW_LINE>Transducer transducer = trainer.getTransducer();<NEW_LINE>totalTokens = numCorrectTokens = 0;<NEW_LINE>for (int i = 0; i... | ((double) numCorrectTokens) / totalTokens; |
908,996 | public static RubyDateTime to_datetime(ThreadContext context, IRubyObject self) {<NEW_LINE><MASK><NEW_LINE>DateTime dt = ((RubyTime) self).getDateTime();<NEW_LINE>long subMillisNum = 0, subMillisDen = 1;<NEW_LINE>if (time.getNSec() != 0) {<NEW_LINE>IRubyObject subMillis = RubyRational.newRationalCanonicalize(context, t... | final RubyTime time = (RubyTime) self; |
1,599,278 | Object py_dl_open(VirtualFrame frame, String name_str, int m, @Cached PyObjectHashNode hashNode, @Cached AuditNode auditNode) {<NEW_LINE>int mode = m != Integer.MIN_VALUE ? m : RTLD_LOCAL.getValueIfDefined();<NEW_LINE>mode |= RTLD_NOW.getValueIfDefined();<NEW_LINE>auditNode.audit("ctypes.dlopen", name_str);<NEW_LINE>Ct... | (OSError, getErrMsg(exception)); |
1,063,388 | final GetFileUploadURLResult executeGetFileUploadURL(GetFileUploadURLRequest getFileUploadURLRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFileUploadURLRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<G... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
558,394 | @Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Removes the username from the specified team.", response = UserPrincipal.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 304, message = "The user was not a member of the specified team"), @Ap... | entity("The user could not be found.").build(); |
517,318 | public void serialize(T collection, JsonGenerator jgen, SerializerProvider provider) throws IOException {<NEW_LINE>jgen.writeStartObject();<NEW_LINE>if (collection.getKeyMatchStyle() != null && collection.getKeyMatchStyle() != KeyMatchStyle.SUB_SET) {<NEW_LINE>jgen.writeObjectField(<MASK><NEW_LINE>}<NEW_LINE>ArrayList<... | "keyMatchStyle", collection.getKeyMatchStyle()); |
1,001,808 | protected void doCODESIZE() {<NEW_LINE>if (computeGas) {<NEW_LINE>if (op == OpCode.EXTCODESIZE) {<NEW_LINE>gasCost = GasCost.EXT_CODE_SIZE;<NEW_LINE>}<NEW_LINE>spendOpCodeGas();<NEW_LINE>}<NEW_LINE>// EXECUTION PHASE<NEW_LINE>DataWord codeLength;<NEW_LINE>if (op == OpCode.CODESIZE) {<NEW_LINE>// during initialization i... | precompiledContracts.getContractForAddress(activations, address); |
1,802,660 | public ApiResponse<List<String>> usersGetUserGroupsWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling usersGetUserGr... | ] localVarAccepts = { "application/json", "text/json" }; |
1,100,808 | public void handleMessage(Message msg) {<NEW_LINE>WorkerArgs <MASK><NEW_LINE>switch(msg.arg1) {<NEW_LINE>case EVENT_LOAD_IMAGE:<NEW_LINE>// if the image has been loaded then display it, otherwise set default.<NEW_LINE>// in either case, make sure the image is visible.<NEW_LINE>if (args.result != null) {<NEW_LINE>args.v... | args = (WorkerArgs) msg.obj; |
1,415,058 | private void writeJunitReportToFile() {<NEW_LINE>try {<NEW_LINE>final String directory = String.valueOf(targetDirectory) + "/surefire-reports";<NEW_LINE>FileUtils.forceMkdir(new File(directory));<NEW_LINE>final StringBuilder b = new StringBuilder(directory).append("/TEST-").append<MASK><NEW_LINE>if (StringUtils.isNotBl... | (DeviceHelper.getDescriptiveName(device)); |
1,124,893 | public void invoke(PHPRuleContext context, List<Hint> hints) {<NEW_LINE>PHPParseResult phpParseResult = (PHPParseResult) context.parserResult;<NEW_LINE>if (phpParseResult.getProgram() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileScope fileScope = context.fileScope;<NEW_LINE>fileObject = phpParseResult.getSnapsho... | Bundle.IncorrectNamedArguments_desc_combine_named_argument_and_argument_unpacking(), hints); |
992,965 | public List<OpenIncident> readOpenIncidents(String agentRollupId) throws Exception {<NEW_LINE>BoundStatement boundStatement = readOpenIncidentsPS.bind();<NEW_LINE><MASK><NEW_LINE>ResultSet results = session.read(boundStatement);<NEW_LINE>List<OpenIncident> openIncidents = new ArrayList<>();<NEW_LINE>for (Row row : resu... | boundStatement.setString(0, agentRollupId); |
771,841 | // https://tools.ietf.org/html/rfc8017#section-9.2.<NEW_LINE>private byte[] emsaPkcs1(byte[] m, int emLen, HashType hash) throws GeneralSecurityException {<NEW_LINE>Validators.validateSignatureHash(hash);<NEW_LINE>MessageDigest digest = EngineFactory.MESSAGE_DIGEST.getInstance(SubtleUtil.toDigestAlgo(this.hash));<NEW_L... | offset++] = (byte) 0xff; |
1,177,061 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalAr... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
974,752 | private void parseConfig(File file) throws JAXBException {<NEW_LINE>if (!file.getName().endsWith("xml")) {<NEW_LINE>logger.warn(String.format("file[%s] in global config folder is not end with .xml, skip it", file.getAbsolutePath()));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Unmarshaller unmarshaller = context.createUnmarsh... | config.getIdentity(), config); |
1,703,901 | public void create() {<NEW_LINE>if (spriteBatch != null)<NEW_LINE>return;<NEW_LINE>customShading = new CustomShading();<NEW_LINE>spriteBatch = new SpriteBatch();<NEW_LINE>shapeRenderer = new ShapeRenderer();<NEW_LINE>lineColor = com.badlogic.gdx.<MASK><NEW_LINE>worldCamera = new OrthographicCamera();<NEW_LINE>textCamer... | graphics.Color.valueOf("636363"); |
577,857 | public Result importLiveStreams2Stalker() {<NEW_LINE>String stalkerDBServer = getAppSettings().getStalkerDBServer();<NEW_LINE>String stalkerDBUsername = getAppSettings().getStalkerDBUsername();<NEW_LINE>String stalkerDBPassword = getAppSettings().getStalkerDBPassword();<NEW_LINE>boolean result = false;<NEW_LINE>String ... | Result(result, message, errorId); |
816,995 | public void addArrow(UUID gameId, int startX, int startY, int endX, int endY, Color color, Type type) {<NEW_LINE>JPanel p = getArrowsPanel(gameId);<NEW_LINE>Arrow arrow = new Arrow();<NEW_LINE>arrow.setColor(color);<NEW_LINE>arrow.setArrowLocation(startX, startY, endX, endY);<NEW_LINE>// 30 is offset for arrow heads (b... | -> new ArrayList<>()); |
1,699,388 | private static List<ConfigChangeAction> validateContentCluster(ContentCluster currentCluster, ContentCluster nextCluster) {<NEW_LINE>List<ConfigChangeAction> actions = new ArrayList<>();<NEW_LINE>ContentSearchCluster currentSearchCluster = currentCluster.getSearch();<NEW_LINE><MASK><NEW_LINE>findDocumentTypesWithAction... | ContentSearchCluster nextSearchCluster = nextCluster.getSearch(); |
454,834 | private int distance(TagSet base, TagSet set, TagSetEncoder encoder) {<NEW_LINE>int cost = 0;<NEW_LINE>int nb = 0;<NEW_LINE>int ns = 0;<NEW_LINE>while (nb < base.tags.length && ns < set.tags.length) {<NEW_LINE>int c = base.tags[nb].compareTo(set.tags[ns]);<NEW_LINE>if (c == 0) {<NEW_LINE>++nb;<NEW_LINE>++ns;<NEW_LINE>}... | .tags[ns].tag); |
1,741,154 | private Map<ServerInstance, DataTable> gatherServerResponses(boolean ignoreEmptyResponses, Map<org.apache.pinot.core.transport.ServerInstance, List<String>> routingTable, AsyncQueryResponse asyncQueryResponse, String tableNameWithType) {<NEW_LINE>try {<NEW_LINE>Map<ServerRoutingInstance, ServerResponse> queryResponses ... | serverResponseMap = new HashMap<>(); |
1,846,212 | final BatchAssociateResourcesToCustomLineItemResult executeBatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest batchAssociateResourcesToCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchAssociateResourcesToCustomLineItemRequest);<NEW_LIN... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchAssociateResourcesToCustomLineItem"); |
726,564 | public static void main(String[] args) throws Exception {<NEW_LINE>// Create and configure HTTPS client<NEW_LINE>Client client = new Client(new Context(), Protocol.HTTPS);<NEW_LINE>Series<Parameter> parameters = client.getContext().getParameters();<NEW_LINE>parameters.add("truststorePath", "src/org/restlet/example/book... | ClientResource clientResource = new ClientResource("https://localhost:8183/accounts/chunkylover53/mails/123"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.