idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
411,343
protected void resetEditorFrom(final RunConfigurationBase configuration) {<NEW_LINE>ArrayList<LogFileOptions> list = new ArrayList<LogFileOptions>();<NEW_LINE>final ArrayList<LogFileOptions<MASK><NEW_LINE>for (LogFileOptions setting : logFiles) {<NEW_LINE>list.add(new LogFileOptions(setting.getName(), setting.getPathPa...
> logFiles = configuration.getLogFiles();
608,312
public Predicate addPredicate(String theResourceName, RuntimeSearchParam theSearchParam, List<? extends IQueryParameterType> theList, SearchFilterParser.CompareOperation operation, RequestPartitionId theRequestPartitionId) {<NEW_LINE>String paramName = theSearchParam.getName();<NEW_LINE>boolean newJoin = false;<NEW_LIN...
paramName, missing, join, theRequestPartitionId);
1,374,433
final ListAccessPoliciesResult executeListAccessPolicies(ListAccessPoliciesRequest listAccessPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAccessPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
false), new ListAccessPoliciesResultJsonUnmarshaller());
1,701,181
protected EntityClassifier<Boolean> createOverviewFilter() {<NEW_LINE>EntityClassifier<Boolean> result = new EntityClassifier<>();<NEW_LINE>EntityClassifier<Boolean> sc;<NEW_LINE>result.addRule("natural", "coastline", Boolean.TRUE);<NEW_LINE>result.addRule("waterway", "river", Boolean.TRUE);<NEW_LINE>result.addRule("hi...
"place", "town", Boolean.TRUE);
60,691
public Event copyToAsync(CommandQueue queue, Image dest, long[] srcOrigin, long[] destOrigin, long[] region) {<NEW_LINE>if (srcOrigin.length != 3 || destOrigin.length != 3 || region.length != 3) {<NEW_LINE>throw new IllegalArgumentException("origin and region must both be arrays of length 3");<NEW_LINE>}<NEW_LINE>Utils...
(srcOrigin).position(0);
101,119
final DescribePipelineExecutionResult executeDescribePipelineExecution(DescribePipelineExecutionRequest describePipelineExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePipelineExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePipelineExecution");
738,516
/*<NEW_LINE>* Check if a topology edge is used in a particular protocol.<NEW_LINE>*/<NEW_LINE>public boolean isEdgeUsed(Configuration conf, Protocol proto, GraphEdge ge) {<NEW_LINE>Interface iface = ge.getStart();<NEW_LINE>// Use a null routed edge, but only for the static protocol<NEW_LINE>if (ge.isNullEdge()) {<NEW_L...
n2 = _ibgpNeighbors.get(ge);
35,190
public static <T> T runWithoutIndexing(Callable<T> callable, File... files) throws GitException {<NEW_LINE>try {<NEW_LINE>Set<File> recursiveRoots = indexingFiles.get();<NEW_LINE>if (recursiveRoots != null) {<NEW_LINE>assert indexingFilesSubtree(recursiveRoots, files) : "Recursive call does not permit different roots: ...
, Arrays.asList(files));
343,032
public ImageResponseCard unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImageResponseCard imageResponseCard = new ImageResponseCard();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
)).unmarshall(context));
759,867
private void changeOnOffline(String subject, String consumerGroup, boolean isOnline, StatusSource src) {<NEW_LINE>synchronized (getConsumerLockKey(subject, consumerGroup, "onOffline")) {<NEW_LINE>final String realSubject = RetrySubjectUtils.getRealSubject(subject);<NEW_LINE>final String retrySubject = RetrySubjectUtils...
changeOnOffline(retryPullEntry, isOnline, src);
1,525,066
private void addPropertiesSetups(File base, List<Setup> newSetups, int displayStatus) {<NEW_LINE>if (currentType == Setup.DIFFTYPE_REMOTE)<NEW_LINE>return;<NEW_LINE>DiffProvider diffAlgorithm = (DiffProvider) Lookup.getDefault().lookup(DiffProvider.class);<NEW_LINE>PropertiesClient client = new PropertiesClient(base);<...
getBaseProperties(currentType == Setup.DIFFTYPE_ALL);
933,645
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>if (sentence.equals("AA55,HB")) {<NEW_LINE>if (channel != null) {<NEW_LINE>channel.writeAndFlush(new NetworkMessage("55AA,HB,OK\r\n", remoteAddress));<NEW_LINE>}<NEW_LIN...
parser.nextInt() * 0.001);
809,825
public OResultSet executeDDL(OCommandContext ctx) {<NEW_LINE>OSchema schema = ctx.getDatabase().getMetadata().getSchema();<NEW_LINE>String className;<NEW_LINE>if (name != null) {<NEW_LINE>className = name.getStringValue();<NEW_LINE>} else {<NEW_LINE>className = String.valueOf(nameParam.getValue(ctx.getInputParameters()...
result.setProperty("className", className);
706,366
public void main() {<NEW_LINE>RVec4 srcColor = new RVec4("srcColor");<NEW_LINE>srcColor.assign(texture2D(uTexture, vTextureCoord));<NEW_LINE>switch(mMode) {<NEW_LINE>case LIGHTNESS:<NEW_LINE>RFloat least = new RFloat("least");<NEW_LINE>least.assign(min(srcColor.g(), min(srcColor.r(), srcColor.b())));<NEW_LINE>RFloat mo...
srcColor.b())));
797,623
public void addSpinners(JSpinner[] spinners) {<NEW_LINE>for (int i = 0; i < spinners.length; i++) {<NEW_LINE>final JSpinner spinner = spinners[i];<NEW_LINE>spinner.addChangeListener(this);<NEW_LINE>((JSpinner.DefaultEditor) spinner.getEditor()).getTextField().addKeyListener(new KeyAdapter() {<NEW_LINE><NEW_LINE>String ...
(Integer.valueOf(text));
241,058
private void finish() {<NEW_LINE>if (running) {<NEW_LINE>AncientAltarCraftEvent event = new AncientAltarCraftEvent(output, altar, player);<NEW_LINE>Bukkit.getPluginManager().callEvent(event);<NEW_LINE>if (!event.isCancelled()) {<NEW_LINE>dropLocation.getWorld().playSound(dropLocation, Sound.ENTITY_ZOMBIE_VILLAGER_CURE,...
getAltars().remove(altar);
772,185
public void createAt(final File location) throws Exception {<NEW_LINE>if (location.exists()) {<NEW_LINE>if (!FileUtils.deleteQuietly(location)) {<NEW_LINE>throw new IOException("Data already exists at location and it could not be deleted: " + location);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>java.nio.file.Path normalizedLocati...
, OsUtils.posixFilePermissions(mode));
1,354,310
public void mouseDragged(final MouseEvent e) {<NEW_LINE>final NodeView nodeV = getNodeView(e);<NEW_LINE>if (!isDragActive()) {<NEW_LINE>if (!nodeV.isSelected())<NEW_LINE>super.mouseDragged(e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) == (InputEvent.BUTTON1_DOWN_MASK))...
= !Compat.isCtrlEvent(e);
1,604,462
public static PostResult copyThreatDescriptor(DescriptorPostParameters overrideParams, boolean verbose, boolean showURLs, boolean dryRun) {<NEW_LINE>String validationErrorMessage = overrideParams.validateForCopyWithReport();<NEW_LINE>if (validationErrorMessage != null) {<NEW_LINE>return new PostResult(false, null, vali...
ifNotNullSetShareLevel(overrideParams.getShareLevel());
366,302
protected void bind(SubmissionViewHolder holder, final Item item) {<NEW_LINE>super.bind(holder, item);<NEW_LINE>holder.mPostedTextView.setText<MASK><NEW_LINE>holder.mPostedTextView.append(item.getDisplayedAuthor(mContext, !TextUtils.equals(item.getBy(), mUsername), 0));<NEW_LINE>holder.mMoreButton.setVisibility(View.GO...
(item.getDisplayedTime(mContext));
636,810
// Task: parser string with text and show all indexes of all words<NEW_LINE>public static void main(String[] args) {<NEW_LINE>String INPUT_TEXT = "Hello World! Hello All! Hi World!";<NEW_LINE>// Parse text to words and index<NEW_LINE>List<String> words = Arrays.asList(INPUT_TEXT.split(" "));<NEW_LINE>// Create Multimap...
println(multiMap.size());
690,646
/*public String reformat(final String json) throws IOException {<NEW_LINE><MASK><NEW_LINE>final JsonGenerator generator = factory<NEW_LINE>.createGenerator(stream, JsonEncoding.UTF8);<NEW_LINE><NEW_LINE>final JsonParser parser = factory.createParser(json);<NEW_LINE>JsonToken jsonToken = null;<NEW_LINE>while ((jsonToken...
final ByteArrayOutputStream stream = new ByteArrayOutputStream();
59,912
public com.squareup.okhttp.Call orderCancelAllAfterAsync(Double timeout, final ApiCallback<Object> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progressRequestListener = null;<NEW_LINE>if (callback != null) {...
executeAsync(call, localVarReturnType, callback);
956,248
final DeleteLoadBalancerResult executeDeleteLoadBalancer(DeleteLoadBalancerRequest deleteLoadBalancerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLoadBalancerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
DeleteLoadBalancerResult>(new DeleteLoadBalancerResultStaxUnmarshaller());
24,998
private void _openLog() {<NEW_LINE>Timber.i("Opening Collection Log");<NEW_LINE>if (!mDebugLog) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>File lpath = new File(mPath.replaceFirst("\\.anki2$", ".log"));<NEW_LINE>if (lpath.exists() && lpath.length() > 10 * 1024 * 1024) {<NEW_LINE>File lpath2 <MASK><NEW_LINE>i...
= new File(lpath + ".old");
812,760
public static ListSetTagsResponse unmarshall(ListSetTagsResponse listSetTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSetTagsResponse.setRequestId(_ctx.stringValue("ListSetTagsResponse.RequestId"));<NEW_LINE>listSetTagsResponse.setSetId<MASK><NEW_LINE>List<TagsItem> tags = new ArrayList<TagsItem>();<NEW_LINE>f...
(_ctx.stringValue("ListSetTagsResponse.SetId"));
612,000
public List<Service> importServiceDefinition(String repositoryUrl, Secret repositorySecret, boolean disableSSLValidation, boolean mainArtifact) throws MockRepositoryImportException {<NEW_LINE>log.info("Importing service definitions from " + repositoryUrl);<NEW_LINE>File localFile = null;<NEW_LINE>if (repositoryUrl.star...
"/")), repositorySecret, disableSSLValidation);
1,661,813
private void initHotkeys() {<NEW_LINE>// Don't change focus on TAB<NEW_LINE>setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, new HashSet<KeyStroke>());<NEW_LINE>final InputMap inputMap = this.getInputMap();<NEW_LINE>final ActionMap actionMap = getActionMap();<NEW_LINE>inputMap.put(KeyStroke.getKeyStro...
, InputEvent.SHIFT_DOWN_MASK), "shift PAGE_DOWN");
1,437,946
private void initViewReminder() {<NEW_LINE>binding.fragmentDetailContent.reminderLayout.setOnClickListener(v -> {<NEW_LINE>ReminderPickers reminderPicker = new ReminderPickers(mainActivity, mFragment);<NEW_LINE>reminderPicker.pick(DateUtils.getPresetReminder(noteTmp.getAlarm()<MASK><NEW_LINE>});<NEW_LINE>binding.fragme...
), noteTmp.getRecurrenceRule());
373,979
public static Object importDataSource(Map<String, Object> map) {<NEW_LINE>Runnable callback = (Runnable) map.get("callback");<NEW_LINE>List<Map<String, Object>> list = (List<Map<String, Object>>) map.get("exports");<NEW_LINE>if (list == null) {<NEW_LINE>String exporter_class = (String) map.get("exporter");<NEW_LINE>Dat...
Object[list.size()];
1,363,492
public void write(JsonWriter out, InlineResponseDefault value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map...
Character) entry.getValue());
1,425,148
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {<NEW_LINE>Object localVarPostBody = user;<NEW_LINE>// verify the required parameter 'query' is set<NEW_LINE>if (query == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'query' when ca...
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
1,273,178
void process(ConfigurableListableBeanFactory beanFactory, NativeConfigurationRegistry registry) {<NEW_LINE>new BeanFactoryProcessor(beanFactory).processBeans(this::isValidated, (beanName, beanType) -> {<NEW_LINE>if (TransactionalNativeConfigurationProcessor.hasInterfaceMethods(beanType)) {<NEW_LINE>LinkedHashSet<String...
(beanType, ProxyBits.IS_STATIC));
536,406
private boolean propagate(Propagator<IntVar>[] props, int cidx) {<NEW_LINE>boolean fails = false;<NEW_LINE>// make a backup world<NEW_LINE>model.getEnvironment().worldPush();<NEW_LINE>// System.out.printf("%sTry %s for %s\n", pad("", solver.getEnvironment().getWorldIndex(), "."), vars[b].getName(), this);<NEW_LINE>try ...
.getEngine().ignoreModifications();
1,616,211
public AuthConfig updateAuthConfig(AuthConfig body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling updateAut...
String[] localVarContentTypes = { "application/json" };
1,405,234
public void handleMessage(Message message) {<NEW_LINE>// Liberty change start - set strict mode for media types unless already set by user<NEW_LINE>if (null == message.getContextualProperty("org.apache.cxf.jaxrs.mediaTypeCheck.strict")) {<NEW_LINE>message.put("org.apache.cxf.jaxrs.mediaTypeCheck.strict", "true");<NEW_L...
ex.getCause(), message);
187,432
public void aggregate(final ByteBuffer buf, final int position, final int startRow, final int endRow) {<NEW_LINE>final ReadableVectorMatch mask;<NEW_LINE>if (startRow == 0) {<NEW_LINE>mask = VectorMatch.allTrue(endRow);<NEW_LINE>} else {<NEW_LINE>if (maskScratch == null) {<NEW_LINE>maskScratch = VectorMatch.wrap(new in...
match = matcher.match(mask);
325,027
public void run() {<NEW_LINE>final NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();<NEW_LINE>Node node = nodeEngine.getNode();<NEW_LINE>Joiner joiner = node.getJoiner();<NEW_LINE><MASK><NEW_LINE>final ILogger logger = node.getLogger(getClass().getName());<NEW_LINE>if (joiner instanceof TcpIpJoiner) {<NEW_L...
ClusterServiceImpl clusterService = node.getClusterService();
1,733,556
protected void exportToJSONObject(JSONObject res) throws IOException {<NEW_LINE>super.exportToJSONObject(res);<NEW_LINE>MapUtils.exportJSONURL(res, "searchURL", searchURLFormat);<NEW_LINE>if (timeZone != null) {<NEW_LINE>res.put("timezone", timeZone);<NEW_LINE>}<NEW_LINE>if (downloadLinkCSS != null) {<NEW_LINE>MapUtils...
"field_name", fm.getName());
140,732
public ServiceAuthData handle(GenerateServiceAuthData request) {<NEW_LINE>try {<NEW_LINE>String id = request.getId();<NEW_LINE>Preconditions.checkNotNull(id, "transfer job ID required for GenerateServiceAuthDataAction");<NEW_LINE>UUID jobId = decodeJobId(id);<NEW_LINE>Preconditions.checkNotNull(request.getAuthToken(), ...
() : job.importService();
1,522,501
private Mono<Response<Void>> failOverWithResponseAsync(String resourceGroupName, String namespaceName, String alias, 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_L...
error(new IllegalArgumentException("Parameter alias is required and cannot be null."));
1,488,424
public AdditionalService build() {<NEW_LINE>Optional<PriceContainer> priceContainer = <MASK><NEW_LINE>BigDecimal finalPrice = priceContainer.map(PriceContainer::getFinalPrice).orElse(BigDecimal.ZERO);<NEW_LINE>String currencyCode = priceContainer.map(PriceContainer::getCurrencyCode).orElse("");<NEW_LINE>return new Addi...
Optional.ofNullable(this.priceContainer);
355,619
public void onSuccess(Void info) {<NEW_LINE>List<ParticipantAdapterItem> participants = new ArrayList<>();<NEW_LINE>// Add all known matrix users<NEW_LINE>participants.addAll(VectorUtils.listKnownParticipants<MASK><NEW_LINE>// Add phone contacts which have an email address<NEW_LINE>addContacts(participants);<NEW_LINE>/...
(mSession).values());
1,532,071
public void registerInjectionPoint(AnnotatedElementInjectionPoint elem, String format) {<NEW_LINE>if (this.mixin.isInterface()) {<NEW_LINE>this.ap.printMessage(MessageType.INJECTOR_IN_INTERFACE, "Injector in interface is unsupported", elem.getElement());<NEW_LINE>}<NEW_LINE>ITargetSelector targetSelector = null;<NEW_LI...
TargetSelector.parse(targetReference, elem);
1,049,853
protected void afterExecute(Runnable r, Throwable t) {<NEW_LINE>super.afterExecute(r, t);<NEW_LINE>// A task has been completed, it has left the building. We should now be able to get the<NEW_LINE>// total time as a combination of the time in the queue and time spent running the task. We<NEW_LINE>// only want runnables...
TimedRunnable) super.unwrap(r);
444,775
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {<NEW_LINE>if (msg instanceof ByteBuf) {<NEW_LINE>selfFiredChannelRead = true;<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>first = cumulation == null;<NEW_LINE>cumulation = cumulator.cumulate(ctx.alloc(), first ? Unpooled.EMPTY_BUFFER : cumulat...
CodecOutputList out = CodecOutputList.newInstance();
1,550,530
public static boolean installJBang(boolean force) throws IOException {<NEW_LINE>Path binDir = Settings.getConfigBinDir();<NEW_LINE>boolean managedJBang = Files.exists(binDir.resolve("jbang.jar"));<NEW_LINE>if (!force && (managedJBang || Util.searchPath("jbang") != null)) {<NEW_LINE>Util.infoMsg("jbang is already availa...
Path jar = Util.getJarLocation();
716,920
final GetPlaybackKeyPairResult executeGetPlaybackKeyPair(GetPlaybackKeyPairRequest getPlaybackKeyPairRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPlaybackKeyPairRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "ivs");
1,265,485
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle bundle) {<NEW_LINE>final View view = inflater.inflate(R.layout.conversation_list_fragment, container, false);<NEW_LINE>list = ViewUtil.findById(view, R.id.list);<NEW_LINE>fab = ViewUtil.findById(view, R.id.fab);<NEW_LINE>emptyState =...
.setItemAnimator(new DeleteItemAnimator());
287,378
public int compare(IMethodInstance o1, IMethodInstance o2) {<NEW_LINE>// If the two methods are in different <test><NEW_LINE>XmlTest test1 = o1.getMethod().getTestClass().getXmlTest();<NEW_LINE>XmlTest test2 = o2.getMethod().getTestClass().getXmlTest();<NEW_LINE>// If the two methods are not in the same <test>, we can'...
getMethod().getMethodName());
1,590,981
private void loadNode106() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerType_SetSubscriptionDurable_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0)...
DataValue(new Variant(o));
1,704,515
public boolean deleteProject(long projectId, Boolean isCleanup) {<NEW_LINE>CallContext ctx = CallContext.current();<NEW_LINE>ProjectVO project = getProject(projectId);<NEW_LINE>// verify input parameters<NEW_LINE>if (project == null) {<NEW_LINE>throw new InvalidParameterValueException("Unable to find project by id " + ...
listByOwner(project.getProjectAccountId());
1,028,678
/* (non-Javadoc)<NEW_LINE>* @see com.dotcms.repackage.com.bradmcevoy.http.PutableResource#createNew(java.lang.String, java.io.InputStream, java.lang.Long, java.lang.String)<NEW_LINE>*/<NEW_LINE>public Resource createNew(String newName, InputStream in, Long length, String contentType) throws IOException {<NEW_LINE>if (!...
) + File.separator + newName);
1,393,572
public void run(CommandResultsBuilder resultsBuilder) throws Exception {<NEW_LINE>CommandScope commandScope = resultsBuilder.getCommandScope();<NEW_LINE>String <MASK><NEW_LINE>String out = commandScope.getArgumentValue(OUT_ARG);<NEW_LINE>String classpath = commandScope.getArgumentValue(CLASSPATH_ARG);<NEW_LINE>List<Res...
src = commandScope.getArgumentValue(SRC_ARG);
492,751
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>if (reader.getLocalName().equals(XmlElementNames.UserId)) {<NEW_LINE>this.userId = new UserId();<NEW_LINE>this.userId.loadFromXml(<MASK><NEW_LINE>return true;<NEW_LINE>} else if (reader.getLocalName().equals(XmlElementNames.Use...
reader, reader.getLocalName());
1,223,752
private void handleError(BitIdResponse response) {<NEW_LINE>String message = Strings.nullToEmpty(response.message);<NEW_LINE>int code = response.code;<NEW_LINE>String userInfo;<NEW_LINE>if (code >= 400 && code < 500) {<NEW_LINE>// Display the error message if its short enough. Most probably the nonce has timed out.<NEW...
errorView.setVisibility(View.VISIBLE);
933,533
public void run() {<NEW_LINE>log.info(this.getServiceName() + " service started");<NEW_LINE>final ChannelEventListener listener = NettyRemotingAbstract.this.getChannelEventListener();<NEW_LINE>while (!this.isStopped()) {<NEW_LINE>try {<NEW_LINE>NettyEvent event = this.eventQueue.poll(3000, TimeUnit.MILLISECONDS);<NEW_L...
), event.getChannel());
845,961
private void initSessionSyncMethods() throws Exception {<NEW_LINE>if (SessionSynchronization.class.isAssignableFrom(ejbClass)) {<NEW_LINE>try {<NEW_LINE>afterBeginMethod = ejbClass.getMethod("afterBegin");<NEW_LINE><MASK><NEW_LINE>afterCompletionMethod = ejbClass.getMethod("afterCompletion", Boolean.TYPE);<NEW_LINE>} c...
beforeCompletionMethod = ejbClass.getMethod("beforeCompletion");
378,183
public static void assertEqualsToScale(Se3_F64 expected, Se3_F64 found, double tolAngle, double tolT) {<NEW_LINE>var R = new DMatrixRMaj(3, 3);<NEW_LINE>CommonOps_DDRM.multTransA(expected.R, found.R, R);<NEW_LINE>Rodrigues_F64 rod = ConvertRotation3D_F64.matrixToRodrigues(R, null);<NEW_LINE>assertEquals(0.0, rod.theta,...
.T.getIdx(i));
382,157
private static void initLUT() {<NEW_LINE>// Just for template<NEW_LINE>final LUT anyLut = luts[0][0];<NEW_LINE>final <MASK><NEW_LINE>final int lutRadius = anyLut.getRadius();<NEW_LINE>for (int x = 0; x < lutSize; x++) {<NEW_LINE>double tx = (x - lutRadius) / (double) lutRadius;<NEW_LINE>for (int y = 0; y < lutSize; y++...
int lutSize = anyLut.getSize();
959,212
private void paintLabelLine(String label, Geometry line, Viewport viewport, Graphics2D g2d) {<NEW_LINE>LineSegment baseline = LineLabelBaseline.getBaseline((LineString) line, viewport.getModelEnv());<NEW_LINE>if (baseline == null)<NEW_LINE>return;<NEW_LINE>Coordinate origin = baseline.p0;<NEW_LINE>Point2D vpOrigin = vi...
getY(), alignX, alignY);
964,044
private SuccessResponse addSchema(Schema schema, boolean override) {<NEW_LINE>String schemaName = schema.getSchemaName();<NEW_LINE>validateSchemaInternal(schema);<NEW_LINE>try {<NEW_LINE>_pinotHelixResourceManager.addSchema(schema, override);<NEW_LINE>// Best effort notification. If controller fails at this point, no n...
Response.Status.BAD_REQUEST, e);
903,719
void predictInter16x16(MBlock mBlock, Picture mb, Picture[][] references, int mbX, int mbY, boolean leftAvailable, boolean topAvailable, boolean tlAvailable, boolean trAvailable, MvList x, int xx, int list, PartPred curPred) {<NEW_LINE>int mvX = 0, mvY = 0, r = -1;<NEW_LINE>if (H264Const.usesList(curPred, list)) {<NEW_...
(xx + 3, list));
164,296
public void visit(BLangRecordVariable varNode, AnalyzerData data) {<NEW_LINE>// Only simple variables are allowed to be configurable.<NEW_LINE>if (isConfigurable(varNode)) {<NEW_LINE>dlog.error(varNode.pos, DiagnosticErrorCode.ONLY_SIMPLE_VARIABLES_ARE_ALLOWED_TO_BE_CONFIGURABLE);<NEW_LINE>}<NEW_LINE>if (isIsolated(var...
symbol.addAnnotation(annotationAttachment.annotationAttachmentSymbol);
917,056
private static void productQueryMulUpdateExample() {<NEW_LINE>// 0, 1, 2, 3<NEW_LINE>long[] v = { 3, 2, 2, 1 };<NEW_LINE>GenericSegmentTree st = new GenericSegmentTree(v, SegmentCombinationFn.PRODUCT, RangeUpdateFn.MULTIPLICATION);<NEW_LINE>int l = 0;<NEW_LINE>int r = 3;<NEW_LINE>long q = st.rangeQuery1(l, r);<NEW_LINE...
rangeUpdate1(2, 3, 2);
698,357
public int widthOfBinaryTree(TreeNode root) {<NEW_LINE>if (root == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>Queue<Map.Entry<TreeNode, Integer>> queue = new LinkedList<>();<NEW_LINE>queue.offer(new AbstractMap.SimpleEntry<>(root, 1));<NEW_LINE>int max = 1;<NEW_LINE>while (!queue.isEmpty()) {<NEW_LINE>int size = qu...
getValue() * 2 - 1);
564,556
public void endElement(String namespaceURI, String localName, String qualifiedName) throws SAXException {<NEW_LINE>switch(Element.fromString(localName)) {<NEW_LINE>case DOCS:<NEW_LINE>exitDocs(namespaceURI, localName, qualifiedName);<NEW_LINE>break;<NEW_LINE>case EXAMPLE:<NEW_LINE>exitExample(namespaceURI, localName, q...
exitSummary(namespaceURI, localName, qualifiedName);
1,344,003
public void configure(TestElement element) {<NEW_LINE>log.debug("Configuring gui with {}", element);<NEW_LINE>super.configure(element);<NEW_LINE>model = (ProxyControl) element;<NEW_LINE>portField.setText(model.getPortString());<NEW_LINE>sslDomains.setText(model.getSslDomains());<NEW_LINE>httpHeaders.setSelected(model.g...
setText(model.getPrefixHTTPSampleName());
308,524
public ListInputsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListInputsResult listInputsResult = new ListInputsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
1,562,735
public <N> void dumpGraph(ExceptionalGraph<N> g, boolean skipPhaseCheck) {<NEW_LINE>if (!alreadyDumping) {<NEW_LINE>try {<NEW_LINE>alreadyDumping = true;<NEW_LINE>String phaseName = phaseStack.currentPhase();<NEW_LINE>if (skipPhaseCheck || isCFGDumpingPhase(phaseName)) {<NEW_LINE>try {<NEW_LINE>String outputFile = next...
+ getClassIdent(g) + '-');
1,198,375
public void addDnsAAAARecord(String host, String address) throws IOException {<NEW_LINE>final String METHOD_NAME = "addDnsAAAARecord";<NEW_LINE>try (CloseableHttpClient httpclient = HttpClients.createDefault()) {<NEW_LINE>String jsonString = "{\"host\":\"" + host + "\",\"addresses\":[\"" + address + "\"]}";<NEW_LINE>St...
class, METHOD_NAME, httpPost, response);
1,236,095
public ArcFurnaceRecipe fromNetwork(ResourceLocation recipeId, FriendlyByteBuf buffer) {<NEW_LINE>int outputCount = buffer.readInt();<NEW_LINE>NonNullList<ItemStack> outputs = NonNullList.withSize(outputCount, ItemStack.EMPTY);<NEW_LINE>for (int i = 0; i < outputCount; i++) outputs.set(<MASK><NEW_LINE>IngredientWithSiz...
i, buffer.readItem());
530,223
private String sendRaw(String topicName, Producer<?, ?> producer, ProducerRecord recordToSend, Boolean isAsync) throws InterruptedException, ExecutionException {<NEW_LINE>ProducerRecord qualifiedRecord = prepareRecordToSend(topicName, recordToSend);<NEW_LINE>RecordMetadata metadata;<NEW_LINE>if (Boolean.TRUE.equals(isA...
send(qualifiedRecord).get();
809,620
protected void lowerJavaReadNode(JavaReadNode read) {<NEW_LINE>StructuredGraph graph = read.graph();<NEW_LINE><MASK><NEW_LINE>Stamp loadStamp = loadStamp(read.stamp(NodeView.DEFAULT), valueKind, read.isCompressible());<NEW_LINE>ReadNode memoryRead;<NEW_LINE>if (read.ordersMemoryAccesses()) {<NEW_LINE>memoryRead = graph...
JavaKind valueKind = read.getReadKind();
1,356,247
public void processCurrentKeymapChanged(QuickList[] ids) {<NEW_LINE>myQuickLists = ids;<NEW_LINE>myCopyButton.setEnabled(false);<NEW_LINE>myDeleteButton.setEnabled(false);<NEW_LINE>myResetToDefault.setEnabled(false);<NEW_LINE>KeymapImpl selectedKeymap = getSelectedKeymap();<NEW_LINE>mySelectedKeymap = selectedKeymap;<N...
Keymap parent = mySelectedKeymap.getParent();
307,759
private void loadBatchVariables() {<NEW_LINE>MBPartner businessPartner = (MBPartner) getC_BPartner();<NEW_LINE>List<MHRAttendanceRecord> attendanceList = getLines(false);<NEW_LINE>if (!isLeave()) {<NEW_LINE>this.firstAttendance = attendanceList.stream().findFirst().get();<NEW_LINE>this.lastAttendance = attendanceList.g...
"_HR_Employee_ID", employee.getHR_Employee_ID());
1,063,690
private boolean apply(final MigrationConfig config, final Client ksqlClient, final String migrationsDir, final Clock clock) {<NEW_LINE>String previous = MetadataUtil.getLatestMigratedVersion(config, ksqlClient);<NEW_LINE>LOGGER.info("Loading migration files");<NEW_LINE>final List<MigrationFile> migrations;<NEW_LINE>try...
migrations.size() + " migration file(s) loaded.");
1,136,943
public void onClick(View v) {<NEW_LINE>final ListPopupWindow popup = new ListPopupWindow(v.getContext());<NEW_LINE>popup.setAnchorView(splitIntervalView);<NEW_LINE>popup.setContentWidth(AndroidUtils<MASK><NEW_LINE>popup.setModal(true);<NEW_LINE>popup.setDropDownGravity(Gravity.RIGHT | Gravity.TOP);<NEW_LINE>popup.setVe...
.dpToPx(app, 200f));
1,032,835
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LI...
check(o, CheckPersistType.all);
811,805
private String constructExampleCode(CodegenModel codegenModel, HashMap<String, CodegenModel> modelMaps, HashMap<String, Integer> processedModelMap) {<NEW_LINE>// break infinite recursion. Return, in case a model is already processed in the current context.<NEW_LINE>String model = codegenModel.name;<NEW_LINE>if (process...
(codegenProperty, modelMaps, processedModelMap));
1,796,548
private double calcInitial(int season, int year) {<NEW_LINE>double Y = (year - 2000) / 1000d;<NEW_LINE>switch(season) {<NEW_LINE>case 0:<NEW_LINE>return 2451623.80984 + 365242.37404 * Y + 0.05169 * Math.pow(Y, 2) - 0.00411 * Math.pow(Y, 3) - 0.00057 * <MASK><NEW_LINE>case 1:<NEW_LINE>return 2451716.56767 + 365241.62603...
Math.pow(Y, 4);
1,326,247
Object withDecoder(VirtualFrame frame, PNLDecoder self, PTuple state, @Shared("o") @Cached SequenceNodes.GetObjectArrayNode getObjectArrayNode, @Shared("i") @Cached PyIndexCheckNode indexCheckNode, @Shared("s") @Cached PyNumberAsSizeNode asSizeNode, @Cached PyObjectCallMethodObjArgs callMethod) {<NEW_LINE>Object[] obje...
(frame, objects[1]);
261,026
public String serialize(int numberOfSpacesToIndent, HttpResponse httpResponse) {<NEW_LINE>StringBuffer output = new StringBuffer();<NEW_LINE>if (httpResponse != null) {<NEW_LINE>appendNewLineAndIndent(numberOfSpacesToIndent * INDENT_SIZE, output).append("response()");<NEW_LINE>if (httpResponse.getStatusCode() != null) ...
output, httpResponse.getHeaderList());
1,364,903
private void onSetupDialogRequired(AlertDialog.Builder builder, int optionId, Object data) {<NEW_LINE>switch(optionId) {<NEW_LINE>case R.id.backup_prefs:<NEW_LINE>case R.id.restore_prefs:<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {<NEW_LINE>onBackupRestoreDialogRequired(builder, optionId);<NEW_L...
setTitle(R.string.backup_restore_not_support_before_kitkat);
1,654,766
final RejectResourceShareInvitationResult executeRejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectResourceShareInvitationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
537,779
public AirbyteConnectionStatus check(final JsonNode config) {<NEW_LINE>try (final JdbcDatabase database = getDatabase(config)) {<NEW_LINE>final MySQLSqlOperations mySQLSqlOperations = (MySQLSqlOperations) getSqlOperations();<NEW_LINE>final String outputSchema = getNamingResolver().getIdentifier(config.get(DATABASE_KEY)...
"Could not connect with provided configuration. \n" + e.getMessage());
27,991
public static void main(String[] args) {<NEW_LINE>HashMap<String, Integer> names = new HashMap<String, Integer>();<NEW_LINE>names.put("John", 3);<NEW_LINE>names.put("Jonathan", 4);<NEW_LINE>names.put("Johnny", 5);<NEW_LINE>names.put("Chris", 1);<NEW_LINE>names.put("Kris", 3);<NEW_LINE>names.put("Brian", 2);<NEW_LINE>na...
}, { "Brian", "Bryan" } };
895,448
private void defaultHandlers() {<NEW_LINE>handlerMap.putVoid(GdbCommandEchoInterruptEvent.class, this::pushCmdInterrupt);<NEW_LINE>handlerMap.putVoid(GdbCommandEchoEvent.class, this::ignoreCmdEcho);<NEW_LINE>handlerMap.putVoid(GdbConsoleOutputEvent.class, this::processStdOut);<NEW_LINE>handlerMap.putVoid(GdbTargetOutpu...
GdbThreadGroupStartedEvent.class, this::processThreadGroupStarted);
1,568,585
public void start() {<NEW_LINE>proxy.setTrustAllServers(true);<NEW_LINE>if (outsideProxy != null) {<NEW_LINE>proxy.setChainedProxy(getProxyAddress(outsideProxy));<NEW_LINE>String noProxy = outsideProxy.getNoProxy();<NEW_LINE>if (noProxy != null) {<NEW_LINE>List<String> noProxyHosts = Arrays.asList(noProxy.split(","));<...
("responseSizeWatchdog", new ResponseSizeWatchdog());
885,195
public void visit() {<NEW_LINE>Object logger = Instruments.getField(getTarget(), "logger");<NEW_LINE>if (logger != null) {<NEW_LINE>if ("org.apache.log4j.Logger".equals(logger.getClass().getName())) {<NEW_LINE>Object level = Instruments.getField(logger, "level");<NEW_LINE>if (level == null) {<NEW_LINE>// This Logger is...
accessor.setApplication(getApplication());
254,229
public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select irstream concatstring(theString) as val from SupportBean#length(2)";<NEW_LINE>env.compileDeploy(text).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBean("a", -1));<NEW_LINE>assertPairSingleRow(env, new Object[] { "a" }, n...
new Object[] { "a b" });
1,191,374
private Ftile createDown(Branch branch1, Branch branch2) {<NEW_LINE>final Ftile tile1 = new FtileMinWidthCentered(branch1.getFtile(), 30);<NEW_LINE>final Ftile tile2 = new FtileMinWidthCentered(branch2.getFtile(), 30);<NEW_LINE>final TextBlock tb1 = getLabelPositive(branch1);<NEW_LINE>final TextBlock tb2 = getLabelPosi...
), branch2.getOut());
210,067
public static void syncMultiReddits(Context c) {<NEW_LINE>try {<NEW_LINE>multireddits = new ArrayList<>(new MultiRedditManager(Authentication.reddit).mine());<NEW_LINE>for (MultiReddit multiReddit : multireddits) {<NEW_LINE>if (MainActivity.multiNameToSubsMap.containsKey(ReorderSubreddits.MULTI_REDDIT + multiReddit.get...
), concatenatedSubs.toString());
532,079
public void onCreate() {<NEW_LINE>enableStrictMode();<NEW_LINE>setAppTheme(preferences.getDarkThemeMode());<NEW_LINE>super.onCreate();<NEW_LINE>insertConscrypt();<NEW_LINE>initSecurityKeyManager();<NEW_LINE>registerActivityLifecycleCallbacks(new ActivityInjector());<NEW_LINE>int startedMigrationsCount = migrationsManag...
Log_OC.d("Debug", "Failed to disable uri exposure");
149,551
protected YoutubeTrackJsonData augmentWithPlayerScript(YoutubeTrackJsonData data, HttpInterface httpInterface, boolean requireFormats) throws IOException {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>if (data.playerScriptUrl != null) {<NEW_LINE>cachedPlayerScript = new CachedPlayerScript(data.playerScriptU...
get("url").text();
1,732,520
public void updateColumnCount(Key key) {<NEW_LINE>if (isDefaultLG && columnFamilies == null) {<NEW_LINE>if (!previousColumnFamilies.isEmpty()) {<NEW_LINE>// only do this check when there are previous column families<NEW_LINE>ByteSequence cf = key.getColumnFamilyData();<NEW_LINE>if (previousColumnFamilies.contains(cf)) ...
IllegalArgumentException("Added column family \"" + cf + "\" to default locality group that was in previous locality group");
623,170
public boolean deepEquals(Object object) {<NEW_LINE>if (!(object instanceof AccessibilityWindowInfo)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final AccessibilityWindowInfo window = (AccessibilityWindowInfo) object;<NEW_LINE>final ShadowAccessibilityWindowInfo <MASK><NEW_LINE>boolean areEqual = (type == otherShadow...
otherShadow = Shadow.extract(window);
618,180
public RelDataType createSqlType(RelDataTypeFactory typeFactory) {<NEW_LINE>BitString bitString;<NEW_LINE>switch(typeName) {<NEW_LINE>case NULL:<NEW_LINE>case BOOLEAN:<NEW_LINE>RelDataType ret = typeFactory.createSqlType(typeName);<NEW_LINE>ret = typeFactory.<MASK><NEW_LINE>return ret;<NEW_LINE>case BINARY:<NEW_LINE>bi...
createTypeWithNullability(ret, null == value);
1,200,908
protected NamedDataSchema locateDataSchema(String className, StringBuilder errorMessageBuilder) {<NEW_LINE>final DataSchemaLocation location = new ClassNameDataSchemaLocation(className);<NEW_LINE>if (isBadLocation(location)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Class<?> clazz;<NEW_LINE>try {<NEW_LINE>clazz...
schema = DataTemplateUtil.getSchema(clazz);
360,786
public void onMatch(RelOptRuleCall call) {<NEW_LINE>PlannerSettings settings = PrelUtil.<MASK><NEW_LINE>if (!settings.isNestedLoopJoinEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DrillJoinRel join = (DrillJoinRel) call.rel(0);<NEW_LINE>final RelNode left = join.getLeft();<NEW_LINE>final RelNode right = join.getRig...
getPlannerSettings(call.getPlanner());