idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
74,743
public PathFragment relativeTo(PathFragment base) {<NEW_LINE>Preconditions.checkNotNull(base);<NEW_LINE>if (isAbsolute() != base.isAbsolute()) {<NEW_LINE>throw new IllegalArgumentException("Cannot relativize an absolute and a non-absolute path pair");<NEW_LINE>}<NEW_LINE>String basePath = base.normalizedPath;<NEW_LINE>...
normalizedPath.substring(lastSlashIndex + 1);
193,259
public void onReplicaEvent(ReplicaId replicaId, ReplicaEventType event) {<NEW_LINE>if (replicaId instanceof Replica) {<NEW_LINE>switch(event) {<NEW_LINE>case Disk_Error:<NEW_LINE>if (replicaId.getReplicaType() == ReplicaType.DISK_BACKED) {<NEW_LINE>((Disk) replicaId.getDiskId()).onDiskError();<NEW_LINE>}<NEW_LINE>break...
getDataNodeId()).onNodeTimeout();
447,422
private void createMoveMastersTasks(SubTaskGroupType subTask, Set<NodeDetails> newMasters, Set<NodeDetails> removeMasters) {<NEW_LINE>// Get the list of node names to add as masters.<NEW_LINE>List<NodeDetails> mastersToAdd = new ArrayList<>(newMasters);<NEW_LINE>// Get the list of node names to remove as masters.<NEW_L...
), mastersToRemove.size());
1,160,625
protected void notifyAccountUpdateConsumers(Collection<Account> updatedAccounts, boolean isCalledFromListener) {<NEW_LINE>if (updatedAccounts.size() > 0) {<NEW_LINE>logger.info("Received updates for {} accounts. Received from listener={}. Account IDs={}", updatedAccounts.size(), isCalledFromListener, updatedAccounts.st...
(Collections.unmodifiableCollection(updatedAccounts));
144,551
final RejectTransitGatewayVpcAttachmentResult executeRejectTransitGatewayVpcAttachment(RejectTransitGatewayVpcAttachmentRequest rejectTransitGatewayVpcAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectTransitGatewayVpcAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
RejectTransitGatewayVpcAttachmentResult>(new RejectTransitGatewayVpcAttachmentResultStaxUnmarshaller());
150,119
public static ReleaseTransactionSet deserializeReleaseTransactionSet(byte[] data, NetworkParameters networkParameters, boolean hasTxHash) {<NEW_LINE>if (data == null || data.length == 0) {<NEW_LINE>return new ReleaseTransactionSet(new HashSet<>());<NEW_LINE>}<NEW_LINE>int elementsMultipleCount = hasTxHash ? 3 : 2;<NEW_...
(data).get(0);
52,310
public Polygon roundEdges(int rad) {<NEW_LINE>Polygon newPoly = new Polygon(closed);<NEW_LINE>int len = path.size();<NEW_LINE>if (!closed)<NEW_LINE>len--;<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>VectorInterface p0 = path.get(i).getPoint();<NEW_LINE>VectorInterface p1 = path.get(wrapIndex(i + 1)).getPoint();<N...
.mul(rad / l0));
633,637
public static List<CachableRenderStatement> computeFluidOutlineToCache(@Nonnull CollidableComponent component, @Nonnull Fluid fluid, double scaleFactor, float outlineWidth) {<NEW_LINE>Map<Fluid, List<CachableRenderStatement>> cache0 = cache.get(component);<NEW_LINE>if (cache0 == null) {<NEW_LINE>cache0 = new HashMap<Fl...
data = cache0.get(fluid);
1,639,341
public boolean apply(Game game, Ability source) {<NEW_LINE>List<Permanent> permanents = source.getTargets().stream().map(Target::getTargets).flatMap(Collection::stream).map(game::getPermanent).filter(Objects::nonNull).collect(Collectors.toList());<NEW_LINE>if (permanents.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<N...
perm2.sacrifice(source, game);
1,536,515
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>describeRegionsResponse.setCode(_ctx.integerValue("DescribeRegionsResponse.Code"));...
("DescribeRegionsResponse.Data.RegionList[" + i + "].RegionUrl"));
1,374,127
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {<NEW_LINE>stream.defaultReadObject();<NEW_LINE>if (serialVersionOnStream < 1) {<NEW_LINE>// Fix a bug in the 1.1 SimpleTimeZone code -- namely,<NEW_LINE>// startDayOfWeek and endDayOfWeek were usually uninitialized. We can't ...
[]) stream.readObject();
62,647
private void writeToCsv(List<List<?>> data) {<NEW_LINE>if (titles != null) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (titles == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>titles = null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>List<String> content = data.stream().map(d -> {<NEW_LINE>return d.stream().map(v -...
data.add(0, titles);
1,352,539
public void run() {<NEW_LINE>log.<MASK><NEW_LINE>XClusterConfig xClusterConfig = refreshXClusterConfig();<NEW_LINE>Universe targetUniverse = Universe.getOrBadRequest(xClusterConfig.targetUniverseUUID);<NEW_LINE>String targetUniverseMasterAddresses = targetUniverse.getMasterAddresses();<NEW_LINE>String targetUniverseCer...
info("Running {}", getName());
1,078,087
private /* U^{-1} = inverse covariance : inseq[][] */<NEW_LINE>void calcWUWandWUM(int m) {<NEW_LINE>for (int t = 0; t < nT; t++) {<NEW_LINE>for (int i = 0; i < NUM; i++) {<NEW_LINE>int dwWidth_iright = rightWidths[i];<NEW_LINE>int iorder = i * order + m;<NEW_LINE>for (int j = leftWidths[i]; j <= dwWidth_iright; j++) {<...
[t + j][iorder];
1,340,914
public static Scriptable jsConstructor(final Context cx, final Object[] args, final Function ctorObj, final boolean inNewExpr) {<NEW_LINE>final PointerEvent event = new PointerEvent();<NEW_LINE>if (args.length != 0) {<NEW_LINE>event.setType(Context.toString(args[0]));<NEW_LINE>event.setBubbles(false);<NEW_LINE>event.se...
object, "width", event.width_);
314,001
public CommonDDBean addRow(Object[] values) {<NEW_LINE>try {<NEW_LINE>Object parent = getParent();<NEW_LINE>InitParam param = null;<NEW_LINE>if (parent instanceof Servlet) {<NEW_LINE>// NOI18N<NEW_LINE>param = (InitParam) ((Servlet) parent).createBean("InitParam");<NEW_LINE>} else if (parent instanceof Filter) {<NEW_LI...
) parent).createBean("InitParam");
287,763
public static SnapshotInfo readFrom(final StreamInput in) throws IOException {<NEW_LINE>final Snapshot snapshot;<NEW_LINE>if (in.getVersion().onOrAfter(GetSnapshotsRequest.PAGINATED_GET_SNAPSHOTS_VERSION)) {<NEW_LINE>snapshot = new Snapshot(in);<NEW_LINE>} else {<NEW_LINE>snapshot = new Snapshot(UNKNOWN_REPO_NAME, new ...
Version.readVersion(in) : null;
1,806,676
private void resolveDomain() {<NEW_LINE>if (StringUtils.isBlank(this.key)) {<NEW_LINE>this.key = DataDriverConstant.DOMAIN_DEFAULT_INFO;<NEW_LINE>}<NEW_LINE>this.value = PropertyUtils.getProperty(this.key);<NEW_LINE>if (StringUtils.isBlank(this.value) && DataDriverConstant.DOMAIN_DEFAULT_INFO.equals(this.key)) {<NEW_LI...
this.key, this.value);
1,036,058
// entry point async trace.<NEW_LINE>@InterfaceAudience.LimitedPrivate("vert.x")<NEW_LINE>@Override<NEW_LINE>public Trace newAsyncTraceObject() {<NEW_LINE>final TraceSampler.State state = traceSampler.isNewSampled();<NEW_LINE>final boolean sampling = state.isSampled();<NEW_LINE>if (sampling) {<NEW_LINE>final TraceRoot ...
SpanChunkFactory spanChunkFactory = new DefaultSpanChunkFactory(traceRoot);
1,396,248
public byte[] encrypt(final byte[] plaintext, final byte[] contextInfo) throws /* unused */<NEW_LINE>GeneralSecurityException {<NEW_LINE>if (contextInfo != null) {<NEW_LINE>throw new GeneralSecurityException("contextInfo must be null because it is unused");<NEW_LINE>}<NEW_LINE>if (plaintext.length > recordSize - paddin...
- paddingSize - WebPushConstants.CIPHERTEXT_OVERHEAD));
468,485
public static void installApk(Context context, DownloadsUtil.DownloadInfo info) {<NEW_LINE>Intent installIntent = new Intent(Intent.ACTION_INSTALL_PACKAGE);<NEW_LINE>installIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_LINE>Uri uri;<NEW_LINE>if (Build.VERSION.SDK_INT >= 24) {<NEW_LINE>uri = FileProvider.getUriFor...
installIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
1,793,623
protected void commentBoxClicked() {<NEW_LINE>if (commentWasChanged()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setCanAddComments(false, true);<NEW_LINE>CommentInfo commentInfo = new CommentInfo().invoke();<NEW_LINE><MASK><NEW_LINE>String txt = commentInfo.getTxt();<NEW_LINE>if (!sameText) {<NEW_LINE>txt = "";<NEW_LINE>}...
boolean sameText = commentInfo.isSameText();
432,759
private boolean checkTypeArgument(Scanner scanner) {<NEW_LINE>int depth = 1;<NEW_LINE>int token;<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>do {<NEW_LINE>try {<NEW_LINE>token = scanner.getNextToken();<NEW_LINE>} catch (InvalidInputException e) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>switch(token...
append(scanner.getCurrentTokenSource());
1,849,825
protected Sheet createSheet() {<NEW_LINE>Sheet sheet = new Sheet();<NEW_LINE>Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);<NEW_LINE>if (sheetSet == null) {<NEW_LINE>sheetSet = Sheet.createPropertiesSet();<NEW_LINE>sheet.put(sheetSet);<NEW_LINE>}<NEW_LINE>final String NO_DESCR = Bundle.InstanceCountNode_createSheet_...
"AbstractAbstractFileNode.nameColLbl"), NO_DESCR, ""));
1,396,988
// auto-generated, see spoon.generating.ReplacementVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T, E extends spoon.reflect.code.CtExpression<?>> void visitCtExecutableReferenceExpression(final spoon.reflect.code.CtExecutableReferenceExpression<T, E> expression) {<NEW_LINE>replaceInListIfExist(expressi...
.ReplacementVisitor.CtTypedElementTypeReplaceListener(expression));
607,447
public String generate() {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("package " + packageName + ";\n\n");<NEW_LINE>builder.append("import com.netflix.hollow.api.perfapi.HollowObjectTypePerfAPI;\n" + "import com.netflix.hollow.api.perfapi.HollowPerformanceAPI;\n" + "import com.netflix...
.getFieldName(i) + "\"");
1,306,400
protected List<String> enumConstantsOf(Dbms dbms, Table table, String columnName) throws SQLException {<NEW_LINE>final DbmsType <MASK><NEW_LINE>final DatabaseNamingConvention naming = dbmsType.getDatabaseNamingConvention();<NEW_LINE>final String sql = String.format("show columns from %s where field=%s;", naming.fullNam...
dbmsType = dbmsTypeOf(dbmsHandlerComponent, dbms);
168,216
private GATKReportTable makeMeansTable(final String tableName, final String tableDescription, final List<String> annotationList, final GaussianMixtureModel model, final String formatString) {<NEW_LINE>final GATKReportTable meansTable = new GATKReportTable(tableName, tableDescription, annotationList.size(), GATKReportTa...
addRowIDMapping(i, i, true);
641,150
private void loadNode804() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.TwoStateVariableType_FalseState, new QualifiedName(0, "FalseState"), new LocalizedText("en", "FalseState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), ...
this.nodeManager.addNode(node);
607,572
private static RegionInfo deserializeOldRegionInfo(final KeyValue kv, final byte[][] out_start_key) {<NEW_LINE>final ChannelBuffer buf = ChannelBuffers.wrappedBuffer(kv.value());<NEW_LINE>// Skip the version.<NEW_LINE>buf.readByte();<NEW_LINE>// version 1 was introduced in HBase 0.92 (see HBASE-451).<NEW_LINE>// The di...
(region_name) + ", split=" + split);
596,029
protected void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE>Logger.T(TAG, "onCreate");<NEW_LINE>// getWindow().requestFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>setContentView(R.layout.logview);<NEW_LINE>refreshButton = (Button) findViewById(R.id.logviewRefreshButton);<NEW_LINE>clearButton = (But...
(logAdapter = new LogAdapter());
1,012,532
public static String buildTitle() {<NEW_LINE><MASK><NEW_LINE>StringBuilder builder = new StringBuilder(applicationInfo.getName());<NEW_LINE>builder.append(' ');<NEW_LINE>builder.append(applicationInfo.getMajorVersion());<NEW_LINE>builder.append('.');<NEW_LINE>builder.append(applicationInfo.getMinorVersion());<NEW_LINE>...
ApplicationInfo applicationInfo = ApplicationInfo.getInstance();
152,525
public static void beforeSuite() throws Exception {<NEW_LINE>// Delete the Infinispan jars that might have been left around by previous test buckets.<NEW_LINE>LibertyServer server = LibertyServerFactory.getLibertyServer("com.ibm.ws.session.cache.fat.infinispan.container.server");<NEW_LINE>Machine machine = server.getMa...
deleteLibertyDirectoryAndContents(machine, installRoot + "/usr/shared/resources/infinispan");
804,802
public void load(Path configPath, ActionEvent... actionEvent) {<NEW_LINE>Reader fileReader = IOHelper.fileReader(configPath);<NEW_LINE>JsonReader jsonReader = Json.createReader(fileReader);<NEW_LINE>JsonObject jsonObject = jsonReader.readObject();<NEW_LINE>JsonArray recentFiles = jsonObject.getJsonArray("recentFiles");...
favoriteDirectories = jsonObject.getJsonArray("favoriteDirectories");
1,599,754
public int largestValsFromLabels(int[] values, int[] labels, int numWanted, int useLimit) {<NEW_LINE>int n = values.length;<NEW_LINE>int[][] p = new int[n][2];<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>p[i] = new int[] { values[i], labels[i] };<NEW_LINE>}<NEW_LINE>Arrays.sort(p, (a, b) -> b[0] - a[0]);<NEW_LINE>i...
counter = new HashMap<>();
426,022
// -----------------------------------------------------------------------------<NEW_LINE>//<NEW_LINE>// printStates Debug Function. Dump the fully constructed state transition table.<NEW_LINE>//<NEW_LINE>// -----------------------------------------------------------------------------<NEW_LINE>void printStates() {<...
printInt(sd.fLookAhead, 4);
271,483
public Object resolveConstructorArgument(String paramName, Class<?> paramType, NativeWebRequest request) throws Exception {<NEW_LINE>MultipartRequest multipartRequest = request.getNativeRequest(MultipartRequest.class);<NEW_LINE>if (multipartRequest != null) {<NEW_LINE>List<MultipartFile> <MASK><NEW_LINE>if (!files.isEm...
files = multipartRequest.getFiles(paramName);
108,727
public Request<GetIpamAddressHistoryRequest> marshall(GetIpamAddressHistoryRequest getIpamAddressHistoryRequest) {<NEW_LINE>if (getIpamAddressHistoryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetIpamAddressHistoryRequest> request = n...
(getIpamAddressHistoryRequest.getCidr()));
1,238,097
public static Document createXmlDocument(InputSource in, boolean validate, EntityResolver er, ErrorHandler eh) throws Schema2BeansException {<NEW_LINE>if (in == null)<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalArgumentException("in == null");<NEW_LINE>if (validate == false && er == null) {<NEW_LINE>// The client is n...
" db=" + db + " er=" + er);
1,156,687
public void fillUi(JPanel canvas) {<NEW_LINE>String tooltip = "Enter a project view descriptor file." + (Blaze.defaultBuildSystem() == BuildSystemName.Blaze ? " See 'go/intellij/docs/project-views.md' for more information." : "");<NEW_LINE>projectViewEditor = createEditor(tooltip);<NEW_LINE>projectViewEditor.getColorsS...
, UIManager.getColor("Label.background"));
1,558,097
public BackendEntry parse(BackendEntry originEntry) {<NEW_LINE>byte[] bytes = originEntry.id().asBytes();<NEW_LINE>BinaryBackendEntry parsedEntry = new BinaryBackendEntry(originEntry.type(), bytes, this.enablePartition);<NEW_LINE>if (this.enablePartition) {<NEW_LINE>bytes = Arrays.copyOfRange(bytes, parsedEntry.id().le...
length(), bytes.length);
1,613,565
public void run() {<NEW_LINE>try {<NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>tree.<MASK><NEW_LINE>if (file.length() > MAX_JAR_FILE_SIZE_BYTES) {<NEW_LINE>throw new TooLargeFileException(file.length());<NEW_LINE>}<NEW_LINE>if (file.getName().endsWith(".zip") || file.getName().endsWith(".jar")) {<...
setModel(new DefaultTreeModel(null));
1,273,455
public static void main(String[] args) throws Exception {<NEW_LINE>File outputFile = new File("target/w2-TEST.rrd");<NEW_LINE>if (!outputFile.exists() && !outputFile.createNewFile()) {<NEW_LINE>throw new IOException("Could not create output file");<NEW_LINE>}<NEW_LINE>RRDToolWriter gw = RRDToolWriter.builder().setTempl...
injector.getInstance(JmxTransformer.class);
881,576
public static void execute(ManagerConnection c, String openCloseFlag) {<NEW_LINE>SystemConfig system = MycatServer.getInstance().getConfig().getSystem();<NEW_LINE>int oldStat = system.getUseSqlStat();<NEW_LINE>int newStat = oldStat;<NEW_LINE>if ("open".equalsIgnoreCase(openCloseFlag)) {<NEW_LINE>newStat = 1;<NEW_LINE>}...
.getInstance().ensureSqlstatRecycleFuture();
1,145,570
public void doExecute(Editor editor, @Nullable Caret c, DataContext dataContext) {<NEW_LINE>Caret caret = c == null ? editor.getCaretModel().getPrimaryCaret() : c;<NEW_LINE>TextRange wordSelectionRange = getSelectionRange(editor, caret);<NEW_LINE>boolean notFoundPreviously = getAndResetNotFoundStatus(editor);<NEW_LINE>...
setSelection(editor, newCaret, findResult);
504,245
public static String print(FilterableRequestSpecification requestSpec, String requestMethod, String completeRequestUri, Set<LogDetail> logDetails, Set<String> blacklistedHeaders, PrintStream stream, boolean shouldPrettyPrint) {<NEW_LINE>final StringBuilder builder = new StringBuilder();<NEW_LINE>if (logDetails.contains...
"Request params:", requestSpec.getRequestParams());
1,491,580
public void run() {<NEW_LINE>final Notification notification;<NEW_LINE>if (myNotificationListener != null && myNotificationListener.length > 0) {<NEW_LINE>final NotificationType type = myMessageType.toNotificationType();<NEW_LINE>final StringBuilder sb = new StringBuilder(myMessage);<NEW_LINE>for (NamedRunnable runnabl...
isDefault() ? null : myProject);
248,127
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jScrollPane1 = <MASK><NEW_LINE>table = new javax.swing.JTable();<NEW_LINE>table.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] { "Classpath entrie...
new javax.swing.JScrollPane();
363,386
public final DeleteResponse<T> delete(String updatedBy, String id, boolean recursive, boolean internal) throws IOException {<NEW_LINE>// Validate entity<NEW_LINE>String json = dao.findJsonById(id, Include.NON_DELETED);<NEW_LINE>if (json == null) {<NEW_LINE>if (!internal) {<NEW_LINE>throw EntityNotFoundException.byMessa...
Relationship.CONTAINS.ordinal());
1,542,105
public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (resultCode == RESULT_OK && requestCode == SELECT_STICKER_REQUEST_CODE && data != null) {<NEW_LINE>final Uri uri = data.getData();<NEW_LINE>if (uri != null) {<NEW_LINE...
setMode(ImageEditorHudV2.Mode.DRAW);
1,658,535
public Status update(String table, String key, Map<String, ByteIterator> values) {<NEW_LINE>try {<NEW_LINE>Set<String> fields = values.keySet();<NEW_LINE>PreparedStatement stmt = updateStmts.get(fields);<NEW_LINE>// Prepare statement on demand<NEW_LINE>if (stmt == null) {<NEW_LINE>Update updateStmt = QueryBuilder.updat...
i)).toString());
185,182
public boolean execute(CommandSender sender, String commandLabel, String[] args) {<NEW_LINE>if (!this.testPermission(sender)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String online = "";<NEW_LINE>int onlineCount = 0;<NEW_LINE>for (Player player : sender.getServer().getOnlinePlayers().values()) {<NEW_LINE>if (player....
online.length() - 2);
1,670,550
public <T> List<T> readDistinctValuesForField(String fieldName, Class<T> fieldValueClass) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<T> criteria = builder.createQuery(fieldValueClass);<NEW_LINE>Root<ProductImpl> product = criteria.from(ProductImpl.class);<NEW_LINE>Path<Sku> sku...
query = em.createQuery(criteria);
949,111
Date dateFor(String source, Class<?> destinationType) {<NEW_LINE>String sourceString = toString().trim();<NEW_LINE>if (sourceString.length() == 0)<NEW_LINE>throw new Errors().errorMapping(source, destinationType).toMappingException();<NEW_LINE>if (destinationType.equals(java.sql.Date.class)) {<NEW_LINE>try {<NEW_LINE>r...
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
427,546
public void marshall(Cluster cluster, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cluster == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cluster.getClusterArn(), CLUSTERARN_BINDING);<NEW_LINE>protocol...
cluster.getAttachments(), ATTACHMENTS_BINDING);
523,251
public void execute() {<NEW_LINE>// Add Line<NEW_LINE>if (m_node != null && m_AD_WF_NodeTo_ID > 0) {<NEW_LINE>int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx());<NEW_LINE>MWFNodeNext newLine <MASK><NEW_LINE>newLine.setClientOrg(AD_Client_ID, 0);<NEW_LINE>newLine.saveEx();<NEW_LINE>log.info("Add Line to " + m_node + "...
= new MWFNodeNext(m_node, m_AD_WF_NodeTo_ID);
151,492
public void launchGame(Profile profile, Account account, AuthenticationResponse auth) {<NEW_LINE>Log.i(TAG, "launchGame: Launching in " + gameDirectory);<NEW_LINE>File nativeDirectory = new File(gameDirectory, "versions/" + profile.getVersion().getId() + "/" + profile.getVersion().getId() + "-natives-" + System.nanoTim...
Log.e(TAG, "launchGame: Aborting launch; couldn't create native directory");
1,504,968
public void checkAndLoad(JSONObject rawRules) {<NEW_LINE>Long upperDuration = null;<NEW_LINE>if (rawRules.containsKey(FailureLevel.P0.name())) {<NEW_LINE>FailureLevelWithBoundary p0 = new FailureLevelWithBoundary(FailureLevel.P0);<NEW_LINE>p0.setLowerBoundary(TimeUtils.parseDuration(rawRules.getString(FailureLevel.P0.n...
= new FailureLevelWithBoundary(FailureLevel.P3);
363,719
private // but uses accent color instead of primary color<NEW_LINE>ColorStateList createDefaultNavigationColorStateList(int baseColorThemeAttr) {<NEW_LINE>TypedValue value = new TypedValue();<NEW_LINE>if (!getTheme().resolveAttribute(baseColorThemeAttr, value, true)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ColorSta...
return new ColorStateList(states, colors);
1,852,559
protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {<NEW_LINE>final Channel channel = new Channel(getType());<NEW_LINE>channel.setStyleSheet(getStyleSheet(rssRoot.getDocument()));<NEW_LINE>final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());<NEW_LINE>final Element title = eC...
(parseItems(rssRoot, locale));
424,453
private Collection<Fiber> findProblemFibers(long now, long nanos) {<NEW_LINE>final List<Fiber> pfs = new ArrayList<Fiber>();<NEW_LINE>final Map<Thread, Fiber> fibs = scheduler.getRunningFibers();<NEW_LINE>if (fibs == null)<NEW_LINE>return null;<NEW_LINE>fibersInfo.keySet().<MASK><NEW_LINE>for (Iterator<Map.Entry<Thread...
retainAll(fibs.keySet());
661,384
public void onMapReady(@NonNull final MapboxMap mapboxMap) {<NEW_LINE>this.mapboxMap = mapboxMap;<NEW_LINE>mapboxMap.setStyle(Style.DARK, new Style.OnStyleLoaded() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onStyleLoaded(@NonNull final Style style) {<NEW_LINE>mapboxMap.addOnMoveListener(RedoSearchInAreaActivit...
Toast.LENGTH_SHORT).show();
1,630,863
private void positionCursorAt(Cursor position, Ansi ansi) {<NEW_LINE>if (writeCursor.row == position.row) {<NEW_LINE>if (writeCursor.col == position.col) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (writeCursor.col < position.col) {<NEW_LINE>ansi.cursorRight(position.col - writeCursor.col);<NEW_LINE>} else {<NEW_LINE>ans...
ansi.cursorLeft(writeCursor.col);
923,352
public PinotQuery rewrite(PinotQuery pinotQuery) {<NEW_LINE>// handle GROUP BY clause<NEW_LINE>for (int i = 0; i < pinotQuery.getGroupByListSize(); i++) {<NEW_LINE>final Expression groupByExpr = pinotQuery.getGroupByList().get(i);<NEW_LINE>if (groupByExpr.isSetLiteral() && groupByExpr.getLiteral().isSetLongValue()) {<N...
getSelectList(), ordinal)));
1,794,988
public void processElement(ProcessContext c) throws IOException, ExecutionException, InterruptedException {<NEW_LINE>CatalogName parent = CatalogName.of(projectId, "global", catalogName);<NEW_LINE>ArrayList<CatalogItem> catalogItems = new ArrayList<>();<NEW_LINE>for (GenericJson element : c.element().getValue()) {<NEW_...
c.output(FAILURE_TAG, ci);
1,754,935
public HttpDataSourceConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HttpDataSourceConfig httpDataSourceConfig = new HttpDataSourceConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
1,412,399
Object doTimeout(VirtualFrame frame, PSimpleQueue self, boolean block, Object timeout, @Cached PyLongAsLongAndOverflowNode asLongNode, @Cached CastToJavaDoubleNode castToDouble) {<NEW_LINE>assert block;<NEW_LINE>// convert timeout object (given in seconds) to a Java long in microseconds<NEW_LINE>long ltimeout;<NEW_LINE...
.currentThread().interrupt();
1,340,613
private static FakeResults fakeFST01FL2() {<NEW_LINE>FakeResults r = new FakeResults();<NEW_LINE>ArrayList<LogRecord> latestScanList = new ArrayList<LogRecord>();<NEW_LINE>// [35.144137278765335,33.411331214010715,"1406475896542"] Floor 2<NEW_LINE>latestScanList.add(new LogRecord("00:0b:fd:4a:71:ab", -85));<NEW_LINE>la...
LogRecord("00:0e:84:4b:0b:f6", -88));
217,208
public synchronized IndexLocation computeIndexLocation(IPath containerPath, final URL newIndexURL) {<NEW_LINE>IndexLocation indexLocation = (IndexLocation) <MASK><NEW_LINE>if (indexLocation == null) {<NEW_LINE>if (newIndexURL != null) {<NEW_LINE>indexLocation = IndexLocation.createIndexLocation(newIndexURL);<NEW_LINE>/...
this.indexLocations.get(containerPath);
67,473
public void produceResults(final Consumer<CloseableReference<CloseableImage>> consumer, final ProducerContext producerContext) {<NEW_LINE>final ProducerListener2 listener = producerContext.getProducerListener();<NEW_LINE>final ImageRequest imageRequest = producerContext.getImageRequest();<NEW_LINE>final Object callerCo...
producerContext.putOriginExtra("memory_bitmap", "postprocessed");
766,699
void destroyBlockingChannel(BlockingChannel blockingChannel) {<NEW_LINE>rwlock.readLock().lock();<NEW_LINE>try {<NEW_LINE>boolean changed = blockingChannelActiveConnections.remove(blockingChannel);<NEW_LINE>if (!changed) {<NEW_LINE>logger.error("Invalid connection being destroyed. " + "Channel does not belong to this q...
), blockingChannel.getRemotePort());
600,891
public static List<List<Writable>> executeJoin(Join join, List<List<Writable>> left, List<List<Writable>> right) {<NEW_LINE>String[] leftColumnNames = join.getJoinColumnsLeft();<NEW_LINE>int[] leftColumnIndexes = new int[leftColumnNames.length];<NEW_LINE>for (int i = 0; i < leftColumnNames.length; i++) {<NEW_LINE>leftC...
ExtractKeysFunction extractKeysFunction = new ExtractKeysFunction(rightColumnIndexes);
1,010,815
public void train(ClassificationDataSet dataSet, boolean parallel) {<NEW_LINE>if (dataSet.getNumNumericalVars() != 0)<NEW_LINE>throw new RuntimeException("ID3 only supports categorical data");<NEW_LINE>predicting = dataSet.getPredicting();<NEW_LINE>attributes = dataSet.getCategories();<NEW_LINE>List<DataPointPair<Integ...
buildTree(dataPoints, availableAttributes, threadPool);
1,066,441
public static InputLayout parse(Activity activity, Orientation orientation, String inputLayoutString) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>String[] buttonStringList = inputLayoutString.split(";");<NEW_LINE>for (String buttonString : buttonStringList) {<NEW_LINE>// ButtonString format : "keyCode:size:posX:posY"<NEW...
InputLayout inputLayout = new InputLayout(orientation);
110,840
public R scanSwitchExpression(Tree switchExpression, P p) {<NEW_LINE>assert switchExpression.getKind().name().equals("SWITCH_EXPRESSION");<NEW_LINE>List<? extends CaseTree> caseTrees = TreeUtils.switchExpressionTreeGetCases(switchExpression);<NEW_LINE>R result = null;<NEW_LINE>for (CaseTree caseTree : caseTrees) {<NEW_...
.getStatements(), p));
863,146
public void readFromNBT(NBTTagCompound nbttagcompound) {<NEW_LINE>super.readFromNBT(nbttagcompound);<NEW_LINE>if (nbttagcompound.hasKey("box")) {<NEW_LINE>box.initialize(nbttagcompound.getCompoundTag("box"));<NEW_LINE>loadDefaultBoundaries = false;<NEW_LINE>} else if (nbttagcompound.hasKey("xSize")) {<NEW_LINE>// This ...
getCompoundTag("bpt").copy();
896,562
public Object convert(Object src, Class destClass) {<NEW_LINE>if (java.sql.Time.class.isInstance(src)) {<NEW_LINE>Date date = convertSqlTimeToDate((java.sql.Time) src);<NEW_LINE>if (destClass.equals(java.sql.Date.class)) {<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.setTime(date);<NEW_LINE>cal.set(Cale...
destClass.getName() + "]");
1,451,074
public void export(IndicatorGeneratorGrouping indicatorGeneratorGrouping) throws AxelorException {<NEW_LINE>String log = "";<NEW_LINE>String dataExportDir = appService.getDataExportDir();<NEW_LINE>if (indicatorGeneratorGrouping.getPath() == null || indicatorGeneratorGrouping.getPath().isEmpty()) {<NEW_LINE>log += "\n" ...
), indicatorGenerator.getResult() };
302,145
public void onReceive(final Context context, Intent intent) {<NEW_LINE>String action = intent.getAction();<NEW_LINE>if (action == null)<NEW_LINE>return;<NEW_LINE>switch(action) {<NEW_LINE>case Intent.ACTION_BOOT_COMPLETED:<NEW_LINE>try {<NEW_LINE>// Autostart delay<NEW_LINE>Integer delay_s = PrefStore.getAutostartDelay...
{ "telnetd", "httpd" }, "start");
276,809
public int compare(Row r1, Row r2) {<NEW_LINE>if (r1 == null || r2 == null) {<NEW_LINE>GeneralUtil.nestedException("Memory is insufficient to execute this query");<NEW_LINE>}<NEW_LINE>for (int j = 0; j < aggOrderIndexList.size(); j++) {<NEW_LINE>Integer i = aggOrderIndexList.get(j);<NEW_LINE>int v = isAscList.get(j) ? ...
, r2.getObject(i));
1,332,426
public boolean replaceEvent(GameEvent event, Ability source, Game game) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>boolean cardReturned = false;<NEW_LINE>TargetCardInYourGraveyard target = new TargetCardInYourGraveyard();<NEW_LINE>target.setNotTa...
controller.getLogName() + " can't return a card from graveyard to hand.");
1,124,855
public boolean sendHtmlMail(MailSenderInfo mailInfo) {<NEW_LINE>MyAuthenticator authenticator = null;<NEW_LINE><MASK><NEW_LINE>if (mailInfo.isValidate()) {<NEW_LINE>authenticator = new MyAuthenticator(mailInfo.getUserName(), mailInfo.getPassword());<NEW_LINE>}<NEW_LINE>Session sendMailSession = Session.getDefaultInstan...
Properties pro = mailInfo.getProperties();
8,702
public CloudwatchLogsAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CloudwatchLogsAction cloudwatchLogsAction = new CloudwatchLogsAction();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
int originalDepth = context.getCurrentDepth();
1,277,694
public GeoResults<GeoLocation<byte[]>> geoRadius(byte[] key, Circle within, GeoRadiusCommandArgs args) {<NEW_LINE>List<Object> params = new ArrayList<Object>();<NEW_LINE>params.add(key);<NEW_LINE>params.add(convert(within.getCenter().getX()));<NEW_LINE>params.add(convert(within.getCenter().getY()));<NEW_LINE>params.add...
>>>("GEORADIUS_RO", postitionDecoder);
1,718,561
private boolean saveText(URL url, String subdirectory, String text, int index, String fileName) {<NEW_LINE>// Not the best for some cases, like FurAffinity. Overridden there.<NEW_LINE>try {<NEW_LINE>stopCheck();<NEW_LINE>} catch (IOException e) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>File saveFileAs;<NEW_LINE>try ...
"[!] Error creating save file path for description '" + url + "':", e);
578,193
public void initialize() {<NEW_LINE>setLayout(new GridLayout(3, false));<NEW_LINE>Label fileNameLabel = new <MASK><NEW_LINE>fileNameText = new Text(this, SWT.BORDER);<NEW_LINE>Button browseButton = new Button(this, SWT.NONE);<NEW_LINE>fileNameLabel.setText(getLabel("feeder.file.name") + ":");<NEW_LINE>fileNameText.setL...
Label(this, SWT.NONE);
972,658
private FinderSchema createFinderSchema(ResourceMethodDescriptor resourceMethodDescriptor) {<NEW_LINE>FinderSchema finder = new FinderSchema();<NEW_LINE>finder.setName(resourceMethodDescriptor.getFinderName());<NEW_LINE>String doc = _docsProvider.getMethodDoc(resourceMethodDescriptor.getMethod());<NEW_LINE>if (doc != n...
getMethodDeprecatedTag(resourceMethodDescriptor.getMethod());
327,202
public void run() {<NEW_LINE>sessionComboBox.removeActionListener(sessionsComboListener);<NEW_LINE>sessionComboBox.removePopupMenuListener(sessionsComboListener);<NEW_LINE>ComboBoxModel model = sessionComboBox.getModel();<NEW_LINE>sessionComboBox.removeAllItems();<NEW_LINE>DebuggerManager dm = DebuggerManager.getDebugg...
model.getSize() > 1);
210,555
public boolean correctFullLinkControl(CorrectedBinaryMessage message, int crcMask) {<NEW_LINE>int[] input = new int[255];<NEW_LINE>int[<MASK><NEW_LINE>input[0] = message.getInt(FLC_PARITY_2) ^ crcMask;<NEW_LINE>input[1] = message.getInt(FLC_PARITY_1) ^ crcMask;<NEW_LINE>input[2] = message.getInt(FLC_PARITY_0) ^ crcMask...
] output = new int[255];
1,814,360
protected void ExpandBuff(boolean wrapAround) {<NEW_LINE>char[] newbuffer = new char[bufsize + 2048];<NEW_LINE>int[] newbufline = new int[bufsize + 2048];<NEW_LINE>int[] newbufcolumn = new int[bufsize + 2048];<NEW_LINE>try {<NEW_LINE>if (wrapAround) {<NEW_LINE>System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize ...
newbuffer, bufsize - tokenBegin, bufpos);
139,711
public void intersectAndAddInPlace(Tensor other, DoubleUnaryOperator f) {<NEW_LINE>double shrinkage = scaleShrinking ? 1.0 - (<MASK><NEW_LINE>scaleInPlace(shrinkage);<NEW_LINE>SGDVector otherVec = (SGDVector) other;<NEW_LINE>for (VectorTuple tuple : otherVec) {<NEW_LINE>double update = f.applyAsDouble(tuple.value);<NEW...
baseRate / iteration) : 1.0 - baseRate;
1,484,624
private List<CppModuleMap> collectModuleMaps() {<NEW_LINE>ImmutableList.Builder<CppModuleMap> builder = ImmutableList.<CppModuleMap>builder();<NEW_LINE>// TODO(bazel-team): Here we use the implementationDeps to build the dependents of this rule's<NEW_LINE>// module map. This is technically incorrect for the following r...
.getCcCompilationContext().getCppModuleMap();
1,384,345
public MarkupDocBuilder tableWithColumnSpecs(List<MarkupTableColumn> columnSpecs, List<List<String>> cells) {<NEW_LINE>Validate.notEmpty(cells, "cells must not be null");<NEW_LINE>documentBuilder.append(newLine);<NEW_LINE>if (columnSpecs != null && !columnSpecs.isEmpty()) {<NEW_LINE>documentBuilder.append("||");<NEW_LI...
).append(ConfluenceMarkup.TABLE_COLUMN_DELIMITER);
760,708
public long[] transformToLongValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>// When casting to types other than LONG, need to first read as the result type then convert to long values<NEW_LINE>DataType resultStoredType = _resultMetadata.getDataType().getStoredType();<NEW_LINE>if (resultStoredType == DataType.LONG...
stringValues = _transformFunction.transformToStringValuesSV(projectionBlock);
617,359
public void initialize() {<NEW_LINE>setLayout(new GridLayout(5, false));<NEW_LINE>Label ipPrototypeLabel = new Label(this, SWT.NONE);<NEW_LINE>ipPrototypeText = new Text(this, SWT.BORDER);<NEW_LINE>Label ipMaskLabel = new Label(this, SWT.NONE);<NEW_LINE>ipMaskCombo = new Combo(this, SWT.NONE);<NEW_LINE>Label hostnameLa...
Label(this, SWT.NONE);
1,724,573
private Result process(EndpointResult endpointResult, int clusterId) {<NEW_LINE>Result result;<NEW_LINE>Document blockedDocumentToSend = null;<NEW_LINE>synchronized (monitor) {<NEW_LINE>if (!docSendInfoByOperationId.containsKey(endpointResult.getOperationId())) {<NEW_LINE>log.finer("Received out-of-order or too late re...
get(endpointResult.getOperationId());
320,959
public void marshall(BatchSegmentJob batchSegmentJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (batchSegmentJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(batchSegmentJob.getJobName(), JOBNAME_B...
batchSegmentJob.getStatus(), STATUS_BINDING);
201,017
public void handleCloseElementEnd(final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) throws ParseException {<NEW_LINE>final String elementCompleteName = new String(buffer, nameOffset, nameLen);<NEW_LINE>final ElementDefinition elementDefinition = this.elementDefinitions.forName...
0) + this.currentElementCol));
1,773,085
public void handleEvent(@NonNull final DDOrderDocStatusChangedEvent ddOrderChangedDocStatusEvent) {<NEW_LINE>final List<Candidate> candidatesForDDOrderId = DDOrderUtil.retrieveCandidatesForDDOrderId(candidateRepositoryRetrieval, ddOrderChangedDocStatusEvent.getDdOrderId());<NEW_LINE>Check.errorIf(candidatesForDDOrderId...
updatedCandidatesToPersist = new ArrayList<>();
1,470,109
protected void configureTable() {<NEW_LINE>commitColumn_ = new Column<StatusAndPath, Boolean>(new TriStateCheckboxCell<>(selectionModel_)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Boolean getValue(StatusAndPath object) {<NEW_LINE>return selected_.containsKey(object.getPath()) && selected_.get(object.getPath());<N...
commitColumn_.setHorizontalAlignment(Column.ALIGN_CENTER);