idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
644,955
public void syncLines(@NonNull final I_PP_Order_Candidate ppOrderCandidateRecord) {<NEW_LINE>final Date dateStartSchedule = TimeUtil.asDate(ppOrderCandidateRecord.getDateStartSchedule());<NEW_LINE>Check.assumeNotNull(dateStartSchedule, "PP_Order_Candidate.DateStartSchedule is never null!");<NEW_LINE>final I_PP_Product_...
productBOM = getVerifiedBOMProduct(ppOrderCandidateRecord, dateStartSchedule);
817,883
public void drawBackgroundLayer(float partialTicks, int mouseX, int mouseY, Runnable menuBackgroundRenderer) {<NEW_LINE>// FIX FOR MC-121719 // https://bugs.mojang.com/browse/MC-121719<NEW_LINE>partialTicks = mc.getRenderPartialTicks();<NEW_LINE>// END FIX<NEW_LINE>RenderHelper.disableStandardItemLighting();<NEW_LINE>t...
, sy + 1, -1);
1,381,072
protected void encodeStrictList(FacesContext context, DataList list) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = list.getClientId(context);<NEW_LINE>boolean isDefinition = list.isDefinition();<NEW_LINE>UIComponent definitionFacet = list.getFacet("descrip...
writer.startElement(listTag, null);
1,234,099
public void jpa10_Injection_DPU_AppLevel_JNDI_Web_CMTS() throws Exception {<NEW_LINE>final String testName = "jpa10_Injection_DPU_AppLevel_JNDI_Web_CMTS";<NEW_LINE>final String testMethod = "testDefaultPersistenceUnitInjection";<NEW_LINE>final TestExecutionContext testExecCtx = new <MASK><NEW_LINE>final HashMap<String,...
TestExecutionContext(testName, testLogicClassName, testMethod);
1,759,217
public static ListMediasWithPublicResponse unmarshall(ListMediasWithPublicResponse listMediasWithPublicResponse, UnmarshallerContext context) {<NEW_LINE>listMediasWithPublicResponse.setRequestId(context.stringValue("ListMediasWithPublicResponse.RequestId"));<NEW_LINE>listMediasWithPublicResponse.setSuccess(context.bool...
("ListMediasWithPublicResponse.PublicMedias[" + i + "].Name"));
422,410
public void mapPartition(Iterable<Tuple3<Integer, Integer, B[]>> values, Collector<Tuple3<Integer, Integer, B[]>> out) {<NEW_LINE>if (getRuntimeContext().getNumberOfParallelSubtasks() == 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ComContext context = new ComContext(this.sessionId, getIterationRuntimeContext());<NEW_LINE...
LOG.info("taskId: {}, AllReduceSum start", taskId);
434,097
public static Point3D_F64 transfer_1_to_2(TrifocalTensor T, Point2D_F64 x1, Vector3D_F64 l3, @Nullable Point3D_F64 x2) {<NEW_LINE>if (x2 == null)<NEW_LINE>x2 = new Point3D_F64();<NEW_LINE>GeometryMath_F64.mult(T.T1, l3, x2);<NEW_LINE>// storage solution here to avoid the need to declare a temporary variable<NEW_LINE>do...
+= x2.z * x1.y;
1,190,108
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands<NEW_LINE>* .ExecutionEvent)<NEW_LINE>*/<NEW_LINE>public Object execute(final ExecutionEvent event) {<NEW_LINE>if (!saveDirtyEditor(event)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_...
IEditorInput editorInput = activeEditor.getEditorInput();
866,779
private static void compareXmlDeposits(XjcRdeDeposit deposit1, XjcRdeDeposit deposit2) {<NEW_LINE>Set<String> domains1 = new HashSet<>();<NEW_LINE>Set<String> domains2 = new HashSet<>();<NEW_LINE>Set<String> registrars1 = new HashSet<>();<NEW_LINE>Set<String> registrars2 = new HashSet<>();<NEW_LINE>process(deposit1, do...
registrars2, registrars1, "registrars", "deposit2");
583,701
public void handleReadyNotification(final NotificationEvent notificationKey, final DateTime eventDate, final UUID userToken, final Long accountRecordId, final Long tenantRecordId) {<NEW_LINE>try {<NEW_LINE>if (!(notificationKey instanceof OverdueAsyncBusNotificationKey)) {<NEW_LINE>log.error("Overdue service received U...
(userToken, accountRecordId, tenantRecordId));
211,319
public double xAtY(double y) {<NEW_LINE>final double[] coords = new double[6];<NEW_LINE>final Point2D.Double p1 = new Point2D.Double();<NEW_LINE>final Point2D.Double p2 = new Point2D.Double();<NEW_LINE>final int segmentKind = getYSegment(y, coords, p1, p2);<NEW_LINE>final double t = (y - p1.y) / (<MASK><NEW_LINE>final ...
p2.y - p1.y);
204,776
static private List<JavaProblem> checkForMissingBraces(PreprocSketch ps) {<NEW_LINE>List<JavaProblem> problems = new ArrayList<>(0);<NEW_LINE>for (int tabIndex = 0; tabIndex < ps.tabStartOffsets.length; tabIndex++) {<NEW_LINE>int tabStartOffset = ps.tabStartOffsets[tabIndex];<NEW_LINE>int tabEndOffset = (tabIndex < ps....
ps.scrubbedPdeCode, tabStartOffset, tabEndOffset);
1,274,781
private void inserirInformacoesDosSimbolosInspecionados(StringBuilder sb) {<NEW_LINE>List<NoDeclaracaoBase> model = inspetorDeSimbolos.getNosInspecionados();<NEW_LINE>StringBuilder sbItems = new StringBuilder();<NEW_LINE>for (int i = 0; i < model.size(); i++) {<NEW_LINE>sbItems.append("{");<NEW_LINE>NoDeclaracaoBase no...
getTrechoCodigoFonteNome().getColuna());
1,657,537
static public HashMap<String, String> readSettings(File inputFile) {<NEW_LINE>HashMap<String, String> outgoing = new HashMap<>();<NEW_LINE>// return empty hash<NEW_LINE>if (!inputFile.exists())<NEW_LINE>return outgoing;<NEW_LINE>String[] lines = PApplet.loadStrings(inputFile);<NEW_LINE>for (int i = 0; i < lines.length;...
equals = line.indexOf('=');
1,628,191
private double computeRoleScore(String regex, List<Integer> groups) {<NEW_LINE>SortedMap<String, SortedSet<String>> nodeRolesMap = regexToNodeRolesMap(regex, groups, _nodes);<NEW_LINE>// produce a role-level topology and the list of nodes in each edge's source role<NEW_LINE>// that have an edge to some node in the edge...
roles1 = nodeRolesMap.get(n1);
1,459,687
private void decodePulseData(BitReader _in) throws AACException {<NEW_LINE>pulseCount = _in.readNBit(2) + 1;<NEW_LINE>pulseStartSWB = _in.readNBit(6);<NEW_LINE>if (pulseStartSWB >= info.getSWBCount())<NEW_LINE>throw new AACException("pulse SWB out of range: " + pulseStartSWB + " > " + info.getSWBCount());<NEW_LINE>if (...
info.getSWBOffsets()[pulseStartSWB];
1,343,931
public static void vertical5(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3]...
int imgHeight = dst.getHeight();
658,378
private void visitExportDefault(NodeTraversal t, Node export) {<NEW_LINE>Node child = export.getFirstChild();<NEW_LINE>String name = null;<NEW_LINE>if (child.isFunction() || child.isClass()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (name != null) {<NEW_LINE>Node decl = child.detach();<NEW_LINE>export.replaceWith(decl);...
name = NodeUtil.getName(child);
1,036,476
protected void verifyRenaming(IJavaElement element) throws JavaModelException {<NEW_LINE>String newName = getNewNameFor(element);<NEW_LINE>boolean isValid = true;<NEW_LINE>IJavaProject project = element.getJavaProject();<NEW_LINE>String sourceLevel = project.getOption(JavaCore.COMPILER_SOURCE, true);<NEW_LINE>String co...
.getSeverity() != IStatus.ERROR;
1,811,452
protected void onFrame(Parser.ParsedFrame frame) {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("onFrame({})", frame);<NEW_LINE>final RetainableByteBuffer referenced = frame.hasPayload() && !frame.isReleaseable() ? networkBuffer : null;<NEW_LINE>if (referenced != null)<NEW_LINE>referenced.retain();<NEW_LINE>co...
LOG.debug("succeeded onFrame({})", frame);
210,328
public void dump() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(String.format("Network%n"));<NEW_LINE>sb.append(String.format("LearningRate = %f%n", learningRate));<NEW_LINE>sb.append(String.format("Momentum = %f%n", momentum));<NEW_LINE>sb.append(String.format("Epochs = %d%n", epochs...
info(sb.toString());
267,727
public String run(EjbJarMetadata metadata) throws IOException {<NEW_LINE>Ejb ejb = metadata.findByEjbClass(referencingClass);<NEW_LINE>if (ejb == null) {<NEW_LINE>return ref.getResRefName();<NEW_LINE>}<NEW_LINE>String resourceRefName = ref.getResRefName();<NEW_LINE>if (javax.sql.DataSource.class.getName().equals(ref.ge...
ejb, ref.getResRefName());
367,920
public void partitionUpdate(PartitionUpdateParam partParam) {<NEW_LINE>GeneralPartUpdateParam param = (GeneralPartUpdateParam) partParam;<NEW_LINE>ServerLongAnyRow row = GraphMatrixUtils.getPSLongKeyRow(psContext, param);<NEW_LINE>ILongKeyAnyValuePartOp keyValuePart = (ILongKeyAnyValuePartOp) param.getKeyValuePart();<N...
] neighbors = keyValuePart.getValues();
1,518,381
public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>List<JasperPrint> jasperPrintList = BaseHttpServlet.getJasperPrintList(request);<NEW_LINE>if (jasperPrintList == null) {<NEW_LINE>throw new ServletException("No JasperPrint documents found on th...
.getParameter(BaseHttpServlet.BUFFERED_OUTPUT_REQUEST_PARAMETER));
1,005,271
public CharSequence toLocalizedString(@NonNull Context context) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (mSize != -1) {<NEW_LINE>sb.append(Formatter.formatFileSize(context, mSize)).append(", ");<NEW_LINE>}<NEW_LINE>switch(mArch) {<NEW_LINE>case ARCH_32BIT:<NEW_LINE>sb.append(context.getString(R.s...
binary_32_bit)).append(", ");
231,547
private MethodSpec waiterConfigInitializer(String waiterKey, WaiterDefinition waiterDefinition) {<NEW_LINE>ClassName overrideConfig = ClassName.get(WaiterOverrideConfiguration.class);<NEW_LINE>MethodSpec.Builder configMethod = MethodSpec.methodBuilder(waiterFieldName(waiterKey) + "Config").addModifiers(PRIVATE, STATIC)...
"$T waitTimeout = optionalOverrideConfig.flatMap(WaiterOverrideConfiguration::waitTimeout)" + ".orElse(null)", Duration.class);
582,297
protected void updateAnchors(final boolean excludeRoomCreator, final UpdateAnchorsCallback callback) {<NEW_LINE>mHttpRequest.getPushers(mCurrRoomID, new HttpRequests.OnResponseCallback<HttpResponse.PusherList>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponse(final int retcode, String retmsg, final HttpR...
null, null, null, null);
1,193,118
public static double norm(double[] v, double p) {<NEW_LINE>double norm = 0;<NEW_LINE>if (p == 1.0) {<NEW_LINE>for (double e : v) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>} else if (p == 2.0) {<NEW_LINE>for (double e : v) {<NEW_LINE>norm += e * e;<NEW_LINE>}<NEW_LINE>norm = Math.sqrt(norm);<NEW_LINE>} else if (p == Double....
norm += Math.abs(e);
57,911
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>if (sources[0] instanceof File) {<NEW_LINE>final File file = (File) sources[0];<NEW_LINE>final String encoding ...
(content.getBytes(encoding));
1,579,918
public void exportDiagram(EntityDiagram diagram, IFigure diagramFigure, DiagramPart diagramPart, File targetFile) throws DBException {<NEW_LINE>checkWriterRegister();<NEW_LINE>try {<NEW_LINE>IFigure figure = diagramPart.getFigure();<NEW_LINE>Rectangle contentBounds = figure instanceof FreeformLayeredPane ? ((FreeformLa...
SVGGraphics2D svgGenerator = new SVGGraphics2D(document);
1,715,206
private static long buildIndex(SerializedColumnHeader column, HostMemoryBuffer buffer, ArrayDeque<ColumnOffsets> offsetsList, long bufferOffset) {<NEW_LINE>long validity = 0;<NEW_LINE>long offsets = 0;<NEW_LINE>long data = 0;<NEW_LINE>long dataLen = 0;<NEW_LINE>long rowCount = column.getRowCount();<NEW_LINE>if (column....
(rowCount * Integer.BYTES));
1,563,769
public void contactsOperationsCodeSnippets() {<NEW_LINE>CertificateAsyncClient certificateAsyncClient = getCertificateAsyncClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.certificates.CertificateAsyncClient.setContacts#contacts<NEW_LINE>CertificateContact contactToAdd = new CertificateContact().setName<MASK><N...
("user").setEmail("useremail@example.com");
300,203
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String virtualWanName, String p2SVpnServerConfigurationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is req...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,390,876
public void traceExecution(final MessageFrame messageFrame, final ExecuteOperation executeOperation) {<NEW_LINE>final Operation currentOp = messageFrame.getCurrentOperation();<NEW_LINE>int pc = messageFrame.getPC();<NEW_LINE>int opcode = currentOp.getOpcode();<NEW_LINE>String remainingGas = shortNumber(messageFrame.get...
()).append(",");
126,380
List<CountPerDayOfWeek> countPerDayOfWeek(final String table, final StatsRequest statsRequest) {<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>logger.debug("Calculating count for day of week for table {}", table);<NEW_LINE>String sql = "SELECT \n" + " DAYOFWEEK(time) AS dayofweek, \n" + " count(*...
setCount(counter.intValue());
1,386,476
public boolean initVRCompositor(boolean allowed) {<NEW_LINE>// clear the error store<NEW_LINE>hmdErrorStore.<MASK><NEW_LINE>if (allowed) {<NEW_LINE>long result = VR.VR_GetGenericInterface(VR.IVRCompositor_Version, hmdErrorStore);<NEW_LINE>if (result > 0) {<NEW_LINE>if (hmdErrorStore.get(0) == VR.EVRInitError_VRInitErro...
put(0, VR.EVRInitError_VRInitError_None);
1,611,116
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtTextSet = "@name('set') on SupportBean set var1OD = intPrimitive, var2OD = var2OD, var1OD = intBoxed, var3OD = var3OD + 1";<NEW_LINE>env.compileDeploy(stmtTextSet).addListener("set");<NEW_LINE>String[] fieldsVar = new String[] { "var1OD", "var2OD", "var3O...
{ 10, 1, 3 });
1,342,294
public static IRubyObject name_list(ThreadContext context, IRubyObject recv) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>EncodingService service = runtime.getEncodingService();<NEW_LINE>RubyArray result = runtime.newArray(service.getEncodings().size() + service.getAliases().size());<NEW_LINE>HashEntryIterator i...
(runtime.newString(INTERNAL));
764,720
protected List<String> possibleValues(JspSyntaxSupport sup, SyntaxElement.TagDirective item) {<NEW_LINE>List<String> l <MASK><NEW_LINE>FileObject orig = sup.getFileObject();<NEW_LINE>FileObject documentBase = JspUtils.guessWebModuleRoot(orig);<NEW_LINE>if (documentBase != null) {<NEW_LINE>FileObject webInfTags = JspUti...
= new ArrayList<String>();
354,784
public static boolean heal(@NotNull LivingEntity target, double amount, EntityRegainHealthEvent.RegainReason reason) {<NEW_LINE>if (target.isDead() || amount <= 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final AttributeInstance attribute = target.getAttribute(Attribute.GENERIC_MAX_HEALTH);<NEW_LINE>if (attribute =...
EntityRegainHealthEvent(target, amount, reason);
1,032,245
protected void processTasks(boolean redstoneCheck) {<NEW_LINE>if (!redstoneCheck || getInventory().getSlot(SLOT.VIAL).isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!shouldDoWorkThisTick(20)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InventorySlot slot = getInventory(<MASK><NEW_LINE>if (slot.isEmpty()) {<NEW_LINE>i...
).getSlot(SLOT.PATTERN);
1,106,666
public void init(Analyzer analyzer) throws UserException {<NEW_LINE>// Compute the memory layout for the generated tuple.<NEW_LINE>computeStats(analyzer);<NEW_LINE>// createDefaultSmap(analyzer);<NEW_LINE>// // populate resolvedTupleExprs and outputSmap_<NEW_LINE>// List<SlotDescriptor> sortTupleSlots = info.getSortTup...
sortTupleSlots.get(i)));
120,962
private static String microsoftLogin(String email, String password, String cookie, String ppft, String urlPost) throws LoginException {<NEW_LINE>Map<String, String> postData = new HashMap<>();<NEW_LINE>postData.put("login", email);<NEW_LINE>postData.put("loginfmt", email);<NEW_LINE>postData.put("passwd", password);<NEW...
matcher = AUTHCODE_REGEX.matcher(decodedUrl);
525,343
final AdminSetUserMFAPreferenceResult executeAdminSetUserMFAPreference(AdminSetUserMFAPreferenceRequest adminSetUserMFAPreferenceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminSetUserMFAPreferenceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
826,181
protected void registerAfterCompletionWithExistingTransaction(Object transaction, List<TransactionSynchronization> synchronizations) {<NEW_LINE>JtaTransactionObject txObject = (JtaTransactionObject) transaction;<NEW_LINE>logger.debug("Registering after-completion synchronization with existing JTA transaction");<NEW_LIN...
invokeAfterCompletion(synchronizations, TransactionSynchronization.STATUS_UNKNOWN);
736,180
public CompletableFuture<List<MappedKeyValue>> asList() {<NEW_LINE>StreamingMode mode = this.streamingMode;<NEW_LINE>if (mode == StreamingMode.ITERATOR)<NEW_LINE>mode = (this.rowLimit == 0) <MASK><NEW_LINE>// if the streaming mode is EXACT, try and grab things as one chunk<NEW_LINE>if (mode == StreamingMode.EXACT) {<NE...
? StreamingMode.WANT_ALL : StreamingMode.EXACT;
1,390,544
public GetUnfilteredPartitionMetadataResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetUnfilteredPartitionMetadataResult getUnfilteredPartitionMetadataResult = new GetUnfilteredPartitionMetadataResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
)).unmarshall(context));
181,174
public LogData readFlowLogs(final int execId, final int startByte, final int length) throws ExecutorManagerException {<NEW_LINE>logger.info("readFlowLogs called");<NEW_LINE>if (this.flowRunner == null) {<NEW_LINE>logger.warn(String.format("Attempt to read flow logs before flow execId: %d got a chance to start", execId)...
= this.flowRunner.getExecutionDir();
692,346
AsyncTimer startAsyncTimer(TimerName asyncTimerName, long startTick) {<NEW_LINE>AsyncTimer asyncTimer = new AsyncTimer((TimerNameImpl) asyncTimerName, startTick);<NEW_LINE>synchronized (asyncTimerLock) {<NEW_LINE>if (asyncTimers == null) {<NEW_LINE>asyncTimers = Lists.newArrayList();<NEW_LINE>}<NEW_LINE>if (asyncTimers...
.count += loopAsyncTimer.getCount();
963,314
public static IndexOrdinalsFieldData build(final IndexReader indexReader, IndexOrdinalsFieldData indexFieldData, CircuitBreakerService breakerService, Logger logger, ToScriptFieldFactory<SortedSetDocValues> toScriptFieldFactory) throws IOException {<NEW_LINE>assert indexReader.leaves().size() > 1;<NEW_LINE>long startTi...
().get(i));
1,720,880
public void run(RegressionEnvironment env) {<NEW_LINE>SupportBeanCombinedProps combined = SupportBeanCombinedProps.makeDefaultBean();<NEW_LINE>SupportBeanComplexProps complex = SupportBeanComplexProps.makeDefaultBean();<NEW_LINE>assertEquals("0ma0", combined.getIndexed(0).getMapped<MASK><NEW_LINE>String epl = "@name('s...
("0ma").getValue());
917,535
LongKeyNode putRecord(DBRecord record, Table table) throws IOException {<NEW_LINE>long key = record.getKey();<NEW_LINE>int index = getKeyIndex(key);<NEW_LINE>// Handle record update case<NEW_LINE>if (index >= 0) {<NEW_LINE>if (table != null) {<NEW_LINE>// update index tables associated with table<NEW_LINE>table.updated...
(getKey(1), key);
1,199,884
private static JWSHeader convert(JwsHeader headers) {<NEW_LINE>JWSHeader.Builder builder = new JWSHeader.Builder(JWSAlgorithm.parse(headers.getAlgorithm().getName()));<NEW_LINE>if (headers.getJwkSetUrl() != null) {<NEW_LINE>builder.jwkURL(convertAsURI(JoseHeaderNames.JKU, headers.getJwkSetUrl()));<NEW_LINE>}<NEW_LINE>M...
.JWK + "' JOSE header"), ex);
207,323
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser#doParse(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void d...
parser.parse(element, parserContext);
878,856
public static String create(Operation op, String docId, Map<String, Object> fields, Properties properties, Schema schema) throws IOException {<NEW_LINE>if (op == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (docId == null || docId.length() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (fields.isEmpty()) ...
testSetConditionTemplate = properties.getProperty(TESTSET_CONDITION);
82,408
public void exitNo_neighbor_activate_rb_stanza(No_neighbor_activate_rb_stanzaContext ctx) {<NEW_LINE>BgpProcess proc = currentVrf().getBgpProcess();<NEW_LINE>if (ctx.ip != null) {<NEW_LINE>Ip ip = toIp(ctx.ip);<NEW_LINE>IpBgpPeerGroup pg = proc.<MASK><NEW_LINE>if (pg == null) {<NEW_LINE>warn(ctx, "ignoring attempt to a...
getIpPeerGroups().get(ip);
1,074,253
public void spawn() {<NEW_LINE>Vector3f pos = Vector3f.ZERO;<NEW_LINE>int chunkX = pos.getFloorX() >> 4;<NEW_LINE>int chunkZ = pos.getFloorX() >> 4;<NEW_LINE>for (int x = -3; x < 3; x++) {<NEW_LINE>for (int z = -3; z < 3; z++) {<NEW_LINE>LevelChunkPacket data2 = new LevelChunkPacket();<NEW_LINE>data2.setChunkX(chunkX +...
attributes = new ArrayList<>();
1,687,447
public void addCookie(Cookie cookie) {<NEW_LINE>String cookieName = cookie.getName();<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>// 306998.15<NEW_LINE>logger.logp(Level.FINE, CLASS_NAME, "addCookie", "Adding cookie --> " + <MASK><NEW_LINE>}<NEW_LINE>//...
cookieName, "[" + this + "]");
1,352,050
private Runnable createSyncer(final FileLocker lock, final byte[] deps, final File stateFileName, final File depsFileName, final DsoManifest manifest, final Boolean quietly) {<NEW_LINE>return new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>Log.v(TAG, "st...
TAG, "releasing dso store lock for " + soDirectory + " (from syncer thread)");
624,439
final ScanProvisionedProductsResult executeScanProvisionedProducts(ScanProvisionedProductsRequest scanProvisionedProductsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(scanProvisionedProductsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Service Catalog");
300,520
private void collapse(Result result, Map<String, Integer> knownCollapses, Result resultSource, String collapseField, int collapseSize) {<NEW_LINE>for (Iterator<Hit> it = resultSource.hits().iterator(); it.hasNext(); ) {<NEW_LINE>Hit unknownHit = it.next();<NEW_LINE>if (!(unknownHit instanceof FastHit)) {<NEW_LINE>resul...
numHitsThisField = knownCollapses.get(collapseId);
1,042,907
public void onClick(View view) {<NEW_LINE>if (buttons.getVisibility() == View.VISIBLE) {<NEW_LINE>Animation ranim = AnimationUtils.loadAnimation(context, R.anim.compose_rotate_back);<NEW_LINE>ranim.setFillAfter(true);<NEW_LINE>overflow.startAnimation(ranim);<NEW_LINE>Animation anim = AnimationUtils.loadAnimation(contex...
buttons.setVisibility(View.VISIBLE);
762,157
public static void main(String[] args) throws Exception {<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefault().createScoped(Collections.singleton(IamScopes.CLOUD_PLATFORM));<NEW_LINE>Iam service = new Iam.Builder(GoogleNetHttpTransport.newTrustedTransport(), JacksonFactory.getDefaultInstanc...
"Description: " + role.getDescription());
326,084
private void prepareQuickLaunchItems() {<NEW_LINE>final int dimSize = DisplayUtils.getPxFromDp(getResources(), 48.0f, 1.0f);<NEW_LINE>final int dimMargin = DisplayUtils.getPxFromDp(getResources(), 7.0f, 1.0f);<NEW_LINE>final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(dimSize, dimSize);<NEW_LINE>lp.set...
null, R.attr.quickLaunchButtonStyle);
376,215
boolean isReadyToTransitionToThisPhase(final String policy, final IndexMetadata indexMetadata, final String phase) {<NEW_LINE><MASK><NEW_LINE>if (lifecycleDate == null) {<NEW_LINE>logger.trace("[{}] no index creation or origination date has been set yet", indexMetadata.getIndex().getName());<NEW_LINE>return true;<NEW_L...
final Long lifecycleDate = calculateOriginationMillis(indexMetadata);
41,939
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(description = "Delete the specified group membership. Upon successful completion of this delete request, the server will return NO_CONTENT status code without any data (no object will be returned).")<NEW_LINE>public void deleteGroupMembership(@Parameter(descript...
request, this.response, "deleteGroupMembership");
684,287
private static void runScriptTest(String[] testargs) {<NEW_LINE>if (runTime.isJava9("setup run script test " + testargs[1] + " - with ProcessRunner")) {<NEW_LINE>String result = null;<NEW_LINE>try {<NEW_LINE>String jarSikulix = "sikulix.jar";<NEW_LINE>if (runTime.runningMac) {<NEW_LINE>jarSikulix = "SikuliX.app/Content...
+ testargs[1] + ": success");
571,110
public static void savePPM(Planar<GrayU8> rgb, String fileName, @Nullable DogArray_I8 temp) throws IOException {<NEW_LINE>File out = new File(fileName);<NEW_LINE>DataOutputStream os = new <MASK><NEW_LINE>String header = String.format("P6\n%d %d\n255\n", rgb.width, rgb.height);<NEW_LINE>os.write(header.getBytes(UTF_8));...
DataOutputStream(new FileOutputStream(out));
1,102,778
private void importIntoTrieLog(final TrieLogLayer layer, final Hash blockHash) {<NEW_LINE>layer.setBlockHash(blockHash);<NEW_LINE>for (final Map.Entry<Address, BonsaiValue<BonsaiAccount>> updatedAccount : accountsToUpdate.entrySet()) {<NEW_LINE>final BonsaiValue<BonsaiAccount> bonsaiValue = updatedAccount.getValue();<N...
).getUpdated(), blockHash);
1,720,083
private void redrawBitmapForSquareCorners(@NonNull Canvas canvas) {<NEW_LINE>if (all(mCornersRounded)) {<NEW_LINE>// no square corners<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mCornerRadius == 0) {<NEW_LINE>// no round corners<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float left = mDrawableRect.left;<NEW_LINE>float top = mD...
canvas.drawRect(mSquareCornersRect, mBitmapPaint);
1,332,094
public static DescribeDcdnDomainMultiUsageDataResponse unmarshall(DescribeDcdnDomainMultiUsageDataResponse describeDcdnDomainMultiUsageDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainMultiUsageDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainMultiUsageDataResponse.RequestId"));<NEW_LIN...
= new ArrayList<RequestDataModule>();
657,347
public static Item createManagerItem(Item sel, List<Field> fields, int startIndex, boolean allPushDown, HandlerType type) {<NEW_LINE>Item ret;<NEW_LINE>if (sel.isWithSubQuery()) {<NEW_LINE>sel = PlanUtil.rebuildSubQueryItem(sel);<NEW_LINE>}<NEW_LINE>if (sel.basicConstItem())<NEW_LINE>return sel;<NEW_LINE>Item.<MASK><NE...
ItemType i = sel.type();
11,843
public boolean isOwner(final IEssentials ess, final User user, final ISign signProvider, final int nameIndex, final String namePrefix) {<NEW_LINE>final Sign sign = (Sign) signProvider.getBlock().getState();<NEW_LINE>if (ess.getSignDataProvider() == null || ess.getSignDataProvider().getSignData(sign, SIGN_OWNER_KEY) == ...
getUUID().toString());
1,778,215
public BlockTermState readTermState(long baseDocStartFP, long basePosStartFP, long basePayStartFP, DataInput termStatesInput, FieldInfo fieldInfo, BlockTermState reuse) throws IOException {<NEW_LINE>IndexOptions indexOptions = fieldInfo.getIndexOptions();<NEW_LINE>boolean hasFreqs = indexOptions != IndexOptions.DOCS;<N...
= basePosStartFP + termStatesInput.readVLong();
11,460
public DescribeAppInstanceResult describeAppInstance(DescribeAppInstanceRequest describeAppInstanceRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
new JsonResponseHandler<DescribeAppInstanceResult>(unmarshaller);
502,603
private int processReady(Msg msg) {<NEW_LINE>if (msg.size() < 30) {<NEW_LINE>session.getSocket().eventHandshakeFailedProtocol(session.getEndpoint(), ZMQ.ZMQ_PROTOCOL_ERROR_ZMTP_MALFORMED_COMMAND_READY);<NEW_LINE>return ZError.EPROTO;<NEW_LINE>}<NEW_LINE>int clen = Curve.Size.BOXZERO.bytes() + msg.size() - 14;<NEW_LINE>...
Size.NONCE.bytes());
1,050,689
public void saveOntologies(Collection<OWLOntology> roots, Collection<OWLOntology> ontologies, OutputStream out) throws IOException, OWLOntologyStorageException {<NEW_LINE>try (ZipOutputStream f = new ZipOutputStream(out)) {<NEW_LINE>addIndex(roots, ontologies, f);<NEW_LINE>for (OWLOntology o : roots) {<NEW_LINE>ZipEntr...
write(temp.toByteArray());
1,270,567
public static void startMethod(@Advice.This Query query, @Advice.Local("otelCallDepth") CallDepth callDepth, @Advice.Local("otelHibernateOperation") HibernateOperation hibernateOperation, @Advice.Local("otelContext") Context context, @Advice.Local("otelScope") Scope scope) {<NEW_LINE>callDepth = CallDepth.forClass(Hibe...
.getQueryString()), sessionInfo);
541,393
public CompletableFuture<@Nullable Void> publishValue(Command command) {<NEW_LINE>cachedValue.update(command);<NEW_LINE>String mqttCommandValue = cachedValue.getMQTTpublishValue();<NEW_LINE>final MqttBrokerConnection connection = this.connection;<NEW_LINE>if (!readOnly && connection != null) {<NEW_LINE>// Formatter: Ap...
f = new CompletableFuture<>();
359,253
private static void updateValues(Set<Point> values, List<ItemSelection> selectedItems, TimelineChart chart) {<NEW_LINE>values.clear();<NEW_LINE>for (ItemSelection sel : selectedItems) {<NEW_LINE>XYItemSelection xySel = (XYItemSelection) sel;<NEW_LINE>XYItem item = xySel.getItem();<NEW_LINE>TimelineXYPainter painter = (...
yValue, item, context)));
266,895
private static int floatToInt(final float value) {<NEW_LINE>if (Float.isNaN(value)) {<NEW_LINE>return FLOAT_NAN;<NEW_LINE>} else if (value == Float.POSITIVE_INFINITY) {<NEW_LINE>return FLOAT_POSITIVE_INFINITY;<NEW_LINE>} else if (value == Float.NEGATIVE_INFINITY) {<NEW_LINE>return FLOAT_NEGATIVE_INFINITY;<NEW_LINE>}<NE...
Math.round(mantissa) * FLOAT_PRECISION;
841,049
protected void initAppPanelUI() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>if (scrollPane != null) {<NEW_LINE>add(scrollPane, BorderLayout.CENTER);<NEW_LINE>} else {<NEW_LINE>add(this.content, BorderLayout.CENTER);<NEW_LINE>}<NEW_LINE>leftToolBar = new JToolBar();<NEW_LINE>leftToolBar.setFloatable(false);<NEW_L...
add(rightToolBar, BorderLayout.EAST);
1,117,823
private static UsageViewPresentation createPresentation(@Nonnull UsageViewDescriptor descriptor, @Nonnull Usage[] usages) {<NEW_LINE>UsageViewPresentation presentation = new UsageViewPresentation();<NEW_LINE>presentation.setTabText(RefactoringBundle.message("usageView.tabText"));<NEW_LINE>presentation.setTargetsNodeTex...
final PsiElementUsage elementUsage = (PsiElementUsage) usage;
1,138,845
// SSS FIXME: Needs an update to reflect instr. change<NEW_LINE>@Override<NEW_LINE>public void DefineInstanceMethodInstr(DefineInstanceMethodInstr defineinstancemethodinstr) {<NEW_LINE>IRMethod method = defineinstancemethodinstr.getMethod();<NEW_LINE>JVMVisitorMethodContext context = new JVMVisitorMethodContext();<NEW_...
.contains(IRFlags.REQUIRES_CLASS));
845,771
public static IntegrationResult runIntegrations(SourceSet ss, Path tmpJarDir, Path pomPath, boolean nativeRequested, String requestedJavaVersion) {<NEW_LINE>IntegrationResult result = new IntegrationResult(null, null, null);<NEW_LINE>Source source = ss.getMainSource();<NEW_LINE>LinkedHashMap<String, String> repos = new...
currentThread().setContextClassLoader(integrationCl);
429,623
private WildflyMessageDestination modifyMessageDestinationModel(MessagingDeployment model, String name, MessageDestination.Type type) throws ConfigurationException {<NEW_LINE>if (model == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// check whether the destination doesn't exist yet<NEW_LINE>for (MessageDestinatio...
return new WildflyMessageDestination(name, type);
1,766,308
public void writeExternal(final Element element) {<NEW_LINE>element.setAttribute(ID_ATTR, myId);<NEW_LINE>element.setAttribute(ACTIVE_ATTR, Boolean.toString(myActive));<NEW_LINE>element.setAttribute(ANCHOR_ATTR, myAnchor.toString());<NEW_LINE>element.setAttribute(AUTOHIDE_ATTR<MASK><NEW_LINE>element.setAttribute(INTERN...
, Boolean.toString(myAutoHide));
1,217,858
public FilterRegistrationBean<Filter> corsFilter(JerseyApplicationPath applicationPath) {<NEW_LINE>FilterRegistrationBean<Filter> registration = new FilterRegistrationBean<>();<NEW_LINE>registration.setName("camunda-cors");<NEW_LINE>CorsFilter corsFilter = new CorsFilter();<NEW_LINE>registration.setFilter(corsFilter);<...
getCors().getExposedHeaders());
167,484
public JavaFileObject createFileObject(@NonNull final Location location, @NonNull final File file, @NonNull final File root, @NullAllowed final JavaFileFilterImplementation filter, @NullAllowed final Charset encoding) {<NEW_LINE>final String[] pkgNamePair = FileObjects.getFolderAndBaseName(FileObjects.getRelativePath(r...
FileObjects.getRelativePath(root, file);
1,321,195
private void sendSnapshotShardUpdate(final Snapshot snapshot, final ShardId shardId, final ShardSnapshotStatus status) {<NEW_LINE>remoteFailedRequestDeduplicator.executeOnce(new UpdateIndexShardSnapshotStatusRequest(snapshot, shardId, status), new ActionListener<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public vo...
trace("[{}] [{}] updated snapshot state", snapshot, status);
1,329,301
private boolean processExposeMethod(ExecutableElement method) {<NEW_LINE>if (NamingMirror.isPresent(method)) {<NEW_LINE>reporter.withElement(method).annotationNamed(NamingMirror.simpleName()).warning("@Encoding.Expose method '%s' have naming annotation which is ignored," + <MASK><NEW_LINE>}<NEW_LINE>if (method.getModif...
" an accessor name is configured using @Value.Style(get) patterns", method.getSimpleName());
1,700,384
private static void initApplication(FileObject dirFO, String platformID) throws IOException {<NEW_LINE>SuiteProject project = (SuiteProject) ProjectManager.getDefault().findProject(dirFO);<NEW_LINE>SuiteProperties suiteProps = new SuiteProperties(project, project.getHelper(), project.getEvaluator(), Collections.<NbModu...
setTitle(branding.getTitle());
1,516,346
public void managePasswordLinkRequest(MegaError e, String decryptedLink) {<NEW_LINE>logDebug("onRequestFinish");<NEW_LINE>if (progressBar != null) {<NEW_LINE>progressBar.setVisibility(View.GONE);<NEW_LINE>}<NEW_LINE>if (e.getErrorCode() == MegaError.API_OK && !isTextEmpty(decryptedLink)) {<NEW_LINE>Intent intent = null...
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
867,878
public int seekMovement() {<NEW_LINE>if (fieldConcept.getValue() == null)<NEW_LINE>return 0;<NEW_LINE>int HR_Movement_ID = 0;<NEW_LINE>String date = DB.TO_DATE(fieldValidFrom.getValue());<NEW_LINE>int Process_ID = 0;<NEW_LINE>KeyNamePair ppp = (KeyNamePair) fieldProcess.getSelectedItem();<NEW_LINE>int Employee_ID = 0;<...
getCtx(), sHR_Movement_ID, null);
1,154,279
private static ValidateResult updateValidate(String dbName, String sql, int[] paramsTypes, Object[] mockedVals) {<NEW_LINE>ValidateResult status = new ValidateResult(sql);<NEW_LINE>Connection connection = null;<NEW_LINE>PreparedStatement preparedStatement = null;<NEW_LINE>try {<NEW_LINE>connection = DataSourceUtil.getC...
(SqlBuilder.net2Java(sql));
319,422
static void toJson(AddressResolverOptions obj, java.util.Map<String, Object> json) {<NEW_LINE>json.put("cacheMaxTimeToLive", obj.getCacheMaxTimeToLive());<NEW_LINE>json.put("cacheMinTimeToLive", obj.getCacheMinTimeToLive());<NEW_LINE>json.put("cacheNegativeTimeToLive", obj.getCacheNegativeTimeToLive());<NEW_LINE>if (ob...
"roundRobinInetAddress", obj.isRoundRobinInetAddress());
323,141
public static DescribeSynchronizationJobStatusListResponse unmarshall(DescribeSynchronizationJobStatusListResponse describeSynchronizationJobStatusListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSynchronizationJobStatusListResponse.setRequestId<MASK><NEW_LINE>describeSynchronizationJobStatusListResponse.setE...
(_ctx.stringValue("DescribeSynchronizationJobStatusListResponse.RequestId"));
1,199,210
private void init() {<NEW_LINE>this.setStyle("padding: 5px");<NEW_LINE>Div div = new Div();<NEW_LINE>div.setStyle("background-color: transparent !important; border: none; margin: 5px;");<NEW_LINE>autoCommit = new WYesNoEditor("AutoCommit", Msg.getMsg(Env.getCtx(), "AutoCommit", true), null, false, false, true);<NEW_LIN...
.getCtx(), "Save"));
72,494
public void insert() {<NEW_LINE>log.info("");<NEW_LINE>// --- Delete first<NEW_LINE>int no = delete();<NEW_LINE>// Handle NULL<NEW_LINE>if (m_Value == null || m_Value.length() == 0) {<NEW_LINE>if (DisplayType.isLookup(m_DisplayType)) {<NEW_LINE>// -1 may cause problems (BPartner - M_DiscountSchema<NEW_LINE>m_Value = "-...
I_AD_Preference.Table_Name, ITrx.TRXNAME_None);
180,251
public static Expr flatten(Expr expr) {<NEW_LINE>return expr.visit(childExpr -> {<NEW_LINE>if (childExpr instanceof BinaryOpExprBase) {<NEW_LINE>BinaryOpExprBase binary = (BinaryOpExprBase) childExpr;<NEW_LINE>if (Evals.isAllConstants(binary.left, binary.right)) {<NEW_LINE>return childExpr.eval(InputBindings.nilBinding...
nilBindings()).toExpr();