idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,020,255
public void loadKeyboard(final EditorInfo editorInfo, final SettingsValues settingsValues, final int currentAutoCapsState, final int currentRecapitalizeState) {<NEW_LINE>final KeyboardLayoutSet.Builder builder = new KeyboardLayoutSet.Builder(mThemeContext, editorInfo);<NEW_LINE>final Resources res = mThemeContext.getRe...
onLoadKeyboard(currentAutoCapsState, currentRecapitalizeState, oneHandedModeEnabled);
540,923
/* * TASKS */<NEW_LINE>private void startFloorPlanTask() {<NEW_LINE>try {<NEW_LINE>final BuildingModel b = mAnyplaceCache.getSelectedBuilding();<NEW_LINE>if (b == null) {<NEW_LINE>Toast.makeText(getBaseContext(), "You haven't selected both building and floor...!", Toast.LENGTH_SHORT).show();<NEW_LINE>setResult(RESULT_C...
"floor_plan_path", floor_plan_file.getAbsolutePath());
1,666,688
public void replaceBlock(@Sender EntityRef sender, @CommandParam("blockName") String uri, @CommandParam(value = "maxDistance", required = false) Integer maxDistanceParam) {<NEW_LINE>int maxDistance = maxDistanceParam != null ? maxDistanceParam : 12;<NEW_LINE>EntityRef playerEntity = sender.getComponent(ClientComponent....
target.getComponent(BlockComponent.class);
398,169
private String request(String request) {<NEW_LINE>String result = null;<NEW_LINE>try {<NEW_LINE>URL url = new URL("http://" + fibaroAddress.getIp() + ":" + fibaroAddress.getPort() + request);<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) url.openConnection();<NEW_LINE>connection.setRequestMethod("GET");<N...
warn("Error while get getJson: {} ", request, e);
452,620
public static float distance(int mx, int my, int x, int y, int width, int height) {<NEW_LINE>if (inside(mx, my, x, y, width, height)) {<NEW_LINE>return 0;<NEW_LINE>} else {<NEW_LINE>if (mx > x && mx < x + width) {<NEW_LINE>return Math.min(Math.abs(my - y), Math.abs(my <MASK><NEW_LINE>} else if (my > y && my < y + heigh...
- (y + height)));
961,986
protected void onBindPreferenceViewHolder(Preference preference, PreferenceViewHolder holder) {<NEW_LINE>String prefId = preference.getKey();<NEW_LINE>if (HISTORY_INFO.equals(prefId)) {<NEW_LINE>TextView title = holder.itemView.findViewById(android.R.id.title);<NEW_LINE>AndroidUtils.setTextSecondaryColor(app, title, is...
, R.color.color_osm_edit_delete));
1,403,174
public ListArtifactsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListArtifactsResult listArtifactsResult = new ListArtifactsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
int originalDepth = context.getCurrentDepth();
601,138
public TestStepConfig createNewTestStep(WsdlOperation operation, StringToStringMap values) {<NEW_LINE>String name;<NEW_LINE>name = values.get(STEP_NAME);<NEW_LINE>String requestContent = operation.createRequest(values.getBoolean(CREATE_OPTIONAL_ELEMENTS_IN_REQUEST));<NEW_LINE>RequestStepConfig requestStepConfig = Reque...
= TestStepConfig.Factory.newInstance();
1,133,795
protected Dimension calcPreferredSize() {<NEW_LINE>calcPreferredSizeDepth++;<NEW_LINE>boolean restoreBounds = false;<NEW_LINE>if (safeArea && getWidth() > 0 && getHeight() > 0 && calcPreferredSizeDepth == 1) {<NEW_LINE>// If this container is marked as a safe area<NEW_LINE>// then we may need to add padding to make it ...
calcTmpInsets.restore(getStyle());
753,978
public void readFromFile(java.io.File configurationFile) {<NEW_LINE>try {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>if (configurationFile.getName().endsWith(".xml")) {<NEW_LINE>properties.loadFromXML(new FileInputStream(configurationFile));<NEW_LINE>} else {<NEW_LINE>properties.load(new FileInputStrea...
option.parseArg(values, 0);
468,846
protected CommunicationChannel connect() {<NEW_LINE>logger.<MASK><NEW_LINE>try {<NEW_LINE>CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(this.port);<NEW_LINE>SerialPort serialPort = portIdentifier.open("org.openhab.binding.satel", 2000);<NEW_LINE>serialPort.setSerialPortParams(19200, SerialPor...
info("Connecting to INT-RS module at {}", this.port);
380,241
private void packAndShow() {<NEW_LINE>boolean openMaximized = Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED);<NEW_LINE>//<NEW_LINE>// Set window position<NEW_LINE>{<NEW_LINE>Point windowLocation = Ini.getWindowLocation(0);<NEW_LINE>if (windowLocation == null) {<NEW_LINE>windowLocation = new Point(0, 0);<NEW_LINE>}<NEW...
0 ? 0 : windowLocation.y);
1,172,650
final DeleteArchiveResult executeDeleteArchive(DeleteArchiveRequest deleteArchiveRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteArchiveRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
71,357
public static void main(String[] argv) {<NEW_LINE>if (argv.length < 3)<NEW_LINE>printHelp();<NEW_LINE>matchUriAppVhost = Boolean.getBoolean("com.ibm.ws.pluginmerge.match.appname");<NEW_LINE>PluginMergeToolImpl toolInstance = new PluginMergeToolImpl();<NEW_LINE>try {<NEW_LINE>System.out.println("Merging:");<NEW_LINE>too...
System.out.println("Merge Complete");
1,700,525
protected void paintComponent(Graphics g) {<NEW_LINE>if (g instanceof Graphics2D) {<NEW_LINE>int side = getWidth();<NEW_LINE>Point2D.Float center = new Point2D.Float(halfSide, halfSide);<NEW_LINE>Color redFull = new Color(<MASK><NEW_LINE>Color redTrans = new Color(255, 0, 0, 0);<NEW_LINE>float radius = halfSide;<NEW_LI...
255, 0, 0, 150);
1,391,131
/*<NEW_LINE>* testBMTNoCommit()<NEW_LINE>*<NEW_LINE>* send a message to MDB BMTBeanNoCommit<NEW_LINE>*/<NEW_LINE>public void testBMTNoCommit() throws Exception {<NEW_LINE>FATMDBHelper.emptyQueue(qcfName, testResultQueueName);<NEW_LINE>FATMDBHelper.putQueueMessage("Request test results", qcfName, bmtNoCommitRequestQueue...
.getIntValue() == 0));
1,850,609
public Optional<Integer> nextTermDoc() {<NEW_LINE>if (penum == null) {<NEW_LINE>// postings enum is not initialized<NEW_LINE>log.warning("Postings enum un-positioned for field: " + curField);<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (penum.nextDoc() == PostingsEnum.NO_MORE_DOCS) {<NEW_LIN...
()) + " in field: " + curField);
570,246
public static DescribeBackupTasksResponse unmarshall(DescribeBackupTasksResponse describeBackupTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupTasksResponse.setRequestId(_ctx.stringValue("DescribeBackupTasksResponse.RequestId"));<NEW_LINE>describeBackupTasksResponse.setInstanceId(_ctx.stringValue("Des...
("DescribeBackupTasksResponse.BackupJobs[" + i + "].BackupJobID"));
73,376
public void encode(SceneStructureMetric structure, double[] output) {<NEW_LINE>int index = 0;<NEW_LINE>for (int i = 0; i < structure.points.size; i++) {<NEW_LINE>SceneStructureCommon.Point p = structure.points.data[i];<NEW_LINE>output[index++] = p.coordinate[0];<NEW_LINE>output[index++] = p.coordinate[1];<NEW_LINE>outp...
= rigid.object_to_world.T.z;
1,834,129
public static INDArray reshape5dTo2d(@NonNull Convolution3D.DataFormat format, INDArray in, LayerWorkspaceMgr workspaceMgr, ArrayType type) {<NEW_LINE>Preconditions.checkState(in.rank() == 5, "Invalid input: expect NDArray with rank 5, got rank %ndRank with shape %ndShape", in, in);<NEW_LINE>// Reshape: from either [n,...
in.size(4)));
1,268,851
public void marshall(UpdateTableRequest updateTableRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateTableRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateTableRequest.getAttribut...
updateTableRequest.getTableName(), TABLENAME_BINDING);
1,014,792
private void highlightSelected(final Graphics2D g, final NodeView selected, final PaintingMode[] paintedModes) {<NEW_LINE>final java.awt.Shape highlightClip;<NEW_LINE>if (MapView.drawsRectangleForSelection)<NEW_LINE>highlightClip = getRoundRectangleAround(selected, 4, 15);<NEW_LINE>else<NEW_LINE>highlightClip = getRoun...
Rectangle oldClipBounds = g.getClipBounds();
1,729,878
public CostCategoryRule unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CostCategoryRule costCategoryRule = new CostCategoryRule();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
599,284
private PsiMethod createStaticConstructor(PsiClass psiClass, @PsiModifier.ModifierConstant String methodModifier, String staticName, boolean useJavaDefaults, Collection<PsiField> params, PsiAnnotation psiAnnotation) {<NEW_LINE>LombokLightMethodBuilder methodBuilder = new LombokLightMethodBuilder(psiClass.getManager(), ...
final PsiTypeParameter classTypeParameter = classTypeParameters[index];
1,817,848
public static AuthenticatedUser load(Map<String, ByteBuffer> customPayload) {<NEW_LINE>ByteBuffer token = customPayload.get(TOKEN);<NEW_LINE>ByteBuffer roleName = customPayload.get(ROLE);<NEW_LINE>ByteBuffer isFromExternalAuth = customPayload.get(EXTERNAL);<NEW_LINE>if (token == null || roleName == null) {<NEW_LINE>thr...
String key = e.getKey();
536,372
private void createNewTableEntry(String tableName, ADDataElement data2, Vector<String> keyColumnNames2, Vector<Column> columns) throws SQLException {<NEW_LINE>String insertStatement = "INSERT INTO " + tableName + "(";<NEW_LINE>for (int i = 0; i < columns.size(); i++) {<NEW_LINE>if (i != 0) {<NEW_LINE>insertStatement +=...
date = data2.getValueForColumn(columnName);
1,209,799
public void incrementHeadSequenceNumber(ConcurrentSubList.Link link) throws ObjectManagerException {<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.entry(this, cclass, "incrementheadSequenceNumber", new Object[] { link });<NEW_LINE>if (link.next == null) {<NEW_LINE>// This subList ...
{ new Long(headSequenceNumber) });
991,316
private AuthenticationResult processPasswordMessage(final ChannelHandlerContext context, final PostgreSQLPacketPayload payload) {<NEW_LINE>char messageType = (char) payload.readInt1();<NEW_LINE>if (PostgreSQLMessagePacketType.PASSWORD_MESSAGE.getValue() != messageType) {<NEW_LINE>throw new PostgreSQLProtocolViolationEx...
new PostgreSQLParameterStatusPacket("integer_datetimes", "on"));
244,487
public void showURL(URL url) {<NEW_LINE>String urls = url.toString();<NEW_LINE>if (urls.startsWith("file://instance/")) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>urls = urls.substring("file://instance/".length());<NEW_LINE>// NOI18N<NEW_LINE>String[] id = urls.split("/");<NEW_LINE>JavaClass c = heapFragmentWalke...
getClassesController().showInstance(i);
1,691,634
protected boolean canHandle(Network network, Service service) {<NEW_LINE>s_logger.debug("Checking if NiciraNvpElement can handle service " + service.getName() + <MASK><NEW_LINE>if (network.getBroadcastDomainType() != BroadcastDomainType.Lswitch) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!networkModel.isProviderF...
" on network " + network.getDisplayText());
1,110,609
private synchronized void doAddUninitializedPanes() {<NEW_LINE>for (AbstractProjectViewPane pane : myUninitializedPanes) {<NEW_LINE>doAddPane(pane);<NEW_LINE>}<NEW_LINE>final Content[] contents = getContentManager().getContents();<NEW_LINE>for (int i = 1; i < contents.length; i++) {<NEW_LINE>Content content = contents[...
prev = contents[i - 1];
886,729
public void refreshSharesFromDB() {<NEW_LINE>ShareeListAdapter adapter = (ShareeListAdapter) binding.sharesList.getAdapter();<NEW_LINE>if (adapter == null) {<NEW_LINE>DisplayUtils.showSnackMessage(getView(), getString(R.string.could_not_retrieve_shares));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>adapter.getShares().clear()...
), user.getAccountName());
1,005,629
public void verify() throws ActionException {<NEW_LINE>EditTextElementData colValData = getEditTextElementData();<NEW_LINE>Locale locale = (Locale) getReportContext().getParameterValue(JRParameter.REPORT_LOCALE);<NEW_LINE>if (locale == null) {<NEW_LINE>locale = Locale.getDefault();<NEW_LINE>}<NEW_LINE>if (colValData.ge...
"net.sf.jasperreports.components.headertoolbar.actions.edit.values.invalid.font.size", colValData.getFontSize());
1,758,161
public static ParserRuleContext parse(BatfishCombinedParser<?, ?> parser, BatfishLogger logger, GrammarSettings settings) {<NEW_LINE>ParserRuleContext tree;<NEW_LINE>try {<NEW_LINE>tree = parser.parse();<NEW_LINE>} catch (BatfishException e) {<NEW_LINE>throw new ParserBatfishException("Parser error", e);<NEW_LINE>}<NEW...
> errors = parser.getErrors();
1,128,964
protected VirtualizerStore store(JRVirtualizationContext context, boolean create) {<NEW_LINE>VirtualizerStore store;<NEW_LINE>synchronized (contextStores) {<NEW_LINE>store = contextStores.get(context);<NEW_LINE>}<NEW_LINE>if (store != null || !create) {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace(<MASK><NEW...
"found " + store + " for " + context);
1,481,272
public void run(RegressionEnvironment env) {<NEW_LINE>// Bean<NEW_LINE>Consumer<String[]> bean = array -> {<NEW_LINE>env.sendEventBean(new LocalEvent(array));<NEW_LINE>};<NEW_LINE>String beanepl = "@public @buseventtype create schema LocalEvent as " + LocalEvent.class.getName() + ";\n";<NEW_LINE>runAssertion(env, beane...
: Arrays.asList(array));
1,584,801
public static DescribePropertyCronDetailResponse unmarshall(DescribePropertyCronDetailResponse describePropertyCronDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePropertyCronDetailResponse.setRequestId(_ctx.stringValue("DescribePropertyCronDetailResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new Page...
= new ArrayList<PropertyCron>();
396,933
public void failoverMaster(String masterHost) {<NEW_LINE>if (StringUtils.isEmpty(masterHost)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Date serverStartupTime = getServerStartupTime(NodeType.MASTER, masterHost);<NEW_LINE>List<Server> workerServers = registryClient.getServerList(NodeType.WORKER);<NEW_LINE>long startTime = ...
findValidTaskListByProcessId(processInstance.getId());
824,057
private void initDb() {<NEW_LINE>System.out.println("****** Inserting more sample data in the table: Employees ******");<NEW_LINE>String[] sqlStatements = { "insert into employees(first_name, last_name) values('Donald','Trump')", "insert into employees(first_name, last_name) values('Barack','Obama')" };<NEW_LINE>Arrays...
System.out.println(sql);
163,742
void createWorkScene(SceneWorkingGraph src, SceneWorkingGraph dst) {<NEW_LINE>BoofMiscOps.checkTrue(!commonViews.isEmpty());<NEW_LINE>// Local copy of the 'src' scene<NEW_LINE>workScene.setTo(src);<NEW_LINE>// All views and cameras that are in 'src' will be modified<NEW_LINE>knownViews.resetResize(workScene.<MASK><NEW_...
listViews.size(), false);
279,307
public CommandResult process(CommandSource source, String arguments) {<NEW_LINE>CommandSender commandSender = new SpongeCommandSender(source);<NEW_LINE>GeyserSession session = getGeyserSession(commandSender);<NEW_LINE>String[] args = arguments.split(" ");<NEW_LINE>if (args.length > 0) {<NEW_LINE>GeyserCommand command =...
commandSender, new String[0]);
78,805
public void update(final DatabaseInfo databaseInfo) {<NEW_LINE>log.debug("Start: Database update using direct sql for {}", databaseInfo.getName());<NEW_LINE>final long start = registry.clock().wallTime();<NEW_LINE>try {<NEW_LINE>final Long databaseId = getDatabaseId(databaseInfo.getName());<NEW_LINE>final DatabaseInfo ...
(Types.BIGINT, databaseId));
563,391
public static void main(String... args) {<NEW_LINE>// Clear saved state for new calls.<NEW_LINE>tree = TreeMultimap.create();<NEW_LINE>astLookup = Sets.newHashSet();<NEW_LINE>ClassPath cp = null;<NEW_LINE>try {<NEW_LINE>cp = ClassPath.from(ClassLoader.getSystemClassLoader());<NEW_LINE>} catch (IOException e) {<NEW_LINE...
add(c.getSimpleName());
331,361
private void processOldEntry(RobotsTxtEntry robotsTxt4Host, DigestURL robotsURL, BEncodedHeap robotsTable) {<NEW_LINE>// no robots.txt available, make an entry to prevent that the robots loading is done twice<NEW_LINE>if (robotsTxt4Host == null) {<NEW_LINE>// generate artificial entry<NEW_LINE>robotsTxt4Host = new Robo...
.valueOf(0), null);
1,560,440
private static HttpHeaders buildHeaders(ApiResource.RequestMethod method, RequestOptions options) throws AuthenticationException {<NEW_LINE>Map<String, List<String>> headerMap = new HashMap<String, List<String>>();<NEW_LINE>// Accept<NEW_LINE>headerMap.put("Accept", Arrays.asList("application/json"));<NEW_LINE>// Accep...
"https://support.stripe.com/email if you have any questions.", null, null, 0);
553,534
protected void updateLocalizationDefinition(BaseLocalizationDefinition destinationLocalizationDefinition, TransactionCommon transaction) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "updateLocalizationDefinition", new Object[] { destinat...
_ptoPRealization.updateLocalisationDefinition(destinationLocalizationDefinition, transaction);
32,170
private static void assertEventProps(RegressionEnvironment env, EventBean eventBean, String currSymbol, String prev0Symbol, Double prev0Price, String prev1Symbol, Double prev1Price, String prev2Symbol, Double prev2Price, String prevTail0Symbol, Double prevTail0Price, String prevTail1Symbol, Double prevTail1Price, Long ...
, eventBean.get("prevTail1Symbol"));
311,833
protected boolean writeAICCall(ConstructorCallExpression call) {<NEW_LINE>if (!call.isUsingAnonymousInnerClass())<NEW_LINE>return false;<NEW_LINE>ConstructorNode cn = call.getType().getDeclaredConstructors().get(0);<NEW_LINE>OperandStack os = controller.getOperandStack();<NEW_LINE>String ownerDescriptor = prepareConstr...
doGroovyCast(p.getType());
701,646
private void syncRegistrarContacts(Registrar registrar) {<NEW_LINE>String groupKey = "";<NEW_LINE>try {<NEW_LINE>Set<RegistrarContact> registrarContacts = registrar.getContacts();<NEW_LINE>long totalAdded = 0;<NEW_LINE>long totalRemoved = 0;<NEW_LINE>for (final RegistrarContact.Type type : RegistrarContact.Type.values(...
getRegistrarId(), totalAdded, totalRemoved);
1,358,317
protected ExtensionElement parseExtensionElement(XMLStreamReader xtr) throws Exception {<NEW_LINE>ExtensionElement extensionElement = new ExtensionElement();<NEW_LINE>extensionElement.setName(xtr.getLocalName());<NEW_LINE>if (StringUtils.isNotEmpty(xtr.getNamespaceURI())) {<NEW_LINE>extensionElement.setNamespace(xtr.ge...
getText().trim());
1,079,685
private boolean initWorkbenchWindows() {<NEW_LINE>String sql <MASK><NEW_LINE>try {<NEW_LINE>PreparedStatement pstmt = DB.prepareStatement(sql, null);<NEW_LINE>pstmt.setInt(1, AD_Workbench_ID);<NEW_LINE>ResultSet rs = pstmt.executeQuery();<NEW_LINE>while (rs.next()) {<NEW_LINE>int AD_Window_ID = rs.getInt(1);<NEW_LINE>i...
= "SELECT AD_Window_ID, AD_Form_ID, AD_Process_ID, AD_Task_ID " + "FROM AD_WorkbenchWindow " + "WHERE AD_Workbench_ID=? AND IsActive='Y'" + "ORDER BY SeqNo";
1,255,146
protected int matchLevelForDeclarations(ConstructorDeclaration constructor) {<NEW_LINE>// constructor name is stored in selector field<NEW_LINE>if (this.pattern.declaringSimpleName != null && !matchesName(this.pattern.declaringSimpleName, constructor.selector))<NEW_LINE>return IMPOSSIBLE_MATCH;<NEW_LINE>if (this.patter...
.pattern.mustResolve ? POSSIBLE_MATCH : ACCURATE_MATCH;
1,525,725
private static List<TimedEvent> updateInMemoryState(Project project, BlazeContext parentContext, ProjectViewSet projectViewSet, BlazeProjectData blazeProjectData, SyncMode syncMode) {<NEW_LINE>List<TimedEvent> timedEvents = new ArrayList<>();<NEW_LINE>Scope.push(parentContext, context -> {<NEW_LINE>context.push(new Tim...
).findModuleByName(BlazeDataStorage.WORKSPACE_MODULE_NAME);
1,854,104
public static APIAddBackendServerToServerGroupMsg __example__() {<NEW_LINE>APIAddBackendServerToServerGroupMsg msg = new APIAddBackendServerToServerGroupMsg();<NEW_LINE>Map<String, String> vmnicMap = new HashMap<String, String>() {<NEW_LINE><NEW_LINE>{<NEW_LINE><MASK><NEW_LINE>put("weight", "20");<NEW_LINE>}<NEW_LINE>}...
put("uuid", uuid());
324,061
public void propagate(InstanceState state) {<NEW_LINE>PinAttributes attrs = (PinAttributes) state.getAttributeSet();<NEW_LINE>PinState q = getState(state);<NEW_LINE>if (attrs.type == EndData.OUTPUT_ONLY) {<NEW_LINE>Value found = state.getPortValue(0);<NEW_LINE>q.intendedValue = found;<NEW_LINE>q.foundValue = found;<NEW...
found = state.getPortValue(0);
1,131,349
private void handleNewPhysicalPlan(InstanceControlMsg instanceControlMsg) {<NEW_LINE>PhysicalPlanHelper newHelper = instanceControlMsg.getNewPhysicalPlanHelper();<NEW_LINE>// Bind the MetricsCollector with topologyContext<NEW_LINE>newHelper.setTopologyContext(metricsCollector);<NEW_LINE>if (helper == null) {<NEW_LINE>h...
LOG.info("Topology state remains the same in Executor: " + oldTopologyState);
816,398
private AdminSettings loadMailTemplates() throws Exception {<NEW_LINE>Map<String, Object> mailTemplates = new HashMap<>();<NEW_LINE>for (String templatesName : templatesNames) {<NEW_LINE>Template template = freemarkerConfig.getTemplate(templatesName);<NEW_LINE>if (template != null) {<NEW_LINE>String name = <MASK><NEW_L...
validateName(template.getName());
206,107
synchronized protected void initialize(ChannelFramework framework) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.<MASK><NEW_LINE>if (_channelInitialized == false) {<NEW_LINE>try {<NEW_LINE>if (c_logger.isTraceDebugEnabled())<NEW_LINE>c_logger.traceDebug("SipResolverUdpTransport: initialize: getCh...
traceEntry(this, "SipResolverUdpTransport: initialize() _channelInitialized:" + _channelInitialized);
667,511
private boolean isNCXDefined(Document doc) {<NEW_LINE>boolean isNCXdefined = false;<NEW_LINE>NodeList spineList = doc.getElementsByTagName("spine");<NEW_LINE>if (spineList.getLength() > 0) {<NEW_LINE>for (int i = 0; i < spineList.getLength(); i++) {<NEW_LINE>NamedNodeMap attrs = spineList.<MASK><NEW_LINE>Node n = attrs...
item(i).getAttributes();
703,880
public void readTeamBlocks(DataInput stream) throws IOException {<NEW_LINE>int teamc = stream.readInt();<NEW_LINE>for (int i = 0; i < teamc; i++) {<NEW_LINE>Team team = Team.get(stream.readInt());<NEW_LINE>TeamData data = team.data();<NEW_LINE><MASK><NEW_LINE>data.blocks.clear();<NEW_LINE>data.blocks.ensureCapacity(Mat...
int blocks = stream.readInt();
776,260
public void doRun() {<NEW_LINE>UsbRequest request = connection.requestWait();<NEW_LINE>if (request != null && request.getEndpoint().getType() == UsbConstants.USB_ENDPOINT_XFER_BULK && request.getEndpoint().getDirection() == UsbConstants.USB_DIR_IN) {<NEW_LINE>byte[] data = serialBuffer.getDataReceived();<NEW_LINE>// FT...
getReadBuffer(), SerialBuffer.DEFAULT_READ_BUFFER_SIZE);
1,808,203
static <K, A, E> MapDifference<K, A, E> create(Map<? extends K, ? extends A> actual, Map<? extends K, ? extends E> expected, boolean allowUnexpected, ValueTester<? super A, ? super E> valueTester) {<NEW_LINE>Map<K, A> unexpected = new LinkedHashMap<>(actual);<NEW_LINE>Map<K, E> missing = new LinkedHashMap<>();<NEW_LINE...
E expectedValue = expectedEntry.getValue();
95,831
public void tint(Color tint) {<NEW_LINE>float newTint = tint.toFloatBits();<NEW_LINE>if (currentTint == newTint)<NEW_LINE>return;<NEW_LINE>currentTint = newTint;<NEW_LINE>float[<MASK><NEW_LINE>Color tempColor = BitmapFontCache.tempColor;<NEW_LINE>int[] tempGlyphCount = this.tempGlyphCount;<NEW_LINE>Arrays.fill(tempGlyp...
][] pageVertices = this.pageVertices;
1,380,097
final DescribeVpcEndpointServicesResult executeDescribeVpcEndpointServices(DescribeVpcEndpointServicesRequest describeVpcEndpointServicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcEndpointServicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
396,908
private void validateExistingSink(final KsqlStructuredDataOutputNode outputNode) {<NEW_LINE>final SourceName name = outputNode.getSinkName().get();<NEW_LINE>final DataSource existing = engineContext.getMetaStore().getSource(name);<NEW_LINE>if (existing == null) {<NEW_LINE>throw new KsqlException(String<MASK><NEW_LINE>}...
.format("%s does not exist.", outputNode));
1,504,141
public Project findProjectByConnectionIdOrJdbcUrl(UUID connectionId, String jdbcUrl) throws LiquibaseHubException {<NEW_LINE>final AtomicReference<UUID> organizationId = new AtomicReference<>(<MASK><NEW_LINE>String searchParam = null;<NEW_LINE>if (connectionId != null) {<NEW_LINE>searchParam = "connections.id:\"" + con...
getOrganization().getId());
675,447
protected MemoryBlock createInitializedBlock(MemoryLoadable loadable, boolean isOverlay, String name, Address start, long fileOffset, long dataLength, String comment, boolean r, boolean w, boolean x, TaskMonitor monitor) throws IOException, AddressOverflowException, CancelledException {<NEW_LINE>long revisedLength = ch...
+ end.toString(true));
1,788,902
public void handle(TabCompleteResponse tabCompleteResponse) throws Exception {<NEW_LINE>List<String> commands = tabCompleteResponse.getCommands();<NEW_LINE>if (commands == null) {<NEW_LINE>commands = Lists.transform(tabCompleteResponse.getSuggestions().getList(), new Function<Suggestion, String>() {<NEW_LINE><NEW_LINE>...
return new Suggestion(range, input);
475,092
public void marshall(CreateTrailRequest createTrailRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createTrailRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createTrailRequest.getName(), ...
e.getMessage(), e);
146,516
private Mono<Response<IntegrationAccountInner>> regenerateAccessKeyWithResponseAsync(String resourceGroupName, String integrationAccountName, RegenerateActionParameter regenerateAccessKey, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.clien...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
342,833
public void removeWithTimestamp(@NotNull final String client, final int bucketIndex) {<NEW_LINE>ThreadPreConditions.startsWith(SINGLE_WRITER_THREAD_PREFIX);<NEW_LINE>final Bucket bucket = buckets[bucketIndex];<NEW_LINE>bucket.getEnvironment().executeInTransaction(txn -> {<NEW_LINE>final ByteIterable value = bucket.getS...
serializer.serializeKey(client)));
952,818
public List<HistoricExternalTaskLogDto> queryHistoricExternalTaskLogs(HistoricExternalTaskLogQueryDto queryDto, Integer firstResult, Integer maxResults) {<NEW_LINE>queryDto.setObjectMapper(objectMapper);<NEW_LINE>HistoricExternalTaskLogQuery query = queryDto.toQuery(processEngine);<NEW_LINE>List<HistoricExternalTaskLog...
result = HistoricExternalTaskLogDto.fromHistoricExternalTaskLog(historicExternalTaskLog);
1,168,283
@UiThread<NEW_LINE>private static Constructor<? extends Unbinder> findBindingConstructorForClass(Class<?> cls) {<NEW_LINE>Constructor<? extends Unbinder> bindingCtor = BINDINGS.get(cls);<NEW_LINE>if (bindingCtor != null || BINDINGS.containsKey(cls)) {<NEW_LINE>if (debug)<NEW_LINE>Log.d(TAG, "HIT: Cached in binding map....
getConstructor(cls, View.class);
1,247,592
private void testJMSProducerSendMessage_NotWriteableTopic_SecOff(TopicConnectionFactory topicConnectionFactory) throws JMSException, TestException {<NEW_LINE>try (JMSContext jmsContext = topicConnectionFactory.createContext()) {<NEW_LINE>JMSProducer jmsProducer = jmsContext.createProducer();<NEW_LINE>JMSConsumer jmsCon...
TestException("Sent a read only message after modifying a property without throwing MessageNotWriteableRuntimeException" + " sent(2):" + receivedMessage);
400,698
protected String compute() {<NEW_LINE>String baseUrl = this.baseUrl.getValue();<NEW_LINE>if (baseUrl == null) {<NEW_LINE>baseUrl = "";<NEW_LINE>} else {<NEW_LINE>baseUrl = baseUrl.trim();<NEW_LINE>}<NEW_LINE>SimpleUriBuilder builder = new SimpleUriBuilder(baseUrl);<NEW_LINE>for (FieldModel<String> f : inputs) {<NEW_LIN...
String paramValue = f.getValue();
687,838
public boolean isConference(Call call) {<NEW_LINE>// If we're the focus of the conference.<NEW_LINE>if (call.isConferenceFocus())<NEW_LINE>return true;<NEW_LINE>// If one of our peers is a conference focus, we're in a<NEW_LINE>// conference call.<NEW_LINE>Iterator<? extends CallPeer<MASK><NEW_LINE>while (callPeers.hasN...
> callPeers = call.getCallPeers();
1,408,500
// prepare<NEW_LINE>protected String doIt() throws Exception {<NEW_LINE>X_AD_HouseKeeping houseKeeping = new X_AD_HouseKeeping(getCtx(), p_AD_HouseKeeping_ID, get_TrxName());<NEW_LINE>int tableID = houseKeeping.getAD_Table_ID();<NEW_LINE>MTable table = new MTable(getCtx(), tableID, get_TrxName());<NEW_LINE>String table...
executeUpdate(sql, get_TrxName());
800,868
final Run executeStartWorkflowExecution(StartWorkflowExecutionRequest startWorkflowExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startWorkflowExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
354,145
private Map<String, Object> doUnflatten(Map<String, Object> source) {<NEW_LINE>Map<String, Object> result = new LinkedHashMap<>();<NEW_LINE>Set<String> treatSeperate = new LinkedHashSet<>();<NEW_LINE>for (Entry<String, Object> entry : source.entrySet()) {<NEW_LINE>String key = entry.getKey();<NEW_LINE>String[] args = k...
(partial, doUnflatten(newSource));
1,344,374
public Optional<ServiceBindingConfigSource> convert(List<ServiceBinding> serviceBindings) {<NEW_LINE>Optional<ServiceBinding> matchingByType = ServiceBinding.singleMatchingByType("kafka", serviceBindings);<NEW_LINE>if (!matchingByType.isPresent()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Map<String, Stri...
ServiceBinding binding = matchingByType.get();
526,679
public void addRecipes(Consumer<FinishedRecipe> consumer) {<NEW_LINE>String basePath = "combining/";<NEW_LINE>addCombinerDyeRecipes(consumer, basePath + "dye/");<NEW_LINE><MASK><NEW_LINE>addCombinerWaxingRecipes(consumer, basePath + "wax/");<NEW_LINE>// Gravel<NEW_LINE>CombinerRecipeBuilder.combining(IngredientCreatorA...
addCombinerGlowRecipes(consumer, basePath + "glow/");
440,598
public void process(final TProtocol inProt, final TProtocol outProt) throws TException {<NEW_LINE>TTransport trans = inProt.getTransport();<NEW_LINE>if (!(trans instanceof TSaslServerTransport)) {<NEW_LINE>throw new TException("Unexpected non-SASL transport " + trans.getClass() + ": " + trans);<NEW_LINE>}<NEW_LINE>TSas...
wrapped.process(inProt, outProt);
810,852
private void handleMembershipChange(ClusterMembershipEvent event) {<NEW_LINE>if (event.type() == ClusterMembershipEvent.Type.MEMBER_ADDED) {<NEW_LINE>bootstrap(event.subject());<NEW_LINE>} else if (event.type() == ClusterMembershipEvent.Type.MEMBER_REMOVED) {<NEW_LINE>threadContext.execute(() -> {<NEW_LINE>PartitionGro...
group.group(), newMembership);
1,131,486
private void loadNode146() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SubscriptionDiagnosticsArrayType_SubscriptionDiagnostics_CurrentKeepAliveCount, new QualifiedName(0, "CurrentKeepAliveCount"), new LocalizedText("en", "CurrentKeepAliveCount"), LocalizedText.NULL...
.expanded(), true));
1,777,388
protected void scoreCensus(int disparityRange, final boolean leftToRight) {<NEW_LINE>final int[] scores = leftToRight ? scoreLtoR : scoreRtoL;<NEW_LINE>final int[] dataLeft = censusLeft.data;<NEW_LINE>final int[] dataRight = censusRight.data;<NEW_LINE>for (int d = 0; d < disparityRange; d++) {<NEW_LINE>int total = 0;<N...
? disparityRange - d - 1 : d;
817,967
static PGPSignature generateSubkeyBindingSignature(PGPSignatureGenerator sGen, Date creationTime, PGPPublicKey masterPublicKey, PGPPrivateKey masterPrivateKey, PGPSignatureGenerator subSigGen, PGPPrivateKey subPrivateKey, PGPPublicKey pKey, int flags, long expiry) throws IOException, PGPException, SignatureException {<...
setHashedSubpackets(hashedPacketsGen.generate());
413,225
private void coldStartServer() {<NEW_LINE>Future<Result> startFuture = server.start(new String[] { "--clean" });<NEW_LINE>try {<NEW_LINE>result = startFuture.get(SERVER_START_TIMEOUT, SERVER_START_TIMEOUT_UNIT);<NEW_LINE>dumpResult("Starting a server", result);<NEW_LINE>Assert.assertTrue("Result of first start attempt ...
new AssertionFailedError("Start operation could not be queued: " + e));
273,490
public void init(final int sleepListenerMillisConfig) {<NEW_LINE>sleepListenerMillis = sleepListenerMillisConfig;<NEW_LINE>Configuration configuration;<NEW_LINE>// EsperHA enablement - if available<NEW_LINE>try {<NEW_LINE>Class configurationHAClass = Class.forName("com.espertech.esperha.client.ConfigurationHA");<NEW_LI...
addEventType("Market", MarketData.class);
237,522
// FIXME <REFACTOR> <S><NEW_LINE>@Override<NEW_LINE>public void allocate(Object objectReference, long batchSize) {<NEW_LINE>long newBufferSize = 0;<NEW_LINE>if (batchSize > 0) {<NEW_LINE>newBufferSize = sizeOfBatch(batchSize);<NEW_LINE>}<NEW_LINE>if ((batchSize > 0) && (bufferOffset != -1) && (newBufferSize < bytesToAl...
info("allocated: %s", toString());
1,065,292
protected static void extractEnumerations(CoreMap s, List<Mention> mentions, Set<IntPair> mentionSpanSet, Set<IntPair> namedEntitySpanSet) {<NEW_LINE>List<CoreLabel> sent = s.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>Tree tree = s.get(TreeCoreAnnotations.TreeAnnotation.class);<NEW_LINE>SemanticGraph basicDe...
(beginIdx, endIdx), m2);
924,908
public UpdateNetworkConfigurationInput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateNetworkConfigurationInput updateNetworkConfigurationInput = new UpdateNetworkConfigurationInput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = origi...
String currentParentElement = context.getCurrentParentElement();
1,211,010
public CloudWatchLogsConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CloudWatchLogsConfiguration cloudWatchLogsConfiguration = new CloudWatchLogsConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE...
String currentParentElement = context.getCurrentParentElement();
1,697,528
private void buildNOCMorNOCS(String string) {<NEW_LINE>if (string == null) {<NEW_LINE>buffer.writeShort(0xffff);<NEW_LINE>// write2Bytes(0xffff);<NEW_LINE>} else {<NEW_LINE>if (Typdef.typdef.isCcsidMbcSet()) {<NEW_LINE>byte[] sqlBytes = string.getBytes(Typdef.typdef.getCcsidMbcEncoding());<NEW_LINE>buffer.writeByte(0x0...
Typdef.typdef.getCcsidSbcEncoding());
134,795
public void marshall(CreateInferenceSchedulerRequest createInferenceSchedulerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createInferenceSchedulerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
createInferenceSchedulerRequest.getTags(), TAGS_BINDING);
104,679
private void copyRemoteFolderToLocalFolder(File localFolder, File remoteBaseFolder) throws SharedConfigurationException {<NEW_LINE>logger.log(Level.INFO, "Downloading {0} from {1}", new Object[] { localFolder.getAbsolutePath(), remoteBaseFolder.getAbsolutePath() });<NEW_LINE>// Clean out the local folder regardless of ...
"Failed to delete files from local folder {0}", localFolder.getAbsolutePath());
1,597,991
protected NDList forwardInternal(ParameterStore ps, NDList inputs, boolean training, PairList<String, Object> params) {<NEW_LINE>// (B, S, E)<NEW_LINE>NDArray sequenceOutput = inputs.get(0);<NEW_LINE>// (B, I)<NEW_LINE>NDArray maskedIndices = inputs.get(1);<NEW_LINE>// (D, E)<NEW_LINE>NDArray embeddingTable = inputs.ge...
logProbs = logitsWithBias.logSoftmax(1);
1,784,146
public void initialize(@Nullable View view) {<NEW_LINE>Objects.requireNonNull(view);<NEW_LINE>mRoomsView = view.<MASK><NEW_LINE>mRoomsView.setChangeListener(() -> onChangeCounterValue(Statistics.EventParam.ROOMS, mRoomsView.getCurrentValue()));<NEW_LINE>mAdultsView = view.findViewById(R.id.adults);<NEW_LINE>mAdultsView...
findViewById(R.id.rooms);
840,190
final SetPlatformApplicationAttributesResult executeSetPlatformApplicationAttributes(SetPlatformApplicationAttributesRequest setPlatformApplicationAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setPlatformApplicationAttributesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
339,463
public void marshall(RuleGroupResponse ruleGroupResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (ruleGroupResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(ruleGroupResponse.getRuleGroupArn...
ruleGroupResponse.getConsumedCapacity(), CONSUMEDCAPACITY_BINDING);
445,181
public void marshalConfigToProperties() {<NEW_LINE>if (DEBUG_LOGGING) {<NEW_LINE>logger.debug("marshalConfigToProperties({})", profileName);<NEW_LINE>}<NEW_LINE>loadedProps.put(KEY_LAST_PROFILE, profileName);<NEW_LINE>putProperty(loadedProps, KEY_SOURCE_LOCATIONS, StringUtil.listToText(sourceLocations, S_COMMA));<NEW_L...
, Boolean.toString(mouseFollow));