idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
354,251
public static List<Restaurant> fetchRestaurants(Client client, Coordinate coordinate) throws URISyntaxException, ClientProtocolException, IOException {<NEW_LINE>List<Restaurant> restaurants = new ArrayList<>();<NEW_LINE>URIBuilder uri = Config.getURIBuilder(Restaurant.API_PATH);<NEW_LINE>uri.setParameter("lat", coordin...
assertThat(rawJson, notNullValue());
664,780
public void beginPart(final CaseInsensitiveMap<String> headers) {<NEW_LINE>this.currentFileSize = 0;<NEW_LINE>this.headers = headers;<NEW_LINE>final String disposition = headers.getFirst(HttpHeaders.CONTENT_DISPOSITION);<NEW_LINE>if (disposition != null) {<NEW_LINE>if (disposition.startsWith("form-data")) {<NEW_LINE>cu...
HeaderUtil.extractQuotedValueFromHeader(disposition, "name");
130,399
public void applyLeaveCodegen(CodegenMethod method, CodegenClassScope classScope, CodegenNamedMethods namedMethods, AggregationClassNames classNames) {<NEW_LINE>method.getBlock().apply(instblock(classScope, "qAggregationGroupedApplyEnterLeave", constantFalse(), constant(aggGroupByDesc.getNumMethods()), constant(aggGrou...
exprDotMethod(MEMBER_REMOVEDKEYS, "add", REF_GROUPKEY);
727,653
public EntityRecognizerMetadataEntityTypesListItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EntityRecognizerMetadataEntityTypesListItem entityRecognizerMetadataEntityTypesListItem = new EntityRecognizerMetadataEntityTypesListItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<...
JsonToken token = context.getCurrentToken();
1,071,372
public void run() {<NEW_LINE>try {<NEW_LINE>int cleanupCount = 1;<NEW_LINE>while (cleanupCount > 0 && (status() == STATUS.OPEN && localDBListQueue.getLocalDB().status() == LocalDB.Status.OPEN)) {<NEW_LINE>cleanupCount = determineTailRemovalCount();<NEW_LINE>if (cleanupCount > 0) {<NEW_LINE>cleanOnWriteFlag.set(true);<N...
stats.increment(CounterStat.CleanerCycles);
1,440,031
/*<NEW_LINE>* BlockFluidClassic uses both random ticks and update ticks (after a neighbor change) to flow. This means we cannot decouple our snow gen completely from<NEW_LINE>* that by using one or the other. However, we can stay out of the random tick, so we don't have to do anything if there wasn't either a block upd...
getDefaultState()), "ForgeEventFactory.fireFluidPlaceBlockEvent()"));
135,172
static Set<String> upgradePermissions(Set<String> permissions) {<NEW_LINE>Set<String> updatedPermissions = new HashSet<>();<NEW_LINE>ListMultimap<String, String> agentPermissions = ArrayListMultimap.create();<NEW_LINE>boolean needsUpgrade = false;<NEW_LINE>for (String permission : permissions) {<NEW_LINE>if (permission...
> perms = entry.getValue();
461,581
private void createUi() {<NEW_LINE>CellConstraints cc = new CellConstraints();<NEW_LINE>contentPanel.setLayout(new BorderLayout(0, 0));<NEW_LINE>panel = new JPanel();<NEW_LINE>contentPanel.add(panel);<NEW_LINE>panel.setLayout(new FormLayout(new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, Fo...
(nozzle.getHead()));
1,771,122
public void insert(List<DetailViewEvent> path) {<NEW_LINE>DetailViewEvent head = path.get(0);<NEW_LINE>Supplier<EventsTreeItem> treeItemConstructor;<NEW_LINE>String descriptionKey;<NEW_LINE>if (head.getEventType().getTypeHierarchyLevel() == TimelineEventType.HierarchyLevel.CATEGORY) {<NEW_LINE>descriptionKey = head.get...
(head, getComparator()));
513,561
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId<MASK><NEW_LINE>describeRegionsResponse.setCode(_ctx.integerValue("DescribeRegionsResponse.Code"));<NEW_LINE>describeRegionsResponse.setMessage(_ctx....
(_ctx.stringValue("DescribeRegionsResponse.RequestId"));
140,830
private List<Group> populateList(final int numStdDev, final int limit) {<NEW_LINE>final List<Group> list = new ArrayList<>();<NEW_LINE>for (int i = 0; i < mapArrSize; i++) {<NEW_LINE>if (hashArr[i] != 0) {<NEW_LINE>final String priKey = priKeyArr[i];<NEW_LINE><MASK><NEW_LINE>final double est = sketch.getEstimate(count)...
final int count = counterArr[i];
1,137,408
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
1,466,170
public Expression expression(TableSchema<?> tableSchema, String indexName) {<NEW_LINE>QueryConditionalKeyValues queryConditionalKeyValues1 = QueryConditionalKeyValues.from(key1, tableSchema, indexName);<NEW_LINE>QueryConditionalKeyValues queryConditionalKeyValues2 = QueryConditionalKeyValues.<MASK><NEW_LINE>if (queryCo...
from(key2, tableSchema, indexName);
230,404
public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir, String.valueOf(System.currentTimeMillis()));<NEW_LINE>File baseDir = new File(quickstartTmpDir, "meetupRsvp");<NEW_LINE>File dataDir = new File(baseDir, "data");<NEW_LINE>Preconditions.checkState(dataDir.mkdirs());<NEW_LINE>Fil...
printStatus(Color.CYAN, "***** Starting Kafka *****");
671,468
public DataTypeNode decode(SerializationContext context, UaDecoder decoder) {<NEW_LINE>NodeId nodeId = decoder.readNodeId("NodeId");<NEW_LINE>NodeClass nodeClass = decoder.readEnum("NodeClass", NodeClass.class);<NEW_LINE>QualifiedName browseName = decoder.readQualifiedName("BrowseName");<NEW_LINE>LocalizedText displayN...
description = decoder.readLocalizedText("Description");
478,317
public boolean match(Object obj) {<NEW_LINE>if (obj instanceof X509CertificateHolder) {<NEW_LINE>X509CertificateHolder certHldr = (X509CertificateHolder) obj;<NEW_LINE>if (this.getSerialNumber() != null) {<NEW_LINE>IssuerAndSerialNumber iAndS = new IssuerAndSerialNumber(certHldr.toASN1Structure());<NEW_LINE>return iAnd...
Arrays.areEqual(subjectKeyId, subKeyID);
992,231
private HttpRequest.Builder findPetsByTagsRequestBuilder(List<String> tags) throws ApiException {<NEW_LINE>// verify the required parameter 'tags' is set<NEW_LINE>if (tags == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");<NEW_LINE>}<NEW_LINE>HttpReques...
localVarRequestBuilder.header("Accept", "application/json");
621,740
public ContactChannelAddress unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ContactChannelAddress contactChannelAddress = new ContactChannelAddress();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
226,373
public void valueChanged(XFormField sourceField, String newValue, String oldValue) {<NEW_LINE>List<String> testCases = new ArrayList<String>();<NEW_LINE>String <MASK><NEW_LINE>if (newValue.equals(ALL_VALUE)) {<NEW_LINE>for (TestSuite testSuite : testSuites) {<NEW_LINE>for (TestCase testCase : testSuite.getTestCaseList(...
tc = mainForm.getComponentValue(TESTCASE);
897,393
public static Pair<Long, TimeUnit> parseInterval(String s, TimeUnit unit) throws NumberFormatException {<NEW_LINE>final String original = s;<NEW_LINE>for (Map.Entry<String, String> entry : TIME_UNITS.entrySet()) {<NEW_LINE>final String abbrev = entry.getKey();<NEW_LINE>if (s.endsWith(abbrev)) {<NEW_LINE>final String fu...
).longValue(), unit);
1,483,557
public static void prepareExternalFiles(MLContext mlContext, String workDir) throws Exception {<NEW_LINE>String entryFunc = mlContext.getProperties().get(DLConstants.ENTRY_FUNC);<NEW_LINE>mlContext.setFuncName(entryFunc);<NEW_LINE>DLUtils.safePutProperties(mlContext, DLConstants.WORK_DIR, workDir);<NEW_LINE>workDir = n...
new String[] { entryScriptName });
918,808
HtmlElement makeLexical(Example ex) {<NEW_LINE>HtmlElement predicatesElem = H.tr();<NEW_LINE>HtmlElement tokensElem = H.tr();<NEW_LINE>// Mark all the predicates used in any derivation on the beam.<NEW_LINE>// Note: this is not all possible.<NEW_LINE>CandidatePredicates[] predicates = new CandidatePredicates[ex.<MASK><...
getTokens().size()];
152,592
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>boolean cookieExists = false;<NEW_LINE>String cookieValue = null;<NEW_LINE>Cookie[] cookies = req.getCookies();<NEW_LINE>if (null != cookies) {<NEW_LINE>// Iterate over cookies until we find one named ...
OutputStream body = resp.getOutputStream();
1,732,641
public int compareTo(initiateFlush_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());<NEW_L...
this.tnase, other.tnase);
965,975
public TSStatus insertStringRecords(TSInsertStringRecordsReq req) {<NEW_LINE>if (!serviceProvider.checkLogin(req.getSessionId())) {<NEW_LINE>return getNotLoggedInStatus();<NEW_LINE>}<NEW_LINE>if (AUDIT_LOGGER.isDebugEnabled()) {<NEW_LINE>AUDIT_LOGGER.debug("Session {} insertRecords, first device {}, first time {}", SES...
plan, req.getSessionId());
345,088
public void run() {<NEW_LINE>try {<NEW_LINE>final File file = new File(cwd, "package.json");<NEW_LINE>if (file.exists()) {<NEW_LINE>fatal(file.toPath().toRealPath() + " already exists!");<NEW_LINE>}<NEW_LINE>String[] templates = typeScript ? new String[] { importMap ? "META-INF/es4x-commands/init/ts/import-map.json" : ...
in, target.toPath());
1,159,243
public static DescribeTaskAttributeResponse unmarshall(DescribeTaskAttributeResponse describeTaskAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTaskAttributeResponse.setRequestId(_ctx.stringValue("DescribeTaskAttributeResponse.RequestId"));<NEW_LINE>describeTaskAttributeResponse.setCreationTime(_ctx.st...
= new ArrayList<OperationProgress>();
600,683
public boolean wrapMultiDispatch(final MessageExtBrokerInner msgInner) {<NEW_LINE>if (!messageStore.getMessageStoreConfig().isEnableMultiDispatch()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String multiDispatchQueue = msgInner.getProperty(MessageConst.PROPERTY_INNER_MULTI_DISPATCH);<NEW_LINE>if (StringUtils.isBlank(...
(queueOffsets, MixAll.MULTI_DISPATCH_QUEUE_SPLITTER));
259,049
final DeleteUserPermissionsBoundaryResult executeDeleteUserPermissionsBoundary(DeleteUserPermissionsBoundaryRequest deleteUserPermissionsBoundaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPermissionsBoundaryRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
972,824
private boolean matchesInternal(DateTimeParserContext ctx, StringBuilder sb) {<NEW_LINE>int snapshot = ctx.cursor().value();<NEW_LINE>Consumer<DateTimeParserContext> appender = charBufferAppender(sb);<NEW_LINE>PatternNode TZ_SHORT_NODE = PatternNode.of(TZ_SHORT, DateTimeTokenizer.Symbol.STRING, appender);<NEW_LINE>Node...
(BRACKET_CLOSE).or(TZ_SHORT_NODE);
1,316,108
public List<AppInstance> appMetadataList(RSocketBrokerHandlerRegistry handlerFactory) {<NEW_LINE>return handlerFactory.findAll().stream().map(handler -> {<NEW_LINE>AppInstance appInstance = new AppInstance();<NEW_LINE>AppMetadata appMetadata = handler.getAppMetadata();<NEW_LINE>appInstance.setId(appMetadata.getUuid());...
setWebPort(appMetadata.getWebPort());
1,064,442
final UpdateLocationObjectStorageResult executeUpdateLocationObjectStorage(UpdateLocationObjectStorageRequest updateLocationObjectStorageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLocationObjectStorageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateLocationObjectStorage");
1,268,978
protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>page.setLocation(getInsets().left, getInsets().top);<NEW_LINE>Point mousePos = component.getMousePosition();<NEW_LINE>if (mousePos != null) {<NEW_LINE>int pageRelativeX = mousePos.x - page<MAS...
.getX() - getX();
1,714,884
public void marshall(ExportJobProperties exportJobProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (exportJobProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(exportJobProperties.getJobI...
exportJobProperties.getDatastoreId(), DATASTOREID_BINDING);
1,533,888
public DescribeImageReplicationStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeImageReplicationStatusResult describeImageReplicationStatusResult = new DescribeImageReplicationStatusResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
class).unmarshall(context));
49,789
private static void assertPrevCount(RegressionEnvironment env) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>sendMarketEvent(env, "IBM", 75);<NEW_LINE>assertCountAndPrice(env, 1L, 75D);<NEW_LINE>sendMarketEvent(env, "IBM", 76);<NEW_LINE>assertCountAndPrice(env, 2L, 75D);<NEW_LINE>sendTimer(env, 10000);<NEW_LINE>sendMarketEven...
sendMarketEvent(env, "IBM", 80);
830,006
// TODO: Use one of the new text classes, like /help ?<NEW_LINE>private void warpList(final CommandSource sender, final String[] args, final IUser user) throws Exception {<NEW_LINE>final <MASK><NEW_LINE>final List<String> warpNameList = getAvailableWarpsFor(user);<NEW_LINE>if (warpNameList.isEmpty()) {<NEW_LINE>throw n...
IWarps warps = ess.getWarps();
549,746
PNone futimes(VirtualFrame frame, PosixFd fd, Object times, Object ns, int dirFd, @SuppressWarnings("unused") boolean followSymlinks, @Cached UtimeArgsToTimespecNode timespecNode, @Cached SysModuleBuiltins.AuditNode auditNode, @CachedLibrary("getPosixSupport()") PosixSupportLibrary posixLib) {<NEW_LINE>Timeval[] timeva...
toTimeval(frame, times, ns);
1,666,708
public static Multimap<String, ListenableFuture<ResourceSymbols>> loadFrom(Iterable<? extends SymbolFileProvider> dependencies, ListeningExecutorService executor, @Nullable String packageToExclude) throws InterruptedException, ExecutionException {<NEW_LINE>Map<SymbolFileProvider, ListenableFuture<String>> providerToPac...
> packageToTable = LinkedHashMultimap.create();
127,203
final DBCluster executeRebootDBCluster(RebootDBClusterRequest rebootDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rebootDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
103,991
public static void handleEventInstanceOutParameters(VariableScope variableScope, BaseElement baseElement, EventInstance eventInstance) {<NEW_LINE>List<ExtensionElement> outParameters = baseElement.getExtensionElements().getOrDefault(CmmnXmlConstants.ELEMENT_EVENT_OUT_PARAMETER, Collections.emptyList());<NEW_LINE>if (!o...
, Function.identity()));
1,081,197
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>lblProject = <MASK><NEW_LINE>comProject = new javax.swing.JComboBox();<NEW_LINE>btnProject = new javax.swing.JButton();<N...
new javax.swing.JLabel();
371,700
public static String selectServerDialog(J2eeModule.Type[] moduleTypes, Profile j2eeProfile, String title, String description) {<NEW_LINE>NoSelectedServerWarning panel = new NoSelectedServerWarning(moduleTypes, j2eeProfile);<NEW_LINE>Object[] options = new Object[] { <MASK><NEW_LINE>final DialogDescriptor desc = new Dia...
DialogDescriptor.OK_OPTION, DialogDescriptor.CANCEL_OPTION };
755,639
public Object visit(OWLOntology ontology) {<NEW_LINE>AxiomType.AXIOM_TYPES.stream().flatMap(t -> ontology.axioms(t)).forEach(ax -> ax.accept(this));<NEW_LINE>ontology.annotations().forEach(a -> {<NEW_LINE>OWLAnnotation transform = t(a);<NEW_LINE>if (transform != a) {<NEW_LINE>ontologyChanges.add(new RemoveOntologyAnnot...
new SetOntologyID(ontology, transform));
380,272
public void prepareLevels(ChunkProgressListener listener) {<NEW_LINE>ServerLevel serverworld = this.overworld();<NEW_LINE>this.forceTicks = true;<NEW_LINE>LOGGER.info("Preparing start region for dimension {}", serverworld.dimension().location());<NEW_LINE>BlockPos blockpos = serverworld.getSharedSpawnPos();<NEW_LINE>li...
serverWorld).bridge$getWorld()));
1,507,298
final UpdateLedgerPermissionsModeResult executeUpdateLedgerPermissionsMode(UpdateLedgerPermissionsModeRequest updateLedgerPermissionsModeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLedgerPermissionsModeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateLedgerPermissionsMode");
137,419
private void initData() throws ParserConfigurationException, IOException, SAXException {<NEW_LINE>DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = dbFactory.newDocumentBuilder();<NEW_LINE>Document doc = builder.parse(ExternalExtensionsDialog.class.getResourceAs...
String[inheritsNode.getLength()];
1,849,281
public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo result = new emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo(this);<NEW_LINE>int from_bitField0_ = bitField...
.rendererChangedInfo_ = rendererChangedInfoBuilder_.build();
6,091
public void newDocumentationMap(final String file) {<NEW_LINE>final NodeAndMapReference nodeAndMapReference = new NodeAndMapReference(file);<NEW_LINE>final ResourceController resourceController = ResourceController.getResourceController();<NEW_LINE>final File userDir = new File(resourceController.getFreeplaneUserDirect...
String languageCode = resourceController.getLanguageCode();
1,099,064
protected void process() {<NEW_LINE>super.process();<NEW_LINE>AccountingBatch accountingBatch = batch.getAccountingBatch();<NEW_LINE>if (!accountingBatch.getPaymentMode().getGenerateBankOrder()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch all reimbursements that are validated for the specified company.<NEW_LINE>Que...
error(ex.getLocalizedMessage());
1,325,200
final ListInputsResult executeListInputs(ListInputsRequest listInputsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInputsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
(super.beforeMarshalling(listInputsRequest));
1,386,945
public boolean saveKeyStore(KeyStoreHistory history) {<NEW_LINE>File saveFile = null;<NEW_LINE>try {<NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>kseFrame.focusOnKeyStore(currentState.getKeyStore());<NEW_LINE>saveFile = history.getFile();<NEW_LINE>if (saveFile == null) {<NEW_LINE>return sav...
Password password = currentState.getPassword();
188,188
public Pose unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Pose pose = new Pose();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g...
class).unmarshall(context));
1,079,696
private static LinearRing buildSurfacePatch(Element gmlElement, CoordinateSequenceDimensions dims, SRSInfo srsInfo) {<NEW_LINE>Element linearRingElement = gmlElement.getChild("LinearRing", GML_NAMESPACE);<NEW_LINE>LinearRing linearRing = null;<NEW_LINE>if (linearRingElement != null) {<NEW_LINE>// LinearRing [1..1]<NEW_...
linearRing = buildLinearRing(linearRingElement, dims);
544,095
private HttpPipeline createHttpPipeline() {<NEW_LINE>if (this.pipeline != null) {<NEW_LINE>return this.pipeline;<NEW_LINE>}<NEW_LINE>List<HttpPipelinePolicy> policyList = new ArrayList<>();<NEW_LINE>ClientOptions buildClientOptions = (clientOptions == null) ? new ClientOptions() : clientOptions;<NEW_LINE>HttpLogOptions...
add(this.createCookiePolicy());
128,971
public void populateDisplayData(DisplayData.Builder builder) {<NEW_LINE>super.populateDisplayData(builder);<NEW_LINE>if (getQuery() != null) {<NEW_LINE>builder.add(DisplayData.item("query", getQuery()));<NEW_LINE>}<NEW_LINE>if (getTable() != null) {<NEW_LINE>builder.add(DisplayData.item("table", getTable()));<NEW_LINE>...
().getName()));
1,159,089
private void createDefaultAttributes() {<NEW_LINE>createXSDAttribute(rootElement, RPL_Constants.XML_ATTR_AD_Client_Value, "xsd:string", null);<NEW_LINE>// 02596<NEW_LINE>createXSDAttribute(rootElement, RPL_Constants.XML_ATTR_SEQUENCE_NO, "xsd:integer", null);<NEW_LINE>// 06231<NEW_LINE>createXSDAttribute(rootElement, R...
RPL_Constants.XML_ATTR_REPLICATION_TYPE, "ReplicationTypeEnum", null);
1,812,506
// Instantiate a new ReadFilter derived object and save it in the list<NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>public ReadFilter createInstanceForPlugin(final Class<?> pluggableClass) throws IllegalAccessException, InstantiationException {<NEW_LINE>ReadFilter readFilter = null;<NEW_LINE>fi...
String simpleName = pluggableClass.getSimpleName();
1,311,864
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public create window PointWindow#keepall as (id string, px double, py double);\n" + "create index MyIndex on PointWindow((px,py) pointregionquadtree(0,0,100,100,2,12));\n" + "insert into PointWindow select id, px, py from SupportSpatialPoint;\n" + "@n...
env, "P0", 1.9290410254557688, 79.2596477701767);
1,039,326
protected void superPreDestroy(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>results.addPreDestroy(CLASS_NAME, "superPreDestroy");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<NEW_LINE>if (map.containsKey("PreDestroy")) {...
ResultsLocal results = ResultsLocalBean.getSFBean();
665,186
public void archiveNotes(boolean archive) {<NEW_LINE>int selectedNotesSize = getSelectedNotes().size();<NEW_LINE>// Used in undo bar commit<NEW_LINE>sendToArchive = archive;<NEW_LINE>if (!archive) {<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>trackModifiedNotes(getSelectedNotes());<NEW_LINE>}<NEW_LINE>for (Note note : g...
archiveNote(getSelectedNotes(), false);
738,581
public // Feature SIB0112b.mp.1<NEW_LINE>void restore(final List<DataSlice> dataSlices) throws SevereMessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "restore", dataSlices);<NEW_LINE>super.restore(dataSlices);<NEW_LINE>key = new AIStreamKey(getMe...
SibTr.exception(tc, e);
300,558
final DescribeApplicationResult executeDescribeApplication(DescribeApplicationRequest describeApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeApplication");
1,256,255
// @formatter:on<NEW_LINE>@Overwrite<NEW_LINE>@Nullable<NEW_LINE>public Packet<?> nextUpdatePacket(int i) {<NEW_LINE>// CraftBukkit<NEW_LINE>RenderData render = ((MapDataBridge) outerThis).bridge$getMapView().render(((ServerPlayerEntityBridge) this<MASK><NEW_LINE>MapItemSavedData.MapPatch patch;<NEW_LINE>if (this.dirty...
.player).bridge$getBukkitEntity());
154,233
public RuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RuleResult ruleResult = new RuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));
601,691
private void updatePassword(String password) {<NEW_LINE>EditPostRepository editPostRepository = getEditPostRepository();<NEW_LINE>if (editPostRepository == null)<NEW_LINE>return;<NEW_LINE>String trimmedPassword = password.trim();<NEW_LINE>Boolean isNewPasswordBlank = trimmedPassword.isEmpty();<NEW_LINE><MASK><NEW_LINE>...
String previousPassword = editPostRepository.getPassword();
546,852
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>final View mRootView = inflater.inflate(R.layout.fragment_chat, container, false);<NEW_LINE>Context context = requireContext();<NEW_LINE>LinearLayoutManager llm = new LinearLayoutManager(context);<NEW_LINE>llm.s...
findViewById(R.id.tabs_viewpager);
1,134,657
private Map<Vector3i, Collection<EntityRef>> createChunkPosToUnsavedOwnerLessEntitiesMap() {<NEW_LINE>Map<Vector3i, Collection<EntityRef>> chunkPosToEntitiesMap = Maps.newHashMap();<NEW_LINE>for (EntityRef entity : privateEntityManager.getEntitiesWith(LocationComponent.class)) {<NEW_LINE>if (entity.isPersistent() && !e...
entity.getComponent(LocationComponent.class);
1,001,308
static void kmp(String text, String pattern) {<NEW_LINE>int lenText = text.length();<NEW_LINE><MASK><NEW_LINE>int[] b = new int[lenPattern + 1];<NEW_LINE>int i = 0, j = -1;<NEW_LINE>b[0] = -1;<NEW_LINE>while (i < lenPattern) {<NEW_LINE>while (j >= 0 && pattern.charAt(i) != pattern.charAt(j)) j = b[j];<NEW_LINE>i++;<NEW...
int lenPattern = pattern.length();
468,675
public static ErlangExpressionType calculateFunctionType(@NotNull ErlangFunction function) {<NEW_LINE>ErlangSpecification spec = function.findSpecification();<NEW_LINE>if (spec == null)<NEW_LINE>return UNKNOWN;<NEW_LINE>ErlangFunTypeSigs signature = ErlangPsiImplUtil.getSignature(spec);<NEW_LINE>if (signature == null)<...
ErlangTopTypeClause typeClause = funType.getTopTypeClause();
1,668,151
public int[] findOrigin() throws BadLocationException, InterruptedException {<NEW_LINE>((AbstractDocument) context.getDocument()).readLock();<NEW_LINE>try {<NEW_LINE>int[] origin = BracesMatcherSupport.findChar(context.getDocument(), getSearchOffset(), <MASK><NEW_LINE>if (origin != null) {<NEW_LINE>originOffset = origi...
context.getLimitOffset(), PAIRS);
1,315,682
public TextFile importMedia(String userId, long projectId, String urlString, boolean save) throws IOException {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>final int BUFSIZE = 4096;<NEW_LINE>URL url = new URL(urlString);<NEW_LINE>byte[] buffer = new byte[BUFSIZE];<NEW_LINE>int read = 0;<NEW_LINE>ByteArrayOu...
projectId, filename, userId, bytes);
106,879
private boolean updatePostponedByUser(SoapUIVersionInfo newVersion, SoapUIVersionInfo curVersion, String comments) {<NEW_LINE>final long A_DAY = 24 * 60 * 60 * 1000;<NEW_LINE>boolean result = true;<NEW_LINE>Date nextCheck = null;<NEW_LINE>switch(showUpdateIsAvailableDialog(newVersion, curVersion, comments)) {<NEW_LINE>...
getTime() + 7 * A_DAY);
657,805
public void reset(boolean asIdentity) {<NEW_LINE>setUpdateNeeded(true);<NEW_LINE>if (referencePoints1 != null && (referencePoints1.length == 0 || referencePoints1.length == 8)) {<NEW_LINE>if (referencePoints1.length == 0) {<NEW_LINE>// if (K2 != null && invK1 != null && n == null) {<NEW_LINE>// projectiveParameters = n...
0, 0, 0, 0 };
993,351
public static ClassNode parameterizeType(final ClassNode hint, final ClassNode target) {<NEW_LINE>if (hint.isArray()) {<NEW_LINE>if (target.isArray()) {<NEW_LINE>return parameterizeType(hint.getComponentType(), target.getComponentType()).makeArray();<NEW_LINE>}<NEW_LINE>return target;<NEW_LINE>}<NEW_LINE>if (hint.isGen...
genericsSpec = createGenericsSpec(targetRedirect, genericsSpec);
1,675,113
public void endVisit(FieldDeclaration x, MethodScope scope) {<NEW_LINE>try {<NEW_LINE>JExpression <MASK><NEW_LINE>JField field = typeMap.get(x.binding);<NEW_LINE>if (field instanceof JEnumField) {<NEW_LINE>// An enum field must be initialized!<NEW_LINE>assert (initialization instanceof JNewInstance);<NEW_LINE>}<NEW_LIN...
initialization = pop(x.initialization);
123,476
public Iterator<Tuple2<T, U>> call(Integer v1, Iterator<Tuple2<T, U>> iter) throws Exception {<NEW_LINE>long thisRngSeed = baseRngSeed + v1;<NEW_LINE><MASK><NEW_LINE>List<Integer> list = new ArrayList<>();<NEW_LINE>for (int i = 0; i < numSplits; i++) {<NEW_LINE>list.add(i);<NEW_LINE>}<NEW_LINE>List<Tuple2<T, U>> output...
Random r = new Random(thisRngSeed);
1,035,992
protected boolean createCloudStackSecret(String[] keys) {<NEW_LINE>File pkFile = getManagementServerSshPublicKeyFile();<NEW_LINE>Pair<String, Integer> publicIpSshPort = getKubernetesClusterServerIpSshPort(null);<NEW_LINE>List<KubernetesClusterVmMapVO> vmMapVOList = getKubernetesClusterVMMaps();<NEW_LINE>publicIpAddress...
0], keys[1]);
1,142,389
public ListEntityRecognizerSummariesResult listEntityRecognizerSummaries(ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEntityRecognizerSummariesRequest);<NEW_LINE>A...
invoke(request, responseHandler, executionContext);
1,397,596
protected void putSub(byte[] big, int off, int stride, int[] block, int mbW, int mbH) {<NEW_LINE>int blOff = 0;<NEW_LINE>if (mbW == 1) {<NEW_LINE>big[off] = clipTo8Bit(block[blOff]);<NEW_LINE>big[off + 1] = clipTo8Bit(block[blOff + 1]);<NEW_LINE>big[off + stride] = clipTo8Bit(block[blOff + 2]);<NEW_LINE>big[off + strid...
= clipTo8Bit(block[blOff]);
201,009
public CompletionStage<Void> refreshPartitionsAsync() {<NEW_LINE>List<RedisURI> sources = new ArrayList<>();<NEW_LINE>Iterable<RedisURI> topologyRefreshSource = getTopologyRefreshSource();<NEW_LINE>for (RedisURI redisURI : topologyRefreshSource) {<NEW_LINE>sources.add(redisURI);<NEW_LINE>}<NEW_LINE>EventRecorder.Record...
) -> event.record());
1,164,470
private void addLibraryContainers(List<ContainerInfo> sharedLibContainers, String pid, LibraryContainerInfo.LibraryType libType, Library library) {<NEW_LINE>if (library != null) {<NEW_LINE>String libName = library.id();<NEW_LINE>SharedLibClassesContainerInfo libClassesInfo = new SharedLibClassesContainerInfo(libType, l...
> files = library.getFiles();
195,669
public void bootstrap() {<NEW_LINE>super.bootstrap();<NEW_LINE>try {<NEW_LINE>final String contextFactoryClass = configuration.getContextFactoryClass();<NEW_LINE>final String connectionFactoryName = configuration.getConnectionFactoryName();<NEW_LINE>final String url = configuration.getUrl();<NEW_LINE>final String usern...
String password = configuration.getPassword();
611,304
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>CommandLine cl = parseComandLine(args);<NEW_LINE>FindSCU main = new FindSCU();<NEW_LINE>CLIUtils.configureConnect(main.remote, main.rq, cl);<NEW_LINE>CLIUtils.configureBind(main.conn, main.ae, cl);<NEW_LINE>CLIUtils.configure(main.conn, cl);<NEW_LINE>main...
(rb.getString("try"));
1,033,458
public static RexNode convertConditionForIndexScan(RexNode idxCondition, RelNode origScan, RelDataType idxRowType, RexBuilder builder, FunctionalIndexInfo functionInfo) {<NEW_LINE>IndexableExprMarker marker = new IndexableExprMarker(origScan);<NEW_LINE>idxCondition.accept(marker);<NEW_LINE>SimpleRexRemap remap = new <M...
SimpleRexRemap(origScan, idxRowType, builder);
1,640,572
public void onFinish() {<NEW_LINE>String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());<NEW_LINE>String imageName = "/IMG_" + timeStamp + ".jpg";<NEW_LINE>String selectedImagePath = getIntent().getExtras().getString("selectedImagePath");<NEW_LINE>File file = new File(selectedImagePath);<NEW_LIN...
returnIntent.putExtra("imagePath", selectedImagePath);
1,800,129
private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>Wo wo = new Wo();<NEW_LINE>List<Person> os = business.person().pick(wi.getPersonList());<NEW_LINE>if (ListTools.isNotEmpty(os)) {<NEW_LINE>List<String> ids = ListTools.extractProperty(os, JpaObject.id_FIELDNAME, String.class, true, true);<NEW_LINE>En...
collect(Collectors.toList());
444,304
public static DescribeAffectedMaliciousFileImagesResponse unmarshall(DescribeAffectedMaliciousFileImagesResponse describeAffectedMaliciousFileImagesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAffectedMaliciousFileImagesResponse.setRequestId(_ctx.stringValue("DescribeAffectedMaliciousFileImagesResponse.Reques...
("DescribeAffectedMaliciousFileImagesResponse.AffectedMaliciousFileImagesResponse[" + i + "].Namespace"));
327,089
private static void runUpdateNestedEvent(RegressionEnvironment env, boolean namedWindow, String metaType, AtomicInteger milestone) {<NEW_LINE>String eplTypes = "@public create " + metaType + " schema Composite as (c0 int);\n" + "@buseventtype @public create " + metaType + " schema AInfraType as (k string, cflat Composi...
sendEventObjectArray(makeNestedOAEvent(), "MyEvent");
105,862
public DeleteCommentReplyResponse deleteCommentReply(DeleteCommentReplyRequest request) {<NEW_LINE>DeleteCommentReplyResponse response = new DeleteCommentReplyResponse();<NEW_LINE>try {<NEW_LINE>request.requestCheck();<NEW_LINE>CommentReply commentReply = commentReplyMapper.selectByPrimaryKey(request.getCommentReplyId(...
ExceptionProcessorUtil.handleException(response, e);
255,626
private static SQLBinaryOpExpr expandAndExpression(SQLBinaryOpExpr expr) {<NEW_LINE>SQLExpr left = expr.getLeft();<NEW_LINE>SQLExpr right = expr.getRight();<NEW_LINE>if (!isLogicalExpression(left) && !isLogicalExpression(right)) {<NEW_LINE>return expr;<NEW_LINE>}<NEW_LINE>SQLBinaryOpExpr leftOp = (SQLBinaryOpExpr) toDN...
newLeft, SQLBinaryOperator.BooleanOr, newRight);
1,467,858
private void addToServerContextBindingMap(String interfaceName) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(<MASK><NEW_LINE>// Re-wrote method to only add short-form default (implicit). d457053.1<NEW_LINE>BindingData bdata = ivServerContextBindingMap.get(interfaceNam...
tc, "addToServerContextBindingMap : " + interfaceName + " (implicit)");
1,228,170
public boolean invoke(final String tableName, final Object[] ids, final IContextAware ctx) {<NEW_LINE>// do some basic checking<NEW_LINE>if (Check.isEmpty(tableName, true)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (ids == null || ids.length != 1 || ids[0] == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if ...
(int) ids[0]);
1,505,787
final DeleteDeviceFleetResult executeDeleteDeviceFleet(DeleteDeviceFleetRequest deleteDeviceFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDeviceFleetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,416,931
public void showStockRequestedReservedQuantityOfProduct(ActionRequest request, ActionResponse response) {<NEW_LINE>Map<String, Long> mapId = Beans.get(ProjectedStockService.class).getProductIdCompanyIdStockLocationIdFromContext(request.getContext());<NEW_LINE>if (mapId == null || mapId.get("productId") == 0L) {<NEW_LIN...
title = I18n.get(VIEW_REQUESTED_RESERVED_QTY_TITLE);
832,591
public static Builder buildFrom(String columnStatistic) {<NEW_LINE>int endIndex = columnStatistic.indexOf(']');<NEW_LINE>String valueString = <MASK><NEW_LINE>String typeString = endIndex == columnStatistic.length() - 1 ? "" : columnStatistic.substring(endIndex + 2);<NEW_LINE>String[] valueArray = valueString.split(",")...
columnStatistic.substring(1, endIndex);
1,472,417
private boolean disassembleDrive(ItemStack stack, Level level, Player player) {<NEW_LINE>if (InteractionUtil.isInAlternateUseMode(player)) {<NEW_LINE>if (level.isClientSide()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Inventory playerInventory = player.getInventory();<NEW_LINE>var inv = <MASK><NEW_LINE>if (inv...
StorageCells.getCellInventory(stack, null);
1,458,029
public void process(TransportProtos.SessionInfoProto sessionInfo, TransportProtos.ToServerRpcRequestMsg msg, TransportServiceCallback<Void> callback) {<NEW_LINE>if (checkLimits(sessionInfo, msg, callback)) {<NEW_LINE>reportActivityInternal(sessionInfo);<NEW_LINE>UUID sessionId = toSessionId(sessionInfo);<NEW_LINE>Tenan...
"serviceId", serviceInfoProvider.getServiceId());
775,796
public final O handleRequest(I input, Context context) {<NEW_LINE>AwsLambdaRequest request = AwsLambdaRequest.create(context, input, extractHttpHeaders(input));<NEW_LINE>io.opentelemetry.context.Context parentContext = instrumenter.extract(request);<NEW_LINE>if (!instrumenter.shouldStart(parentContext, request)) {<NEW_...
openTelemetrySdk, flushTimeoutNanos, TimeUnit.NANOSECONDS);
1,233,285
public GetPortfolioPreferencesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPortfolioPreferencesResult getPortfolioPreferencesResult = new GetPortfolioPreferencesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth...
String currentParentElement = context.getCurrentParentElement();