idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,214,482
public final // JPA2.g:497:1: literal : WORD ;<NEW_LINE>JPA2Parser.literal_return literal() throws RecognitionException {<NEW_LINE>JPA2Parser.literal_return retval = new JPA2Parser.literal_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_LINE>Token WORD587 = null;<NEW_LINE>Object WORD58...
retval.start, retval.stop);
16,883
public XChartPanel<XYChart> buildPanel() throws IOException {<NEW_LINE>System.out.println("fetching data...");<NEW_LINE>// Get the latest order book data for BTC/USD - BITSTAMP<NEW_LINE>BitcoiniumTickerHistory bitcoiniumTickerHistory = bitcoiniumMarketDataService.getBitcoiniumTickerHistory("BTC", "BITSTAMP_USD", "THREE...
Date(bitcoiniumTicker.getTimestamp());
1,264,670
public TorrentMetadata parse(byte[] metadata) throws InvalidBEncodingException, RuntimeException {<NEW_LINE>final Map<String, BEValue> dictionaryMetadata;<NEW_LINE>try {<NEW_LINE>dictionaryMetadata = BDecoder.bdecode(new ByteArrayInputStream(metadata)).getMap();<NEW_LINE>} catch (InvalidBEncodingException e) {<NEW_LINE...
infoTable, PIECE_LENGTH).getInt();
1,413,652
public QualityQuery[] readQueries(BufferedReader reader) throws IOException {<NEW_LINE>ArrayList<QualityQuery> <MASK><NEW_LINE>StringBuilder sb;<NEW_LINE>try {<NEW_LINE>while (null != (sb = read(reader, "<top>", null, false, false))) {<NEW_LINE>HashMap<String, String> fields = new HashMap<>();<NEW_LINE>// id<NEW_LINE>s...
res = new ArrayList<>();
1,425,511
public void encode(ByteBuffer buffer, int base) {<NEW_LINE>boolean isStatic = _entry.isStatic();<NEW_LINE>if (isStatic) {<NEW_LINE>// Indexed Field Line with Static Reference.<NEW_LINE>buffer.put((byte) (0x80 | 0x40));<NEW_LINE>int relativeIndex = _entry.getIndex();<NEW_LINE>NBitIntegerEncoder.encode(buffer, 6, relativ...
= _entry.getIndex() - base;
1,280,747
public static SuggestedFix.Builder addValuesToAnnotationArgument(AnnotationTree annotation, String parameterName, Collection<String> newValues, VisitorState state) {<NEW_LINE>if (annotation.getArguments().isEmpty()) {<NEW_LINE>String parameterPrefix = parameterName.equals("value") ? "" : (parameterName + " = ");<NEW_LI...
maybeExistingArgument = findArgument(annotation, parameterName);
768,959
protected DatadogReporter createInstance() {<NEW_LINE>final DatadogReporter.Builder reporter = DatadogReporter.forRegistry(getMetricRegistry());<NEW_LINE>final Transport transport;<NEW_LINE>String transportName = getProperty(TRANSPORT);<NEW_LINE>if ("http".equalsIgnoreCase(transportName)) {<NEW_LINE>HttpTransport.Build...
(STATSD_PORT, Integer.class));
834,640
public Request<DescribeImportImageTasksRequest> marshall(DescribeImportImageTasksRequest describeImportImageTasksRequest) {<NEW_LINE>if (describeImportImageTasksRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeImportImageTasksRe...
> valuesList = filterMember.getValues();
1,761,935
public Container or(final ArrayContainer value2) {<NEW_LINE>final ArrayContainer value1 = this;<NEW_LINE>int totalCardinality = value1.getCardinality() + value2.getCardinality();<NEW_LINE>if (totalCardinality > DEFAULT_MAX_SIZE) {<NEW_LINE>// it could be a bitmap!<NEW_LINE>BitmapContainer bc = new BitmapContainer();<NE...
ArrayContainer answer = new ArrayContainer(totalCardinality);
908,818
public static List<Object> createNewSubBody(List<Object> oldSubBody, int nodeNumber, ASTLabeledBlockNode labelBlock) {<NEW_LINE>// create a new SubBody<NEW_LINE>List<Object> newSubBody = new ArrayList<Object>();<NEW_LINE>// this is an iterator of ASTNodes<NEW_LINE>Iterator<Object> it = oldSubBody.iterator();<NEW_LINE>/...
List) blocksSubBodies.get(0);
1,736,699
public void updateTabletServerInfo(Monitor monitor, TabletServerStatus thriftStatus, TableInfo summary) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>this.server = this.ip = this.hostname = thriftStatus.name;<NEW_LINE>this.tablets = summary.tablets;<NEW_LINE>this.lastContact = now - thriftStatus.lastContac...
this.majorRunning, this.majorQueued);
1,382,300
public StringBuilder visitTypeVariable(TypeVariable t, Boolean p) {<NEW_LINE>Element e = t.asElement();<NEW_LINE>if (e != null) {<NEW_LINE>String name = e<MASK><NEW_LINE>if (!CAPTURED_WILDCARD.equals(name)) {<NEW_LINE>return DEFAULT_VALUE.append(name);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>DEFAULT_VALUE.app...
.getSimpleName().toString();
319,946
public DescribeMaintenanceWindowScheduleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeMaintenanceWindowScheduleResult describeMaintenanceWindowScheduleResult = new DescribeMaintenanceWindowScheduleResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren...
int originalDepth = context.getCurrentDepth();
70,008
public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String contextExpr = "@public create context MyContext " + "as start @now end after 10 seconds";<NEW_LINE>env.compileDeploy(contextExpr, path);<NEW_LINE>String[] fields = new String[] ...
new SupportBean("E4", 4));
799,160
private Type acmpNullCheck(short opcode, Edge edge, InstructionHandle last, BasicBlock sourceBlock) throws DataflowAnalysisException {<NEW_LINE>Type type = null;<NEW_LINE>//<NEW_LINE>// Make sure that IF a value has been compared to null,<NEW_LINE>// this edge is the edge on which the<NEW_LINE>// compared value is defi...
= new Location(last, sourceBlock);
1,596,873
public static final int[] readThisIntArrayXml(XmlPullParser parser, String endTag, String[] name) throws XmlPullParserException, java.io.IOException {<NEW_LINE>int num;<NEW_LINE>try {<NEW_LINE>num = Integer.parseInt(parser.getAttributeValue(null, "num"));<NEW_LINE>} catch (NullPointerException e) {<NEW_LINE>throw new X...
"Expected item tag at: " + parser.getName());
618,805
private static void initializeGlide(@NonNull Context context, @NonNull GlideBuilder builder, @Nullable GeneratedAppGlideModule annotationGeneratedModule) {<NEW_LINE>Context applicationContext = context.getApplicationContext();<NEW_LINE>List<GlideModule> manifestModules = Collections.emptyList();<NEW_LINE>if (annotation...
? annotationGeneratedModule.getRequestManagerFactory() : null;
1,189,334
protected boolean isAffectedByOpenable(IJavaElementDelta delta, IJavaElement element, int eventType) {<NEW_LINE>if (element instanceof CompilationUnit) {<NEW_LINE>CompilationUnit cu = (CompilationUnit) element;<NEW_LINE>ICompilationUnit focusCU = this.focusType != null ? this.focusType.getCompilationUnit() : null;<NEW_...
ClassFile) element).getType();
1,703,332
final UpdateRateBasedRuleResult executeUpdateRateBasedRule(UpdateRateBasedRuleRequest updateRateBasedRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRateBasedRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
949,125
private void loadNode82() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.TimeZoneDataType_Encoding_DefaultXml, new QualifiedName(0, "Default XML"), new LocalizedText("en", "Default XML"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.valueOf...
.expanded(), true));
1,256,828
public double computeScore(double fullNetRegTerm, boolean training, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>if (input == null || labels == null)<NEW_LINE>throw new IllegalStateException("Cannot calculate score without input and labels " + layerId());<NEW_LINE>this.fullNetRegTerm = fullNetRegTerm;<NEW_LINE>INDArray p...
centersForExamples = l.mmul(centers);
125,701
public <S, T> MultiNodeResult<T> executeCommandAsyncOnNodes(ClusterCommandCallback<S, T> callback, Iterable<RedisClusterNode> nodes) {<NEW_LINE>Assert.notNull(callback, "Callback must not be null!");<NEW_LINE>Assert.notNull(nodes, "Nodes must not be null!");<NEW_LINE>List<RedisClusterNode> resolvedRedisClusterNodes = n...
(topology.lookup(node));
1,842,041
public void read(JmeImporter importer) throws IOException {<NEW_LINE>super.read(importer);<NEW_LINE>InputCapsule c = importer.getCapsule(this);<NEW_LINE>size = c.readInt("size", 0);<NEW_LINE>stepScale = (Vector3f) c.readSavable("stepScale", null);<NEW_LINE>offset = (Vector2f) c.readSavable("offset", new Vector2f(0, 0))...
c.readInt("quadrant", 0);
815,340
public void putCSTable(String contextIDStr, String contextKeyStr, CSTable csTable) throws CSErrorException {<NEW_LINE>ContextClient contextClient = ContextClientFactory.getOrCreateContextClient();<NEW_LINE>try {<NEW_LINE>ContextID <MASK><NEW_LINE>ContextKey contextKey = SerializeHelper.deserializeContextKey(contextKeyS...
contextID = SerializeHelper.deserializeContextID(contextIDStr);
1,637,732
public void addJoin(String type, String table, TableJoinColumn[] cols, String a1, String a2, String extraWhere) {<NEW_LINE>if (tableJoins == null) {<NEW_LINE>tableJoins = new HashSet<>();<NEW_LINE>}<NEW_LINE>String joinKey = table + "-" + a1 + "-" + a2;<NEW_LINE>if (tableJoins.contains(joinKey)) {<NEW_LINE>return;<NEW_...
(" ").append(type);
750,496
private boolean hitsRedundantBreakThreshold(List<Statement> statements, IdentifiedStatement exit) {<NEW_LINE>int count = 0;<NEW_LINE>for (int i = 0; i < statements.size(); ++i) {<NEW_LINE>Statement stmt = statements.get(i);<NEW_LINE>if (!(stmt instanceof ConditionalStatement)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>C...
() : conditional.getAlternative();
1,141,101
private ReportResult createOutput(final JasperPrint jasperPrint, OutputType outputType) throws JRException, IOException {<NEW_LINE>if (outputType == null) {<NEW_LINE>outputType = DEFAULT_OutputType;<NEW_LINE>}<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>try {<NEW_LINE>if (OutputType.PDF == output...
RuntimeException("Output type " + outputType + " not supported");
199,647
public void initializeDefaultPreferences() {<NEW_LINE>IEclipsePreferences prefs = DefaultScope.INSTANCE.getNode(CommonEditorPlugin.PLUGIN_ID);<NEW_LINE>prefs.putBoolean(IPreferenceConstants.ENABLE_CHARACTER_PAIR_COLORING, true);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>prefs.put(IPreferenceConstants.CHARACTER_PAIR_COLOR, "128,...
IPreferenceConstants.CONTENT_ASSIST_DELAY, CommonSourceViewerConfiguration.DEFAULT_CONTENT_ASSIST_DELAY);
1,013,197
private Collection<? extends IPath> globalFolders() {<NEW_LINE>List<IPath> dirs = new ArrayList<IPath>();<NEW_LINE>// FIXME Handle properly on Windows...<NEW_LINE>Map<String, String> env = ShellExecutable.getEnvironment(location);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String nodePath = env.get("NODE_PATH");<NEW_LINE>if (nod...
(homePath.append(".node_modules"));
1,330,624
final CreateEnvironmentResult executeCreateEnvironment(CreateEnvironmentRequest createEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
endClientExecution(awsRequestMetrics, request, response);
236,056
public List<JvmGcBo> decodeValues(Buffer valueBuffer, AgentStatDecodingContext decodingContext) {<NEW_LINE>final <MASK><NEW_LINE>final long baseTimestamp = decodingContext.getBaseTimestamp();<NEW_LINE>final long timestampDelta = decodingContext.getTimestampDelta();<NEW_LINE>final long initialTimestamp = baseTimestamp +...
String agentId = decodingContext.getAgentId();
849,539
public OAuth2AccessTokenResponse convert(Map<String, String> tokenResponseParameters) {<NEW_LINE>String accessToken = <MASK><NEW_LINE>OAuth2AccessToken.TokenType accessTokenType = null;<NEW_LINE>if (OAuth2AccessToken.TokenType.BEARER.getValue().equalsIgnoreCase(tokenResponseParameters.get(OAuth2ParameterNames.TOKEN_TYP...
tokenResponseParameters.get(OAuth2ParameterNames.ACCESS_TOKEN);
767,407
public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own additive inverse<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>ECFi...
boolean Z1IsOne = Z1.isOne();
1,651,892
public Map<String, Map<String, AttributeAdapter>> attributeAdaptersForFunction() {<NEW_LINE>Map<String, Map<String, AttributeAdapter>> ret = new HashMap<>();<NEW_LINE>Map<String, AttributeAdapter> tfMappings = new LinkedHashMap<>();<NEW_LINE>val fields = DifferentialFunctionClassHolder.getInstance().getFieldsForFunctio...
put(tensorflowName(), tfMappings);
1,382,042
// RoutineLoadScheduler will run this method at fixed interval, and renew the timeout tasks<NEW_LINE>public void processTimeoutTasks() {<NEW_LINE>writeLock();<NEW_LINE>try {<NEW_LINE>List<RoutineLoadTaskInfo> runningTasks <MASK><NEW_LINE>for (RoutineLoadTaskInfo routineLoadTaskInfo : runningTasks) {<NEW_LINE>if (routin...
= new ArrayList<>(routineLoadTaskInfoList);
128,227
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>return srcSequence.group(option);<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Expression exp = param.getLeafExpression();<NEW_LINE>return srcSequence.group(exp, option, ctx);<NEW_LINE>} else if (param.getType() == IParam.Comma) {<NEW_LINE>...
sub = param.getSub(i);
562,069
public static // Usage = DuplicationMetrics READ_PAIRS READ_PAIR_DUPLICATES<NEW_LINE>void main(String[] args) {<NEW_LINE>DuplicationMetrics m = new DuplicationMetrics();<NEW_LINE>m.READ_PAIRS_EXAMINED = Integer.parseInt(args[0]);<NEW_LINE>m.READ_PAIR_DUPLICATES = Integer.parseInt(args[1]);<NEW_LINE>m.calculateDerivedFi...
println("Percent Duplication: " + m.PERCENT_DUPLICATION);
1,067,888
public MaryData process(MaryData d) throws Exception {<NEW_LINE>Document doc = d.getDocument();<NEW_LINE>NodeIterator sentenceIt = MaryDomUtils.createNodeIterator(doc, MaryXML.SENTENCE);<NEW_LINE>Element sentence = null;<NEW_LINE>while ((sentence = (Element) sentenceIt.nextNode()) != null) {<NEW_LINE>// Make sure we ha...
().getAttribute("xml:lang"));
331,275
private void registerPipelineAggregation(PipelineAggregationSpec spec) {<NEW_LINE>namedXContents.add(new NamedXContentRegistry.Entry(BaseAggregationBuilder.class, spec.getName(), (p, c) -> spec.getParser().parse(p, (String) c)));<NEW_LINE>namedWriteables.add(new NamedWriteableRegistry.Entry(PipelineAggregationBuilder.c...
, spec.getReader()));
107,800
public static void performFVT(String url, String serverName, String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, GlossaryAuthorFVTCheckedException {<NEW_LINE>int initialGlossaryCount = GlossaryFVT.getGlossaryCount(url, serverName, userId);<NEW_LINE>int initialTermCount ...
"ERROR: Projects count incorrect; expected " + initialProjectCount + " , got " + finalProjectCount);
1,115,660
public void buildContextMenu(IMenuManager menu) {<NEW_LINE>super.buildContextMenu(menu);<NEW_LINE>// Delete from Model<NEW_LINE>menu.appendToGroup(GROUP_EDIT, actionRegistry.getAction(DeleteFromModelAction.ID));<NEW_LINE>// Select Element in Tree<NEW_LINE>menu.appendToGroup<MASK><NEW_LINE>menu.appendToGroup(GROUP_RENAM...
(GROUP_RENAME, new Separator());
1,779,221
public void deleteOrphanActions(MongockTemplate mongockTemplate) {<NEW_LINE>final Update deletionUpdates = new Update();<NEW_LINE>deletionUpdates.set(fieldName(QNewAction.newAction.deleted), true);<NEW_LINE>deletionUpdates.set(fieldName(QNewAction.newAction.deletedAt), Instant.now());<NEW_LINE>final Query actionQuery =...
find(actionQuery, NewAction.class);
642,052
protected void paintIcon(final JComponent c, final Graphics2D g, final Rectangle viewRect, final Rectangle iconRect) {<NEW_LINE>final Insets insets = c.getInsets();<NEW_LINE>viewRect.x += insets.left;<NEW_LINE>viewRect.y += insets.top;<NEW_LINE>viewRect.width -= (insets.right + viewRect.x);<NEW_LINE>viewRect.height -= ...
MTUI.Radio.getBorderColor());
1,110,805
private void startRdpConnection() throws Exception {<NEW_LINE>android.util.Log.i(TAG, "startRdpConnection: Starting RDP connection.");<NEW_LINE>// Get the address and port (based on whether an SSH tunnel is being established or not).<NEW_LINE>String address = getAddress();<NEW_LINE>int rdpPort = getPort(connection.getP...
getWidth(), getHeight());
1,614,331
protected void buildUI() {<NEW_LINE>SignatureValidationStatus signatureValidationStatus = new SignatureValidationStatus(messageBundle, signatureWidgetAnnotation, signatureValidator);<NEW_LINE>setTitle(messageBundle.getString("viewer.annotation.signature.validation.dialog.title"));<NEW_LINE>// simple close<NEW_LINE>fina...
1, 5, 1, 1);
747,007
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> <MASK><NEW_LINE>execs.add(new ViewExpressionWindowSceneOne());<NEW_LINE>execs.add(new ViewExpressionWindowNewestEventOldestEvent());<NEW_LINE>execs.add(new ViewExpressionWindowLengthWindow());<NEW_LINE>execs.add(new Vie...
execs = new ArrayList<>();
509,684
protected View doInBackground(View... params) {<NEW_LINE>try {<NEW_LINE>m = new AccountManager(Authentication.reddit);<NEW_LINE>JsonNode node = m.getFlairChoicesRootNode(subOverride, null);<NEW_LINE>flairs = m.getFlairChoices(subOverride, node);<NEW_LINE>FlairTemplate currentF = m.getCurrentFlair(subOverride, node);<NE...
currentF.getCssClass() + "]");
789,145
public android.widget.ImageButton createFavoriteButton() {<NEW_LINE>ChannelInfoDto channel = TvManager.getChannel(TvManager.getAllChannelsIndex(mProgram.getChannelId()));<NEW_LINE>boolean isFav = channel.getUserData() != null && channel.getUserData().getIsFavorite();<NEW_LINE>android.widget.ImageButton fave = addImgBut...
setLastFavoriteUpdate(System.currentTimeMillis());
1,041,916
static // we inspect the main type plus bounds of type variables and wildcards<NEW_LINE>long requiredNullTagBits(TypeBinding type, CheckMode mode) {<NEW_LINE>long tagBits <MASK><NEW_LINE>if (tagBits != 0)<NEW_LINE>return validNullTagBits(tagBits);<NEW_LINE>if (type.isWildcard()) {<NEW_LINE>WildcardBinding wildcardBindi...
= type.tagBits & TagBits.AnnotationNullMASK;
135,645
private void bindContact(ViewHolderPhoneContacts holder, InvitationContactInfo contact, boolean isMegaContact) {<NEW_LINE>holder.displayLabel = contact.getDisplayInfo();<NEW_LINE>holder.contactName = contact.getName();<NEW_LINE>holder<MASK><NEW_LINE>holder.contactNameTextView.setText(holder.contactName);<NEW_LINE>holde...
.contactId = contact.getId();
618,806
final ImportGameConfigurationResult executeImportGameConfiguration(ImportGameConfigurationRequest importGameConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importGameConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
40,773
public static DescribeTablesResponse unmarshall(DescribeTablesResponse describeTablesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTablesResponse.setRequestId(_ctx.stringValue("DescribeTablesResponse.RequestId"));<NEW_LINE>describeTablesResponse.setSuccess(_ctx.booleanValue("DescribeTablesResponse.Success"));<...
= new ArrayList<ListItem>();
291,003
public static StringBuilder callURL(String urlPath, String username, String password, int expected_resp, int[] allowedUnexpectedresp, HTTPRequestMethod verb, InputStream body, String conttype) throws Exception {<NEW_LINE>String m = "callURL";<NEW_LINE>Log.info(c, m, "callURL : " + username + "@" + urlPath);<NEW_LINE>UR...
HashMap<String, String>();
405,438
public static void showAttachSomethingDialog(final Activity activity, final Callback.a1<Integer> userCallback) {<NEW_LINE>final List<String> availableData = new ArrayList<>();<NEW_LINE>final List<Integer> <MASK><NEW_LINE>final List<Integer> availableDataToIconMap = new ArrayList<>();<NEW_LINE>final Callback.a3<Integer,...
availableDataToActionMap = new ArrayList<>();
113,465
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.ide.core.ftp.BaseFTPConnectionFileManager#deleteFile(org.eclipse.core.runtime.IPath,<NEW_LINE>* org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void deleteFile(IPath path, IProgressMonitor monitor) throws CoreException, ...
path.toPortableString(), e);
1,549,467
FieldSpec generateCreator(ProcessingEnvironment env, TypeName autoValueType, List<Property> properties, TypeName type, Map<TypeMirror, FieldSpec> typeAdapters) {<NEW_LINE>ClassName creator = ClassName.bestGuess("android.os.Parcelable.Creator");<NEW_LINE>TypeName creatorOfClass = ParameterizedTypeName.get(creator, type)...
createFromParcel.addAnnotation(createSuppressUncheckedWarningAnnotation());
157,652
public void deleteById(String id) {<NEW_LINE>String deviceName = <MASK><NEW_LINE>if (deviceName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'dataBoxEdgeDevices'.", id)));<NEW_LINE>}<NEW_LINE>String name = Utils....
Utils.getValueFromIdByName(id, "dataBoxEdgeDevices");
753,847
protected UserModel importUserToKeycloak(RealmModel realm, String username) {<NEW_LINE>Sssd sssd = new Sssd(username);<NEW_LINE>User sssdUser = sssd.getUser();<NEW_LINE>logger.debugf("Creating SSSD user: %s to local Keycloak storage", username);<NEW_LINE>UserModel user = session.userLocalStorage().addUser(realm, userna...
setFederationLink(model.getId());
1,317,388
public void onUpdate() {<NEW_LINE>basicChests.clear();<NEW_LINE>trapChests.clear();<NEW_LINE>enderChests.clear();<NEW_LINE>shulkerBoxes.clear();<NEW_LINE>for (BlockEntityTickInvoker blockEntityTicker : ((IWorld) MC.world).getBlockEntityTickers()) {<NEW_LINE>BlockEntity blockEntity = MC.world.getBlockEntity(blockEntityT...
= getBoxFromChest((ChestBlockEntity) blockEntity);
1,329,736
protected Collection<V> convertToModel(Collection<V> componentRawValue) throws ConversionException {<NEW_LINE>ValueSource<Collection<V>> valueSource = getValueSource();<NEW_LINE>if (valueSource != null) {<NEW_LINE>Class<?> modelCollectionType = null;<NEW_LINE>if (valueSource instanceof EntityValueSource) {<NEW_LINE>Met...
return new ArrayList<>(componentRawValue);
22,707
private String doSend(Message<?> message, String subDirectory, FileExistsMode mode, StreamHolder inputStreamHolder, Session<F> session) {<NEW_LINE>String fileName = inputStreamHolder.name;<NEW_LINE>try {<NEW_LINE>String remoteDirectory = <MASK><NEW_LINE>remoteDirectory = normalizeDirectoryPath(remoteDirectory);<NEW_LIN...
this.directoryExpressionProcessor.processMessage(message);
1,083,903
protected void init() {<NEW_LINE>View view = LayoutInflater.from(mContext).inflate(R.layout.editor_volume_setting, this);<NEW_LINE>mSrcVolumeSeekBar = view.findViewById(R.id.src_volume_seekbar);<NEW_LINE>mSrcVolumeText = view.findViewById(R.id.src_volume_value);<NEW_LINE>mSrcVolumeText.setText(String.format(mContext.ge...
), PorterDuff.Mode.SRC_ATOP);
1,483,022
public static String formatAggregation(Aggregation aggregation) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>String arguments = Joiner.on(", ").join(aggregation.getArguments());<NEW_LINE>if (aggregation.getArguments().isEmpty() && "count".equalsIgnoreCase(aggregation.getResolvedFunction().getSignatu...
('(').append(arguments);
1,028,377
public // until it is deleted using the unsubscribe method.<NEW_LINE>void testCreateSharedDurableConsumer_unsubscribe(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = tcfBindings.createContext();<NEW_LINE>JMSConsumer jmsConsumer = jmsContext.createDurableCons...
ObjectName name = new ObjectName("WebSphere:feature=wasJmsServer,type=Subscriber,name=clientID##DURATEST1");
368,970
public Collection<BlockingState> computeAddOnBlockingStates(final DateTime effectiveDate, final Collection<NotificationEvent> notificationEvents, final TenantContext context, final InternalCallContext internalCallContext) throws EntitlementApiException {<NEW_LINE>// Optimization - bail early<NEW_LINE>if (!ProductCatego...
ImmutableList.<BlockingState>of();
1,160,046
public INDArray doForward(boolean training, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>if (!canDoForward())<NEW_LINE>throw new IllegalStateException("Cannot do forward pass: input not set");<NEW_LINE>forwardShape = Arrays.copyOf(inputs[0].shape(), inputs[0].rank());<NEW_LINE>INDArray out;<NEW_LINE>switch(inputs[0].rank...
), NDArrayIndex.all());
808,397
public Answer execute(final RebootCommand command, final CitrixResourceBase citrixResourceBase) {<NEW_LINE>final Connection conn = citrixResourceBase.getConnection();<NEW_LINE>s_logger.debug("7. The VM " + command.getVmName() + " is in Starting state");<NEW_LINE>try {<NEW_LINE>Set<VM> vms = null;<NEW_LINE>try {<NEW_LIN...
RebootAnswer(command, msg, false);
1,223,183
private void createMissingMatchInvs(final I_C_InvoiceLine il) {<NEW_LINE>// skip description lines<NEW_LINE>if (il.isDescription()) {<NEW_LINE>incrementCounterAndGet(COUNTER_NOTHING_TO_BE_DONE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If the invoice line already has at least one matchInv record, we assume that it's all...
createNewMatchInvoiceRecord(il, inoutLine, qtyToMatch);
299,843
public static ExplodedPattern explodePattern(String pattern) throws IllegalArgumentException {<NEW_LINE>List<String> parts = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < pattern.length(); i++) {<NEW_LINE>char currentChar = pattern.charAt(i);<NEW_LINE>if (currentChar == '\\' && i + 1 == pattern.length()) {<NEW_...
(i, i + 3));
252,885
public void readChunkColumn(boolean full, BitSet mask, DataTypeProvider dataProvider) {<NEW_LINE>// Loop through section Y values, starting from the lowest section that has blocks inside it. Compute the index<NEW_LINE>// in the mask by subtracting the minimum chunk packet section, e.g. the lowest Y value we will find i...
byte bitsPerBlock = dataProvider.readNext();
931,511
private void bluestein_real_inverse2(final float[] a, final int offa) {<NEW_LINE>Arrays.fill(ak, 0);<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>int idx1 = 2 * i;<NEW_LINE>int idx2 = idx1 + 1;<NEW_LINE>int idx3 = offa + i;<NEW_LINE>ak[idx1] = a[idx3] * bk1[idx1];<NEW_LINE>ak[idx2] = a[idx3] * bk1[idx2];<NEW_LINE>}<...
[idx2] * bk2[idx2];
566,324
public static DescribeRenewalPriceResponse unmarshall(DescribeRenewalPriceResponse describeRenewalPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRenewalPriceResponse.setRequestId(_ctx.stringValue("DescribeRenewalPriceResponse.RequestId"));<NEW_LINE>PriceInfo priceInfo = new PriceInfo();<NEW_LINE>priceInfo....
("DescribeRenewalPriceResponse.PriceInfo.Coupons[" + i + "].Name"));
425,112
private AllocationResult allocateBucketForWrite(final OAtomicOperation atomicOperation, final int requestedPageIndex, final int requestedPageOffset, Set<OBonsaiBucketPointer> blockedPointers) throws IOException {<NEW_LINE>final OCacheEntry sysCacheEntry = loadPageForWrite(atomicOperation, fileId, SYS_BUCKET.getPageInde...
releasePageFromWrite(atomicOperation, allocationResult.cacheEntry);
984,145
final PutInboundDmarcSettingsResult executePutInboundDmarcSettings(PutInboundDmarcSettingsRequest putInboundDmarcSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putInboundDmarcSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
348,262
final DeleteKeyPairResult executeDeleteKeyPair(DeleteKeyPairRequest deleteKeyPairRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteKeyPairRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,225,701
public boolean restore(Connection connection) {<NEW_LINE>ConnectionId connectionId = connection.getConnectionId();<NEW_LINE>if (connectionId == null) {<NEW_LINE>throw new IllegalStateException("Connection must have a connection id!");<NEW_LINE>} else if (connectionId.isEmpty()) {<NEW_LINE>throw new IllegalStateExceptio...
throw new IllegalStateException("Connection id already used! " + connectionId);
1,450,831
public void renderTrack(RenderContext ctx, Repainter repainter, double w, double h) {<NEW_LINE>ctx.trace("CpuSummary", () -> {<NEW_LINE>CpuSummaryTrack.Data data = track.getData(state.toRequest(), onUiThread(repainter));<NEW_LINE>drawLoading(ctx, data, state, h);<NEW_LINE>if (data == null) {<NEW_LINE>return;<NEW_LINE>}...
bucketSize + data.bucketSize / 2);
1,224,879
public void onSuccess(@Nullable Edge edge) {<NEW_LINE>if (edge != null && !customerId.isNullUid()) {<NEW_LINE>saveEdgeEvent(edge.getTenantId(), edge.getId(), EdgeEventType.CUSTOMER, EdgeEventActionType.ADDED, customerId, null);<NEW_LINE>PageLink pageLink = new PageLink(DEFAULT_PAGE_SIZE);<NEW_LINE>PageData<User> pageDa...
null && pageData.hasNext());
294,373
public DescribeDeliveryStreamResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeDeliveryStreamResult describeDeliveryStreamResult = new DescribeDeliveryStreamResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1...
String currentParentElement = context.getCurrentParentElement();
660,930
public void copyToLocalFile(URI srcUri, File dstFile) throws Exception {<NEW_LINE>LOGGER.debug("starting to fetch segment from hdfs");<NEW_LINE>final String dstFilePath = dstFile.getAbsolutePath();<NEW_LINE>final Path remoteFile = new Path(srcUri);<NEW_LINE>final Path localFile = new Path(dstFile.toURI());<NEW_LINE>try...
"failed to fetch segment {} from hdfs to {}, might retry", srcUri, dstFile, e);
11,882
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final Bundle profileInfo = getArguments();<NEW_LINE>int icon = android.R.drawable.ic_dialog_alert;<NEW_LINE>int title = R.string.connect_profile_question;<NEW_LINE>int message = R.string.replaces_active_connection;<NEW_LINE>int button = R.string.connect...
R.string.cancel, cancelListener);
1,472,481
final DescribeJobsResult executeDescribeJobs(DescribeJobsRequest describeJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,183,841
private void genChunk(ZonePlannerMapChunkKey key) {<NEW_LINE>ZonePlannerMapChunk zonePlannerMapChunk = ZonePlannerMapDataClient.INSTANCE.getChunk(Minecraft.getMinecraft().world, key);<NEW_LINE>if (zonePlannerMapChunk == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BufferBuilder builder = Tessellator.getInstance().getBu...
.getInstance().draw();
89,584
private Instant scheduleBackward(final Instant end, final Duration activityDuration, final I_S_Resource resource) {<NEW_LINE><MASK><NEW_LINE>Instant start = null;<NEW_LINE>Instant currentDate = end;<NEW_LINE>Duration remainingDuration = activityDuration;<NEW_LINE>// statistical iteration count<NEW_LINE>int iteration = ...
final ResourceType resourceType = getResourceType(resource);
1,621,288
private TextChangeManager createChangeManager(IProgressMonitor pm, RefactoringStatus result) throws CoreException {<NEW_LINE>pm.beginTask(RefactoringCoreMessages.ChangeSignatureRefactoring_preview, 2);<NEW_LINE>fChangeManager = new TextChangeManager();<NEW_LINE>boolean isNoArgConstructor = isNoArgConstructor();<NEW_LIN...
deferredUpdates = new ArrayList<>();
1,647,012
protected void initDisplay() {<NEW_LINE>display = NewtFactory.createDisplay(null);<NEW_LINE>display.addReference();<NEW_LINE>screen = NewtFactory.createScreen(display, 0);<NEW_LINE>screen.addReference();<NEW_LINE>GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();<NEW_LINE>GraphicsDevic...
awtDisplayDevice = awtDevices[displayNum - 1];
1,359,005
public void onMatch(RelOptRuleCall call) {<NEW_LINE>Filter filter1 = (Filter) call.rels[0];<NEW_LINE>Filter filter2 = (Filter) call.rels[1];<NEW_LINE>ImmutableSet.Builder variablesSet = ImmutableSet.builder();<NEW_LINE>if (filter1.getVariablesSet() != null) {<NEW_LINE>variablesSet.addAll(filter1.getVariablesSet());<NEW...
.builder().getRexBuilder();
361,871
static <A extends Annotation, E extends Member & AnnotatedElement, T extends Metric> RegistrationPrep create(A annotation, E annotatedElement, Class<?> clazz, MatchingType matchingType, Executable executable) {<NEW_LINE>MetricAnnotationInfo<?, ?> info = ANNOTATION_TYPE_TO_INFO.get(annotation.annotationType());<NEW_LINE...
executable, annotation.annotationType());
1,068,657
void deprioritizeJob(Path manifestPath) throws AutoIngestManagerException {<NEW_LINE>if (state != State.RUNNING) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AutoIngestJob jobToDeprioritize = null;<NEW_LINE>synchronized (jobsLock) {<NEW_LINE>for (AutoIngestJob job : pendingJobs) {<NEW_LINE>if (job.getManifest().getFilePath()...
int oldPriority = jobToDeprioritize.getPriority();
1,728,571
private Namespace createNamespace(String name, SymbolType symbolType, Address address, Namespace toParentNamespace, SourceType source) throws DuplicateNameException, InvalidInputException {<NEW_LINE>if (symbolType == SymbolType.FUNCTION) {<NEW_LINE>// function names don't have to be unique<NEW_LINE>return (Namespace) c...
.getName(true) + "'.");
1,852,306
public static void showEula(final Activity activity) {<NEW_LINE>if (!new Eula().shouldShowEula(activity))<NEW_LINE>return;<NEW_LINE>final AlertDialog.Builder builder = new AlertDialog.Builder(activity);<NEW_LINE>builder.<MASK><NEW_LINE>builder.setCancelable(true);<NEW_LINE>builder.setPositiveButton(R.string.DLG_accept,...
setTitle(R.string.DLG_eula_title);
1,341,009
private <T> boolean existByFilter(final String path, final Class<T> deserializeClass, final Filter<T> filter, final Object... params) {<NEW_LINE>try {<NEW_LINE>GetOption option = GetOption.newBuilder().withPrefix(ByteSequence.from(path, StandardCharsets<MASK><NEW_LINE>List<KeyValue> children = client.getKVClient().get(...
.UTF_8)).build();
1,039,499
private void updateInfoViewAppearance() {<NEW_LINE>if (portrait)<NEW_LINE>return;<NEW_LINE>View toolsPanel = mainView.findViewById(R.id.measure_mode_controls);<NEW_LINE>View snapToRoadProgress = mainView.findViewById(R.id.snap_to_road_progress_bar);<NEW_LINE>int infoViewWidth = mainView.getWidth() - toolsPanel.getWidth...
.LayoutParams(infoViewWidth, -1);
1,128,655
public List<String[]> tableAsParts(String message, String separator) {<NEW_LINE>String[] lines = StringUtils.split(message, '\n');<NEW_LINE>List<String[]> <MASK><NEW_LINE>Maximum.ForInteger rowWidth = new Maximum.ForInteger(0);<NEW_LINE>for (String line : lines) {<NEW_LINE>String[] row = StringUtils.split(line, separat...
rows = new ArrayList<>();
602,560
public static DescribeUidWhiteListGroupResponse unmarshall(DescribeUidWhiteListGroupResponse describeUidWhiteListGroupResponse, UnmarshallerContext context) {<NEW_LINE>describeUidWhiteListGroupResponse.setRequestId(context.stringValue("DescribeUidWhiteListGroupResponse.RequestId"));<NEW_LINE>describeUidWhiteListGroupRe...
("DescribeUidWhiteListGroupResponse.DataList[" + i + "].AutoConfig"));
812,267
public void printWsdl(HttpServletResponse response) throws IOException {<NEW_LINE>WsdlInterface[] mockedInterfaces = mockService.getMockedInterfaces();<NEW_LINE>if (mockedInterfaces.length == 1) {<NEW_LINE>StringToStringMap parts = wsdlCache.get(mockedInterfaces[0].getName());<NEW_LINE>printOkXmlResult(response, parts....
().getDefinition()));
65,690
public final Query buildQuery(LeafReader reader, BiPredicate<String, BytesRef> termAcceptor) {<NEW_LINE>try {<NEW_LINE>DocumentQueryBuilder queryBuilder = getQueryBuilder();<NEW_LINE>for (FieldInfo field : reader.getFieldInfos()) {<NEW_LINE>Terms terms = reader.terms(field.name);<NEW_LINE>if (terms == null) {<NEW_LINE>...
presearcherQuery, BooleanClause.Occur.SHOULD);
1,688,647
private void connectToApiRegions(Region region, EnumSet<ApiType> apiTypeVisibility, RegionDigraph copy) throws BundleException {<NEW_LINE><MASK><NEW_LINE>// We want to import ALL from the api regions<NEW_LINE>allBuilder.allowAll(RegionFilter.VISIBLE_ALL_NAMESPACE);<NEW_LINE>boolean connectToInternal = false;<NEW_LINE>f...
RegionFilterBuilder allBuilder = copy.createRegionFilterBuilder();
70,523
@SaCheckLogin<NEW_LINE>public Object child(@Param("pid") String pid, @Param("wxid") String wxid, HttpServletRequest req) {<NEW_LINE>List<Wx_menu> list = new ArrayList<>();<NEW_LINE>List<NutMap> treeList = new ArrayList<>();<NEW_LINE>Cnd cnd = Cnd.NEW();<NEW_LINE>if (Strings.isBlank(pid)) {<NEW_LINE>cnd.and(Cnd.exps("pa...
("location").asc("path");
54,340
public static BufferedImage depalettiseImage(BufferedImage src) {<NEW_LINE>BufferedImage result = null;<NEW_LINE>if (BufferedImage.TYPE_BYTE_INDEXED == src.getType() || BufferedImage.TYPE_BYTE_BINARY == src.getType() || src.getColorModel().getNumColorComponents() < 3 || src.getColorModel().getComponentSize(0) > 8) {<NE...
int height = src.getHeight();