idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,787,985
public void read(org.apache.thrift.protocol.TProtocol prot, getActiveLogs_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>{<NEW_LINE...
incoming = iprot.readBitSet(1);
94,439
public static JSONObject store(V8Response response) {<NEW_LINE>JSONObject obj = newJSONObject();<NEW_LINE>obj.put(SEQ, response.getSequence());<NEW_LINE>obj.put(<MASK><NEW_LINE>obj.put(TYPE, V8Type.response.toString());<NEW_LINE>V8Command command = response.getCommand();<NEW_LINE>obj.put(COMMAND, command.toString());<N...
SEQ_REQUEST, response.getRequestSequence());
1,135,271
public static DescribeGatewayNFSClientsResponse unmarshall(DescribeGatewayNFSClientsResponse describeGatewayNFSClientsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatewayNFSClientsResponse.setRequestId(_ctx.stringValue("DescribeGatewayNFSClientsResponse.RequestId"));<NEW_LINE>describeGatewayNFSClientsResponse...
(_ctx.booleanValue("DescribeGatewayNFSClientsResponse.Version41Enabled"));
666,297
protected void writeClassTargets(TargetsTableAnnotationsImpl targetTable) throws IOException {<NEW_LINE>Map<String, String> i_annotatedClassNames = new IdentityHashMap<String, String>();<NEW_LINE><MASK><NEW_LINE>UtilImpl_BidirectionalMap fieldTargetMap = targetTable.i_getFieldAnnotations();<NEW_LINE>UtilImpl_Bidirectio...
UtilImpl_BidirectionalMap classTargetMap = targetTable.i_getClassAnnotations();
1,579,913
public TubeMQResult cloneBrokersWithTopic(CloneBrokersReq req) throws Exception {<NEW_LINE>int clusterId = req.getClusterId();<NEW_LINE>// 1. query source broker config<NEW_LINE>QueryBrokerCfgReq queryReq = QueryBrokerCfgReq.getReq(req.getSourceBrokerId());<NEW_LINE>MasterEntry masterEntry = masterService.getMasterNode...
clusterId, req.getSourceBroker());
1,300,395
protected Parcelable restoreInstanceState(Parcelable state) {<NEW_LINE>if (state instanceof Bundle) {<NEW_LINE>Bundle bundle = (Bundle) state;<NEW_LINE>mViewTransition.showView(bundle.getInt(KEY_SHOWN_VIEW), false);<NEW_LINE>mTipView.setText(bundle.getString(KEY_TIP));<NEW_LINE>mSavedDataId = bundle.getInt(KEY_DATA);<N...
mPageDivider = bundle.getParcelable(KEY_PAGE_DIVIDER);
1,289,020
public static void main(final String... args) {<NEW_LINE>LOGGER.info(LINE + LINE + "\n Welcome to Spring Integration Coffee Database! " + NEWLINE + "\n For more information please visit: " + "\n https://www.springsource.org/spring-integration " + NEWLINE + LINE);<NEW_LINE>final Ab...
= new Scanner(System.in);
1,575,015
private void createRfQ(DefaultMutableTreeNode node) {<NEW_LINE>BOMWrapper bom = (BOMWrapper) node.getUserObject();<NEW_LINE>MPPOrder mo = new MPPOrder(Env.getCtx(), bom.getPP_Order_ID(), null);<NEW_LINE>MResource r = MResource.get(Env.getCtx(), mo.getS_Resource_ID());<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW...
setDateWorkComplete(mo.getDateFinishSchedule());
665,261
private void showMenu() {<NEW_LINE>setPopupPositionAndShow(new PositionCallback() {<NEW_LINE><NEW_LINE>public void setPosition(int offsetWidth, int offsetHeight) {<NEW_LINE>InputEditorPosition position = docDisplay_.createInputEditorPosition(completionPosition_.getPosition());<NEW_LINE>Rectangle bounds = docDisplay_.ge...
int cursorBottom = bounds.getBottom();
1,395,009
protected Ternary visitSimpleCaseExpression(SimpleCaseExpression node, TranslationContext context) {<NEW_LINE>Ternary c = this.process(node.getOperand(), context);<NEW_LINE>if (c == null)<NEW_LINE>throw new TranslationException("Not supported: ", node.getOperand());<NEW_LINE>for (WhenClause e : node.getWhenClauses()) {...
"Not supported: ", node.getOperand());
1,306,935
private static void markStackRoots() {<NEW_LINE>Address relocationThreshold = currentChunkPointer.value.toAddress();<NEW_LINE>for (Address stackRoots = ShadowStack.getStackTop(); stackRoots != null; stackRoots = ShadowStack.getNextStackFrame(stackRoots)) {<NEW_LINE>int <MASK><NEW_LINE>Address stackRootsPtr = ShadowStac...
count = ShadowStack.getStackRootCount(stackRoots);
1,110,427
private void checkGroupUseTrailingCommas() {<NEW_LINE>if (!lastUseStatementParts.isEmpty()) {<NEW_LINE>BaseDocument document = GsfUtilities.getDocument(fileObject, true);<NEW_LINE>if (document == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>document.readLock();<NEW_LINE>try {<NEW_LINE>TokenSequence<PHPTokenId> ts = Lex...
move(lastUseStatementPart.getEndOffset());
1,027,985
public static ListIoTCloudConnectorGroupsResponse unmarshall(ListIoTCloudConnectorGroupsResponse listIoTCloudConnectorGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listIoTCloudConnectorGroupsResponse.setRequestId(_ctx.stringValue("ListIoTCloudConnectorGroupsResponse.RequestId"));<NEW_LINE>listIoTCloudConnectorGr...
(_ctx.stringValue("ListIoTCloudConnectorGroupsResponse.NextToken"));
1,488,351
private Mono<Response<Void>> disableTestEndpointWithResponseAsync(String resourceGroupName, String serviceName, 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 null."));<NEW_LINE>}...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
66,574
protected void encodeFilter(FacesContext context, SelectOneMenu menu) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String id = menu.getClientId(context) + "_filter";<NEW_LINE>writer.startElement("div", null);<NEW_LINE>writer.<MASK><NEW_LINE>writer.startElement("input", nul...
writeAttribute("class", "ui-selectonemenu-filter-container", null);
1,127,662
private static void generateInstrumentedProcessView(ResultSetProcessorFactoryForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>if (!classScope.isInstrumented()) {<NEW_LINE>forge.processViewResultCodegen(classScope, method, instance);<NEW_LINE>return;<NEW_LINE>}<NEW...
processViewResultCodegen(classScope, instrumented, instance);
542,664
static void h1HeadersSplitCookieCrumbs(HttpHeaders h1Headers) {<NEW_LINE>Iterator<? extends CharSequence> cookieItr = h1Headers.valuesIterator(COOKIE);<NEW_LINE>// We want to avoid "concurrent modifications" of the headers while we are iterating. So we insert crumbs<NEW_LINE>// into an intermediate collection and inser...
indexOf(nextCookie, ';', 0);
1,843,594
public DuplexChannel connect(Bootstrap bootstrap) throws InterruptedException {<NEW_LINE>DockerClientConfig dockerClientConfig = getDockerClientConfig();<NEW_LINE>String host = dockerClientConfig.getDockerHost().getHost();<NEW_LINE>int port = dockerClientConfig.getDockerHost().getPort();<NEW_LINE>if (port == -1) {<NEW_...
final SslHandler ssl = initSsl(dockerClientConfig);
908,093
protected Set<IFileStore> applyFilter(Set<IFileStore> fileStores) {<NEW_LINE>if (CollectionsUtil.isEmpty(_filteredItems) || fileStores == null) {<NEW_LINE>return fileStores;<NEW_LINE>}<NEW_LINE>final IWorkspaceRoot workspaceRoot = ResourcesPlugin<MASK><NEW_LINE>CollectionsUtil.filterInPlace(fileStores, new IFilter<IFil...
.getWorkspace().getRoot();
259,100
private void loadNode1067() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NamespacesType_AddressSpaceFile_Open_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueO...
DataValue(new Variant(o));
1,156,903
final DeleteResolverRuleResult executeDeleteResolverRule(DeleteResolverRuleRequest deleteResolverRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResolverRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,249,665
private // implemented and that all accessed fields are defined somewhere in the type hierarchy<NEW_LINE>List<Mismatch> checkHelperClassMatch(ClassRef helperClass, TypePool typePool) {<NEW_LINE>List<Mismatch> mismatches = emptyList();<NEW_LINE>HelperReferenceWrapper helperWrapper = new HelperReferenceWrapper.Factory(ty...
.MissingField(helperClass, missingField));
633,848
protected void run() {<NEW_LINE>threadReference.set(Thread.currentThread());<NEW_LINE>while (isRunning()) {<NEW_LINE>final Queue<TaskStatus> updates = new ArrayDeque<>();<NEW_LINE>try {<NEW_LINE>updates.add(pendingUpdates.take());<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>Thread<MASK><NEW_LINE>break;<NEW_LIN...
.currentThread().interrupt();
62,462
public synchronized void listen() throws IOException {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDebug(this, "listen", "tring to listen on " + m_lp);<NEW_LINE>}<NEW_LINE>InetAddress address = InetAddressCache.getByName(m_lp.getHost());<NEW_LINE>m_sock = (SSLServerSocket) m_serverSocketFactor...
setPort(m_sock.getLocalPort());
1,538,784
private void attribute(MessageTextHandler messageTextHandler, Name attributeName, Name elementName, boolean atSentenceStart) throws SAXException {<NEW_LINE>String ns = attributeName.getNamespaceUri();<NEW_LINE>if (html || "".equals(ns)) {<NEW_LINE>messageTextString(messageTextHandler, ATTRIBUTE, atSentenceStart);<NEW_L...
messageTextHandler, attributeName.getLocalName());
1,746,793
public static // todo have the submatrices be from different shaped inputs<NEW_LINE>void checkSubImage(Object testClass, String function, boolean checkEquals, Object... inputParam) {<NEW_LINE>try {<NEW_LINE>ImageBase[] larger = new ImageBase[inputParam.length];<NEW_LINE>ImageBase[] subImg = new ImageBase[inputParam.len...
m.invoke(testClass, inputModified);
1,641,156
public boolean process(Point2D_F64 obs1, Point2D_F64 obs2, Point2D_F64 obs3, double length23, double length13, double length12) {<NEW_LINE>double cos12 = computeCosine(obs1, obs2);<NEW_LINE>double cos13 = computeCosine(obs1, obs3);<NEW_LINE>double cos23 = computeCosine(obs2, obs3);<NEW_LINE>double a = length23<MASK><NE...
, b = length13, c = length12;
1,582,517
public static IndexReader openIndex(String indexPath, String dirImpl) throws Exception {<NEW_LINE>final Path root = FileSystems.getDefault().getPath(Objects.requireNonNull(indexPath));<NEW_LINE>final List<DirectoryReader> readers = new ArrayList<>();<NEW_LINE>// find all valid index directories in this directory<NEW_LI...
Level.WARNING, "Error opening directory", e);
1,369,815
private void updateUpdateAllButton() {<NEW_LINE>View view = getView();<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DownloadResources indexes = getMyActivity().getDownloadThread().getIndexes();<NEW_LINE>final List<IndexItem> indexItems = indexes.getItemsToUpdate();<NEW_LINE>final TextView updateAll...
(new IndexItem[0]));
1,617,937
public void validateInstance(ModuleMetaData mmd, ClassLoader loader, Object instance) {<NEW_LINE>// perform BeanValidation function<NEW_LINE>Validator validator = beanValidationSvc.getValidator(mmd, loader);<NEW_LINE>Set<<MASK><NEW_LINE>try {<NEW_LINE>cvSet = validator.validate(instance);<NEW_LINE>} catch (ValidationEx...
ConstraintViolation<Object>> cvSet = null;
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...
separator + tableName + dateString + ".xml");
359,350
private void registerDynamicCapabilities() {<NEW_LINE>registerTextSynchronizationForCustomUriSchemes();<NEW_LINE>DocumentFilter balaFilter = new DocumentFilter();<NEW_LINE>balaFilter.setScheme(CommonUtil.URI_SCHEME_BALA);<NEW_LINE>DocumentFilter fileFilter = new DocumentFilter();<NEW_LINE>fileFilter.setScheme(CommonUti...
exprFilter.setScheme(CommonUtil.URI_SCHEME_EXPR);
1,266,714
public static void build(MeshPartBuilder builder, VertexInfo corner00, VertexInfo corner10, VertexInfo corner11, VertexInfo corner01, int divisionsU, int divisionsV) {<NEW_LINE>if (divisionsU < 1 || divisionsV < 1) {<NEW_LINE>throw new GdxRuntimeException("divisionsU and divisionV must be > 0, u,v: " + divisionsU + ", ...
float) u / (float) divisionsU;
1,769,807
public void sendEmail(String to, String subject, String body) {<NEW_LINE>if (!isValidEmail(to)) {<NEW_LINE>LOGGER.error(String.format("The destination email address %s is not valid, no email is sent.", to));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sesClient == null) {<NEW_LINE>String msg = "The email client is not set...
.withCcAddresses(getCcAddresses(to));
1,605,491
public ContextConfigurator creator(Class<? extends ContextCreator> creatorClazz) {<NEW_LINE>return creator(mc -> {<NEW_LINE>ResultHandle paramsHandle = mc.newInstance(MethodDescriptor.ofConstructor(HashMap.class));<NEW_LINE>for (Entry<String, Object> entry : params.entrySet()) {<NEW_LINE>ResultHandle valHandle = null;<...
)).doubleValue()));
182,387
public static Iterator<SqlOperator> lookupSubjectRoutines(SqlOperatorTable opTab, SqlIdentifier funcName, List<RelDataType> argTypes, List<String> argNames, SqlSyntax sqlSyntax, SqlKind sqlKind, SqlFunctionCategory category, SqlNameMatcher nameMatcher, boolean coerce) {<NEW_LINE>// start with all routines matching by n...
routines = filterRoutinesByParameterCount(routines, argTypes);
1,046,163
public PostingsEnum postings(PostingsEnum reuse, int flags) throws IOException {<NEW_LINE>boolean hasPositions = indexOptions.compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0;<NEW_LINE>if (hasPositions && PostingsEnum.featureRequested(flags, PostingsEnum.POSITIONS)) {<NEW_LINE>SimpleTextPostingsEnum docsAndPos...
IndexOptions.DOCS, docFreq, skipPointer);
291,574
public Flux<NumericResponse<GeoSearchStoreCommand, Long>> geoSearchStore(Publisher<GeoSearchStoreCommand> commands) {<NEW_LINE>return connection.execute(cmd -> Flux.from(commands).flatMap(command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(command.getDestKey(), "Dest...
::isStoreDistance).orElse(false);
839,306
public okhttp3.Call readIngressClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/networking.k8s.io/v1/ingressclasses/{name}".replaceAll("\\{" + "name" + "\\}", ...
= new String[] { "BearerToken" };
1,702,120
public void pageDialog() {<NEW_LINE>this.pageFormat = getPrinterJob().pageDialog(getPageFormat());<NEW_LINE>Paper paper = pageFormat.getPaper();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>NumberFormat format = DecimalFormat.getInstance(Locale.US);<NEW_LINE>double paperWidth = paper.getWidth();<NEW_LINE>s...
double imageableX = paper.getImageableX();
462,079
final DescribeDomainConfigResult executeDescribeDomainConfig(DescribeDomainConfigRequest describeDomainConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
false), new DescribeDomainConfigResultJsonUnmarshaller());
1,027,161
public static void writeRootElement(BpmnModel model, XMLStreamWriter xtw, String encoding) throws Exception {<NEW_LINE>xtw.writeStartDocument(encoding, "1.0");<NEW_LINE>// start definitions root element<NEW_LINE>xtw.writeStartElement(BPMN2_PREFIX, ELEMENT_DEFINITIONS, BPMN2_NAMESPACE);<NEW_LINE>xtw.setDefaultNamespace(...
().get(prefix));
1,759,830
public static ConnPoolBean createBean(JdbcConnectionPool pool) {<NEW_LINE>ConnPoolBean bean = new ConnPoolBean();<NEW_LINE>bean.setName(pool.getName());<NEW_LINE>bean.setDescription(pool.getDescription());<NEW_LINE>bean.setDsClass(pool.getDatasourceClassname());<NEW_LINE>bean.setResType(pool.getResType());<NEW_LINE>bea...
String tranxIsolation = pool.getTransactionIsolationLevel();
902,659
public void marshall(CreateResponsePlanRequest createResponsePlanRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createResponsePlanRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createRes...
createResponsePlanRequest.getIncidentTemplate(), INCIDENTTEMPLATE_BINDING);
1,032,186
public MTreeNode loadNodeInfo(final MTree tree, final ResultSet rs) throws SQLException {<NEW_LINE>final int nodeId = rs.getInt("Node_ID");<NEW_LINE>final String name = rs.getString("Name");<NEW_LINE>final String description = rs.getString("Description");<NEW_LINE>final boolean isAllowChildren = "Y".equals<MASK><NEW_LI...
(rs.getString("IsSummary"));
1,290,902
private void paintWindows(Graphics2D g2d, AffineTransform xform) {<NEW_LINE>Font f = g2d.getFont();<NEW_LINE>Font biggerFont = f.deriveFont(40f);<NEW_LINE>g2d.setFont(biggerFont);<NEW_LINE>g2d.setColor(Color.GRAY);<NEW_LINE>Window[] windows = Window.getWindows();<NEW_LINE>int z = 0;<NEW_LINE>Collection<WindowInfo> info...
visibleWindows.put(w, info);
1,299,712
private void showPopup() {<NEW_LINE>if (!isEnabled())<NEW_LINE>return;<NEW_LINE>log.finest("showPopup");<NEW_LINE>popup.setVisible(false);<NEW_LINE>if (textBox.isEnabled() && updateListData() && listBox.getModel().getSize() != 0) {<NEW_LINE>if (!(textBox instanceof JTextField)) {<NEW_LINE>textBox.getDocument().addDocum...
.getModel().getSize();
1,452,732
protected void loadAllFlows(final List<Project> projects) {<NEW_LINE>try {<NEW_LINE>final Map<Project, List<Flow>> projectToFlows = this.projectLoader.fetchAllFlowsForProjects(projects);<NEW_LINE>// Load the flows into the project objects<NEW_LINE>for (final Map.Entry<Project, List<Flow>> entry : projectToFlows.entrySe...
flow.getId(), flow);
381,349
private void sendNodeStatsReport() {<NEW_LINE>final boolean isMiningEnabled;<NEW_LINE>if (miningCoordinator instanceof CliqueMiningCoordinator) {<NEW_LINE>isMiningEnabled = ((<MASK><NEW_LINE>} else {<NEW_LINE>isMiningEnabled = miningCoordinator.isMining();<NEW_LINE>}<NEW_LINE>final boolean isSyncing = syncState.isInSyn...
CliqueMiningCoordinator) miningCoordinator).isSigner();
1,392,813
public DataSerializableFactory createFactory() {<NEW_LINE>ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];<NEW_LINE>constructors[PARTITION_RUNTIME_STATE] = arg -> new PartitionRuntimeState();<NEW_LINE>constructors[ASSIGN_PARTITIONS] = arg -> new AssignPartitions();...
NON_FRAGMENTED_SERVICE_NAMESPACE] = arg -> NonFragmentedServiceNamespace.INSTANCE;
1,350,788
public static void main(String[] args) throws Throwable {<NEW_LINE>OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);<NEW_LINE>try {<NEW_LINE>// Put object form file with traffic limit<NEW_LINE>InputStream inputStream = new FileInputStream("<yourlocalFile>");<NEW_LINE>PutObjectRequest...
PutObjectRequest(bucketName, key, inputStream);
1,709,281
public MouthOpen unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MouthOpen mouthOpen = new MouthOpen();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><...
JsonToken token = context.getCurrentToken();
403,125
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException {<NEW_LINE>if (arguments.length != 1) {<NEW_LINE>throw new UDFArgumentException("Usage : map_key_values( map) ");<NEW_LINE>}<NEW_LINE>if (!arguments[0].getCategory().equals(Category.MAP)) {<NEW_LINE>throw new UDFArgumentException...
add(moi.getMapValueObjectInspector());
713,700
protected List<TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) {<NEW_LINE>List<TestSuite> derivedSuites = new ArrayList<>(super.createDerivedSuites(parentBuilder));<NEW_LINE>if (!parentBuilder.getFeatures().contains(SUBSET_VIEW)...
.EXCLUSIVE, Bound.NO_BOUND));
203,889
private void statInit() {<NEW_LINE>labelValue.setText(Msg.getMsg(Env.getCtx(), "Value"));<NEW_LINE>fieldValue.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fieldValue.addActionListener(this);<NEW_LINE>labelName.setText(Msg.getMsg(Env.getCtx(), "Name"));<NEW_LINE>fieldName.setBackground(AdempierePLAF.getInf...
.getCtx(), "SearchANDInfo"));
1,370,791
private static EditorTextField createTextField(@Nonnull final Project project, @Nonnull final ProjectSystemId externalSystemId) {<NEW_LINE>ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(externalSystemId);<NEW_LINE>assert manager != null;<NEW_LINE>final AbstractExternalSystemLocalSetting...
collapseIfPossible(editor, externalSystemId, project);
1,596,686
public Mono<Response<Void>> generateNewSitePublishingPasswordWithResponseAsync(String resourceGroupName, String name) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>i...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
448,925
final DeleteResourceResult executeDeleteResource(DeleteResourceRequest deleteResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,266,271
public void run() {<NEW_LINE>SelectionManager manager = VizController.getInstance().getSelectionManager();<NEW_LINE>if (manager.isSelectionEnabled()) {<NEW_LINE>if (manager.isRectangleSelection()) {<NEW_LINE>configureLink.setVisible(false);<NEW_LINE>statusLabel.setText(NbBundle.getMessage(SelectionBar.class, "Selection...
(SelectionBar.class, "SelectionBar.statusLabel.noSelection"));
1,260,613
protected void configure() {<NEW_LINE>if (options.enablePreemptor) {<NEW_LINE>LOG.info("Preemptor Enabled.");<NEW_LINE>bind(PreemptorMetrics.class).in(Singleton.class);<NEW_LINE>bind(Preemptor.class).to(Preemptor.PreemptorImpl.class);<NEW_LINE>bind(Preemptor.PreemptorImpl.class).in(Singleton.class);<NEW_LINE>bind(new T...
(options.preemptionSlotHoldTime, "preemption_slot"));
1,257,378
public DoubleDataStore computeAverageDistInSet() {<NEW_LINE>WritableDoubleDataStore davg = DataStoreUtil.makeDoubleStorage(points.getDBIDs(), DataStoreFactory.HINT_HOT);<NEW_LINE>WritableIntegerDataStore nDists = DataStoreUtil.makeIntegerStorage(points.getDBIDs(), DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP)...
size(), LOG) : null;
1,529,195
public void addEdge(int threadId, WritableComparable srcId, WritableComparable dstId, Writable value) throws IOException {<NEW_LINE>int bytesEdgeSrcOffset = 0, bytesEdgeDstOffset = 0, bytesDataOffsets = 0;<NEW_LINE>bytesEdgeSrcOffset = (int) -<MASK><NEW_LINE>srcId.write(edgeSrcIdOutputStream[threadId]);<NEW_LINE>bytesE...
edgeSrcIdOutputStream[threadId].bytesWriten();
321,670
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.advanceTime(0);<NEW_LINE>env.compileDeploy("@public create context Ctx " + "context C0 initiated by SupportBean as criteria terminated by SupportBean(theString='x'), " + "context C1 start @now end (*,*,*,*,*,*...
new SupportBean_S0(1, "B"));
1,702,854
protected Class<?> findClass(String name, boolean returnNull) throws ClassNotFoundException {<NEW_LINE>String resourceName = Util.convertClassNameToResourceName(name);<NEW_LINE>final ByteResourceInformation classBytesResourceInformation = shadowedLoader.findClassBytes(name, resourceName);<NEW_LINE>if (classBytesResourc...
lastDotIndex = name.lastIndexOf('.');
1,292,441
public void actionPerformed(final ActionEvent evt, final JTextComponent target) {<NEW_LINE>if (target != null) {<NEW_LINE>final Caret caret = target.getCaret();<NEW_LINE>final BaseDocument doc = (BaseDocument) target.getDocument();<NEW_LINE>doc.render(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>Doc...
Utilities.getRowEnd(target, dotPos);
753,207
static public void loadDefaultProperties(SipPropertiesMap properties) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(HAProperties.class.getName(), "loadDefaultProperties");<NEW_LINE>}<NEW_LINE>properties.setBoolean(ENABLE_FAILOVER_OPERATION_MEASUREMENTS, ENABLE_FAILOVER_OPERATION_MEAS...
TIMERS_OGv2_NAME, TIMERS_OGv2_className, CustPropSource.DEFAULT);
797,308
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {<NEW_LINE>tag++;<NEW_LINE>if (i == SPACER) {<NEW_LINE>View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.<MASK><NEW_LINE>return new SpacerViewHolder(v);<NEW_LINE>} else if (i == LOADING_SPINNER) {<NEW_LINE>View v = LayoutInflater...
layout.spacer, viewGroup, false);
1,400,585
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextKeySegmentedTermByFilter(false));<NEW_LINE>execs.add(new ContextKeySegmentedTermByFilter(true));<NEW_LINE>execs.add(new ContextKeySegmentedTermByFilterWSubtype())...
add(new ContextKeySegmentedInitNoTerm(false));
1,141,489
private void updateItemsForEvent() {<NEW_LINE>if (calDavLoader == null) {<NEW_LINE>logger.debug("calDavLoader not available. Unable to update items for event.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CalDavBindingProvider bindingProvider = null;<NEW_LINE>for (CalDavBindingProvider bindingProvider_ : this.providers) {<NE...
events = calDavLoader.getEvents(query);
1,746,341
public void proposeJingleRtpSession(final Account account, final Jid with, final Set<Media> media) {<NEW_LINE>synchronized (this.rtpSessionProposals) {<NEW_LINE>for (Map.Entry<RtpSessionProposal, DeviceDiscoveryState> entry : this.rtpSessionProposals.entrySet()) {<NEW_LINE>RtpSessionProposal proposal = entry.getKey();<...
with, proposal.sessionId, endUserState);
1,126,470
private void moveIntoFragment(String name, Address start, Address end, String fileName) {<NEW_LINE>if (fileName != null) {<NEW_LINE>ProgramModule module = null;<NEW_LINE>int index = rootModule.getIndex(fileName);<NEW_LINE>if (index == -1) {<NEW_LINE>try {<NEW_LINE>module = rootModule.createModule(fileName);<NEW_LINE>} ...
index = module.getIndex(name);
421,089
static ZTFilePermissions fromPosixFileMode(int mode) {<NEW_LINE>ZTFilePermissions permissions = new ZTFilePermissions();<NEW_LINE>permissions.setOwnerCanExecute((mode & OWNER_EXECUTE_FLAG) > 0);<NEW_LINE>permissions.setGroupCanExecute((mode & GROUP_EXECUTE_FLAG) > 0);<NEW_LINE>permissions.setOthersCanExecute((mode & OT...
(mode & OTHERS_WRITE_FLAG) > 0);
1,680,925
public MChangeLog changeLog(String TrxName, int AD_ChangeLog_ID, int AD_Table_ID, int AD_Column_ID, int Record_ID, int AD_Client_ID, int AD_Org_ID, Object OldValue, Object NewValue, String event) {<NEW_LINE>// Null handling<NEW_LINE>if (OldValue == null && NewValue == null)<NEW_LINE>return null;<NEW_LINE>// Equal Value...
AD_Org_ID, OldValue, NewValue, event);
1,168,533
private static boolean refresh(@Nonnull VirtualFile file) throws IOException {<NEW_LINE>Long loadedTimeStamp = file.getUserData(TIMESTAMP_KEY);<NEW_LINE>SoftReference<BufferedImage> imageRef = file.getUserData(BUFFERED_IMAGE_REF_KEY);<NEW_LINE>if (loadedTimeStamp == null || loadedTimeStamp < file.getTimeStamp() || Soft...
setInput(imageInputStream, true, true);
370,446
public void inform(final Event e) {<NEW_LINE>if (e instanceof VulnDbAnalysisEvent) {<NEW_LINE>if (!super.isEnabled(ConfigPropertyConstants.SCANNER_VULNDB_ENABLED)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try (QueryManager qm = new QueryManager()) {<NEW_LINE>final ConfigProperty apiConsumerKey = qm.getConfigProperty(Conf...
ConfigPropertyConstants.SCANNER_VULNDB_OAUTH1_CONSUMER_KEY.getPropertyName());
178,216
public int vote(Authentication authentication, FilterInvocation filterInvocation, Collection<ConfigAttribute> attributes) {<NEW_LINE>Assert.notNull(authentication, "authentication must not be null");<NEW_LINE>Assert.notNull(filterInvocation, "filterInvocation must not be null");<NEW_LINE><MASK><NEW_LINE>WebExpressionCo...
Assert.notNull(attributes, "attributes must not be null");
645,538
public Optional<PickingOrderConfig> extractPickingOrderConfig(@NonNull final I_PP_Product_Planning productPlanning) {<NEW_LINE>if (!StringUtils.toBoolean(productPlanning.getIsManufactured())) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (!productPlanning.isPickingOrder()) {<NEW_LINE>return Optional.empty(...
"productPlanning", productPlanning).appendParametersToMessage();
1,292,987
public static BArray slice(BArray arr, long startIndex, long endIndex) {<NEW_LINE>int size = arr.size();<NEW_LINE>if (startIndex < 0) {<NEW_LINE>throw BLangExceptionHelper.getRuntimeException(RuntimeErrors.ARRAY_INDEX_OUT_OF_RANGE, startIndex, size);<NEW_LINE>}<NEW_LINE>if (endIndex > size) {<NEW_LINE>throw BLangExcept...
slicedArr = ValueCreator.createArrayValue(slicedArrType);
750,131
protected void selectHorizontalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {<NEW_LINE>TickUnit unit = getTickUnit();<NEW_LINE>TickUnitSource tickUnitSource = getStandardTickUnits();<NEW_LINE>// we should start with the current tick unit if it gives a count in<NEW_LINE>// the range 3 to 40 othe...
NumberTickUnit) tickUnitSource.getCeilingTickUnit(guess);
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("\",");
1,264,686
public static ListModulePublishVersionsResponse unmarshall(ListModulePublishVersionsResponse listModulePublishVersionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listModulePublishVersionsResponse.setRequestId(_ctx.stringValue("ListModulePublishVersionsResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>...
("ListModulePublishVersionsResponse.Data.Items[" + i + "].ModuleId"));
490,280
private void markupProgramHeaders(TaskMonitor monitor) {<NEW_LINE>int headerCount = elf.getProgramHeaderCount();<NEW_LINE>int size = elf.e_phentsize() * headerCount;<NEW_LINE>if (size == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>monitor.setMessage("Markup Program Headers ...");<NEW_LINE>Structure phStructDt = (Structur...
RefType.DATA, SourceType.IMPORTED);
1,294,345
static ImmutablePair<String, String> illuminaLeftShift(final String fivePrimeSeq, final String indelSeq, final String threePrimeSeq) {<NEW_LINE>String modifiedFivePrimeSeq = fivePrimeSeq;<NEW_LINE>StringBuilder modifiedThreePrimeSeq = new StringBuilder(threePrimeSeq);<NEW_LINE>final int indelLength = indelSeq.length();...
.length() - 1));
903,885
final CreateRepositoryResult executeCreateRepository(CreateRepositoryRequest createRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRepository");
1,172,739
public void savePlot(FileSystemItem targetPath, boolean overwrite, ServerRequestCallback<Bool> requestCallback) {<NEW_LINE>PaperSize paperSize = paperSizeEditor_.selectedPaperSize();<NEW_LINE>double width = paperSize.getWidth();<NEW_LINE><MASK><NEW_LINE>// This is more intuitive for the user to get an aspect ratio base...
double height = paperSize.getHeight();
413,324
public J visitTry(J.Try tryable, P p) {<NEW_LINE>J.Try t = tryable;<NEW_LINE>t = t.withPrefix(visitSpace(t.getPrefix(), Space<MASK><NEW_LINE>t = t.withMarkers(visitMarkers(t.getMarkers(), p));<NEW_LINE>Statement temp = (Statement) visitStatement(t, p);<NEW_LINE>if (!(temp instanceof J.Try)) {<NEW_LINE>return temp;<NEW_...
.Location.TRY_PREFIX, p));
1,460,364
@SuppressWarnings("PMD.AvoidCatchingGenericException")<NEW_LINE>public Worker.Result doWork() {<NEW_LINE>DaggerAppComponent.<MASK><NEW_LINE>Timber.d("Running attendee checkin work");<NEW_LINE>Iterable<Attendee> attendees = attendeeRepository.getPendingCheckIns().blockingIterable();<NEW_LINE>for (Attendee attendee : att...
create().inject(this);
1,074,535
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>response.setContentType("text/html;charset=UTF-8");<NEW_LINE>try (PrintWriter out = response.getWriter()) {<NEW_LINE>out.println("<!DOCTYPE html>");<NEW_LINE>out.println("<html>");<NEW...
System.out.println("Runnable Task completed");
1,728,145
final GetEmailIdentityResult executeGetEmailIdentity(GetEmailIdentityRequest getEmailIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEmailIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEmailIdentity");
710,500
public void exitMergeMatchedItem(EsperEPL2GrammarParser.MergeMatchedItemContext ctx) {<NEW_LINE>if (mergeActions == null) {<NEW_LINE>mergeActions = new ArrayList<>();<NEW_LINE>}<NEW_LINE>ExprNode whereCond = null;<NEW_LINE>if (ctx.whereClause() != null) {<NEW_LINE>whereCond = ASTExprHelper.exprCollectSubNodes(ctx.where...
add(new OnTriggerMergeActionDelete(whereCond));
673,908
public void loadGeometry() throws QueryException, ServerException, UserException, PublicInterfaceNotFoundException, IOException, GeometryException, IfcModelInterfaceException {<NEW_LINE>if (includeGeometry) {<NEW_LINE>if (modelState == ModelState.FULLY_LOADED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Query query = new Qu...
).put("splitGeometry", false);
10,424
public PlanFragment visitPhysicalJDBCScan(OptExpression optExpression, ExecPlan context) {<NEW_LINE>PhysicalJDBCScanOperator node = (PhysicalJDBCScanOperator) optExpression.getOp();<NEW_LINE>context.getDescTbl().addReferencedTable(node.getTable());<NEW_LINE>TupleDescriptor tupleDescriptor = context.getDescTbl().createT...
setTable(node.getTable());
799,814
public static void main(String[] args) throws IOException {<NEW_LINE>// This DslJson is initialized with code created by DSL Platform compiler and thus needs .NET/Mono on path<NEW_LINE>// ServiceLoader.load will load Model since it will be registered into META-INF/services during annotation processing<NEW_LINE>DslJson<...
null, new Date(0));
1,311,019
private void createRemoteUser(ScaleUser scaleUser) {<NEW_LINE>Timber.d("Create user: %s", scaleUser.getUserName());<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.setTime(scaleUser.getBirthday());<NEW_LINE>// We can only use up to 3 characters (padding with 0 if needed)<NEW_LINE>byte[] nick = Arrays.copyO...
(nick), 1900 + year);
408,209
public void init(int N, boolean isPixels, boolean planar) {<NEW_LINE>this.isPixels = isPixels;<NEW_LINE>// define the camera's motion<NEW_LINE>motion = new Se3_F64();<NEW_LINE>motion.getR().setTo(ConvertRotation3D_F64.eulerToMatrix(EulerType.XYZ, 0.5, -0.2, 0.15, null));<NEW_LINE>motion.getT().setTo(0.1, -0.2, 5);<NEW_...
observationCurrent.add(pair.p2);
1,397,751
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_flexiblespacewithimagelistview);<NEW_LINE>mFlexibleSpaceImageHeight = getResources().getDimensionPixelSize(R.dimen.flexible_space_image_height);<NEW_LINE>mFlexibleSpaceShowFabOffse...
findViewById(R.id.overlay);
1,718,005
public DeleteVMSnapshotAnswer execute(VmwareHostService hostService, DeleteVMSnapshotCommand cmd) {<NEW_LINE>List<VolumeObjectTO> listVolumeTo = cmd.getVolumeTOs();<NEW_LINE>VirtualMachineMO vmMo = null;<NEW_LINE>VmwareContext context = hostService.getServiceContext(cmd);<NEW_LINE>String vmName = cmd.getVmName();<NEW_L...
.getTarget().getSnapshotName();
269,647
private boolean registerGlassFish(File nbLocation, File gfLocation) throws IOException {<NEW_LINE>File javaExe = JavaUtils.getExecutable(new File(System.getProperty("java.home")));<NEW_LINE>String[] cp = { "platform/core/core.jar", "platform/core/core-base.jar", "platform/lib/boot.jar", "platform/lib/org-openide-module...
add(javaExe.getAbsolutePath());
552,728
public static DescribeDomainBasicConfigsResponse unmarshall(DescribeDomainBasicConfigsResponse describeDomainBasicConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainBasicConfigsResponse.setRequestId(_ctx.stringValue("DescribeDomainBasicConfigsResponse.RequestId"));<NEW_LINE>describeDomainBasicConfigsRe...
("DescribeDomainBasicConfigsResponse.DomainConfigs[" + i + "].Status"));
1,317,854
void deleteStreams(Transaction t, final Set<Long> streamIds) {<NEW_LINE>if (streamIds.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow> smRows = new HashSet<>();<NEW_LINE>Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, Hotspo...
metadatas = table.getMetadatas(smRows);