idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
586,331
protected static void parseCellAttributes(XMLElement cellElem, String fieldName, FieldWriter childField, UiBinderWriter writer) throws UnableToCompleteException {<NEW_LINE>JClassType hAlignConstantType = writer.getOracle().findType(HorizontalAlignmentConstant.class.getCanonicalName());<NEW_LINE>JClassType vAlignConstan...
childField.getNextReference(), value);
383,181
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>_shareUtil = new ShareUtil(this);<NEW_LINE>setContentView(R.layout.main__activity);<NEW_LINE>ButterKnife.bind(this);<NEW_LINE>setSupportActionBar(findViewById<MASK><NEW_LINE>optShowRate();<NEW_LINE>try {<NEW_LINE>...
(R.id.toolbar));
187,774
protected void bind(final ViewHolder holder, final Object item, boolean isSelected, final ImageLoader imageLoader, final View.OnClickListener onMessageClickListener, final View.OnLongClickListener onMessageLongClickListener, final DateFormatter.Formatter dateHeadersFormatter, final SparseArray<MessagesListAdapter.OnMes...
BaseMessageViewHolder) holder).imageLoader = imageLoader;
948,934
public static HttpURLConnection loginAuthenticatedURL(final URL url, final String keytabPrincipal, final String keytabPath) throws Exception {<NEW_LINE>logger.info("Logging in URL: " + url.toString() + " using Principal: " + keytabPrincipal + ", Keytab: " + keytabPath);<NEW_LINE>UserGroupInformation loginUser = UserGro...
).openConnection(url, token);
600,850
protected void appendTable(final HtmlSerializerTextBuilder builder, final HtmlTable htmlTable) {<NEW_LINE>builder.appendBlockSeparator();<NEW_LINE>final String caption = htmlTable.getCaptionText();<NEW_LINE>if (caption != null) {<NEW_LINE>builder.append(caption, Mode.NORMALIZE);<NEW_LINE>builder.appendBlockSeparator();...
> tableRows = htmlTable.getRows();
1,055,496
public void executionResult(RunConfig config, ExecutionContext res, int resultCode) {<NEW_LINE>if (NbmActionGoalProvider.NBMRELOAD.equals(config.getActionName()) && resultCode == 0) {<NEW_LINE>DirectoryScanner scanner = new DirectoryScanner();<NEW_LINE>NbMavenProject prj = project.getLookup().lookup(NbMavenProject.clas...
, incl[0])));
602,560
public static DescribeUidWhiteListGroupResponse unmarshall(DescribeUidWhiteListGroupResponse describeUidWhiteListGroupResponse, UnmarshallerContext context) {<NEW_LINE>describeUidWhiteListGroupResponse.setRequestId(context.stringValue("DescribeUidWhiteListGroupResponse.RequestId"));<NEW_LINE>describeUidWhiteListGroupRe...
("DescribeUidWhiteListGroupResponse.DataList[" + i + "].GmtRealExpire"));
1,828,082
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public @buseventtype create schema OrderDetail(itemId string);\n" + "@public @buseventtype create schema OrderEvent(details OrderDetail[]);\n" + "@name('s0') select details.where(i => i.itemId = '001') as c0 from OrderEvent;\n";<NEW_LINE>env.compileDe...
detailOne, detailTwo }), "OrderEvent");
1,556,531
public Change unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Change change = new Change();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
class).unmarshall(context));
796,068
public FunctionalIterator<Unifier> unify(Rule.Conclusion.Relation relationConclusion, ConceptManager conceptMgr) {<NEW_LINE>if (relation().players().size() > relationConclusion.relation().players().size())<NEW_LINE>return Iterators.empty();<NEW_LINE>Unifier.Builder unifierBuilder = Unifier.builder();<NEW_LINE>ThingVari...
.clone(), conceptMgr));
853,371
protected void updateViewFromSelected() {<NEW_LINE>if (selected == null)<NEW_LINE>return;<NEW_LINE>super.commonUpdateViewFromSelected();<NEW_LINE>sshServer.setText(selected.getSshServer());<NEW_LINE>sshPort.setText(Integer.toString<MASK><NEW_LINE>sshUser.setText(selected.getSshUser());<NEW_LINE>checkboxUseSshPubkey.set...
(selected.getSshPort()));
1,124,011
public static void vertical9(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.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...
[indexSrc] & 0xFF) * k9;
1,509,243
private Composite createBasicInfoGroup(Composite parent, IFileStore fileStore, IFileInfo fileInfo) {<NEW_LINE>Composite container = new Composite(parent, SWT.NULL);<NEW_LINE>container.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).margins(0, 0).create());<NEW_LINE>Label label = new Label(container, SWT.NONE);<...
SWT.WRAP | SWT.READ_ONLY);
232,676
private Map<Haplotype, Haplotype> trimDownHaplotypes(final Locatable span, final List<Haplotype> haplotypeList) {<NEW_LINE>final Map<Haplotype, Haplotype> <MASK><NEW_LINE>for (final Haplotype h : haplotypeList) {<NEW_LINE>final Haplotype trimmed = h.trim(span);<NEW_LINE>if (trimmed != null) {<NEW_LINE>if (originalByTri...
originalByTrimmedHaplotypes = new HashMap<>();
1,723,328
protected RemoteOperationResult run(OwnCloudClient client) {<NEW_LINE>RemoteOperationResult result;<NEW_LINE>Utf8PostMethod postMethod = null;<NEW_LINE>try {<NEW_LINE>postMethod = new Utf8PostMethod(client.getBaseUri() + DOCUMENT_URL + JSON_FORMAT);<NEW_LINE>postMethod.setParameter(FILE_ID, fileID);<NEW_LINE>// remote ...
(NODE_DATA).getString(NODE_URL);
545,566
public boolean removeRealm(String id) {<NEW_LINE>RealmEntity realm = em.find(RealmEntity.class, id, LockModeType.PESSIMISTIC_WRITE);<NEW_LINE>if (realm == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>em.refresh(realm);<NEW_LINE>final RealmAdapter adapter = new RealmAdapter(session, em, realm);<NEW_LINE>session.us...
clients().removeClients(adapter);
1,513,890
public static // raw_text | magic_comment | comment | environment | pseudocode_block | math_environment | COMMAND_IFNEXTCHAR | commands | group | parameter_text | BACKSLASH | COMMA | EQUALS | OPEN_BRACKET | CLOSE_BRACKET<NEW_LINE>boolean angle_param_content(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "a...
pseudocode_block(b, l + 1);
486,547
public String arrayTypeList(String s, ArrayTypeAccess typeAccess) {<NEW_LINE>char <MASK><NEW_LINE>switch(c) {<NEW_LINE>case 'B':<NEW_LINE>typeAccess.setAccess(new PrimitiveTypeAccess("byte"));<NEW_LINE>return s.substring(1);<NEW_LINE>case 'C':<NEW_LINE>typeAccess.setAccess(new PrimitiveTypeAccess("char"));<NEW_LINE>ret...
c = s.charAt(0);
985,763
protected MultiGetResult<K, V> do_GET_ALL(Set<? extends K> keys) {<NEW_LINE>HashMap<K, CacheGetResult<V>> resultMap = new HashMap<>();<NEW_LINE>Set<K> restKeys = new HashSet<>(keys);<NEW_LINE>for (int i = 0; i < caches.length; i++) {<NEW_LINE>if (restKeys.size() == 0) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>Cache<K, Cach...
K key = en.getKey();
1,682,949
final GetStudioComponentResult executeGetStudioComponent(GetStudioComponentRequest getStudioComponentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStudioComponentRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetStudioCompon...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,162,872
public void export(Person person, long time) throws IOException {<NEW_LINE>String <MASK><NEW_LINE>String payerId = "";<NEW_LINE>String payerName = "";<NEW_LINE>String type = COVERAGE_TYPES[(int) randomLongWithBounds(0, COVERAGE_TYPES.length - 1)];<NEW_LINE>int groupSelect = (int) randomLongWithBounds(0, GROUPIDS.length...
personID = patient(person, time);
1,752,021
// Call on EDT<NEW_LINE>private void addMBeanInfo(XMBean mbean, MBeanInfo mbeanInfo) {<NEW_LINE>// NOI18N<NEW_LINE>String border = Resources.getText("LBL_MBeanInfo");<NEW_LINE>// NOI18N<NEW_LINE>String text = Resources.getText("LBL_Info");<NEW_LINE>DefaultTableModel tableModel = (DefaultTableModel) infoTable.getModel()...
] = Resources.getText("LBL_ClassName");
837,491
private void migrateExistingAllTimeSucceededFromJobStatsToMetadataAndDropJobStats(MongoDatabase jobrunrDatabase, MongoCollection<Document> metadataCollection) {<NEW_LINE>if (!collectionExists(jobrunrDatabase, JobStats.NAME))<NEW_LINE>return;<NEW_LINE>MongoCollection<Document> jobStatsCollection = jobrunrDatabase.getCol...
.FIELD_STATS)).first();
1,404,831
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {<NEW_LINE>if (beanName.startsWith(DataSourceBeanFactoryPostProcessor.SOFA_TRACER_DATASOURCE) || bean instanceof SmartDataSource || !(bean instanceof DataSource)) {<NEW_LINE>return bean;<NEW_LINE>}<NEW_LINE>String getUrlMet...
appName = environment.getProperty(TRACER_APPNAME_KEY);
408,639
public boolean isHidden(Context context, String schema, String element, String qualifier) throws SQLException {<NEW_LINE>boolean hidden = false;<NEW_LINE>// for schema.element, just check schema->elementSet<NEW_LINE>if (!isInitialized()) {<NEW_LINE>init();<NEW_LINE>}<NEW_LINE>if (qualifier == null) {<NEW_LINE>Set<Strin...
null && elts.contains(element);
1,491,939
public final BetweenAndStep14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> notBetween(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8, Field<T9> t9, Field<T10> t10, Field<T11> t11, Field<T12> t12, Field<T13> t13, Field<T14> t14) {<NEW_LINE>r...
, t12, t13, t14));
37,705
private IEditorPart openEditorForMarker(final IWorkbench workbench, final IWorkbenchPage page, IFile markedFile) throws CommandExecutionException {<NEW_LINE>IEditorPart editor;<NEW_LINE>IEditorInput editorInput = new FileEditorInput(markedFile);<NEW_LINE>String fileName = markedFile.getName();<NEW_LINE>IEditorDescripto...
getEditorRegistry().getDefaultEditor(fileName);
1,691,672
public ProcessExecutionResult invokeExternalSystem(@NonNull final InvokeExternalSystemProcessRequest invokeExternalSystemProcessRequest) {<NEW_LINE>final ExternalSystemParentConfig externalSystemParentConfig = externalSystemConfigRepo.getByTypeAndValue(invokeExternalSystemProcessRequest.getExternalSystemType(), invokeE...
getExternalSystemType().getExternalSystemProcessClassName());
1,210,451
public void unregisterGovernanceServiceFromEngine(String userId, String governanceEngineGUID, String governanceServiceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException {<NEW_LINE>final String methodName = "unregisterGovernanceServiceFromEngine";<NEW_LINE>final String governance...
serverName, userId, governanceEngineGUID, governanceServiceGUID);
1,114,978
public StringBuilder generateWhiteSpace(final CommonCodeStyleSettings.IndentOptions indentOptions, final int offset, final IndentInfo indent) {<NEW_LINE>final StringBuilder result = new StringBuilder();<NEW_LINE>int currentOffset = getStartOffset();<NEW_LINE>CharSequence[] lines = getInitialLines();<NEW_LINE>int curren...
appendNonWhitespaces(result, lines, currentLine);
952,683
public static void horizontal(GrayF32 input, GrayF32 output, int offset, int length) {<NEW_LINE>final float divisor = length;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexIn = input.startIndex + input.stride * y;<NEW_LIN...
+ output.stride * y + offset;
1,147,069
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {<NEW_LINE>final <MASK><NEW_LINE>if (methodName.startsWith("with") && method.getReturnType() != null && MongoCollection.class.isAssignableFrom(method.getReturnType())) {<NEW_LINE>// inutile de monitorer withDocumentClass...
String methodName = method.getName();
1,694,175
public R invoke(Object... arguments) {<NEW_LINE>ConversionService<?> conversionService = this.conversionService;<NEW_LINE><MASK><NEW_LINE>if (targetArguments.length == 0) {<NEW_LINE>return executableMethod.invoke();<NEW_LINE>} else {<NEW_LINE>List<Object> argumentList = new ArrayList<>(arguments.length);<NEW_LINE>Map<S...
Argument[] targetArguments = getArguments();
25,455
private Mono<PagedResponse<VpnGatewayInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is requ...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
196,581
public final long checkFPs() {<NEW_LINE>long dis = Long.MAX_VALUE;<NEW_LINE>for (int i = 0; i < this.table.length; i++) {<NEW_LINE>long low = i & 0xffffffL;<NEW_LINE>byte[] bucket = this.table[i];<NEW_LINE>if (bucket != null) {<NEW_LINE>int j = 0;<NEW_LINE>while (j < bucket.length) {<NEW_LINE>long b1 = (bucket[j++] & 0...
bucket1 = this.table[k];
504,011
public StructureEntry incomingReferences(final String hosthash) {<NEW_LINE>final String hostname = hostHash2hostName(hosthash);<NEW_LINE>if (hostname == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// collect the references<NEW_LINE>WebStructureGraph.StructureEntry sentry;<NEW_LINE>final HashMap<String, Integer> h...
SHORT_DAY_FORMATTER.format(), hosthashes);
1,735,673
public void handleInterrupt(Status status) {<NEW_LINE>if (unit.getCurrentAction() == Action.IDLE) {<NEW_LINE>int a = getCpu().getRegisterSet().getRegister("A").getValue();<NEW_LINE>int b = getCpu().getRegisterSet().getRegister("B").getValue();<NEW_LINE>if (a == LEGS_SET_DIR) {<NEW_LINE>Direction dir = Direction.getDire...
unit.setCurrentAction(Action.WALKING);
1,779,790
public static DescribeDBInstanceNetInfoResponse unmarshall(DescribeDBInstanceNetInfoResponse describeDBInstanceNetInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBInstanceNetInfoResponse.setRequestId(_ctx.stringValue("DescribeDBInstanceNetInfoResponse.RequestId"));<NEW_LINE>describeDBInstanceNetInfoResponse...
("DescribeDBInstanceNetInfoResponse.DBInstanceNetInfos[" + i + "].VPCId"));
1,091,796
final GetPullRequestApprovalStatesResult executeGetPullRequestApprovalStates(GetPullRequestApprovalStatesRequest getPullRequestApprovalStatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPullRequestApprovalStatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetPullRequestApprovalStates");
1,390,200
public String sqlAD_getTranslatedTables(String vendorName, String catalogName, String schemaName) {<NEW_LINE>// table name<NEW_LINE>String tableName = "AD_Table";<NEW_LINE>// column names<NEW_LINE>ArrayList<String> columnNames = new ArrayList<String>();<NEW_LINE>columnNames.add("SUBSTR(TableName, 1, LENGTH(TableName)-4...
= new ArrayList<String>();
718,526
private void init() {<NEW_LINE>// WARNING: called from ctor so must not be overridden (i.e. must be private or final)<NEW_LINE>this.setLayout(new BorderLayout());<NEW_LINE>// MAIN PANEL<NEW_LINE>JPanel mainPanel = new JPanel();<NEW_LINE>Border margin = new EmptyBorder(10, 10, 5, 10);<NEW_LINE>mainPanel.setBorder(margin...
add(saveHeaders, BorderLayout.EAST);
507,848
@Consumes(MediaType.MULTIPART_FORM_DATA)<NEW_LINE>public Response uploadFile(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file") FormDataContentDisposition fileDetail) {<NEW_LINE>Config config = createConfig();<NEW_LINE>if (uploadedInputStream == null) {<NEW_LINE>String msg = "input stream is...
fileDetail.getFileName(), e);
1,122,253
public void selectMapOfInt32(Blackhole blackhole, DriverState state) throws Throwable {<NEW_LINE>int num = state.getRandomNumber();<NEW_LINE>int rows <MASK><NEW_LINE>ConsumeValueFunction func = state.getConsumeFunction((b, r, l, i) -> b.consume(r.getObject(i)));<NEW_LINE>int l = 0;<NEW_LINE>try (Statement stmt = execut...
= state.getSampleSize() + num;
1,557,754
public void run() {<NEW_LINE>String dn;<NEW_LINE>File f = new File((String) o);<NEW_LINE>if (f.exists()) {<NEW_LINE>FileObject fo = FileUtil.toFileObject(f);<NEW_LINE>Project p = FileOwnerQuery.getOwner(fo);<NEW_LINE>if (p != null) {<NEW_LINE>ProjectInformation pi = (ProjectInformation) ProjectUtils.getInformation(p);<...
), pi.getDisplayName());
734,390
public void channelRead(ChannelHandlerContext ctx, Object msg) {<NEW_LINE>if (msg instanceof StreamResponseBuilder) {<NEW_LINE><MASK><NEW_LINE>final Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>headers.putAll(builder.getHeaders());<NEW_LINE>final Map<String, String> wireAttrs = W...
final StreamResponseBuilder builder = (StreamResponseBuilder) msg;
655,824
protected ExtensionSearch toSearchEntry(Extension extension, SearchStats stats) {<NEW_LINE>var entry = extension.toSearch();<NEW_LINE>var ratingValue = 0.0;<NEW_LINE>if (entry.averageRating != null) {<NEW_LINE>var reviewCount = repositories.countActiveReviews(extension);<NEW_LINE>// Reduce the rating relevance if there...
.toSeconds() / stats.timestampRef;
1,518,842
private MTableScrollPane<HeapHistogram.ClassInfo> createScrollPane(long totalInstances, long totalBytes, boolean sourceDisplayed) {<NEW_LINE>final MTableScrollPane<HeapHistogram.ClassInfo> tableScrollPane = new MTableScrollPane<>();<NEW_LINE>final MTable<ClassInfo> myTable = tableScrollPane.getTable();<NEW_LINE>myTable...
.setHeaderValue(getString("pct_taille"));
452,623
private void updateColors() {<NEW_LINE>FontColorSettings fcs = fontsColors.allInstances().iterator().next();<NEW_LINE>String namePrefix <MASK><NEW_LINE>// Update colors.<NEW_LINE>Coloring keyColoring = Coloring.fromAttributeSet(fcs.getTokenFontColors(namePrefix + PropertiesTokenContext.KEY.getName()));<NEW_LINE>keyColo...
= PropertiesTokenContext.context.getNamePrefix();
1,649,488
public void load(int AD_Workflow_ID, boolean readWrite) {<NEW_LINE>log.fine("RW=" + readWrite + " - AD_Workflow_ID=" + AD_Workflow_ID);<NEW_LINE>if (AD_Workflow_ID == 0)<NEW_LINE>return;<NEW_LINE>int AD_Client_ID = Env.<MASK><NEW_LINE>// Get Workflow<NEW_LINE>m_wf = new MWorkflow(Env.getCtx(), AD_Workflow_ID, null);<NE...
getAD_Client_ID(Env.getCtx());
524,745
void load(List<TabletMetadata> tablets, Files files) {<NEW_LINE>for (TabletMetadata tablet : tablets) {<NEW_LINE>// send files to tablet sever<NEW_LINE>// ideally there should only be one tablet location to send all the files<NEW_LINE>TabletMetadata.Location location = tablet.getLocation();<NEW_LINE>HostAndPort server ...
bulkDir, fileInfo.getFileName());
752,835
public void sawOpcode(int seen) {<NEW_LINE>if (getStack().getStackDepth() == 0) {<NEW_LINE>this.lastEmptyStackPC = getPC();<NEW_LINE>}<NEW_LINE>if ((seen == Const.DCMPG || seen == Const.DCMPL || seen == Const.FCMPL || seen == Const.FCMPG) && getStack().getStackDepth() == 2) {<NEW_LINE>int[] startEnd = new int[] { this....
(item2, this), this);
1,610,219
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {<NEW_LINE>Object localVarPostBody = pet;<NEW_LINE>// verify the required parameter 'pet' is set<NEW_LINE>if (pet == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");<NEW_LINE>}<NEW_LINE>// c...
HashMap<String, String>();
1,356,400
static IBaseResource parseResourceFromRequest(RequestDetails theRequest, @Nonnull BaseMethodBinding<?> theMethodBinding, Class<? extends IBaseResource> theResourceType) {<NEW_LINE>if (theRequest.getResource() != null) {<NEW_LINE>return theRequest.getResource();<NEW_LINE>}<NEW_LINE>IBaseResource retVal = null;<NEW_LINE>...
setId(theRequest.getId());
607,515
public static void dissectReplayNewLeadershipTerm(final ClusterEventCode eventCode, final MutableDirectBuffer buffer, final int offset, final StringBuilder builder) {<NEW_LINE>int absoluteOffset = offset;<NEW_LINE>absoluteOffset += dissectLogHeader(CONTEXT, eventCode, buffer, absoluteOffset, builder);<NEW_LINE>final in...
buffer.getLong(absoluteOffset, LITTLE_ENDIAN);
441,785
private void playBreakOrPickupSound() {<NEW_LINE>SoundEvent soundEvent;<NEW_LINE>float volume;<NEW_LINE>float pitch;<NEW_LINE>if (soundMode == SoundMode.FLUID) {<NEW_LINE>// This code is based on what BucketItem does<NEW_LINE>Fluid rawFluid = blockState.getFluidState().getType();<NEW_LINE>if (rawFluid.is(FluidTags.LAVA...
getSoundManager().play(sound);
1,796,391
final GetSegmentVersionsResult executeGetSegmentVersions(GetSegmentVersionsRequest getSegmentVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSegmentVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint");
38,996
public static QueryEdgeDriverResponse unmarshall(QueryEdgeDriverResponse queryEdgeDriverResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryEdgeDriverResponse.setRequestId(_ctx.stringValue("QueryEdgeDriverResponse.RequestId"));<NEW_LINE>queryEdgeDriverResponse.setSuccess(_ctx.booleanValue("QueryEdgeDriverResponse.Succe...
("QueryEdgeDriverResponse.Data.DriverList[" + i + "].IsApply"));
1,712,140
public <T> String predicate(UnboundPredicate<T> pred) {<NEW_LINE>switch(pred.op()) {<NEW_LINE>case IS_NULL:<NEW_LINE>return pred.ref().name() + " IS NULL";<NEW_LINE>case NOT_NULL:<NEW_LINE>return pred.ref().name() + " IS NOT NULL";<NEW_LINE>case IS_NAN:<NEW_LINE>return "is_nan(" + pred.ref().name() + ")";<NEW_LINE>case...
sqlString(pred.literal());
1,145,013
public static GetQualityResultResponse unmarshall(GetQualityResultResponse getQualityResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQualityResultResponse.setRequestId(_ctx.stringValue("GetQualityResultResponse.RequestId"));<NEW_LINE>getQualityResultResponse.setMessage(_ctx.stringValue("GetQualityResultResponse...
("GetQualityResultResponse.Data.QualityResultResponseList[" + i + "].TouchId"));
1,407,150
public DomainResponse createDomainResponse(Domain domain) {<NEW_LINE>DomainResponse domainResponse = new DomainResponse();<NEW_LINE>domainResponse.setDomainName(domain.getName());<NEW_LINE>domainResponse.setId(domain.getUuid());<NEW_LINE>domainResponse.setLevel(domain.getLevel());<NEW_LINE>domainResponse.setCreated(dom...
setNetworkDomain(domain.getNetworkDomain());
598,509
public String toStringk() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("(");<NEW_LINE><MASK><NEW_LINE>List<Config> l = getOrigins(true);<NEW_LINE>if (l.size() > 0) {<NEW_LINE>sb.append(" ->");<NEW_LINE>boolean first = true;<NEW_LINE>for (Config c : l) {<NEW_LINE>if (c.inState == null)<NEW_LINE>...
sb.append(this.id);
303,001
public final Object execute(VirtualFrame frame) {<NEW_LINE>final Object self = RubyArguments.getSelf(frame);<NEW_LINE>// Execute the arguments<NEW_LINE>Object[] superArguments = (Object[]) arguments.execute(frame);<NEW_LINE>ArgumentsDescriptor descriptor = this.descriptor;<NEW_LINE>boolean ruby2KeywordsHash = false;<NE...
insert(CallSuperMethodNode.create());
1,732,739
protected Widget createMainWidget() {<NEW_LINE>SimplePanel wrapper = new SimplePanel();<NEW_LINE>wrapper.setStyleName(RES.styles().wrapper());<NEW_LINE>LayoutGrid connGrid = new LayoutGrid(initialConfig_.size(), 2);<NEW_LINE>connGrid.addStyleName(RES.styles().grid());<NEW_LINE>for (int idxParams = 0; idxParams < initia...
key, textbox.getValue());
1,100,935
public NodeExecutorResult executeCommand(final ExecutionContext context, final String[] command, final INodeEntry node) {<NEW_LINE>StringBuilder preview = new StringBuilder();<NEW_LINE>for (final String aCommand : command) {<NEW_LINE>preview.append("'").append(aCommand).append("'");<NEW_LINE>}<NEW_LINE>context.getExecu...
, String.valueOf(result));
1,811,220
public static void main(String[] args) throws Exception {<NEW_LINE>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(System.getProperty("user.dir") + "/BookmarksDeleter.docx"));<NEW_LINE>MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();<NEW_LINE>// Before..<NEW_LIN...
.Document) documentPart.getJaxbElement();
328,155
public Mono<Response<Void>> syncFunctionsWithResponseAsync(String resourceGroupName, String name) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter resourceGroupName is r...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
313,799
public GetFirewallRuleGroupAssociationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetFirewallRuleGroupAssociationResult getFirewallRuleGroupAssociationResult = new GetFirewallRuleGroupAssociationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentE...
int originalDepth = context.getCurrentDepth();
1,108,701
protected void processExtension(SchemaRep.Extension el) throws Schema2BeansException {<NEW_LINE>if (debug)<NEW_LINE>config.messageOut.println("extension el=" + el);<NEW_LINE>String uniqueName = (String) parentUniqueNames.peek();<NEW_LINE>String name = (String) parentTypes.peek();<NEW_LINE>String base = el.getBase();<NE...
addExtraDataNode(uniqueName, name, restrict);
931,381
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static java.util.List<com.sun.jdi.request.ClassUnloadRequest> classUnloadRequests0(com.sun.jdi.request.EventRequestManager a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger....
jpda.JDIExceptionReporter.report(ex);
762,667
public RegularStatement call() throws Exception {<NEW_LINE>Selection select = QueryBuilder.select();<NEW_LINE>for (int i = 0; i < allPrimayKeyCols.length; i++) {<NEW_LINE>select.column(allPrimayKeyCols[i]);<NEW_LINE>}<NEW_LINE>for (ColumnDefinition colDef : regularCols) {<NEW_LINE>String colName = colDef.getName();<NEW...
(gte(columnName, BIND_MARKER));
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...
parameterPanel.add(fieldContact, null);
956,697
private void initializeConverters() {<NEW_LINE>conversionService.addConverter(ObjectIdToStringConverter.INSTANCE);<NEW_LINE>conversionService.addConverter(StringToObjectIdConverter.INSTANCE);<NEW_LINE>if (!conversionService.canConvert(ObjectId.class, BigInteger.class)) {<NEW_LINE>conversionService.addConverter(ObjectId...
::new).getReadingConverter());
702,065
private Mono<PagedResponse<ServerInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, 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>}<NEW_LINE>...
(), null, null));
1,149,943
public int updateHmilyTransactionStatus(final Long transId, final Integer status) throws HmilyRepositoryException {<NEW_LINE>String <MASK><NEW_LINE>try {<NEW_LINE>KeyValue keyValue = getKeyValue(path);<NEW_LINE>if (null == keyValue) {<NEW_LINE>return HmilyRepository.FAIL_ROWS;<NEW_LINE>}<NEW_LINE>HmilyTransaction hmily...
path = node.getHmilyTransactionRealPath(transId);
76,700
// Driver function<NEW_LINE>public static void main(String[] args) {<NEW_LINE>int[] wt = { 6, 10, 3, 5, 1, 2 };<NEW_LINE>int[] val = { 12, 30, 15, 20, 5, 12 };<NEW_LINE>// storing number of items<NEW_LINE>int nItems = wt.length;<NEW_LINE>Item[] arr = new Item[nItems];<NEW_LINE>for (int i = 0; i < nItems; i++) arr[i] = ...
fractionalKnapsackProblem(arr, nItems, Capacity);
649,280
private JToggleButton createPlacesSelectedNodeToggleButton() {<NEW_LINE>final JToggleButton checkBoxOnlySpecificNodes = createToggleButtonWithIconAndLabel("PlaceSelectedNodeOnSlide.icon", "slide.placenode");<NEW_LINE>checkBoxOnlySpecificNodes.setAlignmentX(Component.CENTER_ALIGNMENT);<NEW_LINE>checkBoxOnlySpecificNodes...
slide.getPlacedNodeId() != null);
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...
1, 1, 1, 1);
446,887
protected Result[][] multisearch(String id, int k, int d) throws IOException {<NEW_LINE>List<Result[]> results = new ArrayList<>();<NEW_LINE>TopDocs wordDocs = searcher.search(new TermQuery(new Term(IndexVectors.FIELD_ID, id)), k);<NEW_LINE>for (ScoreDoc scoreDoc : wordDocs.scoreDocs) {<NEW_LINE>Document doc = searcher...
Result[nearest.scoreDocs.length];
1,726,613
void slide(TopComponent tc, ModeImpl source, String targetSide) {<NEW_LINE>ModeImpl targetMode = model.getSlidingMode(targetSide);<NEW_LINE>if (targetMode == null) {<NEW_LINE>targetMode = WindowManagerImpl.getInstance().createModeImpl(ModeImpl.getUnusedModeName(), Constants.MODE_KIND_SLIDING, false);<NEW_LINE>model.add...
(tc.getBounds()));
1,736,264
private If convertOspfRedistributionPolicy(OspfRedistributionPolicy policy, OspfProcess proc) {<NEW_LINE>RedistributionSourceProtocol protocol = policy.getSourceProtocol();<NEW_LINE>// All redistribution must match the specified protocol.<NEW_LINE>Conjunction ospfExportConditions = new Conjunction();<NEW_LINE>ospfExpor...
(policy.getMetricType()));
1,290,116
public void visitSourcePath(SourcePath value) throws IOException {<NEW_LINE>if (value instanceof DefaultBuildTargetSourcePath) {<NEW_LINE>value = ruleFinder.getRule(value).get().getSourcePathToOutput();<NEW_LINE>Objects.requireNonNull(value);<NEW_LINE>}<NEW_LINE>if (value instanceof ExplicitBuildTargetSourcePath) {<NEW...
writeRelativePath(pathSourcePath.getRelativePath());
1,339,755
public void onPrivateAtomicCookieFetched(OnPrivateAtomicCookieFetched event) {<NEW_LINE>if (event.isError()) {<NEW_LINE>AppLog.e(AppLog.T.MAIN, "Failed to load private AT cookie. " + event.error.type + " - " + event.error.message);<NEW_LINE>WPSnackbar.make(findViewById(R.id.webview_wrapper), R.string.media_accessing_fa...
), mPrivateAtomicCookie.getCookieContent());
642,365
public synchronized boolean unwrapInput() {<NEW_LINE>boolean success = false;<NEW_LINE>boolean shouldUnwrap = true;<NEW_LINE>while (!isClosed() && shouldUnwrap && netIn.position() > 0) {<NEW_LINE>debug("- UNWRAP");<NEW_LINE>// prepare for reading<NEW_LINE>netIn.flip();<NEW_LINE>// backup, to rollback in case of underfl...
conn.input.append(appIn);
164,048
public boolean writeAttributeName(FSTClazzInfo.FSTFieldInfo subInfo, Object outerObjectToWrite) {<NEW_LINE>try {<NEW_LINE>SerializedString bufferedName = (SerializedString) subInfo.getBufferedName();<NEW_LINE>if (bufferedName == null) {<NEW_LINE>bufferedName = new <MASK><NEW_LINE>subInfo.setBufferedName(bufferedName);<...
SerializedString(subInfo.getName());
1,824,995
protected ModelAndView handleContext(String contextName, Context context, HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String jspName = ServletRequestUtils.getStringParameter(request, "source", null);<NEW_LINE>ServletContext sctx = context.getServletContext();<NEW_LINE>ServletCo...
).getServletFileNameForJsp(context, jspName);
1,522,376
public static void logLoginInfo(RepositoryConnectionList logininfo, String logLable) {<NEW_LINE>Logger logger = getInstallLogger();<NEW_LINE>if (null == logLable) {<NEW_LINE>logLable = "";<NEW_LINE>} else if (!logLable.isEmpty()) {<NEW_LINE>logLable += " ";<NEW_LINE>}<NEW_LINE>for (RepositoryConnection c : logininfo)...
FINEST, logLable + "API Key: " + apiKey);
481,535
private void recursivelySetFinalFlag(BLangVariable variable) {<NEW_LINE>if (variable == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(variable.getKind()) {<NEW_LINE>case VARIABLE:<NEW_LINE>if (variable.symbol == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>variable.symbol.flags |= Flags.FINAL;<NEW_LINE>break;<NEW...
-> recursivelySetFinalFlag(bLangErrorDetailEntry.valueBindingPattern));
1,465,713
public void applicationStopped() {<NEW_LINE>try {<NEW_LINE>infoUpdateTimer.cancel();<NEW_LINE>infoUpdateTimer.purge();<NEW_LINE>log.trace("Updating server information in the database");<NEW_LINE><MASK><NEW_LINE>Object tsObj = types.getSqlObject(timeSource.currentTimestamp());<NEW_LINE>int tsType = types.getSqlType(Date...
DbTypeConverter types = persistence.getDbTypeConverter();
443,603
private Map<String, Object> buildMongoDbInput(final String title, final String type, final boolean global, final Map<String, Object> configuration, final String userName, final DateTime createdAt) {<NEW_LINE>final ImmutableMap.Builder<String, Object> inputData = ImmutableMap.builder();<NEW_LINE>inputData.put(MessageInp...
getNodeId().toString());
1,188,160
public void reloadFromDisk(@Nonnull final Document document) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>final VirtualFile file = getFile(document);<NEW_LINE>assert file != null;<NEW_LINE>if (!fireBeforeFileContentReload(file, document)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final...
isReloadable(file, document, project);
175,850
public List<ComparablePair<Long, KeyExtent>> computeBusiest(Collection<Tablet> tablets) {<NEW_LINE>HashMap<KeyExtent, Long> counts = new HashMap<>();<NEW_LINE>ArrayList<ComparablePair<Long, KeyExtent>> tabletsWithDelta = new ArrayList<>();<NEW_LINE>for (Tablet tablet : tablets) {<NEW_LINE>KeyExtent extent = tablet.getE...
).greatestOf(tabletsWithDelta, numBusiestTabletsToLog);
347,564
public boolean acceptIndexMatch(String documentPath, SearchPattern indexRecord, SearchParticipant participant, AccessRuleSet access) {<NEW_LINE>// Filter unexpected types<NEW_LINE>TypeDeclarationPattern record = (TypeDeclarationPattern) indexRecord;<NEW_LINE>if (record.enclosingTypeNames == IIndexConstants.ONE_ZERO_CHA...
accessRestriction = access.getViolatedRestriction(path);
1,482,843
public boolean markPresent(Map<Integer, Set<String>> paths, Instant lastScanned) {<NEW_LINE>if (!paths.isEmpty()) {<NEW_LINE>return paths.entrySet().parallelStream().map(e -> {<NEW_LINE>int batches = (e.getValue().size() - 1) / 30000;<NEW_LINE>List<String> pList = new ArrayList<>(e.getValue());<NEW_LINE>return IntStrea...
, e.getKey()));
120,268
@ConditionalOnMissingBean<NEW_LINE>public ApiHttpSecurityCustomizer delegatingApiHttpSecurityCustomizer() {<NEW_LINE>JwtAuthenticationConverter converter = new JwtAuthenticationConverter();<NEW_LINE>FlowableCommonAppProperties.OAuth2 oAuth2 = commonAppProperties.getSecurity().getOAuth2();<NEW_LINE>String authoritiesAtt...
.asList(fixUserApiHttpSecurityCustomizer, jwtApiHttpSecurityCustomizer));
263,752
private void expandSupertypes(Map<String, Set<String>> subTypesStore, Map<String, Set<String>> typesAnnotatedStore, String key, Class<?> type) {<NEW_LINE>Set<Annotation> typeAnnotations = ReflectionUtils.getAnnotations(type);<NEW_LINE>if (typesAnnotatedStore != null && !typeAnnotations.isEmpty()) {<NEW_LINE>String type...
()).add(typeName);
1,575,278
public void enterPoplt_apply_path(Poplt_apply_pathContext ctx) {<NEW_LINE>HierarchyPath applyPathPath = new HierarchyPath();<NEW_LINE>String pathQuoted <MASK><NEW_LINE>int line = ctx.path.getLine();<NEW_LINE>String pathWithoutQuotes = pathQuoted.substring(1, pathQuoted.length() - 1);<NEW_LINE>String[] pathComponents = ...
= ctx.path.getText();
1,780,513
private static boolean randomSamplingRunner(TimedExecutor executor, int k, List<Integer> A) throws Exception {<NEW_LINE>List<List<Integer>> results = new ArrayList<>();<NEW_LINE>executor.run(() -> {<NEW_LINE>for (int i = 0; i < 1000000; ++i) {<NEW_LINE>randomSampling(k, A);<NEW_LINE>results.add(new ArrayList<>(A.subLis...
(), k, i));
276,017
private static BundleEntryComponent observation(RandomNumberGenerator rand, BundleEntryComponent personEntry, Bundle bundle, BundleEntryComponent encounterEntry, Observation observation) {<NEW_LINE>org.hl7.fhir.dstu3.model.Observation observationResource = new org.hl7.fhir.dstu3.model.Observation();<NEW_LINE>observatio...
meta.addProfile(SHR_EXT + "shr-finding-Observation");
1,057,815
public StartCelebrityRecognitionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartCelebrityRecognitionResult startCelebrityRecognitionResult = new StartCelebrityRecognitionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
int originalDepth = context.getCurrentDepth();
310,382
private Mono<Response<OrchestratorVersionProfileListResultInner>> listOrchestratorsWithResponseAsync(String location, String resourceType, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return M...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));