idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
691,922 | final ModifyTrafficMirrorFilterRuleResult executeModifyTrafficMirrorFilterRule(ModifyTrafficMirrorFilterRuleRequest modifyTrafficMirrorFilterRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyTrafficMirrorFilterRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,404,164 | final TestWirelessDeviceResult executeTestWirelessDevice(TestWirelessDeviceRequest testWirelessDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testWirelessDeviceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<TestWirelessDev... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
697,053 | public static ListPatentContactResponse unmarshall(ListPatentContactResponse listPatentContactResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPatentContactResponse.setRequestId(_ctx.stringValue("ListPatentContactResponse.RequestId"));<NEW_LINE>listPatentContactResponse.setPageNum(_ctx.integerValue("ListPatentContact... | (_ctx.integerValue("ListPatentContactResponse.PageSize")); |
1,540,082 | private void renderPolygons(Graphics2D g2) {<NEW_LINE>// Create a local copy of the camera so that mouse doesn't need to block on polygons rendering<NEW_LINE>Se3_F64 worldToCamera;<NEW_LINE>synchronized (this.worldToCamera) {<NEW_LINE>worldToCamera = this.worldToCamera.copy();<NEW_LINE>}<NEW_LINE>for (Poly poly : polyg... | .pts[i], p2); |
972,523 | void fitFSM() {<NEW_LINE>if (fsm != null) {<NEW_LINE>GraphicMinMax gr = new GraphicMinMax();<NEW_LINE>fsm.drawTo(gr);<NEW_LINE>AffineTransform newTrans = new AffineTransform();<NEW_LINE>if (gr.getMin() != null && getWidth() != 0 && getHeight() != 0) {<NEW_LINE>Vector delta = gr.getMax().<MASK><NEW_LINE>double sx = ((do... | sub(gr.getMin()); |
275,103 | // see JCA spec<NEW_LINE>@Override<NEW_LINE>protected boolean engineVerify(byte[] signature) throws SignatureException {<NEW_LINE>ensureInitialized();<NEW_LINE>boolean doCancel = true;<NEW_LINE>if (DEBUG)<NEW_LINE>System.out.print("Verifying signature");<NEW_LINE>try {<NEW_LINE>if (type == T_UPDATE) {<NEW_LINE>if (DEBU... | System.out.println(" by C_Verify"); |
863,355 | private void updateColorItem(TableItem tableItem) {<NEW_LINE>DBVColorOverride co = (DBVColorOverride) tableItem.getData();<NEW_LINE>String text;<NEW_LINE>Object[] values = co.getAttributeValues();<NEW_LINE>if (ArrayUtils.isEmpty(values)) {<NEW_LINE>text = co.getOperator<MASK><NEW_LINE>} else if (values.length == 1) {<N... | ().getExpression() + " ?"; |
1,216,251 | public static DescribeAccountsResponse unmarshall(DescribeAccountsResponse describeAccountsResponse, UnmarshallerContext context) {<NEW_LINE>describeAccountsResponse.setRequestId(context.stringValue("DescribeAccountsResponse.RequestId"));<NEW_LINE>describeAccountsResponse.setInstanceId(context.stringValue("DescribeAcco... | = new ArrayList<DatabasePrivilege>(); |
1,175,921 | private void initViews(View root) {<NEW_LINE>mGetDirectLinkContainer = root.findViewById(R.id.get_direct_link_container);<NEW_LINE>View publishCategoryContainer = root.findViewById(R.id.upload_and_publish_container);<NEW_LINE>mPublishCategoryImage = publishCategoryContainer.findViewById(R.id.upload_and_publish_image);<... | findViewById(R.id.get_direct_link_completed_status_container); |
1,779,674 | void canUpdateTagsForResource(final String api, final String id, final String name, final RestDocumentationFilter updateFilter) throws Exception {<NEW_LINE>final String tag1 = UUID.randomUUID().toString();<NEW_LINE>final String tag2 = UUID<MASK><NEW_LINE>final Set<String> tags = Sets.newHashSet(tag1, tag2);<NEW_LINE>Re... | .randomUUID().toString(); |
389,682 | public static // between the strings str1 and str2 in O(nm)<NEW_LINE>String lcs(char[] A, char[] B) {<NEW_LINE>if (A == null || B == null)<NEW_LINE>return null;<NEW_LINE>final int n = A.length;<NEW_LINE>final int m = B.length;<NEW_LINE>if (n == 0 || m == 0)<NEW_LINE>return null;<NEW_LINE>int[][] dp = new int[n <MASK><N... | + 1][m + 1]; |
366,400 | // Package protected to allow test case access<NEW_LINE>boolean filterContentType(SampleResult result) {<NEW_LINE>String includeExp = getContentTypeInclude();<NEW_LINE>String excludeExp = getContentTypeExclude();<NEW_LINE>// If no expressions are specified, we let the sample pass<NEW_LINE>if ((includeExp == null || inc... | testPattern(excludeExp, sampleContentType, false); |
1,485,911 | void doWrite(Object value) {<NEW_LINE>// common-case - constants or JDK types<NEW_LINE>if (value instanceof String || jsonInput || value instanceof Number || value instanceof Boolean || value == null) {<NEW_LINE>String valueString = (value == null ? "null" : value.toString());<NEW_LINE>if (value instanceof String && !j... | BytesArray ba = pool.get(); |
1,483,585 | private Mono<Response<CheckRestrictionsResultInner>> checkAtResourceGroupScopeWithResponseAsync(String resourceGroupName, CheckRestrictionsRequest parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint()... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,013,393 | public void deleteFoldersId(String folderId, String ifMatch, Boolean recursive) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'folderId' is set<NEW_LINE>if (folderId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'folderId' when... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
1,136,785 | private static void addWhitespace(Document targetDoc) {<NEW_LINE>try {<NEW_LINE>XPathExpression xpath = XPathFactory.newInstance().newXPath().compile(XPATH_COMMENT_EXPRESSION);<NEW_LINE>NodeList matchingNodes = (NodeList) xpath.evaluate(targetDoc, XPathConstants.NODESET);<NEW_LINE>Node text1 = targetDoc.createTextNode(... | parent.insertBefore(matching, text); |
661,533 | public void addExternalClassSources(ClassSource_Aggregate rootClassSource) throws ClassSource_Exception {<NEW_LINE>// TODO: Need to find a shorter name to use for these.<NEW_LINE>// TODO: Need to make sure the names of these are different<NEW_LINE>// than the module element names.<NEW_LINE>List<MASK><NEW_LINE>if (useAp... | <String> useAppLibPaths = getAppLibPaths(); |
451,578 | public String toAlluxioPath(String ufsPath) throws IOException {<NEW_LINE>String suffix = ufsPath.endsWith("/") ? "/" : "";<NEW_LINE>AlluxioURI ufsUri = new AlluxioURI(ufsPath);<NEW_LINE>// first look for an exact match<NEW_LINE>if (mPathMap.inverse().containsKey(ufsUri)) {<NEW_LINE>AlluxioURI match = mPathMap.inverse(... | <AlluxioURI, AlluxioURI> longestPrefix = null; |
1,487,324 | private static void generateStaticFieldsWithDefaultValues(ClassCreator annotationLiteral, List<MethodInfo> defaultOfClassType) {<NEW_LINE>if (defaultOfClassType.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MethodCreator staticConstructor = annotationLiteral.getMethodCreator(Methods.CLINIT, void.class);<NEW_LINE>st... | (defaultValueStaticFieldName(method), returnTypeName); |
1,173,162 | public void handleRequest(final HttpServerExchange exchange) throws Exception {<NEW_LINE>RateLimitResponse rateLimitResponse = rateLimiter.handleRequest(exchange, config.getKey());<NEW_LINE>if (rateLimitResponse.allow) {<NEW_LINE>Handler.next(exchange, next);<NEW_LINE>} else {<NEW_LINE>exchange.getResponseHeaders().add... | ) : config.getErrorCode()); |
903,870 | public Result implement(EnumerableRelImplementor implementor, Prefer pref) {<NEW_LINE>final BlockBuilder builder = new BlockBuilder();<NEW_LINE>final Result leftResult = implementor.visitChild(this, 0, (EnumerableRel) left, pref);<NEW_LINE>Expression leftExpression = builder.append("left", leftResult.block);<NEW_LINE>f... | ), "$box" + getCorrelVariable()); |
1,071,177 | private BucketReduceResult mergeConsecutiveBuckets(List<Bucket> reducedBuckets, int mergeInterval, int roundingIdx, RoundingInfo roundingInfo, ReduceContext reduceContext) {<NEW_LINE>List<Bucket> <MASK><NEW_LINE>List<Bucket> sameKeyedBuckets = new ArrayList<>();<NEW_LINE>double key = roundingInfo.rounding.round(reduced... | mergedBuckets = new ArrayList<>(); |
866,129 | public void handleEvent(Event event) {<NEW_LINE>try {<NEW_LINE>String url_str = feedUrl.getText();<NEW_LINE>URL url = new URL(url_str);<NEW_LINE>Map user_data = new HashMap();<NEW_LINE>user_data.put(SubscriptionManagerUI.SUB_EDIT_MODE_KEY, Boolean.TRUE);<NEW_LINE>boolean anonymous = anonCheck.getSelection();<NEW_LINE>S... | encodeString(subRSS.getPublicKey()); |
54,543 | private static NodeEntry parseNode(ConfigurationNode configNode, String keyFieldName) {<NEW_LINE>Map<Object, ? extends ConfigurationNode> children = configNode.getChildrenMap();<NEW_LINE>if (children.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// if children.size == 1 and the only entry doesn't have a key ca... | children.entrySet(), null); |
1,668,094 | public void externalCompactionFailed(ExternalCompactionId ecid) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (closed)<NEW_LINE>return;<NEW_LINE>if (!externalCompactionsCommitting.add(ecid)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ExternalCompactionInfo ecInfo = externalCompactions.get(ecid);<NE... | log.debug("Processed external compaction failure {}", ecid); |
1,116,850 | protected void handlePostAsync(RoutingContext event, MultiMap form) throws Exception {<NEW_LINE>QuarkusBootstrap existing = (QuarkusBootstrap) DevConsoleManager.getQuarkusBootstrap();<NEW_LINE>try (TempSystemProperties properties = new TempSystemProperties()) {<NEW_LINE>for (Map.Entry<String, String> i : config.entrySe... | -> s.contains("container")); |
1,415,989 | protected static void patchRsa256ForAuth(String deviceId, String publicKeyFilePath, String projectId, String cloudRegion, String registryName) throws GeneralSecurityException, IOException {<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefault().createScoped(CloudIotScopes.all());<NEW_LINE>Jso... | projectId, cloudRegion, registryName, deviceId); |
1,732,945 | public final GitProgressSupport scanStatus(final VCSContext context) {<NEW_LINE>Set<File> repositories = GitUtils.getRepositoryRoots(context);<NEW_LINE>if (repositories.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>} else {<NEW_LINE>final Map<File, Collection<File>> toRefresh = new HashMap<File, Collection<File>>(reposit... | filterForRepository(context, repository))); |
1,701,760 | public Entry<K, V> firstEntry() {<NEW_LINE>atomicOperationsManager.acquireReadLock(this);<NEW_LINE>try {<NEW_LINE>acquireSharedLock();<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>BucketPath bucketPath = getBucket(HASH_CODE_MIN_VALUE, atomicOperation);<NEW_LINE>final long bucketPointer = directory.getNodePointer(bucke... | OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation(); |
878,215 | public static void writeFilePart(OutputStream output, FilePart filePart, String boundary) throws IOException {<NEW_LINE>IOUtils.write(StringTools.TWO_HYPHENS + boundary, output, StandardCharsets.UTF_8);<NEW_LINE>IOUtils.write(StringTools.CRLF, output, StandardCharsets.UTF_8);<NEW_LINE>IOUtils.write("Content-Disposition... | CRLF, output, StandardCharsets.UTF_8); |
780,302 | public ValidationInfo validate(VALUETYPE newValue) {<NEW_LINE>if (validating) {<NEW_LINE>return new ValidationInfo(true);<NEW_LINE>}<NEW_LINE>ValidationInfo resultValidation = new ValidationInfo(true);<NEW_LINE>try {<NEW_LINE>validating = true;<NEW_LINE>// noinspection rawtypes<NEW_LINE>SwtParameterValidator[] validato... | .info += "\n" + validationInfo.info; |
1,342,843 | public static AlignmentInterval clipAlignmentInterval(final AlignmentInterval input, final int clipLengthOnRead, final boolean clipFrom3PrimeEnd) {<NEW_LINE>Utils.nonNull(input);<NEW_LINE>if (clipLengthOnRead < 0) {<NEW_LINE>throw new IllegalArgumentException("requesting negative clip length: " + clipLengthOnRead + " o... | AlignmentInterval.NO_AS, AlnModType.UNDERGONE_OVERLAP_REMOVAL); |
9,946 | private JPanel initializeInnerFrame(Actor actorToInitializeFieldsWith) {<NEW_LINE>JPanel innerPanel = new JPanel();<NEW_LINE>GridBagLayout gridBagLayout = new GridBagLayout();<NEW_LINE>gridBagLayout.columnWeights = new double[] { 0.0, 1.0 };<NEW_LINE>innerPanel.setLayout(gridBagLayout);<NEW_LINE>JLabel lblActor = new J... | setText(actorToInitializeFieldsWith.getRole()); |
1,124,205 | public int compareTo(ExecutableTypeData o2) {<NEW_LINE>ExecutableTypeData o1 = this;<NEW_LINE>ProcessorContext context = ProcessorContext.getInstance();<NEW_LINE>if (canDelegateTo(o2)) {<NEW_LINE>if (!o2.canDelegateTo(this)) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>} else if (o2.canDelegateTo(this)) {<NEW_LINE>return -... | ), o2.getMethod()); |
1,514,079 | public void onPostLinkableClicked(Post post, PostLinkable linkable) {<NEW_LINE>if (linkable.type == PostLinkable.Type.QUOTE) {<NEW_LINE>Post linked = findPostById((int) linkable.value);<NEW_LINE>if (linked != null) {<NEW_LINE>threadPresenterCallback.showPostsPopup(post, Collections.singletonList(linked));<NEW_LINE>}<NE... | site.board(link.board); |
979,087 | // OnLoadedListener implementation.<NEW_LINE>@Override<NEW_LINE>public void onNativeAdLoaded(NativeAd nativeAd) {<NEW_LINE>// If this callback occurs after the activity is destroyed, you must call<NEW_LINE>// destroy and return or you may get a memory leak.<NEW_LINE>boolean isDestroyed = false;<NEW_LINE>refresh.setEnab... | R.layout.ad_unified, null); |
105,387 | final GetAutoTerminationPolicyResult executeGetAutoTerminationPolicy(GetAutoTerminationPolicyRequest getAutoTerminationPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAutoTerminationPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
668,643 | public static GetAsrVocabResponse unmarshall(GetAsrVocabResponse getAsrVocabResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAsrVocabResponse.setRequestId(_ctx.stringValue("GetAsrVocabResponse.RequestId"));<NEW_LINE>getAsrVocabResponse.setCode(_ctx.stringValue("GetAsrVocabResponse.Code"));<NEW_LINE>getAsrVocabResponse... | (_ctx.booleanValue("GetAsrVocabResponse.Success")); |
1,483,891 | public void invokePost() {<NEW_LINE>StringEntity stringEntity = new StringEntity(prepareRequest());<NEW_LINE>HttpPost httpPost = new HttpPost("https://reqbin.com/echo/post/json");<NEW_LINE>httpPost.setEntity(stringEntity);<NEW_LINE>httpPost.setHeader("Accept", "application/json");<NEW_LINE>httpPost.setHeader("Content-t... | result = EntityUtils.toString(entity); |
1,330,873 | public static Map<String, Object> merge(Map<String, Object> source, Map<String, Object> defaultMap) {<NEW_LINE>if (source == null) {<NEW_LINE>source = Collections.emptyMap();<NEW_LINE>}<NEW_LINE>if (defaultMap == null) {<NEW_LINE>defaultMap = Collections.emptyMap();<NEW_LINE>}<NEW_LINE>Map<String, Object> result = new ... | sourceValue = source.get(key); |
446,238 | private void drawCube(GL2 gl) {<NEW_LINE>// Six faces of cube<NEW_LINE>// Top face<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glRotatef(-90, 1, 0, 0);<NEW_LINE>gl.glRotatef(180, 0, 0, 1);<NEW_LINE>drawFace(gl, size, color, border, "Y+");<NEW_LINE>gl.glPopMatrix();<NEW_LINE>// Front face<NEW_LINE>drawFace(gl, size, color, ... | size, color, border, "Y-"); |
1,759,666 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayer(targetPointer.getFirst(game, source));<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>String cardName = (String) game.getState().get... | toString() + ChooseACardNameEffect.INFO_KEY); |
353,993 | public boolean isOutputUpToDate(@Nonnull ArtifactPackagingItemOutputState state) {<NEW_LINE>final SmartList<Pair<String, <MASK><NEW_LINE>if (cachedDestinations.size() != myDestinations.size()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (DestinationInfo info : myDestinations) {<NEW_LINE>final VirtualFile outputFil... | Long>> cachedDestinations = state.myDestinations; |
1,386,893 | public NtpPayload unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NtpPayload ntpPayload = new NtpPayload();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken()... | int originalDepth = context.getCurrentDepth(); |
670,221 | public void execute(ActivityExecution execution) {<NEW_LINE>readFields(execution);<NEW_LINE>List<String> argList = new ArrayList<String>();<NEW_LINE>argList.add(commandStr);<NEW_LINE>if (arg1Str != null)<NEW_LINE>argList.add(arg1Str);<NEW_LINE>if (arg2Str != null)<NEW_LINE>argList.add(arg2Str);<NEW_LINE>if (arg3Str != ... | execution.setVariable(resultVariableStr, result); |
1,520,072 | public static DescribeEarlyWarningResponse unmarshall(DescribeEarlyWarningResponse describeEarlyWarningResponse, UnmarshallerContext context) {<NEW_LINE>describeEarlyWarningResponse.setRequestId(context.stringValue("DescribeEarlyWarningResponse.RequestId"));<NEW_LINE>describeEarlyWarningResponse.setHasWarning(context.b... | ("DescribeEarlyWarningResponse.EarlyWarnings[" + i + "].Frequency")); |
397,294 | public void renderHTML(PrintWriter writer, Map<String, String> params) {<NEW_LINE>int brokerId = Integer.parseInt(params.get("brokerid"));<NEW_LINE>String clusterName = params.get("cluster");<NEW_LINE>printHeader(writer);<NEW_LINE>writer.print("<div> <p><a href=\"/\">Home</a> > " + "<a href=\"/servlet/clusterinfo?name=... | generateBrokerHtml(writer, clusterName, brokerId); |
1,213,693 | private static void configureFileAnalyzer(String fileSpec, String analyzer) {<NEW_LINE>boolean prefix = false;<NEW_LINE>// removing '.' from file specification<NEW_LINE>// expecting either ".extensionName" or "prefixName."<NEW_LINE>if (fileSpec.endsWith(".")) {<NEW_LINE>fileSpec = fileSpec.substring(0, fileSpec.lastInd... | , AnalyzerGuru.findFactory(analyzer)); |
521,803 | public void drawTextFieldCursor(Graphics g, TextArea ta) {<NEW_LINE>Style style = ta.getStyle();<NEW_LINE>Font f = style.getFont();<NEW_LINE>int cursorY;<NEW_LINE>if (ta.isSingleLineTextArea()) {<NEW_LINE>switch(ta.getVerticalAlignment()) {<NEW_LINE>case Component.BOTTOM:<NEW_LINE>cursorY = ta.getY() + ta.getHeight() -... | concatenateAlpha(style.getFgAlpha()); |
944,958 | final DescribePatchGroupStateResult executeDescribePatchGroupState(DescribePatchGroupStateRequest describePatchGroupStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePatchGroupStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | invoke(request, responseHandler, executionContext); |
430,974 | public static CdmTypeAttributeDefinition fromData(final CdmCorpusContext ctx, final JsonNode obj, final String entityName) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final CdmTypeAttributeDefinition typeAttribute = ctx.getCorpus().makeObject(CdmObjectType.TypeAttributeDef, obj.has("name") ?... | obj.get("resolutionGuidance"))); |
1,769,487 | /*<NEW_LINE>* StringToSign = VERB + "\n" + Content-Encoding + "\n" Content-Language +<NEW_LINE>* "\n" Content-Length + "\n" Content-MD5 + "\n" + Content-Type + "\n" +<NEW_LINE>* Date + "\n" + If-Modified-Since + "\n" If-Match + "\n" If-None-Match +<NEW_LINE>* "\n" If-Unmodified-Since + "\n" Range + "\n" CanonicalizedHe... | .format("String to sign: \"%s\"", stringToSign)); |
1,624,288 | void addMenuItems() {<NEW_LINE>assert EventQueue.isDispatchThread();<NEW_LINE>if (tasks == null || tasks.getSimpleTasks() == null) {<NEW_LINE>// build tool cli error?<NEW_LINE>addConfigureToolMenuItem();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// ui<NEW_LINE>VerticalGridLayout vgl = new VerticalGridLayout();<NEW_LINE>getP... | = new LinkedHashSet<>(simpleTasks); |
444,602 | public void generateCode(MethodVisitor mv, CodeFlow cf) {<NEW_LINE>cf.loadEvaluationContext(mv);<NEW_LINE>String leftDesc = getLeftOperand().exitTypeDescriptor;<NEW_LINE>String rightDesc = getRightOperand().exitTypeDescriptor;<NEW_LINE>boolean leftPrim = CodeFlow.isPrimitive(leftDesc);<NEW_LINE>boolean rightPrim = Code... | mv.visitJumpInsn(IFNE, notZero); |
1,293,988 | protected DataSource buildAndInitMetaDbDataSource(Pair<String, Integer> metaDbAvailableAddr, int xport) {<NEW_LINE>// Note: Xproto is enabled when property in server.properties is enabled.<NEW_LINE>// Global switch.<NEW_LINE>final int defaultXport = XConnectionManager.getInstance().getMetaDbPort();<NEW_LINE>if (default... | this.metaDbProp, this.conf); |
958,007 | private <T> List<T> doFind(RedisOperationChain criteria, long offset, int rows, String keyspace, Class<T> type) {<NEW_LINE>if (criteria == null || (CollectionUtils.isEmpty(criteria.getOrSismember()) && CollectionUtils.isEmpty(criteria.getSismember())) && criteria.getNear() == null) {<NEW_LINE>return getAdapter().getAll... | ).read(type, data); |
763,943 | private void writeRepositoryMethodConfiguration(Class<?> typeToInspect, Class<?> repositoryDomainType, MethodFilter filter) {<NEW_LINE>ReflectionUtils.doWithMethods(typeToInspect, method -> {<NEW_LINE>Set<Class<?>> classes = TypeUtils.resolveTypesInSignature(ResolvableType<MASK><NEW_LINE>classes.stream().filter(it -> !... | .forMethodReturnType(method, typeToInspect)); |
443,052 | private String processUpdateAssetGroupDetails(final CreateUpdateAssetGroupDetails updateAssetGroupDetails, final Map<String, Object> assetGroupAlias, String userId) throws PacManException {<NEW_LINE>try {<NEW_LINE>AssetGroupDetails existingAssetGroupDetails = assetGroupRepository.findByGroupName(updateAssetGroupDetails... | setCreatedBy(updateAssetGroupDetails.getCreatedBy()); |
511,588 | private void checkForUniqueNetNames(HDLCircuit hdlCircuit) throws HDLException {<NEW_LINE>ArrayList<HDLNet> nets = hdlCircuit.getNets();<NEW_LINE>// try to resolve duplicate names<NEW_LINE>for (HDLNet n : nets) if (n.isUserNamed())<NEW_LINE>for (HDLNet nn : nets) if (n.getName().equalsIgnoreCase(nn.getName()) && n != n... | getName() + (i++); |
1,492,373 | public float noise2(float x, float y) {<NEW_LINE>int bx0, bx1, by0, by1, b00, b10, b01, b11;<NEW_LINE>float rx0, rx1, ry0, ry1, q[], sx, sy, a, b, t, u, v;<NEW_LINE>int i, j;<NEW_LINE>if (start) {<NEW_LINE>start = false;<NEW_LINE>init();<NEW_LINE>}<NEW_LINE>t = x + N;<NEW_LINE>bx0 = ((int) t) & BM;<NEW_LINE>bx1 = (bx0 ... | ((int) t) & BM; |
1,461,229 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (!getAppidBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appid_);<NEW_LINE>}<NEW_LINE>if (!getDeviceidBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessage... | writeString(output, 2, deviceid_); |
1,767,453 | public void handleMapNotifyEvent(XEvent xev) {<NEW_LINE>removeStartupNotification();<NEW_LINE>// See 6480534.<NEW_LINE>isUnhiding |= isWMStateNetHidden();<NEW_LINE>super.handleMapNotifyEvent(xev);<NEW_LINE>if (!ENABLE_REPARENTING_CHECK && delayedModalBlocking) {<NEW_LINE>// case of non-re-parenting WM<NEW_LINE>// (for ... | getDisplay(), getWindow()); |
71,846 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.set(Position... | (Parser.CoordinateFormat.HEM_DEG_MIN_MIN)); |
1,209,194 | public DeleteGrantResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteGrantResult deleteGrantResult = new DeleteGrantResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
955,511 | protected Object singleFieldToTuple(FieldDescriptor fieldDescriptor, Object fieldValue) {<NEW_LINE>assert fieldDescriptor.getType() != FieldDescriptor.Type.MESSAGE : "messageToFieldSchema called with field of type " + fieldDescriptor.getType();<NEW_LINE>if (fieldDescriptor.isRepeated()) {<NEW_LINE>// The protobuf contr... | NonSpillableDataBag(fieldValueList.size()); |
68,639 | public void paint(Graphics2D g, int w, int h) {<NEW_LINE>if (!draw_grid) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>g.setColor(mGridColor);<NEW_LINE>int draw_width = w - ins_left - ins_right;<NEW_LINE>float e = 0.0001f * (maxx - minx);<NEW_LINE>FontMetrics fm = g.getFontMetrics();<NEW_LINE>int ascent = fm.getAscent();<NEW_... | int draw_height = h - ins_top - ins_left; |
750,058 | public InteractionResult useOn(UseOnContext context) {<NEW_LINE>Player player = context.getPlayer();<NEW_LINE>if (player != null) {<NEW_LINE>Level world = context.getLevel();<NEW_LINE>BlockPos pos = context.getClickedPos();<NEW_LINE>BlockEntity tile = WorldUtils.getTileEntity(world, pos);<NEW_LINE>if (tile != null || !... | player, MekanismLang.DICTIONARY_BLOCK_ENTITY_TYPE_TAGS_FOUND, tileTags); |
657,937 | public ListenableFuture<Void> invoke(final ShenyuGrpcCallRequest callParams) {<NEW_LINE>MethodDescriptor.MethodType methodType = callParams.getMethodDescriptor().getType();<NEW_LINE>List<DynamicMessage> requestList = callParams.getRequests();<NEW_LINE>StreamObserver<DynamicMessage> responseObserver = callParams.getResp... | CompositeStreamObserver.of(responseObserver, doneObserver); |
1,764,432 | public MMovement createMovement() throws Exception {<NEW_LINE>MProductionLine[] lines = getLines();<NEW_LINE>if (lines.length == 0) {<NEW_LINE>// nothing to create;<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>MProductionBatch batch = getParent();<NEW_LINE>MMovement move = new MMovement(getCtx(), 0, get_TrxName());<NEW_LI... | "M_Warehouse_To_ID", wh.getM_Warehouse_ID()); |
1,179,221 | public void run() {<NEW_LINE>try {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>if (parentObject instanceof ParallelTileObject) {<NEW_LINE>((ParallelTileObject) parentObject).updateStatus(Status.PROCESSING);<NEW_LINE>imageData.getHierarchy().fireObjectClassificationsChangedEvent(this, Collections.sing... | endTime - startTime) / 1000.)); |
1,050,792 | public static void main(String[] args) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException {<NEW_LINE>// Initialize a wallet to hold identities used to access the network.<NEW_LINE>String walletPath = "/opt/test/wallet";<NEW_LINE>Path walletDirectory = Paths.get(walletPath);<NEW_... | networkConfigFile = Paths.get(connectProfilePath); |
1,317,943 | private void disassemble(IBootstrapMethodsAttribute bootstrapMethodsAttribute, StringBuffer buffer, String lineSeparator, int tabNumber, IConstantPool constantPool) {<NEW_LINE>writeNewLine(buffer, lineSeparator, tabNumber);<NEW_LINE>buffer.append(Messages.disassembler_bootstrapmethodattributesheader);<NEW_LINE>writeNew... | buffer, lineSeparator, tabNumber + 1); |
640,202 | public void populate(final RubyModule target, final Class clazz) {<NEW_LINE>assert clazz == this.clazz : "populator for " + this.clazz + " used for " + clazz;<NEW_LINE>// fallback on non-pregenerated logic<NEW_LINE>// populate method index; this is done statically in generated code<NEW_LINE>AnnotationHelper.populateMet... | > methods = entry.getValue(); |
1,740,071 | protected boolean someToSuccess(HttpExchange exchange) {<NEW_LINE><MASK><NEW_LINE>switch(current) {<NEW_LINE>case COMMIT:<NEW_LINE>case CONTENT:<NEW_LINE>{<NEW_LINE>// Mark atomically the request as completed, with respect<NEW_LINE>// to concurrency between request success and request failure.<NEW_LINE>if (!exchange.re... | RequestState current = requestState.get(); |
1,216,866 | final UpdateClusterSettingsResult executeUpdateClusterSettings(UpdateClusterSettingsRequest updateClusterSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateClusterSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | (super.beforeMarshalling(updateClusterSettingsRequest)); |
296,637 | public static synchronized boolean startup(boolean isClient) {<NEW_LINE>// Already started<NEW_LINE>if (log != null)<NEW_LINE>return true;<NEW_LINE>// Check Version<NEW_LINE>if (isClient && !Login.isJavaOK(isClient))<NEW_LINE>System.exit(1);<NEW_LINE>// init logging in Ini<NEW_LINE>Ini.setClient(isClient);<NEW_LINE>// ... | CLogger.getCLogger(Adempiere.class); |
796,201 | public static AlertMessage fromByteArray(final byte[] byteArray) throws HandshakeException {<NEW_LINE>DatagramReader reader = new DatagramReader(byteArray);<NEW_LINE><MASK><NEW_LINE>byte descCode = reader.readNextByte();<NEW_LINE>AlertLevel level = AlertLevel.getLevelByCode(levelCode);<NEW_LINE>AlertDescription descrip... | byte levelCode = reader.readNextByte(); |
1,537,876 | private void recoverFromTranslogInternal(TranslogRecoveryRunner translogRecoveryRunner, long recoverUpToSeqNo) throws IOException {<NEW_LINE>Translog.<MASK><NEW_LINE>final int opsRecovered = 0;<NEW_LINE>final long translogFileGen = Long.parseLong(lastCommittedSegmentInfos.getUserData().get(Translog.TRANSLOG_GENERATION_... | TranslogGeneration translogGeneration = translog.getGeneration(); |
201,819 | private static int shardingNodeCheck(String stmt, int offset) throws SQLSyntaxErrorException {<NEW_LINE>if (stmt.length() > offset + 10) {<NEW_LINE>char c1 = stmt.charAt(++offset);<NEW_LINE>char c2 = stmt.charAt(++offset);<NEW_LINE>char c3 = stmt.charAt(++offset);<NEW_LINE>char c4 = stmt.charAt(++offset);<NEW_LINE>char... | = stmt.charAt(++offset); |
1,244,818 | public void generateReversion(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>StockMove stockMove = request.getContext().asType(StockMove.class);<NEW_LINE>Optional<StockMove> reversion = Beans.get(StockMoveService.class).generateReversion(Beans.get(StockMoveRepository.class).find(stockMove.get... | (I18n.get("No reversion generated")); |
96,576 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new <MASK><NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>// create window<NEW_LINE>String stmtTextCreate = "@public @buseventtype create schema MyEvent(cid string);\n";<NEW_LINE>stmtTextCreate += namedWindow ? "@public create window... | String[] { "c0", "c1" }; |
363,281 | public void generateCode(BlockScope currentScope, CodeStream codeStream) {<NEW_LINE>// even if not reachable, variable must be added to visible if allocated (28298)<NEW_LINE>if (this.binding.resolvedPosition != -1) {<NEW_LINE>codeStream.addVisibleLocalVariable(this.binding);<NEW_LINE>}<NEW_LINE>if ((this.bits & IsReach... | generateCode(currentScope, codeStream, true); |
1,159,856 | public RestResponse buildResponse(PostStartTrialResponse response, XContentBuilder builder) throws Exception {<NEW_LINE>PostStartTrialResponse.<MASK><NEW_LINE>builder.startObject();<NEW_LINE>builder.field("acknowledged", startTrialRequest.isAcknowledged());<NEW_LINE>if (status.isTrialStarted()) {<NEW_LINE>builder.field... | Status status = response.getStatus(); |
325,464 | public void deserialize(ByteBuffer buffer) throws IOException {<NEW_LINE>this.clear();<NEW_LINE>// read meta<NEW_LINE>this.minValue = buffer.getInt();<NEW_LINE>this.maxValue = buffer.getInt();<NEW_LINE>this.runOptimized = buffer.get() == (byte) 1;<NEW_LINE>// read ebm<NEW_LINE>MutableRoaringBitmap ebm = new MutableRoar... | ] ba = new MutableRoaringBitmap[bitDepth]; |
1,149,408 | // //////////////////////////////////////////////////////////////////////////<NEW_LINE>// Methods //<NEW_LINE>// //////////////////////////////////////////////////////////////////////////<NEW_LINE>Runner newRunner(final PayaraServer srv, final Command cmd, ... | CommandException(CommandException.RUNNER_INIT, ie); |
354,390 | @WithSpan<NEW_LINE>public Task<UsageQueryResult> query(@ActionParam(PARAM_RESOURCE) @Nonnull String resource, @ActionParam(PARAM_DURATION) @Nonnull WindowDuration duration, @ActionParam(PARAM_START_TIME) @com.linkedin.restli.server.annotations.Optional Long startTime, @ActionParam(PARAM_END_TIME) @com.linkedin.restli.s... | setValue(endTime.toString()); |
122,143 | public void testTask1BlockedByTask2Canceled(String execSvcJNDIName, PrintWriter out) throws Exception {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Future<Integer> future1 = (Future<Integer>) futures.remove("testTask1BlockedByTask2-future1-" + execSvcJNDIName);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Futu... | assertTrue(future2.isDone()); |
1,426,472 | public void createLines() {<NEW_LINE>for (Vector<Object> line : getData().values()) {<NEW_LINE>int id = (Integer) line.get(5);<NEW_LINE>MWMInOutBoundLine ioBoundLine = new MWMInOutBoundLine(Env.getCtx(), id, null);<NEW_LINE>for (MWMInOutBoundLineMA ioBoundLineMA : getLinesMA(ioBoundLine)) {<NEW_LINE>ioBoundLineMA.delet... | product.getM_AttributeSet_ID(), null); |
776,802 | static void encode(EncodeState state, BigInteger i) {<NEW_LINE>// System.out.println("Encoding integral " + i);<NEW_LINE>if (i.equals(BigInteger.ZERO)) {<NEW_LINE>state.add(INT_ZERO_CODE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int n = minimalByteCount(i);<NEW_LINE>if (n > 0xff) {<NEW_LINE>throw new IllegalArgumentExcept... | ] bytes = i.toByteArray(); |
1,528,681 | protected static Options createNewOptions() {<NEW_LINE>Options options = new Options();<NEW_LINE>Option opHost = Option.builder(HOST_ARGS).longOpt(HOST_NAME).required().argName(HOST_NAME).hasArg().desc("Host Name (required)").build();<NEW_LINE>options.addOption(opHost);<NEW_LINE>Option opPort = Option.builder(PORT_ARGS... | desc("Password (required)").build(); |
257,371 | public Condition createPredicateResourceId(@Nullable DbColumn theSourceJoinColumn, String theResourceName, List<List<IQueryParameterType>> theValues, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) {<NEW_LINE>Set<ResourcePersistentId> allOrPids = null;<NEW_LINE>SearchFilterPa... | || operation == SearchFilterParser.CompareOperation.ne; |
1,754,732 | public static DescribeTraceInfoNodeListResponse unmarshall(DescribeTraceInfoNodeListResponse describeTraceInfoNodeListResponse, UnmarshallerContext context) {<NEW_LINE>describeTraceInfoNodeListResponse.setRequestId(context.stringValue("DescribeTraceInfoNodeListResponse.RequestId"));<NEW_LINE>NodeListInfo nodeListInfo =... | ("DescribeTraceInfoNodeListResponse.NodeListInfo.EdgeList[" + i + "].StartId")); |
1,496,426 | private static final String buildMsg(final DocTypeQuery query) {<NEW_LINE>final IADReferenceDAO adReferenceDAO = Services.get(IADReferenceDAO.class);<NEW_LINE>final String docBaseTypeName = adReferenceDAO.retrieveListNameTrl(Env.getCtx(), X_C_DocType.DOCBASETYPE_AD_Reference_ID, query.getDocBaseType());<NEW_LINE>final ... | ", @DocSubType@: " + query.getDocSubType()); |
1,736,000 | private static void checksumFromLuceneFile(Directory directory, String file, Map<String, StoreFileMetaData> builder, Logger logger, Version version, boolean readFileAsHash) throws IOException {<NEW_LINE>final String checksum;<NEW_LINE><MASK><NEW_LINE>try (IndexInput in = directory.openInput(file, IOContext.READONCE)) {... | final BytesRefBuilder fileHash = new BytesRefBuilder(); |
1,527,680 | public Graph filter(Subgraph[] graphs) {<NEW_LINE>if (graphs.length > 1) {<NEW_LINE>throw new IllegalArgumentException("Filter accepts a single graph in parameter");<NEW_LINE>}<NEW_LINE>Graph graph = graphs[0];<NEW_LINE>Graph mainGraph = graph.getView().getGraphModel().getGraph();<NEW_LINE>List<Edge> <MASK><NEW_LINE>fo... | edgesToKeep = new ArrayList<>(); |
1,446,661 | public void performOperation(Random rnd, Genome[] parents, int parentIndex, Genome[] offspring, int offspringIndex) {<NEW_LINE>ArrayGenome mother = (ArrayGenome) parents[parentIndex];<NEW_LINE>ArrayGenome father = (ArrayGenome) parents[parentIndex + 1];<NEW_LINE>ArrayGenome offspring1 = (ArrayGenome) this.owner.getPopu... | (geneLength - this.cutLength)); |
250,413 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jLabel2 = new javax.swing.JLabel();<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.Nb... | , 530, Short.MAX_VALUE)); |
1,092,555 | private void updateImage(BufferedImage image, boolean force) {<NEW_LINE>int width = image.getWidth();<NEW_LINE><MASK><NEW_LINE>Graphics2D g = image.createGraphics();<NEW_LINE>myImageHeight = 0;<NEW_LINE>int min = myMin + myGap;<NEW_LINE>int max = height / myArraySize;<NEW_LINE>if (max < min) {<NEW_LINE>max = height / m... | int height = image.getHeight(); |
343,783 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String restorePointCollectionName, 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 null."... | error(new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null.")); |
218,617 | private void wrapUp(@Nullable Throwable throwable) {<NEW_LINE>KafkaUtils.clearConsumerGroupId();<NEW_LINE>if (this.micrometerHolder != null) {<NEW_LINE>this.micrometerHolder.destroy();<NEW_LINE>}<NEW_LINE>publishConsumerStoppingEvent(this.consumer);<NEW_LINE>Collection<TopicPartition> partitions = getAssignedPartitions... | ) -> getGroupId() + ": Consumer stopped"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.