idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
256,189
protected Collection<Object> executeQuery(String dataType, SearchParameterMap map) {<NEW_LINE>// TODO: Once HAPI breaks this out from the server dependencies<NEW_LINE>// we can include it on its own.<NEW_LINE>ca.uhn.fhir.jpa.searchparam.SearchParameterMap hapiMap = ca.uhn.fhir.jpa.searchparam.SearchParameterMap.newSync...
this.registry.getResourceDao(dataType);
311,932
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Setting IpAddress To Log and taking header for original IP if forwarded from proxy<NEW_LINE>ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));<NEW_L...
ResourceBundle.getBundle("i18n.servlets.errors", locale);
1,843,035
protected Object computeValueAt(int row, int col) {<NEW_LINE>int index = ((Integer) filteredToFullIndexes.get(row)).intValue();<NEW_LINE>switch(col) {<NEW_LINE>case 0:<NEW_LINE>return sortedClassNames[index];<NEW_LINE>case 1:<NEW_LINE>// return new Long(totalAllocObjectsSize[index]);<NEW_LINE>return (nTotalBytes == 0) ...
(double) nTotalClasses)) + ")";
175,671
final PutIntegrationResponseResult executePutIntegrationResponse(PutIntegrationResponseRequest putIntegrationResponseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putIntegrationResponseRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,313,755
public void afterVisible(TransactionState txnState, boolean txnOperated) {<NEW_LINE>super.afterVisible(txnState, txnOperated);<NEW_LINE>// collect table-level metrics after spark load job finished<NEW_LINE>Database db = Catalog.getCurrentCatalog().getDb(dbId);<NEW_LINE>if (null == db) {<NEW_LINE>return;<NEW_LINE>}<NEW_...
.get(TableMetricsEntity.TABLE_LOAD_ROWS));
39,025
public void revisit(DirectedGraph g) {<NEW_LINE>if (g.getDirection() == PositionConstants.SOUTH)<NEW_LINE>return;<NEW_LINE>int temp;<NEW_LINE>g.setDefaultPadding(t.t<MASK><NEW_LINE>for (int i = 0; i < g.nodes.size(); i++) {<NEW_LINE>Node node = (Node) g.nodes.get(i);<NEW_LINE>temp = node.width;<NEW_LINE>node.width = no...
(g.getDefaultPadding()));
84,622
public synchronized void removeContext(OSCoreCtx ctx) {<NEW_LINE>if (ctx != null) {<NEW_LINE>ByteId rid = new ByteId(ctx.getRecipientId());<NEW_LINE>HashMap<ByteId, OSCoreCtx> ridMap = contextMap.get(rid);<NEW_LINE>// If there is no existing map for this RID return<NEW_LINE>if (ridMap == null) {<NEW_LINE>return;<NEW_LI...
LOGGER.error(ErrorDescriptions.CONTEXT_NULL);
1,213,281
protected void doWork() throws InterruptedException {<NEW_LINE>long startTime = System.nanoTime();<NEW_LINE>this.redrawNeeded = false;<NEW_LINE>FrameBuffer frameBuffer = this.mapView.getFrameBuffer();<NEW_LINE>Bitmap bitmap = frameBuffer.getDrawingBitmap();<NEW_LINE>if (bitmap != null) {<NEW_LINE><MASK><NEW_LINE>MapPos...
this.drawingCanvas.setBitmap(bitmap);
522,812
private static void cubicCurveSegment(float[] coords, float t0, float t1) {<NEW_LINE>// http://stackoverflow.com/questions/11703283/cubic-bezier-curve-segment<NEW_LINE>float u0 = 1 - t0;<NEW_LINE>float u1 = 1 - t1;<NEW_LINE>// Calculate the points at t0 and t1 for the quadratic curves formed by (P0, P1, P2) and<NEW_LIN...
coords[4] * t0 * t0;
1,639,036
public boolean initWorkbench(int ad_Workbench_ID) {<NEW_LINE>AD_Workbench_ID = ad_Workbench_ID;<NEW_LINE>// Get WB info<NEW_LINE>String sql = null;<NEW_LINE>if (Env.isBaseLanguage(m_ctx, "AD_Workbench")) {<NEW_LINE>// 1..3<NEW_LINE>sql = // 4..7<NEW_LINE>"SELECT w.Name,w.Description,w.Help," + // 8<NEW_LINE>" w.AD_Colu...
ResultSet rs = pstmt.executeQuery();
243,438
public void change(Event e, @Nullable Object[] delta, ChangeMode mode) {<NEW_LINE>List<ItemStack> drops = ((EntityDeathEvent) e).getDrops();<NEW_LINE>assert delta != null;<NEW_LINE>for (Object o : delta) {<NEW_LINE>if (o instanceof Experience) {<NEW_LINE>if (mode == ChangeMode.REMOVE_ALL || mode == ChangeMode.REMOVE &&...
) o).getXP());
341,596
public void marshall(MatchmakingTicket matchmakingTicket, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (matchmakingTicket == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(matchmakingTicket.getTicketId(), ...
matchmakingTicket.getEndTime(), ENDTIME_BINDING);
1,471,572
protected void extendVocabularies(final DigestURL root, final VocabularyScraper scraper, final Set<String> vocabularyNames) {<NEW_LINE>Tagging.Metatag tag;<NEW_LINE>Map<String, String> vocMap = scraper == null ? null : scraper.removeVocMap(root);<NEW_LINE>if (vocMap != null && vocMap.size() > 0) {<NEW_LINE>for (Map.Ent...
tagset = new HashSet<>();
1,514,571
private void init(Context context, AttributeSet attrs) {<NEW_LINE>TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ATEStrokeTextView);<NEW_LINE>setBackground(Selector.shapeBuild().setCornerRadius(a.getDimensionPixelSize(R.styleable.ATEStrokeTextView_cornerRadius, 1)).setStrokeWidth(ScreenUtils.dpToPx(1)...
md_grey_500)).create());
760,906
public static void manipulateKey(CommandType type, OutputStream outputStream, String outFormat, InputStream inputStream, String inFormat, String masterKeyUri, String credentialPath, int keyId) throws GeneralSecurityException, IOException {<NEW_LINE>KeysetManager manager = KeysetManager.withKeysetHandle(getKeysetHandle(...
manager = manager.setPrimary(keyId);
1,848,392
protected void parseDefineBitsLossless(InStream in, int length, boolean hasAlpha) throws IOException {<NEW_LINE>int id = in.readUI16();<NEW_LINE>int format = in.readUI8();<NEW_LINE>int width = in.readUI16();<NEW_LINE>int height = in.readUI16();<NEW_LINE>int size = 0;<NEW_LINE>switch(format) {<NEW_LINE>case BITMAP_FORMA...
dataIn) : new Color(dataIn);
1,060,600
public void updatePostgresActionsSetPreparedStatementConfiguration(MongockTemplate mongoTemplate) {<NEW_LINE>List<Plugin> plugins = mongoTemplate.find(query(new Criteria().andOperator(where(fieldName(QPlugin.plugin.packageName)).is("postgres-plugin"))), Plugin.class);<NEW_LINE>if (plugins.size() < 1) {<NEW_LINE>return;...
pluginSpecifiedTemplates = new ArrayList<>();
1,545,438
public static void main(String[] args) {<NEW_LINE>final String pskIdentity = System.getenv("PSK_IDENTITY");<NEW_LINE>if (pskIdentity == null || pskIdentity.length() == 0) {<NEW_LINE>throw new RuntimeException("Environment variable PSK_IDENTITY has not been set.");<NEW_LINE>}<NEW_LINE>final String pskSecret = System.get...
ForwardingResource coap2http = new IotCoreForwardingResource("gcp");
812,425
private String commitToBitbucket(String repositoryUrl, String content, String commitMessage, boolean create) throws SourceConnectorException {<NEW_LINE>BitbucketResource resource = resolver.resolve(repositoryUrl);<NEW_LINE>try {<NEW_LINE>// @formatter:off<NEW_LINE>String contentUrl = endpoint("/repositories/:team/:repo...
getRepository()).toString();
302,132
public Serializable generate(final SharedSessionContractImplementor session, final Object obj) {<NEW_LINE>String objName = obj.getClass().getName();<NEW_LINE>if (!FIELD_CACHE.containsKey(objName)) {<NEW_LINE>Field field = getIdField(obj.getClass());<NEW_LINE>if (field == null) {<NEW_LINE>throw new IllegalArgumentExcept...
field = FIELD_CACHE.get(objName);
1,853,035
public void init(HttpBreakpointMessage breakpoint, boolean add) {<NEW_LINE>this.add = add;<NEW_LINE>this.breakpoint = breakpoint;<NEW_LINE>this.removeAllFields();<NEW_LINE>if (add) {<NEW_LINE>this.setTitle(Constant.messages.getString("brk.brkpoint.add.title"));<NEW_LINE>} else {<NEW_LINE>this.setTitle(Constant.messages...
(breakpoint.getLocation()));
651,779
public Map<String, String> tableOptions() {<NEW_LINE>Map<String, String> options = super.tableOptions();<NEW_LINE>options.put(KafkaConstant.TOPIC, topic);<NEW_LINE>options.put(KafkaConstant.PROPERTIES_BOOTSTRAP_SERVERS, bootstrapServers);<NEW_LINE>if (format instanceof JsonFormat || format instanceof AvroFormat || form...
KafkaConstant.CONNECTOR, KafkaConstant.UPSERT_KAFKA);
665,253
public void log(LogRecord record) {<NEW_LINE>Level level = record.getLevel();<NEW_LINE>if (level.intValue() >= Level.SEVERE.intValue()) {<NEW_LINE>if (slf4jLogger.isErrorEnabled()) {<NEW_LINE>slf4jLogger.error(getMessage(record), record.getThrown());<NEW_LINE>}<NEW_LINE>} else if (level.intValue() >= Level.WARNING.intV...
), record.getThrown());
1,047,328
public void addDataNodeConfigChangeListener(DataNodeConfigChangeListener listener) throws Exception {<NEW_LINE>if (recordingListenersRegistered.compareAndSet(false, true)) {<NEW_LINE>ConfigChangeRecorder primaryListener = new ConfigChangeRecorder(listener);<NEW_LINE>ConfigChangeRecorder secondaryListener = new ConfigCh...
), false).start();
1,005,017
protected VariableTree createEnhancedForLoopArrayVariable(ExpressionTree expression, VariableElement variableElement) {<NEW_LINE>TypeMirror type = null;<NEW_LINE>if (TreeUtils.isLocalVariable(expression)) {<NEW_LINE>// It is necessary to get the elt because just getting the type of expression<NEW_LINE>// directly (via ...
elt = TreeUtils.elementFromTree(expression);
535,707
final ResetCacheResult executeResetCache(ResetCacheRequest resetCacheRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resetCacheRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
false), new ResetCacheResultJsonUnmarshaller());
1,596,667
public void processSave(final IHUContext huContext, final I_M_HU_Trx_Attribute huTrxAttribute, final Object referencedModel) {<NEW_LINE>final IAttributeDAO attributeDAO = <MASK><NEW_LINE>// not 100% sure that referencedModel and thus asi aren't null<NEW_LINE>final I_M_AttributeSetInstance asi = InterfaceWrapperHelper.c...
Services.get(IAttributeDAO.class);
1,347,880
public AggregationForgeFactory validateAggregationChild(ExprValidationContext validationContext) throws ExprValidationException {<NEW_LINE>if (positionalParams.length > 2 || positionalParams.length == 0) {<NEW_LINE>throw makeExceptionExpectedParamNum(1, 2);<NEW_LINE>}<NEW_LINE>EPType childType = null;<NEW_LINE>boolean ...
validationContext.getStatementRawInfo()) : null;
1,072,680
public double[][] preprocessSimilarities(double[][] similarityMatrix) {<NEW_LINE>RealMatrix similarity = new Array2DRowRealMatrix(similarityMatrix, true);<NEW_LINE>int connections = (similarity.getColumnDimension() * (similarity.getColumnDimension() - 1)) / 2;<NEW_LINE>EmpiricalDistribution dist = new EmpiricalDistribu...
dist.cumulativeProbability(value) * value;
1,319,745
public static LazyListModel create(final org.openide.nodes.Children.Keys ch, ListModel model) {<NEW_LINE>class NodeF implements Filter {<NEW_LINE><NEW_LINE>private <MASK><NEW_LINE><NEW_LINE>public boolean accept(Object obj) {<NEW_LINE>return obj instanceof org.openide.nodes.Node;<NEW_LINE>}<NEW_LINE><NEW_LINE>public vo...
java.lang.reflect.Method m;
1,443,302
public void addBodyFactory(short type, BodyFactory<T> bodyFactory) {<NEW_LINE>Objects.requireNonNull(bodyFactory, "bodyFactory");<NEW_LINE>final BodyFactory<T> old = bodyFactoryMap.put((int) type, bodyFactory);<NEW_LINE>if (old != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>final Header header = this.headerFactory.newH...
throw new IllegalStateException("duplicated type:" + type);
682,704
static void formatSignedNumber(ByteList out, long value, long second, int width, char padder) {<NEW_LINE>if (padder == '0') {<NEW_LINE>if (value == 0) {<NEW_LINE>// -0 needs to be -0<NEW_LINE>out.append(value == 0 && second < 0 ? '-' : '+');<NEW_LINE>padding(out, 0, width - 1, padder);<NEW_LINE>} else if (value > 0) {<...
), width - 1, padder);
198,668
private static Or2AvroBasicConvert fetchConverter(Field avroField) throws DatabusException {<NEW_LINE>Or2AvroBasicConvert converter = convertCacheMap.get(avroField);<NEW_LINE>if (converter != null) {<NEW_LINE>return converter;<NEW_LINE>}<NEW_LINE>synchronized (convertCacheMap) {<NEW_LINE>converter = convertCacheMap.get...
DatabusException("schema is " + schemaStr + ", converter not exist!");
1,827,291
public Collection<OWLAxiom> write(OWLAnnotationProperty property) {<NEW_LINE>List<OWLAxiom> axioms = new ArrayList<>();<NEW_LINE>axioms.addAll<MASK><NEW_LINE>if (!isFiltered(AxiomType.SUB_ANNOTATION_PROPERTY_OF)) {<NEW_LINE>Collection<OWLAnnotationProperty> properties = sortedCollection();<NEW_LINE>o.subAnnotationPrope...
(writeEntityStart(ANNOTATION_PROPERTY, property));
202,780
public static void main(String[] args) {<NEW_LINE>// get configuration from config file<NEW_LINE>Configuration conf = new Configuration();<NEW_LINE>conf.addResource(AngelConf.ANGEL_JOB_CONF_FILE);<NEW_LINE>String containerIdStr = System.getenv(Environment.CONTAINER_ID.name());<NEW_LINE>ContainerId containerId = Convert...
= new WorkerAttemptId(workerId, attemptIndex);
1,467,616
protected void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY) {<NEW_LINE>mc.renderEngine.bindTexture(TEXTURE);<NEW_LINE>drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);<NEW_LINE>super.drawGuiContainerBackgroundLayer(f, mouseX, mouseY);<NEW_LINE>if (distiller != null) {<NEW_LINE><MASK><NEW_L...
mc.renderEngine.bindTexture(TEXTURE);
1,707,223
public Integer call() throws Exception {<NEW_LINE>Map<String, ProtectedRegion> regions = manager.getRegions();<NEW_LINE>Collection<ProtectedRegion> iterableRegions = regions.values();<NEW_LINE>if (filterByIntersecting != null) {<NEW_LINE>iterableRegions = filterByIntersecting.getIntersectingRegions(iterableRegions);<NE...
RegionListEntry entry = new RegionListEntry(rg);
1,671,700
public TeslaBaseResult list(String sceneType, String scheduleType, String triggerType, String names, Integer page, Integer pageSize) throws Exception {<NEW_LINE>if (page == null) {<NEW_LINE>page = 1;<NEW_LINE>}<NEW_LINE>if (pageSize == null) {<NEW_LINE>pageSize = 10;<NEW_LINE>}<NEW_LINE>List<String> <MASK><NEW_LINE>if ...
jobNameList = new ArrayList<>();
1,092,130
public static DescribeSasAssetStatisticsResponse unmarshall(DescribeSasAssetStatisticsResponse describeSasAssetStatisticsResponse, UnmarshallerContext context) {<NEW_LINE>describeSasAssetStatisticsResponse.setRequestId(context.stringValue("DescribeSasAssetStatisticsResponse.RequestId"));<NEW_LINE>describeSasAssetStatis...
("DescribeSasAssetStatisticsResponse.AssetList[" + i + "].SafeEventCount"));
944,899
public DeleteExperimentTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteExperimentTemplateResult deleteExperimentTemplateResult = new DeleteExperimentTemplateResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
674,897
private void resolveDynamicEmbeddedImageDataSources() {<NEW_LINE>if (this.textHTML != null) {<NEW_LINE>final Map<String, String> generatedCids = new HashMap<>();<NEW_LINE>final StringBuffer stringBuffer = new StringBuffer();<NEW_LINE>final Matcher matcher = IMG_SRC_PATTERN.matcher(this.textHTML);<NEW_LINE>while (matche...
generatedCids.put(srcLocation, cid);
1,809,979
private TagInventory createTag(String resourceUuid, String tag, TagType type, String resourceType) {<NEW_LINE>if (!resourceTypeClassMap.keySet().contains(resourceType)) {<NEW_LINE>throw new IllegalArgumentException(String.format("no resource type[%s] found for tag", resourceType));<NEW_LINE>}<NEW_LINE>if (isTagExisting...
stag = SystemTagInventory.valueOf(vo);
91,806
public static String gerarValorAleatorio(TipoDado tipoDado) {<NEW_LINE>switch(tipoDado) {<NEW_LINE>case INTEIRO:<NEW_LINE>return Integer.toString(minimoInteiro + rnd.nextInt(maximoInteiro + 1 - minimoInteiro));<NEW_LINE>case CARACTER:<NEW_LINE>return "'" + ((char) (65 + rnd.nextInt(26))) + "'";<NEW_LINE>case REAL:<NEW_...
(cadeias.length)] + "\"";
271,162
public static synchronized String expandEnvironmentStrings(String path) {<NEW_LINE>if (isWindows()) {<NEW_LINE>String expanded = CoreNatives.ExpandEnvironmentStrings(path);<NEW_LINE>if (expanded != null) {<NEW_LINE>path = expanded;<NEW_LINE>}<NEW_LINE>if (path.startsWith(DESKTOP_DIRECTORY)) {<NEW_LINE>String desktopDir...
home + path.substring(1);
1,394,062
public UpdateRouteCalculatorResult updateRouteCalculator(UpdateRouteCalculatorRequest updateRouteCalculatorRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRouteCalculatorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
464,470
/* GRECLIPSE edit<NEW_LINE>private boolean checkIfLastStatementIsReturnOrThrow(Statement code) {<NEW_LINE>if (code instanceof BlockStatement) {<NEW_LINE>BlockStatement blockStatement = (BlockStatement) code;<NEW_LINE>List<Statement<MASK><NEW_LINE>int statementCnt = statementList.size();<NEW_LINE>if (statementCnt > 0) {...
> statementList = blockStatement.getStatements();
82,211
public void configRoute(Routes routes) {<NEW_LINE>routes.setMappingSuperClass(true);<NEW_LINE>List<Class<Controller>> controllerClassList = ClassScanner.scanSubClass(Controller.class);<NEW_LINE>if (ArrayUtil.isNotEmpty(controllerClassList)) {<NEW_LINE>for (Class<Controller> clazz : controllerClassList) {<NEW_LINE>Strin...
), route.getControllerClass());
130,777
protected void appendMemberHeaderFragment(CharArrayBuffer buffer) {<NEW_LINE>int spaceStart, spaceEnd;<NEW_LINE>// space before comment<NEW_LINE>if (hasComment()) {<NEW_LINE><MASK><NEW_LINE>spaceEnd = this.fCommentRange[0];<NEW_LINE>if (spaceEnd > 0) {<NEW_LINE>buffer.append(this.fDocument, spaceStart, spaceEnd - space...
spaceStart = this.fSourceRange[0];
586,973
private void processLeave(BigDecimal attendanceHours) {<NEW_LINE>scriptCtx.remove("_LeaveDurationInMillis");<NEW_LINE>scriptCtx.remove("_LeaveHours");<NEW_LINE>scriptCtx.remove("_LeaveMinutes");<NEW_LINE>scriptCtx.remove("_AttendanceDurationInMillis");<NEW_LINE>scriptCtx.remove("_AttendanceHours");<NEW_LINE>scriptCtx.r...
MHRIncidence(this, shiftIncidence, durationInMillis);
1,368,264
private HttpEntity createJsonStreamerEntity(ResponseHandlerInterface progressHandler) throws IOException {<NEW_LINE>JsonStreamerEntity entity = new JsonStreamerEntity(progressHandler, !fileParams.isEmpty() || !streamParams.isEmpty(), elapsedFieldInJsonStreamer);<NEW_LINE>// Add string params<NEW_LINE>for (ConcurrentSki...
.contentType, stream.autoClose));
1,745,956
protected void encodeMarkup(FacesContext context, LinkButton linkButton) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>boolean disabled = linkButton.isDisabled();<NEW_LINE>boolean hasIcon = LangUtils.isNotBlank(linkButton.getIcon());<NEW_LINE>boolean hasValue = LangUtils.is...
String style = linkButton.getStyle();
683,481
public void defaultWriteObject() throws IOException {<NEW_LINE>// tag defaultwriteObject<NEW_LINE>writeByte(99);<NEW_LINE>FSTClazzInfo newInfo = clinfo;<NEW_LINE>Object replObj = toWrite;<NEW_LINE>if (newInfo.getWriteReplaceMethod() != null) {<NEW_LINE>LOGGER.log(FSTLogger.Level.WARN, "WRITE REPLACE NOT FULLY SUPPORTED...
getFieldArray(), 0, 0);
972,615
public void testMultiSharedNonDurableConsumer_SecOff() throws Exception {<NEW_LINE>clientServer.setMarkToEndOfLog();<NEW_LINE>runInServlet("testBasicMDBTopic");<NEW_LINE>// The servlet has sent 20 distinct messages which are received by either MDB1 or MDB2,<NEW_LINE>// the MDB's run as multiple instances so the order t...
"Incorrect number of messages:" + count, count, 20);
1,590,647
public boolean validate() throws ContractValidateException {<NEW_LINE>if (this.any == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstant.CONTRACT_NOT_EXIST);<NEW_LINE>}<NEW_LINE>if (chainBaseManager == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstant.STORE_NOT_EXIST);<NEW_LINE>}<...
ContractValidateException(e.getMessage());
1,759,215
public void detachContentView(boolean reattachToPreviousParent) {<NEW_LINE>if (mContent != null && mContentViewParent != null && mContentViewInParentViewIndex >= 0) {<NEW_LINE>Picture picture = new Picture();<NEW_LINE>mContent.draw(picture.beginRecording(mWidth, mHeight));<NEW_LINE>picture.endRecording();<NEW_LINE>View...
, makeMeasureSpec(mHeight, EXACTLY));
1,505,948
public void drawAmplitudeXAxis(Graphics2D graphics) {<NEW_LINE>graphics.setColor(Color.black);<NEW_LINE>int minX = Math.round(cs.getMin(Axis.X));<NEW_LINE>int maxY = Math.round(cs.getMax(Axis.Y));<NEW_LINE>int lineWidthFourPixels = Math.round(LayerUtilities.pixelsToUnits(graphics, 4, true));<NEW_LINE>int textOffset = M...
i, minX + lineWidthFourPixels, i);
166,026
public static void enableRegionDesktopSharing(Call call, int x, int y, int width, int height) {<NEW_LINE>// Use the default media device corresponding to the screen to share<NEW_LINE>MediaService mediaService = GuiActivator.getMediaService();<NEW_LINE>List<MediaDevice> desktopDevices = mediaService.getDevices(MediaType...
DesktopSharingFrame.createTransparentFrame(call, false);
1,274,197
private void createNewGenerators(long time) {<NEW_LINE>int endIndex = 0;<NEW_LINE>long endTime = Long.MIN_VALUE;<NEW_LINE>for (int i = 0; i < RING_ENTRIES; i++) {<NEW_LINE>if (ringBuffer[i] != null && ringBuffer[i].getEndTime() > endTime) {<NEW_LINE>endIndex = i;<NEW_LINE>endTime = ringBuffer[i].getEndTime();<NEW_LINE>...
) > maxChangePerDay() * duration);
1,089,281
public boolean parameterMustBeNonNull(XMethod m, int param) {<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.print("Checking " + m + " param " + param + " for @Nonnull...");<NEW_LINE>}<NEW_LINE>TypeQualifierAnnotation tqa = TypeQualifierApplications.<MASK><NEW_LINE>if (tqa == null && param == 0) {<NEW_LINE>String name = m.g...
getEffectiveTypeQualifierAnnotation(m, param, nonnullTypeQualifierValue);
204,975
final PutScheduledActionResult executePutScheduledAction(PutScheduledActionRequest putScheduledActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putScheduledActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Application Auto Scaling");
1,089,122
private static ExpressionSequence composeSequence(final ExpressionParsingState state, final int nodeIndex) {<NEW_LINE>if (state == null || nodeIndex >= state.size()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (state.hasExpressionAt(nodeIndex)) {<NEW_LINE>// could happen if we are traversing pointers recursively, so...
new ArrayList<IStandardExpression>(2);
95,756
private void updateCheckBoxes() {<NEW_LINE>Map<Object, JCheckBox> remaining = new IdentityHashMap<>();<NEW_LINE>// Add ones that are<NEW_LINE>remaining.putAll(item2CheckBoxMap);<NEW_LINE>ListModel model = list.getModel();<NEW_LINE>for (int i = 0; i < model.getSize(); i++) {<NEW_LINE>final Object <MASK><NEW_LINE>if (ite...
item = model.getElementAt(i);
1,641,630
public void insert(DiffXEvent e) throws IOException {<NEW_LINE>if (DEBUG) {<NEW_LINE>System.err.println("+" + e);<NEW_LINE>}<NEW_LINE>// insert an attribute to specify<NEW_LINE>if (e instanceof OpenElementEvent) {<NEW_LINE>e.toXML(this.xml);<NEW_LINE>this.xml.attribute("dfx:insert", "true");<NEW_LINE>// just output the...
e.toXML(this.xml);
234,048
final CreateOTAUpdateResult executeCreateOTAUpdate(CreateOTAUpdateRequest createOTAUpdateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOTAUpdateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
238,194
public boolean applyRule(String query, BibEntry bibEntry) {<NEW_LINE>String searchString = query;<NEW_LINE>if (!searchFlags.contains(SearchRules.SearchFlags.CASE_SENSITIVE)) {<NEW_LINE>searchString = searchString.toLowerCase(Locale.ROOT);<NEW_LINE>}<NEW_LINE>List<String> unmatchedWords = new SentenceAnalyzer(searchStri...
> unmatchedWordsIterator = unmatchedWords.iterator();
867,268
static PayableDocument toPayableDocument(@NonNull final InvoiceRow row, @NonNull final List<PaymentDocument> paymentDocuments, @NonNull final MoneyService moneyService, @NonNull final InvoiceProcessingServiceCompanyService invoiceProcessingServiceCompanyService) {<NEW_LINE>// NOTE: assuming InvoiceRow amounts are alrea...
toMoney(row.getOpenAmt());
1,835,511
public Concrete.Expression visitCase(Concrete.CaseExpression expr, Void params) {<NEW_LINE>Set<Referable> eliminatedRefs = new HashSet<>();<NEW_LINE>try (Utils.ContextSaver ignored = new Utils.ContextSaver(myContext)) {<NEW_LINE>for (Concrete.CaseArgument caseArg : expr.getArguments()) {<NEW_LINE>caseArg.expression = c...
type.accept(this, null);
1,762,437
private synchronized void init() {<NEW_LINE>if (!initialized.compareAndSet(false, true)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.debug("GStreamer webcam device initialization");<NEW_LINE>pipe = new Pipeline(getName());<NEW_LINE>source = ElementFactory.make(GStreamerDriver.getSourceBySystem(), "source");<NEW_LINE>if ...
"device", videoFile.getAbsolutePath());
1,631,816
public void propertyChange(final PropertyChangeEvent pEvent) {<NEW_LINE>switch(pEvent.getPropertyName().toLowerCase()) {<NEW_LINE>case "updated":<NEW_LINE>assert pEvent.getNewValue() instanceof Boolean;<NEW_LINE>final boolean updateOldDepthMax = (boolean) pEvent.getNewValue();<NEW_LINE>// Generic cast always safe.<NEW_...
(Integer) pEvent.getNewValue();
523,164
public static void moveUpgradedFiles(TsFileResource resource) throws IOException {<NEW_LINE>List<TsFileResource> upgradedResources = resource.getUpgradedResources();<NEW_LINE>for (TsFileResource upgradedResource : upgradedResources) {<NEW_LINE>File upgradedFile = upgradedResource.getTsFile();<NEW_LINE>long partition = ...
upgradedResource.setStatus(TsFileResourceStatus.CLOSED);
114,683
public Set<UsageContext> keySet() {<NEW_LINE>final EnumSet<UsageContext> set = EnumSet.noneOf(UsageContext.class);<NEW_LINE>if (terms > 0L) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (postings > 0L) {<NEW_LINE>set.add(UsageContext.POSTINGS);<NEW_LINE>}<NEW_LINE>if (termFrequencies > 0L) {<NEW_LINE>set.add(UsageContext.FR...
set.add(UsageContext.TERMS);
1,693,064
public GaussianQuadratureData generate(int n) {<NEW_LINE>ArgChecker.isTrue(n > 0);<NEW_LINE>Pair<DoubleFunction1D, DoubleFunction1D>[] polynomials = LAGUERRE.getPolynomialsAndFirstDerivative(n, _alpha);<NEW_LINE>Pair<DoubleFunction1D, DoubleFunction1D> pair = polynomials[n];<NEW_LINE>DoubleFunction1D p1 = polynomials[<...
n - 1].getFirst();
882,469
final CreateLocationNfsResult executeCreateLocationNfs(CreateLocationNfsRequest createLocationNfsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLocationNfsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,726,764
private Optional<LocationId> extractValueNewAsLocationId(@NonNull final RecordRefWithLogEntry recordRefWithLogEntry) {<NEW_LINE>final RecordChangeLogEntry logEntry = recordRefWithLogEntry.getRecordChangeLogEntry();<NEW_LINE>final Object valueNew = logEntry.getValueNew();<NEW_LINE>if (valueNew == null) {<NEW_LINE>logger...
) valueNew).getKey());
419,229
private static String askInputArgs(String command, String argLine) {<NEW_LINE>Matcher m = INPUT_PROP_REGEXP.matcher(argLine);<NEW_LINE>List<String> keys = new ArrayList<>();<NEW_LINE>List<String> defaults = new ArrayList<>();<NEW_LINE>while (m.find()) {<NEW_LINE>keys.add(m.group(1));<NEW_LINE>defaults.add(m.group(3) !=...
table.getDefaultEditor(String.class);
557,381
protected void paintVerticalMesh(Graphics2D g, Rectangle clip, Rectangle chartMask) {<NEW_LINE>Iterator<AxisMark> marks = marksComputer.marksIterator(chartMask.y, <MASK><NEW_LINE>if (WORKAROUND_OPENJDK_BUG)<NEW_LINE>return;<NEW_LINE>g.setPaint(VERTICAL_MESH_COLOR);<NEW_LINE>g.setStroke(Utils.forceSpeed() ? VERTICAL_MES...
chartMask.y + chartMask.height);
1,557,389
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest req = (HttpServletRequest) servletRequest;<NEW_LINE>HttpServletResponse resp = (HttpServletResponse) servletResponse;<NEW_LINE>try {<NEW_LINE>S...
filterChain.doFilter(req, resp);
190,173
public com.didiglobal.booster.aapt2.Resources.Item buildPartial() {<NEW_LINE>com.didiglobal.booster.aapt2.Resources.Item result = new com.didiglobal.booster.aapt2.Resources.Item(this);<NEW_LINE>if (valueCase_ == 1) {<NEW_LINE>if (refBuilder_ == null) {<NEW_LINE>result.value_ = value_;<NEW_LINE>} else {<NEW_LINE>result....
.value_ = idBuilder_.build();
544,032
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String automationAccountName, String credentialName, 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 ...
error(new IllegalArgumentException("Parameter automationAccountName is required and cannot be null."));
1,403,010
public int copyLinesFrom(MInvoiceBatch invoiceBatchFrom) {<NEW_LINE>if (isProcessed())<NEW_LINE>return 0;<NEW_LINE>List<MInvoiceBatchLine> fromInvoiceBatchLines = Arrays.asList(invoiceBatchFrom.getLines(true));<NEW_LINE>AtomicInteger count = new AtomicInteger();<NEW_LINE>fromInvoiceBatchLines.stream().forEach(invoiceBa...
updateAndGet(no -> no + 1);
61,655
public boolean isSupported(Node node) {<NEW_LINE>if (node == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>AbstractFile aFile = node.getLookup().lookup(AbstractFile.class);<NEW_LINE>if ((aFile == null) || (aFile.isDir())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String mimeType = aFile.getMIMEType();<NEW_LINE>...
"Mimetype not known for file: {0}", aFile.getName());
1,068,085
public void onBindViewHolder(@NonNull final TrackViewHolder holder, int position) {<NEW_LINE>holder.iconSegment.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_split_interval));<NEW_LINE>TitledSegment titledSegment = titledSegments.get(position);<NEW_LINE>holder.name.setText(titledSegment.name);<NEW_LINE...
(float) distance, app));
565,046
protected void computeScore(boolean isTargetLeft, int targetIndex) {<NEW_LINE>int N = Math.max(leftPts.size(), rightPts.size());<NEW_LINE>if (associationScore == null || associationScore.length < N) {<NEW_LINE>associationScore = new double[N];<NEW_LINE>}<NEW_LINE>if (isTargetLeft) {<NEW_LINE>D t = leftDesc.get(targetIn...
scorer.score(t, d);
408,871
Shader validateTextureOp(BaseShaderGraphics g, BaseTransform xform, Texture[] textures, PixelFormat format) {<NEW_LINE>Shader shader;<NEW_LINE>if (format == PixelFormat.MULTI_YCbCr_420) {<NEW_LINE>// must have at least three textures, any more than four are ignored<NEW_LINE>if (textures.length < 3) {<NEW_LINE>return nu...
null, g.getExtraAlpha());
113,525
private void addAllEntriesForKeyInSegment(List<IndexEntry> entries, IndexSegment indexSegment, IndexEntry entry) throws StoreException {<NEW_LINE>logger.trace("Fetching related entries of a blob with entry {} in index segment with start offset {} in {} " + "because they need to be retained", entry, indexSegment.getStar...
.getKey(), putValue));
1,176,029
private static void addExpandedAnnotation(final Rectangle bounds, final PathObjectHierarchy hierarchy, final PathObject pathObject, final double radiusPixels, final boolean constrainToParent, final boolean removeInterior, final LineCap cap) {<NEW_LINE>ROI roi = pathObject.getROI();<NEW_LINE>Geometry geometry = roi.getG...
geometry2 = GeometryTools.homogenizeGeometryCollection(geometry2);
1,684,442
private void cacheResponseInfo(final HttpResponse httpResponse, final File cacheFile) {<NEW_LINE>// write cache data to file if present<NEW_LINE>Properties newprops = new Properties();<NEW_LINE>if (null != httpResponse.getFirstHeader(LAST_MODIFIED)) {<NEW_LINE>newprops.setProperty(LAST_MODIFIED, httpResponse.getFirstHe...
store(fileOutputStream, "URLFileUpdater cache data for URL: " + url);
1,837,105
public <T extends HasGeometry> ListPair<T> split(List<T> items, int minSize) {<NEW_LINE>Preconditions.checkArgument(!items.isEmpty());<NEW_LINE>// sort nodes into increasing x, calculate min overlap where both groups<NEW_LINE>// have more than minChildren<NEW_LINE>// compute S the sum of all margin-values of the lists ...
Collections.min(pairs, comparator);
1,737,384
private void showUploadConfirmationDialog(@NonNull FragmentActivity activity, @NonNull String actionButton, @Nullable SelectionModeListener listener) {<NEW_LINE>long[] size = new long[1];<NEW_LINE>List<SelectableItem<GpxInfo>> items = new ArrayList<>();<NEW_LINE>for (GpxInfo gpxInfo : selectedItems) {<NEW_LINE>Selectab...
FragmentManager manager = activity.getSupportFragmentManager();
1,804,203
private void encryptParameters(final StandardParameterBuilder parameterBuilder, final String tableName, final AssignmentSegment assignmentSegment, final List<Object> parameters) {<NEW_LINE>String columnName = assignmentSegment.getColumns().get(0).getIdentifier().getValue();<NEW_LINE>int parameterMarkerIndex = ((Paramet...
.iterator().next();
1,405,989
public static // }<NEW_LINE>void storeClients(Collection<BaseClient> clients) throws OAuthProviderException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "storeClients");<NEW_LINE>// Quick and dirty for now, until the XML format gets finalized<NEW_LINE>String ls = System.getProperty("line.separator");<NEW_L...
+ Constants.XML_TAG_CLIENT + ">" + ls;
1,648,908
public void doActionLogout(final HttpServletRequest req, final HttpServletResponse res) throws Exception {<NEW_LINE>final HttpSession session = req.getSession(false);<NEW_LINE>if (null != session) {<NEW_LINE>log.debug("Logout - Events Processor Pre Logout events.");<NEW_LINE>EventsProcessor.process(PropsUtil.getArray(P...
session.setAttribute(LOG_OUT_ATTRIBUTE, true);
754,996
public static void createOldLanguageFile(Language lang, File file) throws IOException, LanguageNotFoundException {<NEW_LINE>LanguageService languageService = DefaultLanguageService.getLanguageService();<NEW_LINE>if (lang instanceof OldLanguage) {<NEW_LINE>throw new LanguageNotFoundException("Can't create an Old Langaug...
getLanguageDescription(lang.getLanguageID());
1,129,509
public static List<Point2D_F64> gridChess(int numRows, int numCols, double squareWidth) {<NEW_LINE>List<Point2D_F64> all = new ArrayList<>();<NEW_LINE>// convert it into the number of calibration points<NEW_LINE>numCols = numCols - 1;<NEW_LINE>numRows = numRows - 1;<NEW_LINE>// center the grid around the origin. length...
double y = startY + i * squareWidth;
768,736
public void enable() {<NEW_LINE>if (tfConfig != null) {<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("threshold"))) {<NEW_LINE>logger.debug("threshold {}", tfConfig.getThreshold());<NEW_LINE>setThreshold(tfConfig.getThreshold());<NEW_LINE>}<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStru...
this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
1,146,334
protected void fxKeyEvent(javafx.scene.input.KeyEvent fxEvent) {<NEW_LINE>int action = 0;<NEW_LINE>EventType<? extends KeyEvent> et = fxEvent.getEventType();<NEW_LINE>if (et == KeyEvent.KEY_PRESSED) {<NEW_LINE>action = processing.event.KeyEvent.PRESS;<NEW_LINE>} else if (et == KeyEvent.KEY_RELEASED) {<NEW_LINE>action =...
|= processing.event.Event.SHIFT;
1,629,624
public static JsonRequestBPartnerUpsertItem mapHospitalToUpsertRequest(@NonNull final Hospital hospital, @Nullable final String orgCode) {<NEW_LINE>final String hospitalExternalIdentifier = formatExternalId(hospital.getId());<NEW_LINE>final JsonRequestBPartner jsonRequestBPartner = new JsonRequestBPartner();<NEW_LINE>j...
setPhone(hospital.getPhone());
1,816,185
public int writePageHeaderAndDataIntoBuff(PublicBAOS pageBuffer, boolean first) throws IOException {<NEW_LINE>if (size == 0) {<NEW_LINE>return 0;<NEW_LINE>} else if (statistics.getCount() == 0) {<NEW_LINE>// this page is full of null point data<NEW_LINE>return writeEmptyPageIntoBuff(pageBuffer);<NEW_LINE>}<NEW_LINE>Byt...
position(), uncompressedSize, compressedBytes);
1,543,467
public static final void crop(final Response responseToCrop, final BlockOption requestedBlock, int maxTcpBertBulkBlocks) {<NEW_LINE>if (responseToCrop == null) {<NEW_LINE>throw new NullPointerException("response message must not be null");<NEW_LINE>} else if (requestedBlock == null) {<NEW_LINE>throw new NullPointerExce...
int size = requestedBlock.getSize();
475,095
public void compact(Function<StateT, InitialUpdate<StateT>> compactor) {<NEW_LINE>AtomicReference<Revision> compactedVersion = new AtomicReference<Revision>(null);<NEW_LINE>conditionallyWrite(state -> {<NEW_LINE>InitialUpdate<StateT> init = compactor.apply(state);<NEW_LINE>if (init == null) {<NEW_LINE>compactedVersion....
Revision oldMark = client.getMark();