idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
206,046 | public void loadFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>reader.readStartElement(XmlNamespace.Messages, XmlElementNames.Notification);<NEW_LINE>do {<NEW_LINE>NotificationGroup notifications = new NotificationGroup();<NEW_LINE>notifications.subscriptionId = reader.readElementValue(XmlNamespace.Typ... | readEndElementIfNecessary(XmlNamespace.Types, eventElementName); |
584,258 | public List<Relationship> differingContent(RelationshipsPart otherRP) throws Docx4JException {<NEW_LINE>List<Relationship> results = new ArrayList<Relationship>();<NEW_LINE>for (Relationship r : jaxbElement.getRelationship()) {<NEW_LINE>Relationship otherR = getRelationshipByTarget(otherRP, r.getTarget());<NEW_LINE>if ... | thisPart = this.getPart(r); |
52,291 | private ProcessStubs concreteProcessStubs(Business business, DateRange dateRange, ApplicationStub applicationStub) throws Exception {<NEW_LINE>Set<String> ids = new HashSet<>();<NEW_LINE>ids.addAll(this.listProcessFromWorkCompleted(business, dateRange, applicationStub));<NEW_LINE>List<ProcessStub> list = new ArrayList<... | setApplicationValue(applicationStub.getValue()); |
502,489 | public static ListWorkflowOfAgentResponse unmarshall(ListWorkflowOfAgentResponse listWorkflowOfAgentResponse, UnmarshallerContext context) {<NEW_LINE>listWorkflowOfAgentResponse.setRequestId(context.stringValue("ListWorkflowOfAgentResponse.RequestId"));<NEW_LINE>listWorkflowOfAgentResponse.setSuccess(context.booleanVal... | (context.integerValue("ListWorkflowOfAgentResponse.AgentEventLogs.TotalCount")); |
1,177,382 | private Token includeFiltered() {<NEW_LINE>Matcher matcher = Pattern.compile("^include:([\\w\\-]+)([\\( ])").matcher(scanner.getInput());<NEW_LINE>if (matcher.find(0) && matcher.groupCount() > 1) {<NEW_LINE>this.consume(matcher.end() - 1);<NEW_LINE>String filter = matcher.group(1);<NEW_LINE>Token attrs = matcher.group(... | consume(matcher.end()); |
168,123 | private void updateRoles(Policy policy, AuthorizationProvider authorization, Set<RolePolicyRepresentation.RoleDefinition> roles) {<NEW_LINE>KeycloakSession session = authorization.getKeycloakSession();<NEW_LINE>RealmModel realm = authorization.getRealm();<NEW_LINE>Set<RolePolicyRepresentation.RoleDefinition> updatedRol... | role = client.getRole(roleName); |
495,620 | private static Map<String, String> createColorMap() {<NEW_LINE>HashMap<String, String> map = new HashMap<>();<NEW_LINE>map.put("yellow", "#FFFF00");<NEW_LINE>map.put("dark yellow", "#FFC002");<NEW_LINE>map.put("green", "#00FF00");<NEW_LINE>map.put("white", "#FFFFFF");<NEW_LINE>map.put("pink", "#FF1DC4");<NEW_LINE>map.p... | map.put("light green", "#A6EF03"); |
1,664,053 | private static String whereClauseForUserIdpAlias(String modelFieldName, ModelCriteriaBuilder.Operator op, Object[] values, Map<String, Object> parameters) {<NEW_LINE>if (op != ModelCriteriaBuilder.Operator.EQ) {<NEW_LINE>throw new CriterionNotSupportedException(UserModel.SearchableFields.IDP_AND_USER, op);<NEW_LINE>}<N... | + Arrays.toString(values)); |
1,486,323 | void displaySystemInformation() {<NEW_LINE>int count = 0;<NEW_LINE>int rowSize = 0;<NEW_LINE>for (int i = 0; i < mTableSize; i++) {<NEW_LINE>if (mRows[i] != null) {<NEW_LINE>rowSize += mRows[i].sizeInBytes();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int actualRowSize = 0;<NEW_LINE>for (int i = 0; i < mNumRows; i++) {<NEW_LINE>if... | + " occupied cells, " + getDisplaySize(count)); |
1,755,350 | public Response addTopLevelGroup(GroupRepresentation rep) {<NEW_LINE>auth<MASK><NEW_LINE>GroupModel child;<NEW_LINE>Response.ResponseBuilder builder = Response.status(204);<NEW_LINE>String groupName = rep.getName();<NEW_LINE>if (ObjectUtil.isBlank(groupName)) {<NEW_LINE>return ErrorResponse.error("Group name is missing... | .groups().requireManage(); |
1,511,914 | private void unloadMatchedNamespacesList(AsyncResponse asyncResponse, List<String> nssToUnload, Namespaces namespaces) {<NEW_LINE>if (nssToUnload.size() == 0) {<NEW_LINE>asyncResponse.resume(Response.noContent().build());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<CompletableFuture<Void>> futures = nssToUnload.stream().... | "[{}] Failed to writeLoadReportOnZookeeper.", clientAppId(), e); |
1,846,169 | public void run(RegressionEnvironment env) {<NEW_LINE>// Test valid case of array insert<NEW_LINE>String epl = "@name('s0') insert into SupportBeanCtorThree select s, e FROM PATTERN [" + "every s=SupportBean_ST0 -> [2] e=SupportBean_ST1]";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(ne... | (SupportBeanCtorThree) event.getUnderlying(); |
503,364 | public List<DataType> calculateOutputDataTypes(List<DataType> dataTypes) {<NEW_LINE>// Reduction backprop ops: expect 2 inputs... the original input, and the gradient at the outputs<NEW_LINE>// For example, for y=mean(x), inputs to ReduceMeanBp are x and dL/dy; output is dL/dx<NEW_LINE>// Now, we expect gradient dL/dx ... | "Expected exactly 2 input datatype for %s, got input %s", getClass(), dataTypes); |
778,289 | protected static void updateScrolledComposite(ScrolledComposite sc, int style) {<NEW_LINE>Control content = sc.getContent();<NEW_LINE>if (content != null && !content.isDisposed()) {<NEW_LINE>boolean do_v = (<MASK><NEW_LINE>boolean do_h = (style & SWT.H_SCROLL) != 0;<NEW_LINE>Point min;<NEW_LINE>if (do_v && do_h) {<NEW_... | style & SWT.V_SCROLL) != 0; |
1,125,040 | private static List<String> unzipFile(final ZipFile zipFile, File targetDirectory) throws IOException {<NEW_LINE>List<String> <MASK><NEW_LINE>try {<NEW_LINE>// Zip Slip fix courtesy of snyk.io/research/zip-slip-vulnerability.<NEW_LINE>String canonicalDirPath = targetDirectory.getCanonicalPath() + File.separator;<NEW_LI... | files = new ArrayList<>(); |
1,287,870 | private void processLibraryPIDs(List<ContainerInfo> sharedLibContainers, String[] libraryPIDs) throws InvalidSyntaxException {<NEW_LINE>if (libraryPIDs != null) {<NEW_LINE>for (String pid : libraryPIDs) {<NEW_LINE>String libraryFilter = FilterUtils.<MASK><NEW_LINE>Collection<ServiceReference<Library>> libraryRefs = bun... | createPropertyFilter(Constants.SERVICE_PID, pid); |
1,077,730 | private void uploadFile(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>FileUpload upload = new FileUpload(request);<NEW_LINE>String error = upload.getError();<NEW_LINE>if (error != null) {<NEW_LINE>WebUtil.createForwardPage(response, error, "requests.jsp", 10);... | MRequest(ctx, R_Request_ID, null); |
521,642 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLSpatialPREventIndexUnindexed());<NEW_LINE>execs.add(new EPLSpatialPREventIndexUnusedOnTrigger());<NEW_LINE>execs.add(new EPLSpatialPREventIndexUnusedNamedWindowFireAndForget());... | .add(new EPLSpatialPREventIndexRandomIntPointsInSquareUnique()); |
988,879 | public RunProcessResponseDocument runProcess(ModelRunProcessRequestDocument modelRunProcessRequestDocument) throws XFireFault {<NEW_LINE>RunProcessResponseDocument runProcessResponseDocument = RunProcessResponseDocument.Factory.newInstance();<NEW_LINE>RunProcessResponse runProcessResponse = runProcessResponseDocument.a... | setADMenuID(modelRunProcess.getADMenuID()); |
724,767 | @SqlType("varchar(x)")<NEW_LINE>public static Slice castToVarchar(@LiteralParameter("p") long precision, @SqlType("time(p)") long value) {<NEW_LINE>int size = (int) (// hour:minute:second<NEW_LINE>// period<NEW_LINE>8 + // fraction<NEW_LINE>(precision > 0 ? 1 : 0) + precision);<NEW_LINE>DynamicSliceOutput output = new ... | (value / PICOSECONDS_PER_SECOND) % SECONDS_PER_MINUTE); |
993,976 | private static Class<?> resolveRawClass(Type genericType, Class<?> subType) {<NEW_LINE>if (genericType instanceof Class) {<NEW_LINE><MASK><NEW_LINE>} else if (genericType instanceof ParameterizedType) {<NEW_LINE>return resolveRawClass(((ParameterizedType) genericType).getRawType(), subType);<NEW_LINE>} else if (generic... | return (Class<?>) genericType; |
123,226 | public byte[] retrieveSecret(SecretIdentifier identifier) {<NEW_LINE>if (identifier != null && identifier.getKey() != null && !identifier.getKey().isEmpty()) {<NEW_LINE>try {<NEW_LINE>lock.lock();<NEW_LINE>loadKeyStore();<NEW_LINE>SecretKeyFactory factory = SecretKeyFactory.getInstance("PBE");<NEW_LINE>KeyStore.SecretK... | SecretStoreException.RetrievalException(identifier, e); |
38,779 | public TargetGroupStickinessConfig unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>TargetGroupStickinessConfig targetGroupStickinessConfig = new TargetGroupStickinessConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (conte... | ().unmarshall(context)); |
1,672,306 | private static boolean checkErrorState() {<NEW_LINE>try {<NEW_LINE>MatrixLog.i(TAG, "[checkErrorState] start");<NEW_LINE>Application application = sApplication == null ? Matrix.with<MASK><NEW_LINE>ActivityManager am = (ActivityManager) application.getSystemService(Context.ACTIVITY_SERVICE);<NEW_LINE>List<ActivityManage... | ().getApplication() : sApplication; |
1,409,653 | private void checkAllocatedIpsAreWithinVlanRange(List<IPAddressVO> listAllocatedIPs, String startIp, String endIp, Boolean forSystemVms) {<NEW_LINE>Collections.sort(listAllocatedIPs, Comparator<MASK><NEW_LINE>for (IPAddressVO allocatedIP : listAllocatedIPs) {<NEW_LINE>if ((StringUtils.isNotEmpty(startIp) && NetUtils.ip... | .comparing(IPAddressVO::getAddress)); |
669,699 | private VelocityContext createVelocityContext(Map<String, Object> model) {<NEW_LINE>// prepare the locale-aware i18n method<NEW_LINE>String language = (String) model.get(PippoConstants.REQUEST_PARAMETER_LANG);<NEW_LINE>if (StringUtils.isNullOrEmpty(language)) {<NEW_LINE>language = languages.getLanguageOrDefault(languag... | VelocityContext context = new VelocityContext(model); |
1,683,212 | private static List<HasMetadata> processTemplate(Template template, Boolean failOnMissing) {<NEW_LINE>List<Parameter> parameters = template != null <MASK><NEW_LINE>List<HasMetadata> objects = template != null ? template.getObjects() : Collections.emptyList();<NEW_LINE>KubernetesList list = new KubernetesListBuilder().w... | ? template.getParameters() : null; |
1,540,435 | final ListQualificationRequestsResult executeListQualificationRequests(ListQualificationRequestsRequest listQualificationRequestsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listQualificationRequestsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | endClientExecution(awsRequestMetrics, request, response); |
942,377 | public static // amplitude triplet<NEW_LINE>FreqIndicesWithAmplitudes refinePeakEstimatesParabola(double[] powSpecdB, int[] freqInds) {<NEW_LINE>double alpha, beta, gamma, p;<NEW_LINE>FreqIndicesWithAmplitudes fiwa = new FreqIndicesWithAmplitudes(freqInds.length);<NEW_LINE>for (int i = 0; i < freqInds.length; i++) {<NE... | [freqInds[i] - 1]; |
1,673,649 | public static String replaceSqlPlaceholder(String sql, List<String> placeHolder, String escapeSymbol) {<NEW_LINE>for (String s : placeHolder) {<NEW_LINE>String s1 = s.substring(2, <MASK><NEW_LINE>int i1 = s1.indexOf(COLON);<NEW_LINE>String tableName;<NEW_LINE>String alisa = null;<NEW_LINE>String asAlisa = null;<NEW_LIN... | s.length() - 1); |
1,849,884 | public static ListGroupMemberResponse unmarshall(ListGroupMemberResponse listGroupMemberResponse, UnmarshallerContext _ctx) {<NEW_LINE>listGroupMemberResponse.setRequestId(_ctx.stringValue("ListGroupMemberResponse.RequestId"));<NEW_LINE>listGroupMemberResponse.setErrorCode(_ctx.stringValue("ListGroupMemberResponse.Erro... | (_ctx.stringValue("ListGroupMemberResponse.ErrorMessage")); |
1,522,967 | private Map<String, String> debugStats() {<NEW_LINE>final Map<String, String> debugData = new TreeMap<>();<NEW_LINE>{<NEW_LINE>final Instant tailAge = getTailDate().orElse(null);<NEW_LINE>debugData.put("EventsTailAge", tailAge == null ? "n/a" : TimeDuration.fromCurrent(tailAge).asCompactString());<NEW_LINE>}<NEW_LINE>d... | getMaxAge().asCompactString()); |
1,296,552 | // Logging ...<NEW_LINE>@Trivial<NEW_LINE>protected void log(Logger useLogger, TargetCache_Options cacheOptions) {<NEW_LINE>String methodName = "log";<NEW_LINE>if (!useLogger.isLoggable(Level.FINER)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>useLogger.logp(Level.FINER, CLASS_NAME, methodName, "Cache Options:");<NEW_LINE>u... | " Directory: [ {0} ]", cacheOptions.getDir()); |
959,857 | final UpdateCoreNetworkResult executeUpdateCoreNetwork(UpdateCoreNetworkRequest updateCoreNetworkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateCoreNetworkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,569,112 | public String createRule() throws UnsupportedEncodingException {<NEW_LINE>String callback = getCallback();<NEW_LINE>boolean isJSON = false;<NEW_LINE>updateProjectListMockNum(SystemVisitorLog.mock(__id__, "createRule", pattern, getCurAccount()));<NEW_LINE>Map<String, Object> options = new <MASK><NEW_LINE>String _c = get... | HashMap<String, Object>(); |
129,715 | protected void putSlice(byte[][] result, byte[][] lowBits, int lumaStride, int mbX, int mbY, int[] y, int[] u, int[] v, int dist, int shift, int chromaType, int sliceMbCount) {<NEW_LINE>int chromaStride = lumaStride >> 1;<NEW_LINE>_putLuma(result[0], lowBits == null ? null : lowBits[0], shift * lumaStride, lumaStride <... | v, sliceMbCount, dist, shift); |
1,228,556 | public static int maxSquareSubmatrixSpaceEfficient(List<List<Boolean>> A) {<NEW_LINE>List<Integer> pre = new ArrayList<>(Collections.nCopies(A.get(0).size(), 0));<NEW_LINE>int maxSide = 0;<NEW_LINE>for (List<Boolean> row : A) {<NEW_LINE>List<Integer> curr = new ArrayList<>(A.get(0).size());<NEW_LINE>for (Boolean cell :... | - 1)) + 1)); |
942,186 | public static List<VpcPolicy> parseListVpcPolicyResult(InputStream responseBody) throws ResponseParseException {<NEW_LINE>try {<NEW_LINE>Element root = getXmlRootElement(responseBody);<NEW_LINE>List<VpcPolicy> vpcipList = new ArrayList<VpcPolicy>();<NEW_LINE>List<Element> vpcips = root.getChildren("Vpcip");<NEW_LINE>fo... | (e.getChildText("VpcId")); |
139,711 | public void intersectAndAddInPlace(Tensor other, DoubleUnaryOperator f) {<NEW_LINE>double shrinkage = scaleShrinking ? 1.0 - (baseRate / iteration) : 1.0 - baseRate;<NEW_LINE>scaleInPlace(shrinkage);<NEW_LINE>SGDVector otherVec = (SGDVector) other;<NEW_LINE>for (VectorTuple tuple : otherVec) {<NEW_LINE>double update = ... | 1.0 / lambdaSqrt) / twoNorm(); |
787,523 | public void visit(LambdaFunctionDeclaration node) {<NEW_LINE>boolean disableIndent = disableIndentForFunctionInvocation(node.getStartOffset());<NEW_LINE>scan(node.getAttributes());<NEW_LINE>List<FormalParameter> parameters = node.getFormalParameters();<NEW_LINE>Block body = node.getBody();<NEW_LINE>int index = formatTo... | ().length())); |
281,060 | static boolean dropUser(Metadata.Builder mdBuilder, @Nullable UsersMetadata oldMetadata, String name) {<NEW_LINE>if (oldMetadata == null || oldMetadata.contains(name) == false) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// create a new instance of the metadata, to guarantee the cluster changed action.<NEW_LINE>UsersM... | putCustom(UsersMetadata.TYPE, newMetadata); |
1,415,783 | private Map<String, String> buildEnvironmentVariables0(Map<String, String> env) {<NEW_LINE>final Map<String, String> jarEnv = getAttribute(ATTR_ENV);<NEW_LINE>for (Map.Entry<String, String> e : jarEnv.entrySet()) {<NEW_LINE>boolean overwrite = false;<NEW_LINE><MASK><NEW_LINE>if (var.endsWith(":")) {<NEW_LINE>overwrite ... | String var = e.getKey(); |
1,630,519 | private void extractSSLServerCert(String lineRead) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.<MASK><NEW_LINE>}<NEW_LINE>String tmpString;<NEW_LINE>String certLabelString;<NEW_LINE>String ipAddressString;<NEW_LINE>// Verify if string starts with the SSLServerCert tag<NEW_L... | entry(tc, "extractSSLServerCert: " + lineRead); |
110,080 | private void moveExportToOwnCloud() throws Exporter.ExporterException {<NEW_LINE>Log.i(TAG, "Copying exported file to ownCloud");<NEW_LINE>SharedPreferences mPrefs = mContext.getSharedPreferences(mContext.getString(R.string.owncloud_pref), Context.MODE_PRIVATE);<NEW_LINE>Boolean mOC_sync = mPrefs.getBoolean(mContext.ge... | "Error creating folder (it may happen if it already exists): " + dirResult.getLogMessage()); |
853,285 | private static List<String> updateStructuredComments(final String finalContigColumnName, final String finalStartColumnName, final String finalEndColumnName, final List<String> currentComments) {<NEW_LINE>Utils.nonNull(currentComments);<NEW_LINE>Utils.validateArg(!StringUtils<MASK><NEW_LINE>Utils.validateArg(!StringUtil... | .isEmpty(finalContigColumnName), "Contig column name was null or blank, which is invalid."); |
1,285,813 | public void onGetRgbaFrame(byte[] data, int width, int height) {<NEW_LINE>if (mPausetime > 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check video frame cache number to judge the networking situation.<NEW_LINE>// Just cache GOP / FPS seconds data according to latency.<NEW_LINE>AtomicInteger videoFrameCacheNumber = flv... | notifyEncodeIllegalArgumentException(new IllegalArgumentException("libyuv failure")); |
1,846,304 | private void loadQrels(String rf_qrels) throws IOException {<NEW_LINE>LOG.info("============ Loading qrels ============");<NEW_LINE>LOG.info("rf_qrels: " + rf_qrels);<NEW_LINE>Path rfQrelsFilePath = Paths.get(rf_qrels);<NEW_LINE>if (!Files.exists(rfQrelsFilePath) || !Files.isRegularFile(rfQrelsFilePath) || !Files.isRea... | BufferedInputStream in = new BufferedInputStream(fin); |
1,211,955 | public void draw(final BoundingBox boundingBox, final byte zoomLevel, final Canvas canvas, final Point topLeftPoint) {<NEW_LINE>if (coordinates == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// prepare accuracy circle<NEW_LINE>final float accuracy = coordinates.getAccuracy();<NEW_LINE>if (accuracyCircle == null) {<NEW... | setColor(MapLineUtils.getAccuracyCircleFillColor()); |
743,661 | private Mono<Response<CheckAvailabilityResponseInner>> checkFilePathAvailabilityWithResponseAsync(String location, FilePathAvailabilityRequest body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requir... | error(new IllegalArgumentException("Parameter body is required and cannot be null.")); |
1,676,528 | final ListFolderMembersResult executeListFolderMembers(ListFolderMembersRequest listFolderMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFolderMembersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
385,896 | public static <T> T deserializeJsonBody(final RestRequest restRequest, final Class<T> classOfT, final Flag... flags) throws PwmUnrecoverableException {<NEW_LINE>try {<NEW_LINE>final T jsonData = JsonFactory.get().deserialize(<MASK><NEW_LINE>if (jsonData == null && !JavaHelper.enumArrayContainsValue(flags, Flag.AllowNul... | restRequest.readRequestBodyAsString(), classOfT); |
1,424,976 | public static void constraintMatrix3x6(DMatrixRMaj L, DMatrixRMaj y, DogArray<Point3D_F64> controlWorldPts, List<Point3D_F64>[] nullPts) {<NEW_LINE>int row = 0;<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>Point3D_F64 ci = controlWorldPts.get(i);<NEW_LINE>Point3D_F64 vai = nullPts[0].get(i);<NEW_LINE>Point3D_F64 vbi... | = vai.y - vaj.y; |
676,396 | public DisconnectParticipantResult disconnectParticipant(DisconnectParticipantRequest disconnectParticipantRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disconnectParticipantRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe... | DisconnectParticipantRequestMarshaller().marshall(disconnectParticipantRequest); |
674,897 | private void resolveDynamicEmbeddedImageDataSources() {<NEW_LINE>if (this.textHTML != null) {<NEW_LINE>final Map<String, String> generatedCids = new HashMap<>();<NEW_LINE>final StringBuffer stringBuffer = new StringBuffer();<NEW_LINE>final Matcher matcher = IMG_SRC_PATTERN.matcher(this.textHTML);<NEW_LINE>while (matche... | final DataSource dataSource = resolveDynamicEmbeddedImageDataSource(srcLocation); |
1,226,440 | public static int LoadEXRWithLayer(@NativeType("float **") PointerBuffer out_rgba, @NativeType("int *") IntBuffer width, @NativeType("int *") IntBuffer height, @NativeType("char const *") CharSequence filename, @NativeType("char const *") CharSequence layer_name, @NativeType("char const **") PointerBuffer err) {<NEW_LI... | stack.nUTF8(layer_name, true); |
457,634 | public List<AggRule> matchForAgg(DataPoint dp) {<NEW_LINE>List<AggRule> ret = new ArrayList();<NEW_LINE>List<SubQuery> matchedRule = match(dp);<NEW_LINE>if (matchedRule != null && matchedRule.size() > 0) {<NEW_LINE>Map<String, AggRule> aggRuleMap = new HashMap();<NEW_LINE>matchedRule.forEach(subQuery -> {<NEW_LINE>Stri... | aggRule = aggRuleMap.get(aggId); |
564,499 | public static void main(String[] args) throws Exception {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>AudioInputStream inputAudio = AudioSystem.getAudioInputStream(new <MASK><NEW_LINE>int samplingRate = (int) inputAudio.getFormat().getSampleRate();<NEW_LINE>AudioDoubleDataSource signal = new AudioDou... | File(args[0])); |
529,122 | public Map<String, Map<String, PropertyMapping>> mappingsForFunction() {<NEW_LINE>Map<String, Map<String, PropertyMapping>> <MASK><NEW_LINE>Map<String, PropertyMapping> map = new HashMap<>();<NEW_LINE>val strideMapping = PropertyMapping.builder().tfAttrName("strides").onnxAttrName("strides").propertyNames(new String[] ... | ret = new HashMap<>(); |
718,057 | private static SmartPointerElementInfo createAnchorInfo(@Nonnull PsiElement element, @Nonnull PsiFile containingFile) {<NEW_LINE>if (element instanceof StubBasedPsiElement && containingFile instanceof PsiFileImpl) {<NEW_LINE>IStubFileElementType stubType = ((PsiFileImpl) containingFile).getElementTypeForStubBuilder();<... | , LanguageUtil.getRootLanguage(containingFile)); |
1,190,416 | final DeleteAnalysisResult executeDeleteAnalysis(DeleteAnalysisRequest deleteAnalysisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAnalysisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | endClientExecution(awsRequestMetrics, request, response); |
1,012,613 | public void read(JmeImporter im) throws IOException {<NEW_LINE>super.read(im);<NEW_LINE>InputCapsule <MASK><NEW_LINE>size = ic.readInt("size", 16);<NEW_LINE>totalSize = ic.readInt("totalSize", 16);<NEW_LINE>quadrant = ic.readShort("quadrant", (short) 0);<NEW_LINE>stepScale = (Vector3f) ic.readSavable("stepScale", Vecto... | ic = im.getCapsule(this); |
675,875 | private void saveImage(JComponent comp) {<NEW_LINE>String filename;<NEW_LINE>JFileChooser chooser = FileDialoger.promptToSaveFile(GuiPackage.getInstance().getTreeListener().getCurrentNode().getName(), extensions);<NEW_LINE>if (chooser == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get the string given from the choo... | JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); |
1,809,423 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>contentView = View.inflate(getContext(), R.layout.msg_not_sent_bottom_sheet, null);<NEW_LINE>itemsLayout = contentView.findViewById(R.id.items_layout);<NEW_LINE>if (savedInstanceStat... | ChatActivity) requireActivity()).selectedMessageId; |
1,797,421 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>if (sentence.startsWith("a=connect")) {<NEW_LINE>String id = sentence.substring(sentence.indexOf("i=") + 2);<NEW_LINE>if (getDeviceSession(channel, remoteAddress, id) !=... | setTime(dateBuilder.getDate()); |
1,368,209 | public boolean process(AudioEvent audioEvent) {<NEW_LINE>System.arraycopy(audioEvent.getFloatBuffer(), 0, audioBuffer, audioBufferWatermark, audioEvent.getBufferSize());<NEW_LINE>audioBufferWatermark += audioEvent.getBufferSize();<NEW_LINE>// grains.clear();<NEW_LINE>// position = audioEvent.getTimeStamp()*1000 - 5000;... | g = freeGrains.get(0); |
722,517 | public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {<NEW_LINE>TLCActivator.logDebug("launch called");<NEW_LINE>// check the modes<NEW_LINE>if (!MODE_TRACE_EXPLORE.equals(mode)) {<NEW_LINE>throw new CoreException(new Status(IStatus.ERROR, TL... | + spec.getName())); |
1,596,323 | private static void generateExcel(String[] paths, String outPath, String name, boolean dir) throws Exception {<NEW_LINE>File[] inFiles;<NEW_LINE>if (dir) {<NEW_LINE>List<File> fileList = new ArrayList<>();<NEW_LINE>for (String p : paths) {<NEW_LINE>File dp = new File(p);<NEW_LINE>if (!dp.isDirectory())<NEW_LINE>throw n... | inFiles = fileList.toArray(inFiles); |
394,766 | private void processItem(final IT item) {<NEW_LINE>//<NEW_LINE>// error handling<NEW_LINE>if (// at least one item in this chunk was processed with an error<NEW_LINE>chunkHasErrors && (onItemErrorPolicy == OnItemErrorPolicy.CancelChunkAndRollBack || onItemErrorPolicy == OnItemErrorPolicy.CancelChunkAndCommit)) {<NEW_LI... | setTrxName(item, trxNameBkp, ignoreIfNotHandled); |
1,052,628 | private Level determineGradleLogLevel(BuildListener l) {<NEW_LINE>try {<NEW_LINE>project.log("Detected gradle AntLoggingAdapter", Project.MSG_DEBUG);<NEW_LINE>Field loggerField = l.getClass().getDeclaredField("logger");<NEW_LINE>loggerField.setAccessible(true);<NEW_LINE>// org.gradle.internal.logging.slf4j.OutputEventL... | Level.SEVERE, Level.SEVERE }; |
82,622 | final AdvertiseByoipCidrResult executeAdvertiseByoipCidr(AdvertiseByoipCidrRequest advertiseByoipCidrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(advertiseByoipCidrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,640,572 | public void onFinish() {<NEW_LINE>String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());<NEW_LINE>String imageName = "/IMG_" + timeStamp + ".jpg";<NEW_LINE>String selectedImagePath = getIntent().getExtras().getString("selectedImagePath");<NEW_LINE><MASK><NEW_LINE>// String newPath = getCacheDir(... | File file = new File(selectedImagePath); |
201,166 | private void syncCommonConfig() {<NEW_LINE>PowerUnits.TR.conversionRatio = COMMON.powerRatioTechReborn.get();<NEW_LINE>PowerMultiplier.CONFIG.multiplier <MASK><NEW_LINE>CondenserOutput.MATTER_BALLS.requiredPower = COMMON.condenserMatterBallsPower.get();<NEW_LINE>CondenserOutput.SINGULARITY.requiredPower = COMMON.conden... | = COMMON.powerUsageMultiplier.get(); |
1,727,387 | public static GlassfishInstance create(String displayName, String installRoot, String glassfishRoot, String domainsDir, String domainName, int httpPort, int adminPort, String userName, String password, String target, String url, GlassfishInstanceProvider gip) {<NEW_LINE>Map<String, String> ip = new HashMap<>();<NEW_LIN... | put(GlassfishModule.PASSWORD_ATTR, password); |
779,389 | private Set<String> scanFilesInternally(IJavaProject project, DocumentDescriptor[] docs) throws Exception {<NEW_LINE>ASTParser parser = createParser(project, false);<NEW_LINE>// this is to keep track of already scanned files to avoid endless loops due to circular dependencies<NEW_LINE>Set<String> scannedTypes = new Has... | docs[i].getLastModified(); |
449,848 | private Mono<Response<PipelineRunsQueryResponseInner>> queryByFactoryWithResponseAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionI... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
539,140 | final DescribeMultiplexResult executeDescribeMultiplex(DescribeMultiplexRequest describeMultiplexRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMultiplexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new DescribeMultiplexResultJsonUnmarshaller()); |
497,127 | public void addToImplementor(CodegenConfig cc, CodegenModel implcm, List<Map<String, String>> implImports, boolean addInterfaceImports) {<NEW_LINE>implcm.getVendorExtensions().putIfAbsent("x-implements", new ArrayList<String>());<NEW_LINE>// Add implemented interfaces<NEW_LINE>for (String intf : additionalInterfaces) {... | HashMap<String, String>(); |
1,270,932 | public ApiResponse<BackupClient> backupGetClientWithHttpInfo(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 backupGetClient")... | HashMap<String, String>(); |
534,748 | private static String readResourceFile(File sunResourcesXml) throws IOException {<NEW_LINE>String content = null;<NEW_LINE>if (sunResourcesXml.exists()) {<NEW_LINE>sunResourcesXml = FileUtil.normalizeFile(sunResourcesXml);<NEW_LINE>FileObject sunResourcesFO = FileUtil.toFileObject(sunResourcesXml);<NEW_LINE>if (sunReso... | sunResourcesXml.getAbsolutePath() + " is too long to update."); |
1,639,687 | public void reload() {<NEW_LINE>LOG.info("reload KafkaFederationSinkContext.");<NEW_LINE>try {<NEW_LINE>SortTaskConfig newSortTaskConfig = SortClusterConfigHolder.getTaskConfig(taskName);<NEW_LINE>if (newSortTaskConfig == null) {<NEW_LINE>LOG.error("newSortTaskConfig is null.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ... | this.sortTaskConfig.getSinkParams()); |
1,176,037 | protected static InputStream openKeyStore(String fileName) throws MalformedURLException, IOException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "openKeyStore" + fileName);<NEW_LINE>;<NEW_LINE>try {<NEW_LINE>// String expandedFilename = KeyStoreManager.getInstance().expand(fileName);<NEW_LINE><MASK><NEW_L... | OpenKeyStoreAction action = new OpenKeyStoreAction(fileName); |
949,617 | public void read(org.apache.thrift.protocol.TProtocol prot, Status 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)) {<NEW_LINE... | findByValue(iprot.readI32()); |
1,064,114 | public static void buildVersionInfo(List<? extends Object> list) {<NEW_LINE>ProjectVersionService projectVersionService = <MASK><NEW_LINE>List<String> versionIds = list.stream().map(i -> {<NEW_LINE>Class<?> clazz = i.getClass();<NEW_LINE>try {<NEW_LINE>Method getVersionId = clazz.getMethod("getVersionId");<NEW_LINE>ret... | CommonBeanFactory.getBean(ProjectVersionService.class); |
364,352 | final DescribeImportResult executeDescribeImport(DescribeImportRequest describeImportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeImportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,811,199 | public View createView() {<NEW_LINE>final View view = inflateLayout(R.layout.cache_filter_generic_string);<NEW_LINE>this.binding = CacheFilterGenericStringBinding.bind(view);<NEW_LINE>selectSpinner.setTextView(this.binding.select);<NEW_LINE>selectSpinner.setValues(Arrays.asList(StringFilter.StringFilterType.values())).... | ) binding.searchtext.getEditText(); |
1,715,634 | private void loadNode512() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultUserTokenGroup_TrustList_OpenWithMasks_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArgum... | this.nodeManager.addNode(node); |
1,638,461 | public JdbcCustomConversions jdbcCustomConversions() {<NEW_LINE>System.out.println("HHHHHHHHHHHHHHHHHHHHHHHHAAAAAAAAAAAAAAAAAAAAAAAAAALLLLLLLLLLLLLLLLLLLLLLLLLLLLLOOOOOOOOOOOOOOOOOOO");<NEW_LINE>System.out.println("HHHHHHHHHHHHHHHHHHHHHHHHAAAAAAAAAAAAAAAAAAAAAAAAAALLLLLLLLLLLLLLLLLLLLLLLLLLLLLOOOOOOOOOOOOOOOOOOO");<NEW... | System.out.println("HHHHHHHHHHHHHHHHHHHHHHHHAAAAAAAAAAAAAAAAAAAAAAAAAALLLLLLLLLLLLLLLLLLLLLLLLLLLLLOOOOOOOOOOOOOOOOOOO"); |
398,366 | private void registerSerializerHooks(InternalSerializationService ss) {<NEW_LINE>SerializerHookLoader serializerHookLoader = new SerializerHookLoader(config, classLoader);<NEW_LINE>Map<Class, Object> serializers = serializerHookLoader.getSerializers();<NEW_LINE>for (Map.Entry<Class, Object> entry : serializers.entrySet... | Class serializationType = entry.getKey(); |
1,403,682 | public InstanceHardware unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceHardware instanceHardware = new InstanceHardware();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | )).unmarshall(context)); |
903,945 | public static String modifyURL(String originalUrl, String newProtocol, int newPort, boolean omitPort) {<NEW_LINE>if (newProtocol == null || newProtocol.isEmpty() || (!omitPort && newPort < 0)) {<NEW_LINE>return originalUrl;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Create handler to avoid unknown protocol error when parsin... | url.getFile(), handler); |
431,276 | protected void addHeaderMenu() {<NEW_LINE>PluginInterface pi = PluginInitializer.getDefaultInterface();<NEW_LINE><MASK><NEW_LINE>assert uim != null;<NEW_LINE>final MenuManager menuManager = uim.getMenuManager();<NEW_LINE>MenuItem menuItem;<NEW_LINE>menuItem = menuManager.addMenuItem("sidebar." + MultipleDocumentInterfa... | UIManager uim = pi.getUIManager(); |
587,194 | public ApiResponse<PaymentInfo> billingGetPaymentWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/billing/info";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>M... | localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); |
127,565 | private void openFileBasedSession() {<NEW_LINE>JFileChooser chooser = new JFileChooser(model.getOptionsParam().getUserDirectory());<NEW_LINE>// By default ZAP on linux puts timestamped sessions under a 'dot' directory<NEW_LINE>chooser.// By default ZAP on linux puts timestamped sessions under a 'dot' directory<NEW_LINE... | chooser.setFileFilter(SessionFileChooser.SESSION_FILE_FILTER); |
767,438 | private Mono<Response<NetworkWatcherInner>> updateTagsWithResponseAsync(String resourceGroupName, String networkWatcherName, TagsObject parameters, 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.e... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
152,073 | // ///////////// Extra methods<NEW_LINE>private Coordinate project(final Coordinate c, final GL2 gl, final GLU glu) {<NEW_LINE>final double[] mvmatrix = new double[16];<NEW_LINE>final double[] projmatrix = new double[16];<NEW_LINE>final int[] viewport = new int[4];<NEW_LINE>gl.glGetIntegerv(GL.GL_VIEWPORT, viewport, 0)... | GLMatrixFunc.GL_MODELVIEW_MATRIX, mvmatrix, 0); |
1,256,077 | public List<InvoiceCandidateGenerateRequest> expandRequest(@NonNull final InvoiceCandidateGenerateRequest request) {<NEW_LINE>final I_M_InOut inout = request.getModel(I_M_InOut.class);<NEW_LINE>//<NEW_LINE>// Don't create InvoiceCandidates for DocSubType Saldokorrektur (FRESH-454)<NEW_LINE>final I_C_DocType docType = l... | ctx = InterfaceWrapperHelper.getCtx(inout); |
340,395 | protected BSONObject serializeMedia(Media media) {<NEW_LINE>BSONObject r = new BasicBSONObject();<NEW_LINE>r.put(FULL_FIELD_NAME_PLAYER, media.player.name());<NEW_LINE>r.put(FULL_FIELD_NAME_URI, media.uri);<NEW_LINE>if (media.title != null)<NEW_LINE>r.put(FULL_FIELD_NAME_TITLE, media.title);<NEW_LINE>r.put(FULL_FIELD_N... | put(FULL_FIELD_NAME_COPYRIGHT, media.copyright); |
1,728,846 | /* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBObjectInterface#createObject(com.kkalice.adempiere.migrate.MigrateLogger, com.kkalice.adempiere.migrate.MigrateDBEngine, com.kkalice.adempiere.migrate.DBConnection, java.lang.String, java.util.HashMap, java.util.HashMap)<NEW_LINE>*/<NEW_LINE>public boolea... | add(iCol.getSortNulls()); |
584,360 | public void marshall(BaselineOverride baselineOverride, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (baselineOverride == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(baselineOverride.getOperatingSystem(... | baselineOverride.getApprovedPatches(), APPROVEDPATCHES_BINDING); |
1,458,793 | public DeleteFacesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteFacesResult deleteFacesResult = new DeleteFacesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | JsonToken token = context.getCurrentToken(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.