idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,020,607
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.games_info);<NEW_LINE>WindowManager.LayoutParams lp = new WindowManager.LayoutParams();<NEW_LINE>lp.copyFrom(getWindow().getAttributes());<NEW_LINE>lp.width = WindowManager.LayoutParams.MAT...
packageManager.getApplicationInfo(packageName, 0);
1,106,476
void findHistogramPeaks() {<NEW_LINE>// reset data structures<NEW_LINE>peaks.reset();<NEW_LINE>angles.reset();<NEW_LINE>peakAngle = 0;<NEW_LINE>// identify peaks and find the highest peak<NEW_LINE>double largest = 0;<NEW_LINE>int largestIndex = -1;<NEW_LINE>double before = histogramMag[histogramMag.length - 2];<NEW_LIN...
index = peaks.data[i];
1,770,572
public CoverageStringFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CoverageStringFilter coverageStringFilter = new CoverageStringFilter();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
int originalDepth = context.getCurrentDepth();
983,050
private void loadNode132() {<NEW_LINE>ExclusiveLimitStateMachineTypeNode node = new ExclusiveLimitStateMachineTypeNode(this.context, Identifiers.ExclusiveLimitAlarmType_LimitState, new QualifiedName(0, "LimitState"), new LocalizedText("en", "LimitState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(...
.expanded(), false));
498,504
public void sendResponse(RestResponse response) {<NEW_LINE>resp.setContentType(response.contentType());<NEW_LINE>resp.addHeader("Access-Control-Allow-Origin", "*");<NEW_LINE>if (response.status() != null) {<NEW_LINE>resp.setStatus(response.status().getStatus());<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if ...
resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
176,545
public long writeData(final InputStream data) throws IOException, ResourceModelSourceException {<NEW_LINE>if (!isDataWritable()) {<NEW_LINE>throw new IllegalArgumentException("Cannot write to file, it is not configured to be writeable");<NEW_LINE>}<NEW_LINE>ResourceFormatParser resourceFormat = getResourceFormatParser(...
set = parser.parseDocument(temp);
1,203,280
protected String doIt() throws Exception {<NEW_LINE>final ProcessInfo processInfo = getProcessInfo();<NEW_LINE>final boolean jsonPathMissing = !processInfo.getJsonPath().isPresent();<NEW_LINE>if (jsonPathMissing) {<NEW_LINE>throw new AdempiereException("JSONPath is missing!").appendParametersToMessage(<MASK><NEW_LINE>}...
).setParameter("processInfo", processInfo);
980,244
private void createLogRecord(@NonNull final GOClientLogEvent event) {<NEW_LINE>final I_GO_DeliveryOrder_Log logRecord = InterfaceWrapperHelper.newInstance(I_GO_DeliveryOrder_Log.class);<NEW_LINE>logRecord.setAction(event.getAction());<NEW_LINE>logRecord.setGO_ConfigSummary(event.getConfigSummary());<NEW_LINE>logRecord....
setAD_Issue_ID(issueId.getRepoId());
828,348
final StopPipelineExecutionResult executeStopPipelineExecution(StopPipelineExecutionRequest stopPipelineExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopPipelineExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
766,828
public static StdoutHandler inject(List<CliToken> tokens) {<NEW_LINE>List<String> args = StdoutHandler.parseArgs(tokens, NAME);<NEW_LINE>GrepCommand grepCommand = new GrepCommand();<NEW_LINE>if (cli == null) {<NEW_LINE>cli = CLIConfigurator.define(GrepCommand.class);<NEW_LINE>}<NEW_LINE>CommandLine commandLine = <MASK>...
cli.parse(args, true);
90,393
// Initialize a BundleData from a resource quota and configurations and modify the quota accordingly.<NEW_LINE>private BundleData initializeBundleData(final ResourceQuota quota, final ShellArguments arguments) {<NEW_LINE>final double messageRate = (quota.getMsgRateIn() + quota.getMsgRateOut()) / 2;<NEW_LINE>final int m...
double modifiedRate = messageRate * arguments.rateMultiplier;
191,296
public void testTwoTasksInOneTransaction(PrintWriter out) throws Exception {<NEW_LINE>DBIncrementTask taskA = new DBIncrementTask("testTwoTasksInOneTransaction-A");<NEW_LINE>DBIncrementTask taskB = new DBIncrementTask("testTwoTasksInOneTransaction-B");<NEW_LINE>taskA.getExecutionProperties().put(AutoPurge.PROPERTY_NAME...
getStatus(statusA.getTaskId());
40,922
public static void startSpringControllerMethod(String className, String methodName, String methodDesc, Object this1, Object[] arg) {<NEW_LINE>TraceContext ctx = TraceContextManager.getContext(true);<NEW_LINE>if (ctx == null)<NEW_LINE>return;<NEW_LINE>if (conf.profile_spring_controller_method_parameter_enabled) {<NEW_LI...
].toString(), 1024);
1,171,582
void findUsages(@Nonnull FindUsagesProcessPresentation processPresentation, @Nonnull Processor<? super UsageInfo> consumer) {<NEW_LINE>CoreProgressManager.assertUnderProgress(myProgress);<NEW_LINE>try {<NEW_LINE>myProgress.setIndeterminate(true);<NEW_LINE>myProgress.setText<MASK><NEW_LINE>Set<VirtualFile> filesForFastW...
(FindBundle.message("progress.text.scanning.indexed.files"));
1,496,461
private static void decode11(DataInput in, long[] tmp, long[] longs) throws IOException {<NEW_LINE>in.readLongs(tmp, 0, 22);<NEW_LINE>shiftLongs(tmp, 22, longs, 0, 5, MASK16_11);<NEW_LINE>for (int iter = 0, tmpIdx = 0, longsIdx = 22; iter < 2; ++iter, tmpIdx += 11, longsIdx += 5) {<NEW_LINE>long l0 = (tmp[tmpIdx + 0] &...
] >>> 1) & MASK16_4;
1,292,093
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("memory" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.getSubSize() != 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQ...
hubParam = param.getSub(0);
1,604,168
public static void addGeoHash() {<NEW_LINE>// [START fs_geo_add_hash]<NEW_LINE>// Compute the GeoHash for a lat/lng point<NEW_LINE>double lat = 51.5074;<NEW_LINE>double lng = 0.1278;<NEW_LINE>String hash = GeoFireUtils.getGeoHashForLocation(new GeoLocation(lat, lng));<NEW_LINE>// Add the hash and the lat/lng to the doc...
updates.put("geohash", hash);
602,297
private byte[] genMetabitsData() throws IOException {<NEW_LINE>// the metabits is now prefixed by a long specifying the lastTxReleaseTime<NEW_LINE>// used to free the deferedFree allocations. This is used to determine<NEW_LINE>// which commitRecord to access to process the nextbatch of deferred<NEW_LINE>// frees.<NEW_...
FixedOutputStream str = new FixedOutputStream(buf);
77,045
protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) {<NEW_LINE>BeanComponentDefinition innerHandlerDefinition = IntegrationNamespaceUtils.parseInnerHandlerDefinition(element, parserContext);<NEW_LINE>String ref = element.getAttribute(REF_ATTRIBUTE);<NEW_LINE>BeanDefinitionBuilder ...
headersFunction = element.getAttribute("headers-function");
832,674
public void insertTokens(int[] tokens, int completedToken, int position) {<NEW_LINE>if (!this.record)<NEW_LINE>return;<NEW_LINE>tokens = filterTokens(tokens);<NEW_LINE>if (tokens.length == 0)<NEW_LINE>return;<NEW_LINE>if (completedToken > -1 && Parser.statements_recovery_filter[completedToken] != 0)<NEW_LINE>return;<NE...
= new int[10][];
1,126,319
private Variable createVar(Function func, int frameOffset, int offset, int refSize) throws InvalidInputException {<NEW_LINE>if (dontCreateNewVariables) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StackFrame frame = func.getStackFrame();<NEW_LINE>int frameLoc = offset + frameOffset;<NEW_LINE>Variable <MASK><NEW_LINE>if ...
var = frame.getVariableContaining(frameLoc);
367,510
Object reduceNoIterable(VirtualFrame frame, PCycle self, @Cached GetClassNode getClass, @Cached PyObjectLookupAttr lookupAttrNode, @Cached CallUnaryMethodNode callNode, @Cached PyObjectGetIter getIterNode, @Cached BranchProfile indexProfile) {<NEW_LINE>Object type = getClass.execute(self);<NEW_LINE>PList savedList = ge...
execute(frame, it, __SETSTATE__);
1,253,128
private ImmutableList<JSType> parseTemplateArgs(JSType nominalType, Node typeNode, String sourceName, StaticTypedScope scope) {<NEW_LINE>Node typeList = typeNode.getFirstChild();<NEW_LINE>if (typeList == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ArrayList<JSType> <MASK><NEW_LINE>for (Node templateNode = typeLis...
templateArgs = new ArrayList<>();
783,426
private void initQueuesWithStartEnd(final RoutingContext ctx, RouteSegment start, RouteSegment end, RouteSegment recalculationEnd, PriorityQueue<RouteSegment> graphDirectSegments, PriorityQueue<RouteSegment> graphReverseSegments, TLongObjectHashMap<RouteSegment> visitedDirectSegments, TLongObjectHashMap<RouteSegment> v...
startNeg.setParentRoute(RouteSegment.NULL);
240,354
public void drawU(UGraphic ug) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final Dimension2D dimTotal = calculateDimension(stringBounder);<NEW_LINE><MASK><NEW_LINE>if (p1 == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Point2D p2 = getP2(stringBounder);<NEW_LINE>final FtileGeome...
final Point2D p1 = getP1(stringBounder);
1,007,903
protected static Row decodeRow(byte[] value, Handle handle, TiTableInfo tableInfo) {<NEW_LINE>if (handle == null && tableInfo.isPkHandle()) {<NEW_LINE>throw new IllegalArgumentException("when pk is handle, handle cannot be null");<NEW_LINE>}<NEW_LINE>int colSize = tableInfo.getColumns().size();<NEW_LINE>HashMap<Long, T...
= new HashMap<>(colSize);
1,751,448
private void clockAllMatrix(Set<String> needFlushMatrices, boolean wait) throws Exception {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>List<Future> clockFutures = new ArrayList<Future>();<NEW_LINE>for (Map.Entry<String, PSModel> entry : model.getPSModels().entrySet()) {<NEW_LINE>if (needFlushMatrice...
get(i).get();
1,593,043
public static <ARR> void serLong2ArrayHashMap(Long2ObjectOpenHashMap<ARR> obj, ByteBuf buf) {<NEW_LINE>buf.writeInt(obj.size());<NEW_LINE>ObjectIterator<Long2ObjectMap.Entry<ARR>> iter = obj.long2ObjectEntrySet().fastIterator();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Long2ObjectMap.Entry<ARR<MASK><NEW_LINE>buf.writ...
> entry = iter.next();
842,378
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>String err = String.format("failed to revoke port forwarding rules %s, because %s", JSONObjectUtil.toJsonString(to<MASK><NEW_LINE>logger.warn(err);<NEW_LINE>chain.fail(reply.getError());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>VirtualRouterA...
), reply.getError());
1,707,719
private <T> T attr(AttributeKey<T> key, boolean ownAttr) {<NEW_LINE>requireNonNull(key, "key");<NEW_LINE>final AtomicReferenceArray<DefaultAttribute<?>> attributes = this.attributes;<NEW_LINE>if (attributes == null) {<NEW_LINE>if (!ownAttr && rootAttributeMap != null) {<NEW_LINE>return rootAttributeMap.attr(key);<NEW_L...
head = attributes.get(i);
77,646
public static ReadyForServiceResponse unmarshall(ReadyForServiceResponse readyForServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>readyForServiceResponse.setRequestId(_ctx.stringValue("ReadyForServiceResponse.RequestId"));<NEW_LINE>readyForServiceResponse.setCode(_ctx.stringValue("ReadyForServiceResponse.Code"));<...
= new ArrayList<String>();
377,893
private void addCustomFoldingRegionsRecursively(@Nonnull FoldingStack foldingStack, @Nonnull ASTNode node, @Nonnull List<FoldingDescriptor> descriptors, int currDepth) {<NEW_LINE>FoldingStack localFoldingStack = isCustomFoldingRoot(node) <MASK><NEW_LINE>for (ASTNode child = node.getFirstChildNode(); child != null; chil...
? new FoldingStack(node) : foldingStack;
1,475,586
private void buildSegments() {<NEW_LINE>segmentNodes.clear();<NEW_LINE>getChildren().clear();<NEW_LINE>List<T> segments = getSkinnable().getSegments();<NEW_LINE><MASK><NEW_LINE>Callback<T, Node> cellFactory = getSkinnable().getSegmentViewFactory();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>T segment = segments...
int size = segments.size();
317,682
private Element makePlacemarkWithPicture(String name, FeatureColor color, String description, Long timestamp, Element feature, Path path, String coordinates) {<NEW_LINE>// NON-NLS<NEW_LINE>Element placemark = new Element("Placemark", ns);<NEW_LINE>// NON-NLS<NEW_LINE>Element desc = new Element("description", ns);<NEW_L...
addContent(description + "<b>Source Path:</b> " + pathAsString);
1,825,090
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {<NEW_LINE>// NON-NLS<NEW_LINE>Preconditions.checkNotNull(sender, "Sender cannot be null");<NEW_LINE>// NON-NLS<NEW_LINE>Preconditions.checkNotNull(args, "Arguments cannot be null");<NEW_LINE>// NON-NLS<NE...
(SUBCOMMANDS.size()));
1,344,184
public void evaluateNullAnnotations() {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.nullnessDefaultInitialized > 0 || !this.scope.compilerOptions().isAnnotationBasedNullAnalysisEnabled)<NEW_LINE>return;<NEW_LINE>if ((this.tagBits & TagBits.AnnotationNullMASK) != 0) {<NEW_L...
missingNonNullByDefaultAnnotation(this.scope.referenceContext);
1,679,311
public StopUserImportJobResult stopUserImportJob(StopUserImportJobRequest stopUserImportJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopUserImportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
608,209
public Object apply(final Object context, final Options options) throws IOException {<NEW_LINE>if (context == null) {<NEW_LINE>return options.hash("default", "");<NEW_LINE>}<NEW_LINE>String viewName = options.hash("view", "");<NEW_LINE>JsonGenerator generator = null;<NEW_LINE>try {<NEW_LINE>final ObjectWriter writer;<N...
generator = jsonFactory.createJsonGenerator(output);
1,605,082
private List<HandlerMethodArgumentResolver> buildArgumentResolvers(boolean listCapable) {<NEW_LINE>List<HandlerMethodArgumentResolver> resolvers = new ArrayList<>();<NEW_LINE>resolvers.add(new PayloadExpressionArgumentResolver());<NEW_LINE>resolvers.add(new NullAwarePayloadArgumentResolver(this.argumentResolverMessageC...
add(new CollectionArgumentResolver(true));
318,303
private List<Map<String, Object>> imageMatcher(List<Map<String, Object>> images, String[] text, Pattern pat) {<NEW_LINE>int lnNbr = 0;<NEW_LINE>for (String line : text) {<NEW_LINE>line = line.strip();<NEW_LINE>Matcher matcher = pat.matcher(line);<NEW_LINE>if (line.contains("\"\"\"") || line.contains("'''")) {<NEW_LINE>...
options = new HashMap<>();
366,302
protected void bind(SubmissionViewHolder holder, final Item item) {<NEW_LINE>super.bind(holder, item);<NEW_LINE>holder.mPostedTextView.setText(item.getDisplayedTime(mContext));<NEW_LINE>holder.mPostedTextView.append(item.getDisplayedAuthor(mContext, !TextUtils.equals(item.getBy(), mUsername), 0));<NEW_LINE>holder.mMore...
add(item.getId());
1,715,402
// TODO This callback is not called (due to requestPermissions(this.getParent()?), so onCreate() is used<NEW_LINE>@Override<NEW_LINE>public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {<NEW_LINE>if (requestCode == REQUEST_LOCATION) {<NEW_LINE>// Check if ...
onRequestPermissionsResult(requestCode, permissions, grantResults);
677,287
public VAdminProto.AsyncOperationStatusResponse handleRebalanceNode(VAdminProto.InitiateRebalanceNodeRequest request) {<NEW_LINE>VAdminProto.AsyncOperationStatusResponse.Builder response = VAdminProto.AsyncOperationStatusResponse.newBuilder();<NEW_LINE>try {<NEW_LINE>if (!voldemortConfig.isEnableRebalanceService())<NEW...
requestId = rebalancer.rebalanceNode(rebalanceStealInfo);
1,620,670
// Updates a specific notification setting after a user makes a change<NEW_LINE>public void updateSettingForChannelAndType(Channel channel, Type type, String settingName, boolean newValue, long blogId) {<NEW_LINE>String typeName = type.toString();<NEW_LINE>try {<NEW_LINE>switch(channel) {<NEW_LINE>case BLOGS:<NEW_LINE>...
blogJson.put(typeName, blogSetting);
1,034,907
public JSONObject installAllPackages(String kubeconfig, JSONObject jsonEnvMap) throws IOException, InterruptedException, TimeoutException {<NEW_LINE>JSONObject result = new JSONObject();<NEW_LINE>for (String clientName : this.clientPackageService.getNames()) {<NEW_LINE>JSONObject clientInfo = this.clientPackageService....
deployCommand = clientInfo.getString("deployCommand");
1,088,764
static void updateHighlightersByTyping(@Nonnull Project project, @Nonnull DocumentEvent e) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>final Document document = e.getDocument();<NEW_LINE>if (document instanceof DocumentEx && ((DocumentEx) document).isInBulkUpdate())<NEW_LINE>return...
RangeHighlighter highlighter = info.getHighlighter();
500,273
protected <S> void visitDependency(RuleMethodDataCollector dataCollector, MethodRuleDefinition<?, ?> ruleDefinition, ModelType<S> expectedDependency, RuleSourceValidationProblemCollector problems) {<NEW_LINE>if (ruleDefinition.getReferences().isEmpty() && problems.hasProblems()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>L...
> references = ruleDefinition.getReferences();
1,701,069
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject <MASK><NEW_LINE>Card cardFound = null;<NEW_LINE>boolean needShuffle = false;<NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>if (forceToSearchBoth || controlle...
sourceObject = source.getSourceObject(game);
570,811
public AuthConfig createAuthConfig() {<NEW_LINE>try {<NEW_LINE>Class<?> credentialsProviderChainClass = Class.forName("com.amazonaws.auth.DefaultAWSCredentialsProviderChain");<NEW_LINE>Object credentialsProviderChain = credentialsProviderChainClass.getDeclaredConstructor().newInstance();<NEW_LINE>Object credentials = c...
), UTF_8.name());
1,460,381
public Long migrate(final HaWorkVO work) {<NEW_LINE>long vmId = work.getInstanceId();<NEW_LINE>long srcHostId = work.getHostId();<NEW_LINE>VMInstanceVO vm = _instanceDao.findById(vmId);<NEW_LINE>if (vm == null) {<NEW_LINE>s_logger.info("Unable to find vm: " + vmId + ", skipping migrate.");<NEW_LINE>return null;<NEW_LIN...
work.getId(), work);
1,598,220
private int countsArrayIndex(final int bucketIndex, final int subBucketIndex) {<NEW_LINE>assert (subBucketIndex < subBucketCount);<NEW_LINE>assert (bucketIndex == 0 || (subBucketIndex >= subBucketHalfCount));<NEW_LINE>// Calculate the index for the first entry that will be used in the bucket (halfway through subBucketC...
= (bucketIndex + 1) << subBucketHalfCountMagnitude;
1,337,357
protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>reader.readStartElement(XmlNamespace.Messages, XmlElementNames.RootFolder);<NEW_LINE>int totalItemsInView = reader.readAttributeValue(Integer.class, XmlAttributeNames.TotalItemsInView);<NEW_LINE>boolean moreItemsAvailable = !read...
class, XmlAttributeNames.IndexedPagingOffset) : null;
438,582
public void mouseClicked(MouseEvent e) {<NEW_LINE>latestMousePositionX = e.getX();<NEW_LINE>currentMousePositionX = latestMousePositionX;<NEW_LINE>// On double click in a left/right handle, set the interval to the min/max<NEW_LINE>if (e.getClickCount() == 2) {<NEW_LINE>int x = e.getX();<NEW_LINE>int r = settings.select...
controller.setInterval(intervalStart, max);
1,489,124
private void protectControls() {<NEW_LINE>Result result = getResult();<NEW_LINE>final boolean forClass = !forInterface;<NEW_LINE>fieldCheckBox.setEnabled(forClass);<NEW_LINE>returnCheckBox.setEnabled((result.mode == PropertyPattern.READ_WRITE || result.mode == PropertyPattern.READ_ONLY<MASK><NEW_LINE>setCheckBox.setEna...
) && result.withField && forClass);
18,206
public double distance(NumberVector v1, NumberVector v2) {<NEW_LINE>final int dim1 = v1.getDimensionality(), dim2 = v2.getDimensionality();<NEW_LINE>if (dim1 > dim2) {<NEW_LINE>return distance(v2, v1);<NEW_LINE>}<NEW_LINE>final int delta = (int) <MASK><NEW_LINE>// Compute value range, for scaling epsilon:<NEW_LINE>fina...
Math.ceil(dim2 * pDelta);
759,649
public static BufferedImage createHeatMapImage(HeatMapDataset dataset, PaintScale paintScale) {<NEW_LINE>Args.nullNotPermitted(dataset, "dataset");<NEW_LINE>Args.nullNotPermitted(paintScale, "paintScale");<NEW_LINE>int xCount = dataset.getXSampleCount();<NEW_LINE><MASK><NEW_LINE>BufferedImage image = new BufferedImage(...
int yCount = dataset.getYSampleCount();
378,173
public InstanceFleetModifyConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceFleetModifyConfig instanceFleetModifyConfig = new InstanceFleetModifyConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
745,003
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.request.EventRequest request(com.sun.jdi.event.Event a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules...
logCallEnd("com.sun.jdi.event.Event", "request", retValue);
476,705
private static void putDeadlineMessage(JobDataMap jobData, DeadlineMessage deadlineMessage, Serializer serializer) {<NEW_LINE>jobData.put(<MASK><NEW_LINE>jobData.put(MESSAGE_ID, deadlineMessage.getIdentifier());<NEW_LINE>jobData.put(MESSAGE_TIMESTAMP, deadlineMessage.getTimestamp().toString());<NEW_LINE>SerializedObjec...
DEADLINE_NAME, deadlineMessage.getDeadlineName());
1,317,430
public void processEvents(@Nonnull List<? extends VFileEvent> events) {<NEW_LINE>ApplicationManager.getApplication().assertWriteAccessAllowed();<NEW_LINE>int startIndex = 0;<NEW_LINE>int cappedInitialSize = Math.min(events.size(), INNER_ARRAYS_THRESHOLD);<NEW_LINE>List<Runnable> applyEvents <MASK><NEW_LINE>MostlySingul...
= new ArrayList<>(cappedInitialSize);
1,441,517
public int compareTo(final DeliveryServiceMatcher that) {<NEW_LINE>if (this == that || this.equals(that)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>final Set<RequestMatcher> uniqueToThis = new HashSet<RequestMatcher>();<NEW_LINE>uniqueToThis.addAll(this.requestMatchers);<NEW_LINE>final Set<RequestMatcher> uniqueToThat =...
map.put(thatMatcher, that);
1,337,041
private void populatePkcs10CsrDetails() throws CryptoException {<NEW_LINE>jtfCsrFormat.setText(res.getString("DSignCsr.jtfCsrFormat.Pkcs10.text"));<NEW_LINE>jtfCsrFormat.setCaretPosition(0);<NEW_LINE>jdnCsrSubject.setDistinguishedName(pkcs10Csr.getSubject());<NEW_LINE>try {<NEW_LINE>csrPublicKey = new JcaPKCS10Certific...
extReqAttr = pkcs10Csr.getAttributes(pkcs_9_at_extensionRequest);
1,019,209
public void start(Xid xid, int flag) throws XAException {<NEW_LINE>if (flag != XAResource.TMNOFLAGS && flag != XAResource.TMJOIN) {<NEW_LINE>throw new EhcacheXAException("Start flag not supported : " + xaResourceFlagsToString(flag), XAException.XAER_INVAL);<NEW_LINE>}<NEW_LINE>if (currentXid != null) {<NEW_LINE>throw n...
transactionContext = transactionContextFactory.get(transactionId);
1,090,459
public I_PP_Order_Candidate execute() {<NEW_LINE>// Create PP Order Candidate<NEW_LINE>final I_PP_Order_Candidate ppOrderCandidateRecord = InterfaceWrapperHelper.newInstance(I_PP_Order_Candidate.class);<NEW_LINE>PPOrderCandidatePojoConverter.setMaterialDispoGroupId(ppOrderCandidateRecord, request.getMaterialDispoGroupI...
(request.getShipmentScheduleId()));
182,705
public ModelResponse<T> invoke(final ModelRequest request) {<NEW_LINE>int requireSize = 0;<NEW_LINE>final List<ModelResponse<T>> responses = Collections.synchronizedList(new ArrayList<ModelResponse<T>>());<NEW_LINE>final Semaphore semaphore = new Semaphore(0);<NEW_LINE>final Transaction t = Cat.getProducer().newTransac...
logError(response.getException());
345,573
public static Set<String> attachContextPath(String contextPath, Set<String> uriResource) {<NEW_LINE>if (contextPath == null || "".equals(contextPath) || uriResource == null || uriResource.isEmpty()) {<NEW_LINE>return uriResource;<NEW_LINE>}<NEW_LINE>// format context path<NEW_LINE>contextPath = contextPath<MASK><NEW_LI...
.toLowerCase().trim();
1,048,951
private void onMatchLogicalView(RelOptRuleCall call) {<NEW_LINE>final LogicalSemiJoin join = call.rel(0);<NEW_LINE>RelNode <MASK><NEW_LINE>final LogicalView logicalView = call.rel(2);<NEW_LINE>RexNode newCondition = JoinConditionSimplifyRule.simplifyCondition(join.getCondition(), join.getCluster().getRexBuilder());<NEW...
left = call.rel(1);
1,477,775
PartitionReplica checkAndGetPrimaryReplicaOwner(int partitionId, int replicaIndex) {<NEW_LINE>InternalPartitionImpl partition = partitionStateManager.getPartitionImpl(partitionId);<NEW_LINE>PartitionReplica owner = partition.getOwnerReplicaOrNull();<NEW_LINE>if (owner == null) {<NEW_LINE>logger.info(<MASK><NEW_LINE>ret...
"Sync replica target is null, no need to sync -> partitionId=" + partitionId + ", replicaIndex=" + replicaIndex);
307,759
private void loadBatchVariables() {<NEW_LINE>MBPartner <MASK><NEW_LINE>List<MHRAttendanceRecord> attendanceList = getLines(false);<NEW_LINE>if (!isLeave()) {<NEW_LINE>this.firstAttendance = attendanceList.stream().findFirst().get();<NEW_LINE>this.lastAttendance = attendanceList.get(attendanceList.size() - 1);<NEW_LINE>...
businessPartner = (MBPartner) getC_BPartner();
883,169
private void createDropDown() {<NEW_LINE>ScrollView dropdownView = createDropDownView();<NEW_LINE>dropdownWindow = new PopupWindow();<NEW_LINE>dropdownWindow.setFocusable(true);<NEW_LINE>dropdownWindow.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);<NEW_LINE>if (!isInEditMode()) {<NEW_LINE>dropdownWindow.setBackgro...
.dpToPixels(getMeasuredWidth()));
1,755,810
public void onMessage(Session session, String message) {<NEW_LINE>if (!session.equals(this.session)) {<NEW_LINE>handleWrongSession(session, message);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.trace("{} received raw data: {}", socketName, message);<NEW_LINE>try {<NEW_LINE>DeconzBaseMessage changedMessage = Objects.req...
.r, changedMessage.id));
36,054
public void init(final GLAutoDrawable drawable) {<NEW_LINE>log.trace("GL - init()");<NEW_LINE>final GL2 gl = drawable.getGL().getGL2();<NEW_LINE>// clear z-buffer to the farthest<NEW_LINE>gl.glClearDepth(1.0f);<NEW_LINE>// the type of depth test to do<NEW_LINE>gl.glDepthFunc(GL.GL_LESS);<NEW_LINE>float amb = 0.5f;<NEW_...
gl.glEnable(GLLightingFunc.GL_LIGHTING);
1,123,532
private synchronized void pushManifest() {<NEW_LINE>if (started.get()) {<NEW_LINE>final AgentManifestMessage jobFileManifest;<NEW_LINE>try {<NEW_LINE>jobFileManifest = manifestProtoConverter.manifestToProtoMessage(this.jobId, this.jobDirectoryManifestCreatorService.getDirectoryManifest(this.jobDirectoryPath));<NEW_LINE...
this.properties.isEnableCompression());
55,706
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException {<NEW_LINE>logFine("In matchManagedConnections");<NEW_LINE>if (connectionSet == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW...
ResourceException(nsee.getMessage());
1,688,901
public <T> long bulkGraphOperation(final SecurityContext securityContext, final Query query, final int commitCount, String description, final BulkGraphOperation<T> operation) {<NEW_LINE>final Predicate<Long> condition = operation.getCondition();<NEW_LINE>final App app = StructrApp.getInstance(securityContext);<NEW_LINE...
boolean doValidation = operation.doValidation();
758,269
public IJavaCompletionProposal createJavaProposal(ContentAssistContext context, JavaContentAssistInvocationContext javaContext) {<NEW_LINE>if (context.location == ContentAssistLocation.METHOD_CONTEXT) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>GroovyCompletionProposal proposal = new GroovyCompletionProposal(Completion...
"this.".toCharArray(), completion);
695,991
private void applyAttributes(Context context, AttributeSet attrs) {<NEW_LINE>if (attrs == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final TypedArray array = context.obtainStyledAttributes(attrs, org.rajawali3d.R.styleable.SurfaceView);<NEW_LINE>final int count = array.getIndexCount();<NEW_LINE>for (int i = 0; i < co...
array.getInteger(attr, 0);
585,871
private void handle(APIRerunLongJobMsg msg) {<NEW_LINE>APIRerunLongJobEvent evt = new APIRerunLongJobEvent(msg.getId());<NEW_LINE>SubmitLongJobMsg smsg = new SubmitLongJobMsg();<NEW_LINE>LongJobVO job = dbf.findByUuid(msg.getUuid(), LongJobVO.class);<NEW_LINE>smsg.setJobUuid(job.getUuid());<NEW_LINE>smsg.setDescription...
setUserTags(msg.getUserTags());
1,046,040
private void recoverMeta() {<NEW_LINE>if (meta != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (metaFile.exists() && metaFile.length() > 0) {<NEW_LINE>if (logger.isInfoEnabled()) {<NEW_LINE>SimpleDateFormat format = new SimpleDateFormat();<NEW_LINE>logger.info("MetaFile {} exists, last modified: {}", metaFile.getPat...
maxAvailableVersion = ReadWriteIOUtils.readLong(bufferedInputStream);
889,402
private void displayRenderResult(WindowEx win, String viewerType, RmdPreviewParams params) {<NEW_LINE>if (viewerType == UserPrefs.RMD_VIEWER_TYPE_NONE)<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>if (outputFrame_ == null)<NEW_LINE>outputFrame_ = createOutputFrame(viewerType);<NEW_LINE>// we're refreshing if the window is...
RmdRenderResult result = params.getResult();
836,192
private void logBeanData() {<NEW_LINE>String methodName = "logBeanData";<NEW_LINE>logBeanData(methodName, getBeanText(constructorBean, CDICaseInjection.Constructor));<NEW_LINE>logBeanData(methodName, getBeanText(postConstruct, CDICaseInjection.PostConstruct));<NEW_LINE>// getBeanText(getPreDestroy(), CDICaseInjection.P...
(methodBean, CDICaseInjection.Method));
917,397
public void toSrt(Path srtFile) {<NEW_LINE>try (FileOutputStream fos = new FileOutputStream(srtFile.toFile());<NEW_LINE>OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);<NEW_LINE>PrintWriter writer = new PrintWriter(osw)) {<NEW_LINE>long counter = 1;<NEW_LINE>for (Subtitle title : subtitleLi...
error("File: " + srtFile, ex);
457,627
public void complete(SourceOpContext sourceOpContext, IDocument document) throws CommonException {<NEW_LINE>final Location sourceFileLoc = sourceOpContext.getFileLocation();<NEW_LINE>if (!(fContextType instanceof CompilationUnitContextType))<NEW_LINE>return;<NEW_LINE>CompilationUnitContextType compilationUnitContextTyp...
Template[] templates = getTemplates();
1,774,073
private List<Object[]> gapFillAndAggregate(List<Object[]>[] timeBucketedRawRows, DataSchema dataSchemaForAggregatedResult, DataSchema dataSchema) {<NEW_LINE>List<Object[]> result = new ArrayList<>();<NEW_LINE>GapfillFilterHandler postGapfillFilterHandler = null;<NEW_LINE>if (_queryContext.getSubquery() != null && _quer...
timeCol = _dateTimeFormatter.fromMillisToFormat(start);
1,041,221
private void tryAllHandlers(final RestRequest request, final RestChannel channel, final ThreadContext threadContext) throws Exception {<NEW_LINE>try {<NEW_LINE>copyRestHeaders(request, threadContext);<NEW_LINE>validateErrorTrace(request, channel);<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>channel.sendRes...
request, channel, handler, threadContext);
1,672,096
public WorkspaceResource listResource(String groupId, String type) {<NEW_LINE>Group group = groupMapper.selectByPrimaryKey(groupId);<NEW_LINE>String workspaceId = group.getScopeId();<NEW_LINE>WorkspaceResource resource = new WorkspaceResource();<NEW_LINE>if (StringUtils.equals(UserGroupType.WORKSPACE, type)) {<NEW_LINE...
workspaces = workspaceMapper.selectByExample(workspaceExample);
1,593,976
public void onRuleUpdated(RuleUpdatedEvent ruleUpdatedEvent) {<NEW_LINE>Boolean discoveryControlEnabled = pluginContextAware.isDiscoveryControlEnabled();<NEW_LINE>if (!discoveryControlEnabled) {<NEW_LINE>LOG.info("Discovery control is disabled, ignore to subscribe");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.info("Rule ...
(subscriptionType, rule, e));
1,207,272
private static void AddBackupSoSource(Context context, ArrayList<SoSource> soSources, int apkSoSourceFlags) throws IOException {<NEW_LINE>if ((sFlags & SOLOADER_DISABLE_BACKUP_SOSOURCE) != 0) {<NEW_LINE>sBackupSoSources = null;<NEW_LINE>// Clean up backups<NEW_LINE>final File backupDir = UnpackingSoSource.getSoStorePat...
backupDir.getCanonicalPath(), e);
1,384,538
public void marshall(CalculateRouteMatrixRequest calculateRouteMatrixRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (calculateRouteMatrixRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MA...
calculateRouteMatrixRequest.getCalculatorName(), CALCULATORNAME_BINDING);
977,647
protected static FilterSpecPlanForge planRemainingNodesBasic(FilterSpecParaForgeMap overallExpressions, FilterSpecCompilerArgs args, int filterServiceMaxFilterWidth) throws ExprValidationException {<NEW_LINE>List<ExprNode> unassigned = overallExpressions.getUnassignedExpressions();<NEW_LINE>List<ExprOrNode> orNodes = n...
map, false, nodes, args);
1,122,892
public Optional<BPartnerId> resolveBPartnerExternalIdentifier(@NonNull final ExternalIdentifier bPartnerExternalIdentifier, @NonNull final OrgId orgId) {<NEW_LINE>switch(bPartnerExternalIdentifier.getType()) {<NEW_LINE>case METASFRESH_ID:<NEW_LINE>final BPartnerId bPartnerId = BPartnerId.ofRepoId(bPartnerExternalIdenti...
"rawExternalIdentifier", bPartnerExternalIdentifier.getRawValue());
1,013,028
public static byte[] readDialogEEPROMBytes(Component parent) {<NEW_LINE>// Choose file<NEW_LINE>File file = null;<NEW_LINE>JFileChooser fileChooser = new JFileChooser();<NEW_LINE>fileChooser.setCurrentDirectory(new java<MASK><NEW_LINE>fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);<NEW_LINE>fileChooser.setDi...
.io.File("."));
732,834
private Map<FieldDescriptor, FieldAccessDescriptor> resolveNestedFieldsAccessed(Schema schema) {<NEW_LINE>Map<FieldDescriptor, FieldAccessDescriptor> nestedFields = Maps.newLinkedHashMap();<NEW_LINE>for (Map.Entry<FieldDescriptor, FieldAccessDescriptor> entry : getNestedFieldsAccessed().entrySet()) {<NEW_LINE>FieldDesc...
fieldDescriptor = fillInMissingQualifiers(fieldDescriptor, schema);
1,221,103
public TaskRecord findById(long taskId, String owner, boolean includeTrigger) throws Exception {<NEW_LINE>StringBuilder find = new StringBuilder(116).append("SELECT t.LOADER,t.MBITS,t.INAME,t.NEXTEXEC,t.RESLT,t.STATES,t.VERSION");<NEW_LINE>if (includeTrigger)<NEW_LINE>find.append(",t.TRIG");<NEW_LINE>find.append(" FROM...
= getPersistenceServiceUnit().createEntityManager();
276,744
public void configureSbaStructure(List<AssociatedTriple> inliersThreeView) {<NEW_LINE>final SceneStructureMetric structure = metricSba.structure;<NEW_LINE>final SceneObservations observations = metricSba.observations;<NEW_LINE>// Even if the cameras are all the same, we will tell that they are different just because th...
resize(usedThreeViewInliers.size());
1,097,058
public synchronized void execute(ComplexEventChunk streamEventChunk) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Event Chunk received by " + this.duration + " incremental executor: " + streamEventChunk.toString());<NEW_LINE>}<NEW_LINE>streamEventChunk.reset();<NEW_LINE>while (streamEventChunk.hasNext()) ...
ExecutorState executorState = stateHolder.getState();
1,001,653
public boolean performFinish() {<NEW_LINE>final IGithubManager ghManager = GitPlugin.getDefault().getGithubManager();<NEW_LINE>final String owner = cloneSource.getOwner();<NEW_LINE>final String repoName = cloneSource.getRepoName();<NEW_LINE>// TODO Allow selecting a destination org to fork to!<NEW_LINE>// cloneSource.g...
status = job.run(monitor);
1,696,237
@ExceptionMetered<NEW_LINE>@POST<NEW_LINE>public Response renameSecret(@Auth User user, @PathParam("secretId") LongParam secretId, @PathParam("secretName") String secretName) {<NEW_LINE>Optional<Secret> secret = secretController.getSecretByName(secretName);<NEW_LINE>if (secret.isPresent()) {<NEW_LINE>logger.info("User ...
secretName, user.getName());
1,032,272
public Document createDocument(CoreCollection.Document coreDoc) throws GeneratorException {<NEW_LINE>String id = coreDoc.id();<NEW_LINE>String content = coreDoc.contents();<NEW_LINE>if (content == null || content.trim().isEmpty()) {<NEW_LINE>throw new EmptyDocumentException();<NEW_LINE>}<NEW_LINE>Document doc = new Doc...
, new BytesRef(id)));
1,618,729
public static Object issueRequest(MessageProcessor MP, ControlMessage msg, SIBUuid8 remoteUuid, long retry, int tries, long requestID) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "issueRequest", new Object[] { MP, msg, remoteUuid, new Long(retry), new Integer(tri...
remoteUuid, SIMPConstants.CONTROL_MESSAGE_PRIORITY, msg);