idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,469,141
private void tryAssertionOneParameterLambdaReturn(RegressionEnvironment env, String epl) {<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>EPTypeClass inner = EPTypeClassParameterized.from(Collection.class, SupportBean_ST0.class);<NEW_LINE>env.assertStmtTypes("s0", "val1,val2".split(","), new EPTypeClass[] ...
("val1")).toArray();
841,586
protected void saveContext(SecurityContext context) {<NEW_LINE>if (isTransient(context)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Authentication authentication = context.getAuthentication();<NEW_LINE>if (isTransient(authentication)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HttpSession httpSession = this.request.getSe...
httpSession.setAttribute(springSecurityContextKey, context);
354,477
public Description matchMethod(MethodTree tree, VisitorState state) {<NEW_LINE>MultiMatchResult<AnnotationTree> qualifierAnnotations = QUALIFIER_ANNOTATION_FINDER.multiMatchResult(tree, state);<NEW_LINE>MultiMatchResult<AnnotationTree> injectAnnotations = HAS_INJECT.multiMatchResult(tree, state);<NEW_LINE>if (!(qualifi...
scopes = new ArrayList<>();
947,114
private JSONDashboardItem addDashboardItem(final JsonUserDashboardItemAddRequest jsonRequest, final DashboardWidgetType widgetType) {<NEW_LINE>userSession.assertLoggedIn();<NEW_LINE>final UserDashboardItemAddRequest request = UserDashboardItemAddRequest.of(jsonRequest, widgetType, userSession.getAD_Language());<NEW_LIN...
userSession)).build());
245,563
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,845,524
static ReportSettings readSettingsFromConfig(final AppConfig config) {<NEW_LINE>final SortedMap<DomainID, List<UserPermission>> searchFilters = Collections.unmodifiableSortedMap(new TreeMap<>(config.getDomainConfigs().values().stream().collect(Collectors.toMap(DomainConfig::getDomainID, domainConfig -> domainConfig.rea...
ReportSettingsBuilder builder = ReportSettings.builder();
1,675,541
public static BigInteger roundNumberToIncrement(BigDecimal x, BigDecimal increment, RoundingMode roundingMode) {<NEW_LINE>assert roundingMode == RoundingMode.CEIL || roundingMode == RoundingMode.FLOOR || roundingMode == RoundingMode.TRUNC || roundingMode == RoundingMode.HALF_EXPAND;<NEW_LINE>// algorithm from polyfill<...
(BigDecimal.valueOf(sign));
1,392,031
private void testSTint() {<NEW_LINE>// Matrix<NEW_LINE>// 0 .90 0 0 0<NEW_LINE>// 0 0 .36 .36 .18<NEW_LINE>// 0 0 0 .90 0<NEW_LINE>// .90 0 0 0 0<NEW_LINE>// .47 0 .47 0 0<NEW_LINE>// Vector<NEW_LINE>// .05<NEW_LINE>// .04<NEW_LINE>// .36<NEW_LINE>// .37<NEW_LINE>// .19<NEW_L...
matrixColumn1, matrixColumn2, matrixColumn3, matrixColumn4 };
880,289
private void saveSubFolder(Business business, String folderId, String newFolderId, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>List<Attachment2> attachments = business.attachment2().listWithFolder2(folderId, <MASK><NEW_LINE>for (A...
FileStatus.VALID.getName());
1,135,925
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_drawer);<NEW_LINE>// set up an authentication handler to take credentials for access to arcgis.com<NEW_LINE>AuthenticationChallengeHandler handler = new DefaultAuthenticationChalle...
ArcGISMapImageLayer mapImageLayer = new ArcGISMapImageLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer");
1,363,813
public ConsumerCallbackResult onDataEvent(DbusEvent e, DbusEventDecoder eventDecoder) {<NEW_LINE>boolean debugEnabled = _log.isDebugEnabled();<NEW_LINE>long curNanos = System.nanoTime();<NEW_LINE>if (null == _sourceMap) {<NEW_LINE>_log.error("No sources map specified");<NEW_LINE>if (_consumerStats != null)<NEW_LINE>_co...
long endNanos = System.nanoTime();
409,198
protected void initScene() {<NEW_LINE>mLight = new DirectionalLight(.3f, -.3f, 1);<NEW_LINE>mLight.setPower(.6f);<NEW_LINE>getCurrentScene().addLight(mLight);<NEW_LINE>getCurrentCamera().setPosition(0, 0, 9);<NEW_LINE>try {<NEW_LINE>final LoaderAWD parser = new LoaderAWD(mContext.getResources(), mTextureManager, R.raw....
getCurrentScene().addChild(mMonkey2);
1,194,418
public void readFrom(MiniDumpReader dump, IAddressSpace addressSpace, boolean is64Bit) throws CorruptDataException, IOException {<NEW_LINE>dump.seek(getLocation());<NEW_LINE>int numberOfThreads = dump.readInt();<NEW_LINE>if (numberOfThreads > 100000) {<NEW_LINE>throw new CorruptDataException("Unlikely number of threads...
dump, (IProcess) addressSpace));
351,576
public void marshall(WorkloadShare workloadShare, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workloadShare == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(workloadShare.getShareId(), SHAREID_BINDING);...
workloadShare.getWorkloadName(), WORKLOADNAME_BINDING);
437,162
private void logNode(DefaultMutableTreeNode theTreeNode, String message) {<NEW_LINE>if (!LOGGER.isDebugEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode) theTreeNode.getParent();<NEW_LINE>Node theNode = (Node) theTreeNode.getUserObject();<NEW_LINE>Node thePare...
(Node) treeNode.getUserObject();
1,159,186
final UpdateEnvironmentTemplateResult executeUpdateEnvironmentTemplate(UpdateEnvironmentTemplateRequest updateEnvironmentTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEnvironmentTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
781,436
void reportSourceIndexChanges(final Set<String> lastSourceIndexes, final Set<String> newSourceIndexes) {<NEW_LINE>// spam protection: only warn the first time<NEW_LINE>if (newSourceIndexes.isEmpty() && lastSourceIndexes.isEmpty() == false) {<NEW_LINE>String message = "Source did not resolve to any open indexes";<NEW_LI...
+ addedIndexes.size() + "] new indexes";
1,801,962
final RegenerateSecurityTokenResult executeRegenerateSecurityToken(RegenerateSecurityTokenRequest regenerateSecurityTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(regenerateSecurityTokenRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
331,444
public BatchGetObjectAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchGetObjectAttributes batchGetObjectAttributes = new BatchGetObjectAttributes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
)).unmarshall(context));
1,655,092
private void flushBatch(boolean finishingBundle, ContextAdapter<OutT> context) throws InterruptedException {<NEW_LINE>while (!writes.isEmpty()) {<NEW_LINE>RpcWriteAttempt attempt = rpcQos.newWriteAttempt(getRpcAttemptContext());<NEW_LINE>Instant begin = clock.instant();<NEW_LINE>if (!attempt.awaitSafeToProceed(begin)) ...
flushBuffer = getFlushBuffer(attempt, begin);
472,071
public static <K, V> ProxyLoader<K, V> createProxyLoader(Cache<K, V> cache, Function<K, V> loader, Consumer<CacheEvent> eventConsumer) {<NEW_LINE>if (loader instanceof ProxyLoader) {<NEW_LINE>return (ProxyLoader<K, V>) loader;<NEW_LINE>}<NEW_LINE>if (loader instanceof CacheLoader) {<NEW_LINE>return createProxyLoader(ca...
, (CacheLoader) loader, eventConsumer);
603,392
public void ensureProjectIsDefined(@Nonnull ExternalModuleImportContext<C> context) throws WizardStepValidationException {<NEW_LINE>final String externalSystemName = myExternalSystemId.getReadableName();<NEW_LINE>File projectFile = getProjectFile();<NEW_LINE>if (projectFile == null) {<NEW_LINE>throw new WizardStepValid...
error = new Ref<>();
1,819,637
public static BatchRestoreModelResponse unmarshall(BatchRestoreModelResponse batchRestoreModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchRestoreModelResponse.setRequestId(_ctx.stringValue("BatchRestoreModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<ModelItem> items = new ArrayList<Mo...
("BatchRestoreModelResponse.Data.Items[" + i + "].ModifiedTime"));
1,027,635
public void loadEvents(final boolean isReload, final int page) {<NEW_LINE>mView.showLoading();<NEW_LINE>final boolean readCacheFirst = !isReload && page == 1;<NEW_LINE>HttpObserver<ArrayList<Event>> httpObserver = new HttpObserver<ArrayList<Event>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onError(Throwable...
addAll(response.body());
1,812,815
public void onBlockDispensing(BlockDispenseEvent e) {<NEW_LINE><MASK><NEW_LINE>if (b.getType() == Material.DISPENSER && b.getRelative(BlockFace.DOWN).getType() != Material.HOPPER) {<NEW_LINE>SlimefunItem machine = BlockStorage.check(b);<NEW_LINE>if (machine != null) {<NEW_LINE>machine.callItemHandler(BlockDispenseHandl...
Block b = e.getBlock();
380,401
public com.amazonaws.services.applicationcostprofiler.model.ThrottlingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.applicationcostprofiler.model.ThrottlingException throttlingException = new com.amazonaws.services.applicationcostprofiler.model.Throt...
int originalDepth = context.getCurrentDepth();
377,692
public IBaseBundle collection(final RequestDetails theRequestDetails, IBaseBundle theRequest) {<NEW_LINE>String transactionType = myVersionAdapter.getBundleType(theRequest);<NEW_LINE>if (!org.hl7.fhir.r4.model.Bundle.BundleType.COLLECTION.toCode().equals(transactionType)) {<NEW_LINE>throw new InvalidRequestException(Ms...
entry = myVersionAdapter.addEntry(transactionBundle);
1,180,582
public static Notebook buildNotebookResponse(NotebookCR notebookCR) {<NEW_LINE>Notebook notebook = new Notebook();<NEW_LINE>notebook.setUid(notebookCR.<MASK><NEW_LINE>notebook.setName(notebookCR.getMetadata().getName());<NEW_LINE>if (notebookCR.getMetadata().getCreationTimestamp() != null) {<NEW_LINE>notebook.setCreate...
getMetadata().getUid());
1,647,751
protected void importGroups(File file) {<NEW_LINE>byte[] fileBytes;<NEW_LINE>try (InputStream is = new FileInputStream(file)) {<NEW_LINE>fileBytes = IOUtils.toByteArray(is);<NEW_LINE>} catch (IOException e) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>fileUploadingAPI.deleteFile(importUpload.getFileId());<NEW_L...
throw new RuntimeException("Unable to import file", e);
138,035
public static void addAnnotation(JCModifiers mods, JavacNode node, JavacNode source, String annotationTypeFqn, JCExpression arg) {<NEW_LINE>boolean isJavaLangBased;<NEW_LINE>String simpleName;<NEW_LINE>{<NEW_LINE>int idx = annotationTypeFqn.lastIndexOf('.');<NEW_LINE>simpleName = idx == -1 ? annotationTypeFqn : annotat...
List.<JCExpression>nil();
1,704,077
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.single_date_picker_activity_main);<NEW_LINE>final SingleDateAndTimePicker singleDateAndTimePicker = findViewById(R.id.single_day_picker);<NEW_LINE>final SingleDateAndTimePicker singleDateAn...
, R.font.dinot_regular));
905,406
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>final View result = inflater.inflate(R.<MASK><NEW_LINE>list = result.findViewById(R.id.flickr_photo_list);<NEW_LINE>layoutManager = new LinearLayoutManager(getActivity());<NEW_LINE>list.setLayoutManager...
layout.flickr_photo_list, container, false);
1,827,410
public static boolean lt(Object a, Object b) {<NEW_LINE>if (a == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (b == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (a instanceof String || b instanceof String) {<NEW_LINE>return (castToString(a)).compareTo(castToString(b)) < 0;<NEW_LINE>}<NEW_LINE>if (a ins...
(a) < castToLong(b);
937,447
public GetDeleteEventsByEventTypeStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDeleteEventsByEventTypeStatusResult getDeleteEventsByEventTypeStatusResult = new GetDeleteEventsByEventTypeStatusResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_...
String currentParentElement = context.getCurrentParentElement();
360,496
final DeleteThreatIntelSetResult executeDeleteThreatIntelSet(DeleteThreatIntelSetRequest deleteThreatIntelSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteThreatIntelSetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Delet...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
380,431
private static AlertConfig.AlertCondition.MetricCondition toProto(MetricConditionDto condition) {<NEW_LINE>AlertConfig.AlertCondition.MetricCondition.Builder builder = AlertConfig.AlertCondition.MetricCondition.newBuilder().setMetric(condition.metric());<NEW_LINE>if (AlertingService.hasTransactionTypeAndName(condition....
timePeriodSeconds()).build();
883,670
protected long[] cleanupPalette(long[] blockStates, ListTag<CompoundTag> palette) {<NEW_LINE>// create mapping of old --> new indices<NEW_LINE>Map<Integer, Integer> allIndices = new HashMap<>(palette.size());<NEW_LINE>for (int i = 0; i < 4096; i++) {<NEW_LINE>int paletteIndex = getPaletteIndex(i, blockStates);<NEW_LINE...
allIndices.put(paletteIndex, paletteIndex);
698,699
final ListReceivedLicensesResult executeListReceivedLicenses(ListReceivedLicensesRequest listReceivedLicensesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReceivedLicensesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
909,141
protected HttpURLConnection createUrlConnection(String urlAsStr, int timeout, boolean includeSomeGooseOptions) throws MalformedURLException, IOException {<NEW_LINE>URL url = new URL(urlAsStr);<NEW_LINE>// using proxy may increase latency<NEW_LINE>HttpURLConnection hConn = (HttpURLConnection) url.openConnection(Proxy.NO...
hConn.setRequestProperty("Cache-Control", cacheControl);
1,292,224
public void marshall(XavcSettings xavcSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (xavcSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(xavcSettings.getAdaptiveQuantization(), ADAPTIVE...
xavcSettings.getFramerateControl(), FRAMERATECONTROL_BINDING);
1,029,412
public static int parseAc3SyncframeSize(byte[] data) {<NEW_LINE>if (data.length < 6) {<NEW_LINE>return C.LENGTH_UNSET;<NEW_LINE>}<NEW_LINE>// Parse the bitstream ID for AC-3 and E-AC-3 (see subsections 4.3, E.1.2 and E.1.3.1.6).<NEW_LINE>boolean isEac3 = ((data[5] & 0xF8) >> 3) > 10;<NEW_LINE>if (isEac3) {<NEW_LINE>// ...
4] & 0xC0) >> 6;
1,706,832
private static void onPrintTweets(final List<Tweets> tweets) {<NEW_LINE>for (Iterator<Tweets> iterator = tweets.iterator(); iterator.hasNext(); ) {<NEW_LINE>int counter = 1;<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>logger.info("\n");<NEW_LINE>logger.info("\t\t Tweet No:#" + counter++);<NEW_LINE>Tweets rec = (Twee...
"\t\t tweet is ->" + rec.getBody());
1,185,664
public World deserializeWorld(PbWorld pbWorld) {<NEW_LINE>World world = new World(pbToVec(pbWorld.getGravity()));<NEW_LINE>world.setAutoClearForces(pbWorld.getAutoClearForces());<NEW_LINE>world.setContinuousPhysics(pbWorld.getContinuousPhysics());<NEW_LINE>world.setWarmStarting(pbWorld.getWarmStarting());<NEW_LINE>worl...
bodyMap.put(i, body);
9,508
public double defineHeightObstacle(RouteDataObject road, short startIndex, short endIndex) {<NEW_LINE>if (!heightObstacles) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>float[] heightArray = road.calculateHeightArray();<NEW_LINE>if (heightArray == null || heightArray.length == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>do...
? k + 1 : k - 1;
1,554,152
void addMemoryAreaMetrics(List<MetricFamilySamples> sampleFamilies, Predicate<String> nameFilter) {<NEW_LINE><MASK><NEW_LINE>MemoryUsage nonHeapUsage = memoryBean.getNonHeapMemoryUsage();<NEW_LINE>if (nameFilter.test(JVM_MEMORY_OBJECTS_PENDING_FINALIZATION)) {<NEW_LINE>GaugeMetricFamily finalizer = new GaugeMetricFamil...
MemoryUsage heapUsage = memoryBean.getHeapMemoryUsage();
375,086
public boolean onCreateOptionsMenu(Menu m) {<NEW_LINE>menu = m;<NEW_LINE>MenuInflater inflater = getMenuInflater();<NEW_LINE>// Inflate menu to add items to action bar if it is present.<NEW_LINE>inflater.inflate(R.menu.menu_main, menu);<NEW_LINE>searchView = (SearchView) menu.findItem(R.id.menu_search).getActionView();...
.menu_search).setVisible(false);
864,127
public static void drawTexturedColoredRect(VertexConsumer builder, PoseStack transform, float x, float y, float w, float h, float r, float g, float b, float alpha, float u0, float u1, float v0, float v1) {<NEW_LINE>TransformingVertexBuilder innerBuilder = new TransformingVertexBuilder(builder, transform);<NEW_LINE>inne...
innerBuilder.setOverlay(OverlayTexture.NO_OVERLAY);
406,134
public void mousePressed(MouseEvent e) {<NEW_LINE>if (BoofSwingUtil.isRightClick(e)) {<NEW_LINE>mode = Mode.values()[(mode.ordinal() + 1) % <MASK><NEW_LINE>repaint();<NEW_LINE>} else {<NEW_LINE>// let the user select a single point. pick the closest one within tolerance<NEW_LINE>double x = e.getX();<NEW_LINE>double y =...
Mode.values().length];
69,495
public synchronized RemoteFile listFile(String absolutePath) throws RemoteException {<NEW_LINE>assert absolutePath.startsWith(<MASK><NEW_LINE>RemoteFile result = null;<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>sftpLogger.info("LIST");<NEW_LINE>sftpLogger.info(NbBundle.getMessage(SftpClient.class, "LOG_DirListing"));<N...
TransferFile.REMOTE_PATH_SEPARATOR) : "Not absolute path give but: " + absolutePath;
1,051,363
public Tuple4<DataSet<Tuple2<Long, MT>>, DataSet<Tuple2<Long, DT>>, ApsContext, BatchOperator[]> persistentAll(DataSet<Tuple2<Long, MT>> model, DataSet<Tuple2<Long, DT>> data, ApsContext context, BatchOperator[] others, String prefix) {<NEW_LINE>if (available()) {<NEW_LINE>TypeInformation<DT> dtType = (null == data) ? ...
apsSerializeModel.serializeModel(model, mlEnvId);
57,411
public void loadState(TypecheckerState state) {<NEW_LINE>myEquations = new ArrayList<>(state.equations);<NEW_LINE>if (myLevelVariables.size() > state.numberOfLevelVariables) {<NEW_LINE>myLevelVariables.subList(state.numberOfLevelVariables, myLevelVariables.size()).clear();<NEW_LINE>}<NEW_LINE>if (myLevelEquations.size(...
size()).clear();
1,101,879
public static EObject hibernate(EProc self, EObject a1, EObject a2, EObject a3) {<NEW_LINE>EAtom m = a1.testAtom();<NEW_LINE>EAtom f = a2.testAtom();<NEW_LINE><MASK><NEW_LINE>if (m == null || f == null || a == null) {<NEW_LINE>throw ERT.badarg(a1, a2, a3);<NEW_LINE>}<NEW_LINE>int arity = a.length();<NEW_LINE>EFun targe...
ESeq a = a3.testSeq();
1,566,895
final UpdateDatasetEntriesResult executeUpdateDatasetEntries(UpdateDatasetEntriesRequest updateDatasetEntriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDatasetEntriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
140,145
private static void parseConst(AnnotationsBuilder builder, int index, ParsedString line) {<NEW_LINE>// const is already taken.<NEW_LINE>if (!line.takeSomeWhitespace()) {<NEW_LINE>builder.diagnostics.put(index, "Expected whitespace after const and before type declaration");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean i...
CONST, name, comment, value);
1,768,393
protected void executeValidation(BpmnModel bpmnModel, Process process, List<ValidationError> errors) {<NEW_LINE>List<SendTask> sendTasks = process.findFlowElementsOfType(SendTask.class);<NEW_LINE>for (SendTask sendTask : sendTasks) {<NEW_LINE>// Verify implementation<NEW_LINE>if (StringUtils.isEmpty(sendTask.getType())...
sendTask.getFieldExtensions(), errors);
1,838,441
public void onBindViewHolder(@NonNull StockViewHolder holder, int position) {<NEW_LINE>StockMediaModel media = mItems.get(position);<NEW_LINE>String imageUrl = PhotonUtils.getPhotonImageUrl(media.getThumbnail(), mThumbWidth, mThumbHeight);<NEW_LINE>mImageManager.load(holder.mImageView, ImageType.PHOTO, imageUrl, ScaleT...
holder.mSelectionCountTextView.setText(null);
1,112,906
public void register(final BinPackedPersistentQueryMetadataImpl binpackedPersistentQueryMetadata) {<NEW_LINE>final QueryId queryId = binpackedPersistentQueryMetadata.getQueryId();<NEW_LINE>log.info("Registering query {} for validation for runtime {}", queryId, getApplicationId());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LIN...
collocatedQueries.put(queryId, binpackedPersistentQueryMetadata);
396,405
private static void _renderBinary(GrayU8 binaryImage, boolean invert, BufferedImage out) {<NEW_LINE>int w = binaryImage.getWidth();<NEW_LINE>int h = binaryImage.getHeight();<NEW_LINE>if (invert) {<NEW_LINE>for (int y = 0; y < h; y++) {<NEW_LINE>int indexSrc = binaryImage.startIndex + y * binaryImage.stride;<NEW_LINE>fo...
++] != 0 ? 0x00FFFFFF : 0;
1,617,144
private static MysqlDateTime handleTimeInterval(MysqlDateTime src, MySQLInterval interval) {<NEW_LINE>long sign = interval.isNeg() ? -1 : 1;<NEW_LINE>MysqlDateTime ret = new MysqlDateTime();<NEW_LINE><MASK><NEW_LINE>long nano = src.getSecondPart() + sign * interval.getSecondPart();<NEW_LINE>long extraSec = nano / MySQL...
ret.setSqlType(Types.TIMESTAMP);
958,329
public void serialize(Json json) throws IOException {<NEW_LINE>try {<NEW_LINE>json.writeMapBegin();<NEW_LINE>json.writeMapEntry("valueProvider", valueProvider);<NEW_LINE>if (!attributes.isEmpty()) {<NEW_LINE>RootDefinition def = getRootDefinition();<NEW_LINE>json.writeMapKey("values");<NEW_LINE>json.writeMapBegin();<NE...
name, attribute.getValue());
685,560
final CreateComputerResult executeCreateComputer(CreateComputerRequest createComputerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createComputerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
(super.beforeMarshalling(createComputerRequest));
1,755,126
public static void addAndroidModule(@NotNull Project project, @Nullable ModifiableModuleModel model, @NotNull String baseDirPath, @NotNull String flutterModuleName, boolean isTopLevel) {<NEW_LINE>final VirtualFile baseDir = LocalFileSystem.<MASK><NEW_LINE>if (baseDir == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>fina...
getInstance().refreshAndFindFileByPath(baseDirPath);
1,324,909
public void splitStockMoveLinesUnit(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>StockMove stockMove = request.getContext().asType(StockMove.class);<NEW_LINE>List<StockMoveLine> stockMoveLineContextList = (List<StockMoveLine>) request.<MASK><NEW_LINE>stockMove = Beans.get(StockMoveRepositor...
getContext().get("stockMoveLineList");
1,775,008
private CopySpec configureDistribution(Project project, Distribution mainDistribution, ApplicationPluginConvention pluginConvention) {<NEW_LINE>mainDistribution.getDistributionBaseName().convention(project.provider(pluginConvention::getApplicationName));<NEW_LINE>CopySpec distSpec = mainDistribution.getContents();<NEW_...
CopySpec childSpec = project.copySpec();
1,451,220
public List<PathSegment> list() {<NEW_LINE>if (this.resourcePath != null) {<NEW_LINE>return this.resourcePath;<NEW_LINE>}<NEW_LINE>List<PathParameterSymbol> pathParams = this.pathParameters();<NEW_LINE>List<PathSegment> segments = new ArrayList<>();<NEW_LINE>List<Name> names = this.internalSegments;<NEW_LINE>for (int i...
internalSegment = names.get(i);
60,247
final GetResolverConfigResult executeGetResolverConfig(GetResolverConfigRequest getResolverConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResolverConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
966,527
private void processSubsets(Itemset itemset, final int len, int cur) {<NEW_LINE>// TODO: allow cur == 0, i.e. empty head?<NEW_LINE>while (cur >= 0 && scratch1.len > 1) {<NEW_LINE>assert (cur < scratch1.len);<NEW_LINE>int[] indices = scratch1.indices;<NEW_LINE>// Option 1: move last entry to consequent.<NEW_LINE>int ele...
consequent = searcher.search(scratch2);
1,287,326
private void runAssertionLateConsume(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window MyVDW.test:vdwwithparam() as SupportBean", path);<NEW_LINE>SupportVirtualDW window = (SupportVirtualDW) getFromContext(env, "/virtualdw/MyVDW");<NEW_LI...
assertNotNull(eventWithFilter.getFilter());
1,189,492
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>if (jsonReader.readIfNull()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (jsonReader.nextIfMatch('[')) {<NEW_LINE>Long[] values = new Long[16];<NEW_LINE>int size = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>if (jsonRea...
.info("not support input " + str));
94,749
public void testPurgeMaxSize_3() throws Exception {<NEW_LINE>RemoteFile binaryLogDir = null;<NEW_LINE>RemoteFile binaryTraceDir = null;<NEW_LINE>NumberFormat nf = NumberFormat.getInstance();<NEW_LINE>server.updateServerConfiguration(new File(server.pathToAutoFVTTestFiles, "server-HPELPurgeMaxSizeTest_2.xml"));<NEW_LINE...
writeLogMsg(Level.INFO, "Writing log records to fill binary log repository.");
1,401,084
private void loadConfigs(String configPath) {<NEW_LINE>// config Server Configs Path<NEW_LINE>String configServerConfigsPath = CONFIG_SERVER_CONFIGS_CONTEXT_ROOT + configPath;<NEW_LINE>// get service configs and put them in config cache<NEW_LINE>Map<String, Object> serviceConfigs = getServiceConfigs(configServerConfigs...
setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
1,804,301
public EnvironmentParameterRanges unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnvironmentParameterRanges environmentParameterRanges = new EnvironmentParameterRanges();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
JsonToken token = context.getCurrentToken();
1,415,707
protected void createTable(Session session, TableDefine tableDefine) {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>sql.append("CREATE TABLE IF NOT EXISTS ");<NEW_LINE>sql.append(this.table()).append(" (");<NEW_LINE>// Add columns<NEW_LINE>for (Map.Entry<HugeKeys, String> entry : tableDefine.columns().ent...
.keys().size();
1,769,807
public void sendEmail(String to, String subject, String body) {<NEW_LINE>if (!isValidEmail(to)) {<NEW_LINE>LOGGER.error(String.format("The destination email address %s is not valid, no email is sent.", to));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sesClient == null) {<NEW_LINE>String msg = "The email client is not set...
result = sesClient.sendEmail(request);
1,464,439
private Library.Version loadLibrary(Element libraryElement) {<NEW_LINE>String libraryName = libraryElement.getAttribute(ATTR_LIBRARY_NAME);<NEW_LINE>String versionName = libraryElement.getAttribute(ATTR_VERSION_NAME);<NEW_LINE>Library library = new Library();<NEW_LINE>library.setName(libraryName);<NEW_LINE>Library.Vers...
Element) fileList.item(i);
1,544,015
public void marshall(Statistics statistics, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (statistics == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(statistics.getCount(), COUNT_BINDING);<NEW_LINE>protoc...
statistics.getMax(), MAX_BINDING);
1,304,896
public boolean enterFieldDeclarationStatement(FieldDeclarationStatement declaration) {<NEW_LINE>String typeJsDoc = environment.getClosureTypeString(declaration.getFieldDescriptor().getTypeDescriptor());<NEW_LINE>ArrayList<String> jsDocs = new ArrayList<>();<NEW_LINE>if (!declaration.isPublic()) {<NEW_LINE>jsDocs.add("@...
add("{" + typeJsDoc + "}");
1,112,767
public String delete(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, String path, HttpServletRequest request, ModelMap model) {<NEW_LINE>if (ControllerUtils.verifyCustom("noright", null != site.getParentId(), model)) {<NEW_LINE>return CommonConstants.TEMPLATE_ERROR;<NEW_LINE>}<NEW_LINE>if (CommonUtils....
.getDate(), path));
592,525
public ResultStream doGet(final SortOrder sortOrder, int pageSize, int page) throws FrameworkException {<NEW_LINE>// fetch all results, paging is applied later<NEW_LINE>final List<? extends GraphObject> results = Iterables.toList(wrappedResource.doGet(null, NodeFactory<MASK><NEW_LINE>if (results != null && !results.isE...
.DEFAULT_PAGE_SIZE, NodeFactory.DEFAULT_PAGE));
426,665
private List<DateAndMapPack> retrieveSummary(String cmd, long start, long end, String objType, int objHash, Server server) {<NEW_LINE>DateTimeHelper helper = DateTimeHelper.getDefault();<NEW_LINE>long <MASK><NEW_LINE>long endDateUnit = helper.getDateUnit(end);<NEW_LINE>List<DateAndMapPack> dateAndMapPackList = new Arra...
startDateUnit = helper.getDateUnit(start);
1,207,883
private void emitRequiredSequence(TypeSpec.Builder intentBuilderTypeBuilder, List<ExtraInjection> requiredInjections) {<NEW_LINE>if (!target.hasRequiredFields) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final TypeName generic = getInitialStateGeneric(false);<NEW_LINE>TypeSpec.Builder requiredSequenceBuilder = TypeSpec.clas...
rotateBuilderState(requiredSequenceBuilder, builderStateClass, nextClass);
682,784
private void checkSubFieldAndWriteData(String[] subFields, int index, Property parentProp, String dataCell, int forSelectUse, List<String> dataList) throws ClassNotFoundException {<NEW_LINE>if (index < subFields.length) {<NEW_LINE>if (parentProp.getTarget() != null) {<NEW_LINE>Mapper mapper = advancedImportService.getM...
), dataCell, forSelectUse, dataList);
432,180
public static Paint readPaint(ObjectInputStream stream) throws IOException, ClassNotFoundException {<NEW_LINE>Args.nullNotPermitted(stream, "stream");<NEW_LINE>Paint result = null;<NEW_LINE>boolean isNull = stream.readBoolean();<NEW_LINE>if (!isNull) {<NEW_LINE>final Class c = (Class) stream.readObject();<NEW_LINE>if (...
float x2 = stream.readFloat();
886,748
public void commitBlock(long sessionId, long blockId, boolean pinOnCreate) throws BlockAlreadyExistsException, BlockDoesNotExistException, InvalidWorkerStateException, IOException, WorkerOutOfSpaceException {<NEW_LINE>long lockId = BlockWorker.INVALID_LOCK_ID;<NEW_LINE>try {<NEW_LINE>lockId = mLocalBlockStore.commitBlo...
mLocalBlockStore.lockBlock(sessionId, blockId);
205,425
public AccessPathSample<E> sample(final int limit, final SampleType sampleType, IPredicate<E> predicate) {<NEW_LINE>final IRelation<E> relation = context.getRelation(predicate);<NEW_LINE>// @todo assumes raw AP.<NEW_LINE>final AccessPath<E> accessPath = (AccessPath<E>) context.getAccessPath(relation, predicate);<NEW_LI...
| IRangeQuery.CURSOR | IRangeQuery.PARALLEL;
847,695
protected void performAction(Node[] nodes) {<NEW_LINE>for (int i = 0; i < nodes.length; i++) {<NEW_LINE>TomcatInstanceNode cookie = (TomcatInstanceNode) nodes[i].getCookie(TomcatInstanceNode.class);<NEW_LINE>if (cookie != null) {<NEW_LINE>final TomcatManager tm = cookie.getTomcatManager();<NEW_LINE>String name = tm.get...
, name), NotifyDescriptor.YES_NO_OPTION);
1,125,029
final ListWorkflowsResult executeListWorkflows(ListWorkflowsRequest listWorkflowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listWorkflowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
invoke(request, responseHandler, executionContext);
1,074,642
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>dataSourceCheckbox = new javax.swing.JCheckBox();<NEW_LINE>dataSourceCheckBoxList = new org.sleuthkit.autopsy.guiutils.CheckBoxListPanel<>();<NEW_LINE>// NOI18N<NEW_LINE>org.openid...
java.awt.BorderLayout.CENTER);
889,226
public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir, String.valueOf<MASK><NEW_LINE>File baseDir = new File(quickstartTmpDir, "githubEvents");<NEW_LINE>File dataDir = new File(quickstartTmpDir, "rawdata");<NEW_LINE>Preconditions.checkState(dataDir.mkdirs());<NEW_LINE>File schemaFi...
(System.currentTimeMillis()));
1,388,581
// prepare<NEW_LINE>@Override<NEW_LINE>protected String doIt() throws Exception {<NEW_LINE>if (p_AD_Table_ID == 0) {<NEW_LINE>throw new AdempiereSystemError("@NotFound@ @AD_Table_ID@ " + p_AD_Table_ID);<NEW_LINE>}<NEW_LINE>log.info("EntityType=" + p_EntityType + ", AllTables=" + p_AllTables + ", AD_Table_ID=" + p_AD_Ta...
String schema = db.getSchema();
1,791,410
private void serialize(final Kryo kryo, final Output output) {<NEW_LINE>output.writeInt(assemblyId);<NEW_LINE>output.writeString(errorMessage);<NEW_LINE>output.writeInt(secondsInAssembly);<NEW_LINE>if (errorMessage == null) {<NEW_LINE>final int nContigs = assembly.getNContigs();<NEW_LINE>final Map<Contig, Integer> cont...
writeInt(alignments.size());
218,161
private void disableFormattingExclusively(int openingTagIndex, int closingTagIndex) {<NEW_LINE>Token openingTag = this.ctm.get(openingTagIndex);<NEW_LINE>int noFormatStart = openingTag.originalEnd + 1;<NEW_LINE>int noFormatEnd = this.ctm.get(closingTagIndex - 1).originalEnd;<NEW_LINE>if (noFormatStart <= noFormatEnd) {...
1, closingTagIndex).clear();
254,161
private void validate(APISetVmStaticIpMsg msg) {<NEW_LINE>if (msg.getIp() == null && msg.getIp6() == null) {<NEW_LINE>throw new ApiMessageInterceptionException(argerr("could not set ip address, due to no ip address is specified"));<NEW_LINE>}<NEW_LINE>L3NetworkVO l3NetworkVO = Q.New(L3NetworkVO.class).eq(L3NetworkVO_.u...
, msg.getL3NetworkUuid()));
1,279,956
public void marshall(RecoveryInstanceDataReplicationInfo recoveryInstanceDataReplicationInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (recoveryInstanceDataReplicationInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco...
recoveryInstanceDataReplicationInfo.getDataReplicationInitiation(), DATAREPLICATIONINITIATION_BINDING);
512,733
private void handleFileUploadValidationAndData(VaadinSession session, InputStream inputStream, StreamVariable streamVariable, String filename, String mimeType, long contentLength, ClientConnector connector, String variableName) throws UploadException {<NEW_LINE>session.lock();<NEW_LINE>try {<NEW_LINE>if (connector == n...
UI ui = UI.getCurrent();
1,011,469
void putIntoCanonical(SquareGrid grid) {<NEW_LINE>boolean rowOdd = grid.rows % 2 == 1;<NEW_LINE>boolean colOdd = grid.columns % 2 == 1;<NEW_LINE>if (colOdd == rowOdd) {<NEW_LINE>// if odd and square then 4 solutions. Otherwise just two solution that are on<NEW_LINE>// opposite sides on the grid<NEW_LINE>if (rowOdd && g...
n = grid.getCornerByIndex(i);
1,347,802
final public void caseIdentityStmt(IdentityStmt is) {<NEW_LINE>if (!(is.getLeftOp().getType() instanceof RefLikeType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Value leftOp = is.getLeftOp();<NEW_LINE>Value rightOp = is.getRightOp();<NEW_LINE>leftOp.apply(MethodNodeFactory.this);<NEW_LINE>Node dest = getNode();<NEW_LINE>r...
(pag, src, method));
294,977
public void callNatives(HippyCallNativeParams params) {<NEW_LINE>if (isDestroyed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HippyNativeModuleInfo moduleInfo = <MASK><NEW_LINE>if (moduleInfo == null) {<NEW_LINE>PromiseImpl promise = new PromiseImpl(mContext, params.moduleName, params.moduleFunc, params.callId);<NEW_LINE>pr...
mNativeModuleInfo.get(params.moduleName);
1,126,598
public static Object doOperations(int type1, Object val1, int operation, int type2, Object val2) {<NEW_LINE>if (type1 < 1)<NEW_LINE>type1 = val1 == null ? DataTypes.OBJECT : __resolveType(val1.getClass());<NEW_LINE>if (type2 < 1)<NEW_LINE>type2 = val2 == null ? DataTypes.OBJECT : __resolveType(val2.getClass());<NEW_LIN...
val2), false, -1);
176,385
private <T extends AlbumID3> T createJaxbAlbum(T jaxbAlbum, Album album, String username) {<NEW_LINE>jaxbAlbum.setId(String.valueOf(album.getId()));<NEW_LINE>jaxbAlbum.setName(album.getName());<NEW_LINE>if (album.getArtist() != null) {<NEW_LINE>jaxbAlbum.setArtist(album.getArtist());<NEW_LINE>org.airsonic.player.domain...
getArtist(album.getArtist());