idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,093,354
public void run(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>sendTimer(env, 1000);<NEW_LINE>String text = "@name('s0') select * from " + RuntimeMetric.class.getName();<NEW_LINE>env.compileDeploy(text).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBean());<NEW_LINE>sendTimer(env, 10999);<NEW...
fields = "runtimeURI,timestamp,inputCount,inputCountDelta,scheduleDepth".split(",");
754,091
private void saveBPartnerLocation(@NonNull final BPartnerLocationSaveRequest request) {<NEW_LINE>final BPartnerLocation partnerLocation = request.getLocation();<NEW_LINE>final BPartnerLocationId partnerLocationId = partnerLocation.getId();<NEW_LINE>final OrgId orgId = request.getOrgId();<NEW_LINE>final boolean validate...
setIsReplicationLookupDefault(partnerLocation.isReplicationLookupDefault());
921,093
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>String name = para[i].getParameterName();<NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("C_AcctSchema_ID"))<NEW_LINE>p_C_AcctSchema_ID = ((B...
[i].getParameter());
737,593
public static boolean isTagManagedInFollowingTab(ReaderTag tag, boolean isTopLevelReader, FilteredRecyclerView recyclerView) {<NEW_LINE>if (isTopLevelReader) {<NEW_LINE>if (ReaderUtils.isDefaultInMemoryTag(tag)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>boolean isSpecialTag = tag != null && (tag.isDiscover() || tag.i...
!= null && tag.isFollowedSites();
1,046,532
public ExecutionPlan build(PlannerContext plannerContext, Set<PlanHint> planHints, ProjectionBuilder projectionBuilder, int limit, int offset, @Nullable OrderBy order, @Nullable Integer pageSizeHint, Row params, SubQueryResults subQueryResults) {<NEW_LINE>ExecutionPlan plan = source.build(plannerContext, planHints, pro...
of(this.orderBy, outputs);
1,619,687
private static ValueBoolean bitGet(Value v1, Value v2) {<NEW_LINE>long offset = v2.getLong();<NEW_LINE>boolean b;<NEW_LINE>if (offset >= 0L) {<NEW_LINE>switch(v1.getValueType()) {<NEW_LINE>case Value.BINARY:<NEW_LINE>case Value.VARBINARY:<NEW_LINE>{<NEW_LINE>byte[] bytes = v1.getBytesNoCopy();<NEW_LINE>int bit = (int) ...
(1 << offset)) != 0;
458,891
public TargetGraphResults prepareTargetGraph(int[] targets, CHGraph chGraph, Graph graph, FlagEncoder encoder, boolean swap, int coreNodeLevel) {<NEW_LINE>PriorityQueue<Integer> localPrioQueue = new PriorityQueue<>(100);<NEW_LINE>ExclusiveDownwardSearchEdgeFilter downwardEdgeFilter = new ExclusiveDownwardSearchEdgeFilt...
.nodeCount = chGraph.getNodes();
1,181,217
public static DMatrixRMaj invertCalibrationMatrix(DMatrixRMaj K, @Nullable DMatrixRMaj K_inv) {<NEW_LINE>BoofMiscOps.checkEq(3, K.numCols);<NEW_LINE>BoofMiscOps.checkEq(3, K.numRows);<NEW_LINE>if (K_inv == null)<NEW_LINE>K_inv = new DMatrixRMaj(3, 3);<NEW_LINE>double fx = K.unsafe_get(0, 0);<NEW_LINE>double fy = K.unsa...
K.unsafe_get(0, 2);
1,095,959
public void clear(Range<Long> span, AddressRange range, boolean clearContext, TaskMonitor monitor) throws CancelledException {<NEW_LINE>long startSnap = DBTraceUtils.lowerEndpoint(span);<NEW_LINE>try (LockHold hold = LockHold.lock(space.lock.writeLock())) {<NEW_LINE>cacheForContaining.invalidate();<NEW_LINE>cacheForSeq...
), unit.getRange());
1,533,864
public JUnitResult build(List<Pair<TestIdentifier, TestExecutionResult>> results) {<NEW_LINE>boolean wasSuccessful = results.stream().map(Pair::getRight).noneMatch(r -> r.getStatus() != TestExecutionResult.Status.SUCCESSFUL);<NEW_LINE>int failureCount = (int) results.stream().map(Pair::getRight).filter(r -> r.getStatus...
collect(Collectors.toList());
1,688,489
public void onContainersAllocated(List<Container> containers) {<NEW_LINE>LOG.info("Allocated: " + containers.size() + " containers.");<NEW_LINE>for (Container container : containers) {<NEW_LINE>// Need to explicitly remove container requests from remoteRequestsTable in AMRMClient, otherwise<NEW_LINE>// resources get do...
ArrayList<>())));
1,854,767
public void testCreateAndCancel() {<NEW_LINE>TimerService ts = ivContext.getTimerService();<NEW_LINE>Timer timer = null;<NEW_LINE>svLogger.logp(Level.INFO, CLASSNAME, "", "testCreateAndCancel()");<NEW_LINE>svLogger.logp(Level.INFO, CLASSNAME, "", "Verify the cancelled timer cannot be found in the timer service.");<NEW_...
INFO, CLASSNAME, "", "The timer should not be found.");
310,461
private Response captureAuthorizationInternal(final PaymentTransactionJson json, @Nullable final UUID paymentId, final List<String> paymentControlPluginNames, final List<String> pluginPropertiesString, final String createdBy, final String reason, final String comment, final UriInfo uriInfo, final HttpServletRequest req...
initialPayment.getAccountId(), callContext);
277,516
private void fillDimensionsFromCombination() {<NEW_LINE>if (getC_ValidCombination_ID() > 0) {<NEW_LINE>MAccount account = new MAccount(getCtx(), getC_ValidCombination_ID(), get_TrxName());<NEW_LINE>setAD_Org_ID(account.getAD_Org_ID());<NEW_LINE>setAccount_ID(account.getAccount_ID());<NEW_LINE>setC_SubAcct_ID(account.ge...
setC_Campaign_ID(account.getC_Campaign_ID());
1,606,069
protected void drawLeftPen(Graphics2D grx, JRPen topPen, JRPen leftPen, JRPen bottomPen, JRPrintElement element, int offsetX, int offsetY) {<NEW_LINE>Stroke leftStroke = JRPenUtil.getStroke(leftPen, BasicStroke.CAP_BUTT);<NEW_LINE>int height = element.getHeight();<NEW_LINE>float topOffset = topPen.getLineWidth() / 2;<N...
float leftPenWidth = leftPen.getLineWidth();
576,627
public static QueryIterator execTriplePath(Binding binding, Node s, Path path, Node o, ExecutionContext execCxt) {<NEW_LINE>Explain.explain(s, path, o, execCxt.getContext());<NEW_LINE>s = Var.lookup(binding, s);<NEW_LINE>o = <MASK><NEW_LINE>Iterator<Node> iter = null;<NEW_LINE>Node endNode = null;<NEW_LINE>Graph graph ...
Var.lookup(binding, o);
238,107
protected String doIt() throws Exception {<NEW_LINE>MClientInfo clientInfo = MClientInfo.get(getCtx(), getAD_Client_ID());<NEW_LINE><MASK><NEW_LINE>MTree thisTree = new MTree(getCtx(), AD_Tree_ID, true, true, null, get_TrxName());<NEW_LINE>MTreeNode node;<NEW_LINE>if (menuId > 0) {<NEW_LINE>node = thisTree.getRoot().fi...
int AD_Tree_ID = clientInfo.getAD_Tree_Menu_ID();
1,299,735
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int costX = player.announceXMana(0, Integer.<MASK><NEW_LINE>String manaString;<NEW_LINE>if (costX == 0) {<NEW_LINE>manaString = "...
MAX_VALUE, "Announce the value for {X}", game, source);
737,544
final CreateGroupResult executeCreateGroup(CreateGroupRequest createGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,559,819
private void doInitializeParserUI(HttpServletRequest request, HttpServletResponse response, Properties parameters) throws ServletException, IOException {<NEW_LINE>String token = TokenCookie.getToken(request);<NEW_LINE>String type = parameters.getProperty("docType");<NEW_LINE>String urlString = parameters.getProperty("d...
safePut(options, "headerLines", 1);
1,146,619
public static DescribeExposedInstanceListResponse unmarshall(DescribeExposedInstanceListResponse describeExposedInstanceListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExposedInstanceListResponse.setRequestId(_ctx.stringValue("DescribeExposedInstanceListResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new...
("DescribeExposedInstanceListResponse.ExposedInstances[" + i + "].LaterVulCount"));
1,044,491
final CreateAnalyzerResult executeCreateAnalyzer(CreateAnalyzerRequest createAnalyzerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAnalyzerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,369,644
public void removeDocumentElement(DocumentElement de, boolean removeAllItsDescendants) throws DocumentModelTransactionCancelledException {<NEW_LINE>// test if the transaction has been cancelled and if co throw TransactionCancelledException<NEW_LINE>if (transactionCancelled)<NEW_LINE>throw new DocumentModelTransactionCa...
(DocumentElement) childrenIterator.next();
1,334,265
// This method should be invoked with duplicates of dst/src Buffers<NEW_LINE>public void rgbFromBuffer(ByteBuffer dst, ByteBuffer src, int w, int stride, int h) {<NEW_LINE>if (is888()) {<NEW_LINE>// Optimised common case<NEW_LINE>int r, g, b;<NEW_LINE>if (bigEndian) {<NEW_LINE>r = src.position() <MASK><NEW_LINE>g = src...
+ (24 - redShift) / 8;
855,331
public static OnsMessagePageQueryByTopicResponse unmarshall(OnsMessagePageQueryByTopicResponse onsMessagePageQueryByTopicResponse, UnmarshallerContext _ctx) {<NEW_LINE>onsMessagePageQueryByTopicResponse.setRequestId(_ctx.stringValue("OnsMessagePageQueryByTopicResponse.RequestId"));<NEW_LINE>onsMessagePageQueryByTopicRe...
+ "].PropertyList[" + j + "].Value"));
86,548
public void deactivated(Logger uiLogger) {<NEW_LINE>List<ModuleInfo> enabled = new ArrayList<ModuleInfo>();<NEW_LINE>List<ModuleInfo> disabled = new ArrayList<ModuleInfo>();<NEW_LINE>for (ModuleInfo m : Lookup.getDefault().lookupAll(ModuleInfo.class)) {<NEW_LINE>if (m.isEnabled()) {<NEW_LINE>enabled.add(m);<NEW_LINE>} ...
.getBundle(EnabledModulesCollector.class));
469,713
public static SectionPdfPTable createLayoutTable(float width, float height, List<StyleColumnProperties> columnPropertiesList) {<NEW_LINE>// create one row table which will layout section text<NEW_LINE>int colCount = columnPropertiesList.size();<NEW_LINE>int[] relativeWidths = new int[colCount];<NEW_LINE>SectionPdfPTabl...
>= 0.0f ? height : -1.0f);
1,652,680
public org.apache.drill.exec.proto.UserProtos.GetSchemasResp buildPartial() {<NEW_LINE>org.apache.drill.exec.proto.UserProtos.GetSchemasResp result = new org.apache.drill.exec.proto.UserProtos.GetSchemasResp(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_...
.schemas_ = schemasBuilder_.build();
551,473
private void editIgnores() {<NEW_LINE>try {<NEW_LINE>File ignoreFile = new File(mFolder.path, IGNORE_FILE_NAME);<NEW_LINE>if (!ignoreFile.exists() && !ignoreFile.createNewFile()) {<NEW_LINE>Toast.makeText(this, R.string.create_ignore_file_error, Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Intent in...
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
1,673,350
private String generateIntFieldAccessor(int fieldNum) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>String fieldName = substituteInvalidChars(objectSchema.getFieldName(fieldNum));<NEW_LINE>builder.append(" public int get").append(uppercase(<MASK><NEW_LINE>builder.append(" if(fieldIndex[" + ...
fieldName)).append("(int ordinal) {\n");
1,356,908
public void scan(final byte[] startKey, final byte[] endKey, final int limit, @SuppressWarnings("unused") final boolean readOnlySafe, final boolean returnValue, final KVStoreClosure closure) {<NEW_LINE>final Timer.Context timeCtx = getTimeContext("SCAN");<NEW_LINE>final List<KVEntry<MASK><NEW_LINE>final int maxCount = ...
> entries = Lists.newArrayList();
897,521
StatementClient startQuery(String sql, Map<String, String> sessionPropertiesOverride) {<NEW_LINE>String source = getActualSource();<NEW_LINE>Iterable<String> clientTags = Splitter.on(',').trimResults().omitEmptyStrings().split(nullToEmpty(clientInfo.get(CLIENT_TAGS)));<NEW_LINE>Map<String, String> allProperties = new H...
get(), timeout, compressionDisabled);
84,119
public void onChunkExecStateChanged(ChunkExecStateChangedEvent event) {<NEW_LINE>if (queue_ == null || event.getDocId() != queue_.getDocId())<NEW_LINE>return;<NEW_LINE>switch(event.getExecState()) {<NEW_LINE>case NotebookDocQueue.CHUNK_EXEC_STARTED:<NEW_LINE>// find the unit<NEW_LINE>executingUnit_ = getUnit(event.getC...
removeUnit(event.getChunkId());
1,806,113
private static void drawBorder(Graphics2D g, int x, int y, int width, int height, Insets insets) {<NEW_LINE>if (insets.top == 1) {<NEW_LINE>LinePainter2D.paint(g, x, y, x + width, y);<NEW_LINE>}<NEW_LINE>if (insets.right == 1) {<NEW_LINE>LinePainter2D.paint(g, x + width - 1, y, x + width - 1, y + height);<NEW_LINE>}<NE...
g.setColor(Gray._85);
885,674
public OTransactionResultPayload firstPhaseDDL(String query, OTransactionId preChangeId, OTransactionId afterChangeId, ODistributedRequestId requestId) {<NEW_LINE>ODistributedDatabase localDistributedDatabase = getDistributedShared();<NEW_LINE>ODDLContextImpl ddlContext = new ODDLContextImpl(<MASK><NEW_LINE>ValidationR...
query, preChangeId, afterChangeId, requestId);
1,583,061
/*<NEW_LINE>* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuffer)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public StringBuffer print(int indent, StringBuffer output) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>printIndent(indent, output).append("/**\n");<NEW_LINE>if (this.paramReferences != null...
, output).append(" */\n");
491,029
public TriggerStatus selectTriggerStatus(Connection conn, String triggerName, String groupName) throws SQLException {<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>TriggerStatus status = null;<NEW_LINE>ps = conn.prepareStatement(rtp<MASK><NEW_LINE>ps.setString(1, triggerNam...
(SELECT_TRIGGER_STATUS.toLowerCase()));
241,548
private void handleLaunchingIntent(final Intent intent) {<NEW_LINE>if (intent == null)<NEW_LINE>return;<NEW_LINE>String intentAction = intent.getAction();<NEW_LINE>Uri intentData = intent.getData();<NEW_LINE>File file = (File) intent.getSerializableExtra(Document.EXTRA_PATH);<NEW_LINE>boolean intentIsView = Intent.ACTI...
Intent.ACTION_SEND.equals(intentAction);
1,041,502
private void signIn(String email, String password) {<NEW_LINE>// [START sign_in_with_email]<NEW_LINE>mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onComplete(@NonNull Task<AuthResult> task) {<NEW_LIN...
FirebaseUser user = mAuth.getCurrentUser();
271,525
protected void encodeOptions(FacesContext context, Chart chart) throws IOException {<NEW_LINE>super.encodeOptions(context, chart);<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>PieChartModel model = (PieChartModel) chart.getModel();<NEW_LINE>int diameter = model.getDiameter();<NEW_LINE>int slic...
String datatipEditor = model.getDatatipEditor();
225,014
private void meetingEnded(MeetingEnded message) {<NEW_LINE>Meeting m = getMeeting(message.meetingId);<NEW_LINE>if (m != null) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>m.setEndTime(now);<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE>logData.put("meetingId", m.getInternalId());<NEW_LI...
logData.put("logCode", "meeting_ended");
296,658
// Writes a .SF file with a digest to the manifest.<NEW_LINE>private static void writeSignatureFile(SignatureOutputStream out, Manifest manifest) throws IOException, GeneralSecurityException {<NEW_LINE>Manifest sf = new Manifest();<NEW_LINE>Attributes main = sf.getMainAttributes();<NEW_LINE>main.putValue("Signature-Ver...
main.putValue("Created-By", "1.0 (Android)");
918,864
public void putCustomMetadataAttributes(final String tempResourceId, final Map<String, Map<String, Serializable>> customAttributesByField) throws DotDataException {<NEW_LINE>final String metadataBucketName = Config.getStringProperty(METADATA_GROUP_NAME, DOT_METADATA);<NEW_LINE>customAttributesByField.forEach((fieldName...
final String tempResourcePath = tempResourcePath(tempResourceId);
832,890
public ProvisionPermissionSetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ProvisionPermissionSetResult provisionPermissionSetResult = new ProvisionPermissionSetResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
int originalDepth = context.getCurrentDepth();
718,412
public static LatLon rhumbDestinationPoint(LatLon latLon, double distance, double bearing) {<NEW_LINE>double radius = EARTH_RADIUS_A;<NEW_LINE>// angular distance in radians<NEW_LINE>double d = distance / radius;<NEW_LINE>double phi1 = Math.toRadians(latLon.getLatitude());<NEW_LINE>double lambda1 = Math.toRadians(latLo...
, Math.toDegrees(lambda2));
614,264
private Object execute(String command, String rawLine, String[] args) throws Exception {<NEW_LINE>if (!parser.validCommandName(command)) {<NEW_LINE>throw new UnknownCommandException("Invalid command: " + rawLine);<NEW_LINE>}<NEW_LINE>Object out;<NEW_LINE>if (isLocalCommand(command)) {<NEW_LINE>out = localExecute(comman...
).expandParameters(args) : args;
754,705
public void initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) {<NEW_LINE>this.info = info;<NEW_LINE>if (cipherAlgorithm == null) {<NEW_LINE>cipherAlgorithm = CipherAlgorithm.aes128;<NEW_LINE>}<NEW_LINE>if (cipherAlgorithm...
" not allowed for Cipher " + cipherAlgorithm.toString());
1,422,598
public final void predefinedValue() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST predefinedValue_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case LITERAL_nil:<NEW_LINE>{<NEW_LINE>AST tmp274_AST = null;<NEW_LINE>tmp274_AST = as...
astFactory.addASTChild(currentAST, tmp276_AST);
1,734,682
private Properties readProperties(MiniDumpReader dump, int imageSize, int checksum, int timeDateStamp) throws IOException {<NEW_LINE>int versionInfoDwSignature = dump.readInt();<NEW_LINE>// versionInfoDwStrucVersion<NEW_LINE>int versionInfoDwStrucVersion = dump.readInt();<NEW_LINE>// versionInfoDwFileVersionMS<NEW_LINE...
, Integer.toHexString(versionInfoDwFileVersionLS));
1,502,290
public String template(Cursor cursor, String template) {<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>return Timer.builder("rewrite.template.generate.statement").register(Metrics.globalRegistry).record(() -> {<NEW_LINE>StringBuilder before = new StringBuilder();<NEW_LINE>StringBuilder after = new StringBuilder(...
+ "*/" + template + "\n" + after;
733,123
private void initUserComponents(SectionNodeView sectionNodeView) {<NEW_LINE>SunDescriptorDataObject dataObject = (SunDescriptorDataObject) sectionNodeView.getDataObject();<NEW_LINE>this.synchronizer = dataObject.getModelSynchronizer();<NEW_LINE>this.isWebApp = J2eeModule.Type.WAR.equals(dataObject.getModuleType());<NEW...
getBinding().isBound());
1,403,770
private boolean validateParentNumber(BlockHeader uncle, long blockNumber) {<NEW_LINE>boolean isSiblingOrDescendant = uncle.getNumber() >= blockNumber;<NEW_LINE>if (isSiblingOrDescendant) {<NEW_LINE>logger.error("Uncle is sibling or descendant");<NEW_LINE>panicProcessor.panic(INVALIDUNCLE, "Uncle is sibling or descendan...
1 >= (blockNumber - uncleGenerationLimit));
1,121,374
private RequestPartitionId validateAndNormalizePartitionNames(RequestPartitionId theRequestPartitionId) {<NEW_LINE>List<Integer> ids = null;<NEW_LINE>for (int i = 0; i < theRequestPartitionId.getPartitionNames().size(); i++) {<NEW_LINE>PartitionEntity partition;<NEW_LINE>try {<NEW_LINE>partition = myPartitionConfigSvc....
null, "Partition %s must not have an ID", JpaConstants.DEFAULT_PARTITION_NAME);
1,470,495
public void marshall(RegisterUserRequest registerUserRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (registerUserRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(registerUserRequest.getIden...
registerUserRequest.getCustomFederationProviderUrl(), CUSTOMFEDERATIONPROVIDERURL_BINDING);
1,297,472
private void signJar(File jarFile) throws MojoExecutionException {<NEW_LINE>List<String> command = new ArrayList<>();<NEW_LINE>command.add(getEnvironmentRelativeExecutablePath() + "jarsigner");<NEW_LINE>// check is required for non-file keystores, see #291<NEW_LINE>AtomicBoolean containsKeystore = new AtomicBoolean(fal...
jarFile.getAbsolutePath(), ex);
575,922
public static String fillTextBox(TextPaint paint, int fragmentWidth, String source, int start) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>final int length = source.length();<NEW_LINE>int indexLeft = start;<NEW_LINE>int indexRight = start + 1;<NEW_LINE>int lastWhiteSpaceL = 0;<NEW_LINE>int lastWhiteSpac...
sb.insert(0, c);
430,545
protected ExecutableDdlJob doCreate() {<NEW_LINE>final TableMeta primaryTableMeta = OptimizerContext.getContext(schemaName).getLatestSchemaManager().getTable(primaryTableName);<NEW_LINE>checkLocalPartitionColumnInUk(primaryTableMeta);<NEW_LINE>List<TableMeta> gsiList = GlobalIndexMeta.getIndex(primaryTableName, schemaN...
new RemoveLocalPartitionTask(schemaName, primaryTableName));
1,502,650
public CubaEditorField<?> createField(E bean, Grid.Column<E, ?> gridColumn) {<NEW_LINE>ColumnImpl<E> column = dataGrid.getColumnByGridColumn(gridColumn);<NEW_LINE>if (column == null || !column.isShouldBeEditable()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Field columnComponent;<NEW_LINE>if (column.getEditFieldGenera...
getEditFieldGenerator().apply(context);
867,381
public static GetProjectTaskInfoResponse unmarshall(GetProjectTaskInfoResponse getProjectTaskInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>getProjectTaskInfoResponse.setRequestId(_ctx.stringValue("GetProjectTaskInfoResponse.RequestId"));<NEW_LINE>getProjectTaskInfoResponse.setSuccessful(_ctx.booleanValue("GetProje...
(_ctx.stringValue("GetProjectTaskInfoResponse.Object.CreatorId"));
454,024
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, Class clazz) {<NEW_LINE>final ConstantPoolGen cpg = classGen.getConstantPool();<NEW_LINE>final InstructionList il = methodGen.getInstructionList();<NEW_LINE>String className = clazz.getName();<NEW_LINE>if (className.equals("java.lang.String")) ...
new INVOKEINTERFACE(index, 2));
1,354,020
private void suggestViaLexerTransition(String tokenSoFar, String remainingText, Transition trans) {<NEW_LINE>if (trans.isEpsilon()) {<NEW_LINE>suggest(<MASK><NEW_LINE>} else if (trans instanceof AtomTransition) {<NEW_LINE>String newTokenChar = getAddedTextFor((AtomTransition) trans);<NEW_LINE>if (remainingText.isEmpty(...
tokenSoFar, trans.target, remainingText);
17,975
private void swt_visibleRowsChanged() {<NEW_LINE>final List<TableRowSWT> newlyVisibleRows = new ArrayList<>();<NEW_LINE>final List<TableRowSWT> nowInVisibleRows;<NEW_LINE>final ArrayList<TableRowSWT> <MASK><NEW_LINE>List<TableRowSWT> newVisibleRows;<NEW_LINE>if (isVisible()) {<NEW_LINE>// this makes a copy.. slower<NEW...
rowsStayedVisibleButMoved = new ArrayList<>();
396,722
private void sortRanges(List<int[]> fpsRanges) {<NEW_LINE>if (getPreviewFrameRateExact() && mPreviewFrameRate != 0F) {<NEW_LINE>// sort by range width in ascending order<NEW_LINE>Collections.sort(fpsRanges, new Comparator<int[]>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(int[] range1, int[] range2) {<...
1] - range1[0]);
747,470
public void draw(GenericCrafterBuild build) {<NEW_LINE>float rotation = build.block.rotate <MASK><NEW_LINE>Draw.rect(bottom, build.x, build.y, rotation);<NEW_LINE>if ((inLiquid.found() || useOutputSprite) && build.block.consumes.has(ConsumeType.liquid)) {<NEW_LINE>Liquid input = build.block.consumes.<ConsumeLiquid>get(...
? build.rotdeg() : 0;
579,897
private static List<CPE> createCpes(Set<String> systemLibs, IJavaProject javaProject, IClasspathEntry entry) throws MalformedURLException, JavaModelException {<NEW_LINE>String kind = toContentKind(entry);<NEW_LINE>switch(kind) {<NEW_LINE>case Classpath.ENTRY_KIND_BINARY:<NEW_LINE>{<NEW_LINE>String path = entry.getPath(...
setTest(entry.isTest());
104,645
public void draw(IDisplayableCastingRecipe recipe, IRecipeSlotsView recipeSlotsView, PoseStack matrixStack, double mouseX, double mouseY) {<NEW_LINE>cachedArrows.getUnchecked(Math.max(1, recipe.getCoolingTime())).draw(matrixStack, 58, 18);<NEW_LINE>block.draw(matrixStack, 38, 35);<NEW_LINE>if (recipe.hasCast()) {<NEW_L...
I18n.get(KEY_COOLING_TIME, coolingTime);
779,890
public void process(SceneStructureMetric scene, StereoPairGraph pairs) {<NEW_LINE>initializeListener();<NEW_LINE>// Go through each view and compute score for use as a common / "left" stereo image<NEW_LINE>initializeScores(scene, pairs);<NEW_LINE>scoreViewsSelectStereoPairs(scene);<NEW_LINE>// Initialize data structure...
center.relations.id + "'");
857,737
static org.batfish.datamodel.eigrp.EigrpProcess toEigrpProcess(EigrpProcess proc, String vrfName, Configuration c, CiscoXrConfiguration oldConfig) {<NEW_LINE>org.batfish.datamodel.eigrp.EigrpProcess.Builder newProcess = org.batfish.datamodel.eigrp.EigrpProcess.builder().setMetricVersion(/* TODO: investigate XR metric. ...
setMode(proc.getMode());
1,693,442
public void writeExternal(Element rootElement) {<NEW_LINE>checkDisposed();<NEW_LINE>Element element = new Element(ELEMENT);<NEW_LINE>if (myName != null) {<NEW_LINE>element.setAttribute(LIBRARY_NAME_ATTR, myName);<NEW_LINE>}<NEW_LINE>if (myKind != null) {<NEW_LINE>element.setAttribute(LIBRARY_TYPE_ATTR, myKind.getKindId...
Element(rootType.name());
467,700
public TransformationStatus transform(TransformWork work) throws IOException, ValidationException, RepoException {<NEW_LINE>List<Transformation> transformationList = getTransformations();<NEW_LINE>boolean someTransformWasSuccess = false;<NEW_LINE>for (int i = 0; i < transformationList.size(); i++) {<NEW_LINE>// Only ch...
.format("%s was a no-op because all wrapped transforms were no-ops", this));
1,385,689
private void loadPresets() {<NEW_LINE>int alpha = Color.alpha(color);<NEW_LINE>presets = <MASK><NEW_LINE>if (presets == null)<NEW_LINE>presets = MATERIAL_COLORS;<NEW_LINE>boolean isMaterialColors = presets == MATERIAL_COLORS;<NEW_LINE>// don't update the original array when modifying alpha<NEW_LINE>presets = Arrays.cop...
getArguments().getIntArray(ARG_PRESETS);
902,074
public void draw(UnifiedImageBuilder<?> imageBdr, int x, int y, float displayFactor) {<NEW_LINE>int dsize = <MASK><NEW_LINE>int offset = Math.round(size * displayFactor / 2f);<NEW_LINE>x -= offset;<NEW_LINE>y -= offset;<NEW_LINE>imageBdr.setColor(fillColor);<NEW_LINE>imageBdr.setLineStyle(false, displayFactor);<NEW_LIN...
Math.round(size * displayFactor);
545,880
public void updateMissingPaymentTermIds(final PInstanceId selectionId) {<NEW_LINE>final PInstanceId selectionToUpdateId = retrieveIcsToUpdateSelectionId(selectionId);<NEW_LINE>if (selectionToUpdateId == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (paymentTermId == null) {<NEW_LINE>return;<NEW_LINE>}...
final PaymentTermId paymentTermId = retrievePaymentTermId(selectionId);
428,987
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(QueryGraphValueEntryCustomOperation.EPTYPE, this.getClass(), classScope);<NEW_LINE>method.getBlock().declareVar(EPTypePremade.MAP.getEPType(), "map", n...
.methodReturn(ref("op"));
524,072
private Mono<Response<CheckNameAvailabilityResponseInner>> checkNameAvailabilityWithResponseAsync(String locationName, CheckNameAvailabilityRequest parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,151,494
protected ResolveInfo newResult(VPackage.ActivityIntentInfo info, int match, int userId) {<NEW_LINE>final VPackage.ActivityComponent activity = info.activity;<NEW_LINE>PackageSetting ps = (PackageSetting) activity.owner.mExtras;<NEW_LINE>ActivityInfo ai = PackageParserEx.generateActivityInfo(activity, mFlags, ps.readUs...
.preferredOrder = activity.owner.mPreferredOrder;
1,525,038
public static void fitCannyEdges(GrayF32 input) {<NEW_LINE>BufferedImage displayImage = new BufferedImage(input.width, input.height, BufferedImage.TYPE_INT_RGB);<NEW_LINE>// Finds edges inside the image<NEW_LINE>CannyEdge<GrayF32, GrayF32> canny = FactoryEdgeDetectors.canny(2, true, true, GrayF32.class, GrayF32.class);...
(rand.nextInt()));
503,807
public void merge(MergeRequest request) {<NEW_LINE>EntityBean parentBean = request.getBean();<NEW_LINE>Collection <MASK><NEW_LINE>Collection outlines = many.rawCollection(request.getOutline());<NEW_LINE>Map<Object, EntityBean> outlineIds = toMap(outlines);<NEW_LINE>List<EntityBean> additions = new ArrayList<>();<NEW_LI...
beans = many.rawCollection(parentBean);
264,184
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBRICKLET_MULTI_TOUCH__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_LINE>case ModelPackage.MBRICKLET_MULTI_TOUCH__UID:<NEW_LINE>return UID_EDEFAULT == null ? uid != n...
: !IP_CONNECTION_EDEFAULT.equals(ipConnection);
1,687,217
final UpdateNotificationResult executeUpdateNotification(UpdateNotificationRequest updateNotificationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateNotificationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
invoke(request, responseHandler, executionContext);
1,746,816
public void batchPut(final KVStateOutputList kvStates) {<NEW_LINE>if (kvStates.isSingletonList()) {<NEW_LINE>final KVState kvState = kvStates.getSingletonElement();<NEW_LINE>final KVOperation op = kvState.getOp();<NEW_LINE>put(op.getKey(), op.getValue(), kvState.getDone());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Ti...
write(this.writeOptions, batch);
1,139,218
public <T> List<T> run(List<Supplier<T>> actions) {<NEW_LINE>assertCanQuery();<NEW_LINE>List<NestedAction<T>> wrappers = new ArrayList<>(actions.size());<NEW_LINE>for (Supplier<T> action : actions) {<NEW_LINE>wrappers.add(new NestedAction<>(action));<NEW_LINE>}<NEW_LINE>controller.runQueryModelActions(wrappers);<NEW_LI...
throw new MultipleBuildOperationFailures(failures, null);
1,752,937
public NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly) {<NEW_LINE>if (!isPackage(qualifiedPackageName, moduleName))<NEW_LINE>// most common case<NEW_LINE>return null;<NEW_LINE>try {<NEW_LINE>IBinaryType reader = Class...
, fetchAccessRestriction(qualifiedBinaryFileName), answerModuleName);
1,727,002
public JComponent createComponent() {<NEW_LINE>List<UnnamedConfigurable> configurables = getConfigurables();<NEW_LINE>Collection<HideableDecorator> hideableDecorators = ContainerUtil.newHashSet();<NEW_LINE>GridLayoutManager layoutManager = new GridLayoutManager(configurables.size() + 1, 1, new Insets(0, 0, 0, 0), -1, -...
((Configurable) configurable)));
1,779,575
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_ID, new ColumnMeta(COLUMN_ID, "varchar(64)", false, true));<NEW_LINE>columnsType.put(COLUMN_ID, Fields.FIELD_TYPE_VAR_STRING);<NEW_LINE>columns.put(COLUMN_NAME, new ColumnMeta(COLUMN_NAME, "varchar(64)", false));<NEW_LINE>columnsType.put(COLUMN_NAME, Fiel...
(COLUMN_TYPE, "varchar(10)", false));
407,734
static ArgumentBuilder<CommandSourceStack, ?> register() {<NEW_LINE>return // permission<NEW_LINE>Commands.literal("dimensions").// permission<NEW_LINE>requires(cs -> cs.hasPermission(0)).executes(ctx -> {<NEW_LINE>ctx.getSource().sendSuccess(new TranslatableComponent("commands.forge.dimensions.list"), true);<NEW_LINE>...
).registryOrThrow(Registry.DIMENSION_TYPE_REGISTRY);
1,413,081
private static void checkInputStream(@WillNotClose InputStream in) throws IOException {<NEW_LINE>if (!in.markSupported()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>byte[<MASK><NEW_LINE>in.mark(buf.length);<NEW_LINE>int numRead = 0;<NEW_LINE>boolean isEOF = false;<NEW_LINE>while (numRead < buf.length && !isEOF) {<NEW_LINE>...
] buf = new byte[200];
53,986
private static UnionEle merge(UnionEle left, UnionEle right, ReduceOP op) {<NEW_LINE>UnionEle res = new UnionEle();<NEW_LINE>switch(op) {<NEW_LINE>case Min:<NEW_LINE>res.setDouble1(Math.min(left.getDouble1(), right.getDouble1()));<NEW_LINE>res.setDouble2(Math.min(left.getDouble2(), right.getDouble2()));<NEW_LINE>res.se...
, right.getFloat2()));
166,531
public HollowBlobHeader readHeader(HollowBlobInput in) throws IOException {<NEW_LINE>HollowBlobHeader header = new HollowBlobHeader();<NEW_LINE>int headerVersion = in.readInt();<NEW_LINE>if (headerVersion != HollowBlobHeader.HOLLOW_BLOB_VERSION_HEADER) {<NEW_LINE>throw new IOException("The HollowBlob you are trying to ...
.setSchemas(readSchemas(in));
756,138
public static CreateResourceGroupResponse unmarshall(CreateResourceGroupResponse createResourceGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>createResourceGroupResponse.setRequestId(_ctx.stringValue("CreateResourceGroupResponse.RequestId"));<NEW_LINE>ResourceGroup resourceGroup = new ResourceGroup();<NEW_LINE>res...
(_ctx.stringValue("CreateResourceGroupResponse.ResourceGroup.AccountId"));
371,818
public static void main(final String[] args) {<NEW_LINE>final Option<Integer> o1 = some(7);<NEW_LINE>final Option<Integer> o2 = none();<NEW_LINE>final Option<Integer> o3 = some(8);<NEW_LINE>final Option<Integer> o4 = o1.filter(even);<NEW_LINE>final Option<Integer> o5 = o2.filter(even);<NEW_LINE>final Option<Integer> o6...
(intShow).println(o7);
1,685,323
public boolean surveil(int value, Ability source, Game game) {<NEW_LINE>GameEvent event = new GameEvent(GameEvent.EventType.SURVEIL, getId(), source, getId(), value, true);<NEW_LINE>if (game.replaceEvent(event)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>game.informPlayers(getLogName() + " surveils " + event.getAmoun...
cards, target, source, game);
244,153
final GetResourcePolicyResult executeGetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
false), new GetResourcePolicyResultJsonUnmarshaller());
1,821,331
public void menuSelected(MenuEvent event) {<NEW_LINE>Set<JMenuItem> unseen = new HashSet<>(itemMap.values());<NEW_LINE>for (final Editor editor : base.getEditors()) {<NEW_LINE>Sketch sketch = editor.getSketch();<NEW_LINE>JMenuItem item = itemMap.get(sketch);<NEW_LINE>if (item != null) {<NEW_LINE>unseen.remove(item);<NE...
String name = sketch.getName();
1,609,571
public boolean replace(K key, V oldValue, V newValue) {<NEW_LINE>requireNonNull(oldValue);<NEW_LINE>requireNonNull(newValue);<NEW_LINE>boolean[] done = { false };<NEW_LINE>boolean[] replaced = { false };<NEW_LINE>for (; ; ) {<NEW_LINE>CompletableFuture<V> future = delegate.getIfPresentQuietly(key);<NEW_LINE>if ((future...
CompletableFuture.completedFuture(newValue) : oldValueFuture;
301,806
public DocumentParameter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DocumentParameter documentParameter = new DocumentParameter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
1,717,995
/*<NEW_LINE>* Sensor is available<NEW_LINE>*/<NEW_LINE>// @SuppressWarnings("unused")<NEW_LINE>// public static boolean isAvailable(@SuppressWarnings("UnusedParameters") final Context context) {<NEW_LINE>// //Need trackerGPS or trackerPressure to determine this<NEW_LINE>// //GPS is mandatory<NEW_LINE>// return true;<NE...
()).GetAltitudeAdjust(context);
1,090,579
private int collapseGroup(int position) {<NEW_LINE>Object <MASK><NEW_LINE>if (null == item) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if (!(item instanceof GroupItem)) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if (!((GroupItem) item).isExpand()) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>int tempSize = showingDatas.size...
item = showingDatas.get(position);
1,635,869
public static String[] listFiles(File dir, Boolean includeSubDirs) throws IOException {<NEW_LINE>FileFilter fileFilter = new FileFilter() {<NEW_LINE><NEW_LINE>public boolean accept(File file) {<NEW_LINE>return file.isDirectory();<NEW_LINE>}<NEW_LINE>};<NEW_LINE>File[] subFolders = dir.listFiles(fileFilter);<NEW_LINE>Li...
= new ArrayList<String>();
713,197
private boolean findPersistent(IHttpRequestResponse baseRequestResponse, Attack paramGuess, String attackID, CircularFifoQueue<String> recentParams, ArrayList<String> currentParams, HashSet<String> alreadyReported) {<NEW_LINE>if (currentParams == null) {<NEW_LINE>currentParams = new ArrayList<>();<NEW_LINE>}<NEW_LINE>b...
, "High", "Firm", "Investigate"));