idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,824,246
public static DescribeAntChainContractProjectsResponse unmarshall(DescribeAntChainContractProjectsResponse describeAntChainContractProjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainContractProjectsResponse.setRequestId(_ctx.stringValue("DescribeAntChainContractProjectsResponse.RequestId"));<NEW_LIN...
(_ctx.integerValue("DescribeAntChainContractProjectsResponse.Result.Pagination.TotalCount"));
1,744,626
private FileEntry readEntry(final BufferedReader reader) throws IOException {<NEW_LINE>final String name = reader.readLine();<NEW_LINE>if (name != null) {<NEW_LINE>final <MASK><NEW_LINE>final boolean directory = Boolean.parseBoolean(reader.readLine());<NEW_LINE>if (directory) {<NEW_LINE>final boolean empty = Boolean.pa...
File file = new File(name);
933,906
// auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>public <T> void visitCtConstructor(final spoon.reflect.declaration.CtConstructor<T> c) {<NEW_LINE>spoon.reflect.declaration.CtConstructor<T> aCtConstructor = c.getFactory().Core().createConstructor();<NEW_LINE>this.builder.copy(c, aCtConstructor);<N...
(c.getParameters()));
8,904
private Value emitCompareAndSwap(boolean isLogic, LIRKind accessKind, Value address, Value expectedValue, Value newValue, Value trueValue, Value falseValue) {<NEW_LINE>ValueKind<?<MASK><NEW_LINE>assert kind.equals(expectedValue.getValueKind());<NEW_LINE>AMD64AddressValue addressValue = asAddressValue(address);<NEW_LINE...
> kind = newValue.getValueKind();
812,688
public void loadImages() {<NEW_LINE>// gameplay-specific images<NEW_LINE>if (isGameplay()) {<NEW_LINE>// combo burst images<NEW_LINE>if (GameImage.COMBO_BURST.hasBeatmapSkinImages() || (!GameImage.COMBO_BURST.hasBeatmapSkinImage() && GameImage.COMBO_BURST.getImages() != null))<NEW_LINE>comboBurstImages = GameImage.COMB...
GameImage.SCORE_DOT.getImage());
1,437,087
public static void main(String[] args) {<NEW_LINE>if (args.length < minArgs) {<NEW_LINE>System.out.println(usage.toString());<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>TreebankLangParserParams tlpp = new EnglishTreebankParserParams();<NEW_LINE>DiskTreebank tb = null;<NEW_LINE>String encoding = "UTF-8";<NEW_LINE>Tre...
toString().trim());
362,682
public void read(org.apache.thrift.protocol.TProtocol iprot, add_filter_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TType.STOP...
apache.thrift.protocol.TField schemeField;
422,368
public Object execute(Object iThis, final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParams, OCommandContext iContext) {<NEW_LINE>Object value = iParams[0];<NEW_LINE>if (value instanceof OSQLFilterItemVariable)<NEW_LINE>value = ((OSQLFilterItemVariable) value).getValue(iCurrentRecord, iCurrent...
Collection) value).iterator();
1,849,831
public void analyze(Program program) {<NEW_LINE>Graph cfg = ProgramUtils.buildControlFlowGraph(program);<NEW_LINE>Graph dom = GraphUtils.buildDominatorGraph(GraphUtils.buildDominatorTree(cfg), cfg.size());<NEW_LINE>DefinitionExtractor defExtractor = new DefinitionExtractor();<NEW_LINE>UsageExtractor useExtractor = new ...
().getIndex()]++;
1,119,106
protected PortalInfo findDimensionEntryPoint(ServerLevel level) {<NEW_LINE>PortalInfo portalinfo = super.findDimensionEntryPoint(level);<NEW_LINE>level = portalinfo == null || ((PortalInfoBridge) portalinfo).bridge$getWorld() == null ? level : ((PortalInfoBridge) portalinfo).bridge$getWorld();<NEW_LINE>if (portalinfo !...
Vec3.ZERO, 90.0F, 0.0F);
1,486,622
public List<ImageResults> computeErrors() {<NEW_LINE>List<ImageResults> errors = new ArrayList<>();<NEW_LINE>double[] parameters = new double[structure.getParameterCount()];<NEW_LINE>double[] residuals = new double[observations.getObservationCount() * 2];<NEW_LINE>CodecSceneStructureMetric codec = new CodecSceneStructu...
Math.max(maxError, nerr);
991,607
public IRubyObject sync(ThreadContext context, IRubyObject string) {<NEW_LINE>if (flater.avail_in > 0) {<NEW_LINE>switch(flater.sync()) {<NEW_LINE>case com.jcraft.jzlib.JZlib.Z_OK:<NEW_LINE>flater.setInput(string.convertToString().getByteList(<MASK><NEW_LINE>return context.tru;<NEW_LINE>case com.jcraft.jzlib.JZlib.Z_DA...
).bytes(), true);
380,286
public ASTNode visitTableConstraintDef(final TableConstraintDefContext ctx) {<NEW_LINE>ConstraintDefinitionSegment result = new ConstraintDefinitionSegment(ctx.getStart().getStartIndex(), ctx.getStop().getStopIndex());<NEW_LINE>if (null != ctx.constraintClause() && null != ctx.constraintClause().constraintName()) {<NEW...
(ctx.keyListWithExpression()));
1,005,240
private Map<String, Boolean> deal(SysSite site, String path) {<NEW_LINE>path = path.replace("\\", CommonConstants.SEPARATOR).replace("//", CommonConstants.SEPARATOR);<NEW_LINE>Map<String, Boolean> <MASK><NEW_LINE>List<FileInfo> list = CmsFileUtils.getFileList(siteComponent.getWebTemplateFilePath(site, path), null);<NEW...
map = new LinkedHashMap<>();
837,699
static void clearCaches(@Nonnull PsiFile injected, @Nonnull DocumentWindowImpl documentWindow) {<NEW_LINE>VirtualFileWindowImpl virtualFile = (VirtualFileWindowImpl) injected.getVirtualFile();<NEW_LINE>PsiManagerEx psiManagerEx = (PsiManagerEx) injected.getManager();<NEW_LINE>if (psiManagerEx.getProject().isDisposed())...
.setViewProvider(virtualFile, null));
41,307
public TypeSpec generateAdapterForCustomType(Type type) {<NEW_LINE>NameAllocator nameAllocator = nameAllocators.getUnchecked(type);<NEW_LINE>ClassName adapterTypeName = abstractAdapterName(type.getType());<NEW_LINE>ClassName typeName = (ClassName) typeName(type.getType());<NEW_LINE>TypeSpec.Builder adapter;<NEW_LINE>if...
.addType(generateAdapterForCustomType(nestedType));
27,856
public void run(RegressionEnvironment env) {<NEW_LINE>sendCurrentTime(env, "2002-02-01T09:00:00.000");<NEW_LINE>String epl = "@name('s0') select * from SupportBean#lastevent output first every 1 month";<NEW_LINE>env.compileDeploy<MASK><NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>env.assertListenerInv...
(epl).addListener("s0");
712,118
// submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length != 5) {<NEW_LINE>return printUsage();<NEW_LINE>}<NEW_LINE>int i;<NEW_LINE>edge_path = new Path(args[0] + "/pr_edge_block");<NEW_LINE>vector_path = new Path(args[0] + "/pr_iv_block");<NEW_LINE>tempmv_pa...
JobClient.runJob(configStage1());
403,718
private void testAdaptableApiSimple(PrintWriter writer) throws UnableToAdaptException {<NEW_LINE>ArtifactContainer artifactContainer = getContainerForDirectory();<NEW_LINE>com.ibm.wsspi.adaptable.module.Container adaptableContainer = amf.getContainer(new File(cacheDirAdapt), new File(cacheDirOverlay), artifactContainer...
adaptParent.adapt(Integer.class);
822,875
default void decodeColumnDisplayOrderState(FacesContext context) {<NEW_LINE>Map<String, String> params = context.getExternalContext().getRequestParameterMap();<NEW_LINE>String columnOrderParam = params.get(getClientId(context) + "_columnOrder");<NEW_LINE>if (LangUtils.isBlank(columnOrderParam)) {<NEW_LINE>return;<NEW_L...
columnKeys = columnOrderParam.split(",");
805,734
private Mono<PagedResponse<VirtualNetworkInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<N...
this.client.mergeContext(context);
1,663,526
public VpcDestinationConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>VpcDestinationConfiguration vpcDestinationConfiguration = ne...
().unmarshall(context));
266,040
public void initialize(SurfaceTexture surfaceTexture, final Runnable completionCallback) {<NEW_LINE>if (mGLThread != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mGLThread = new GLThread(surfaceTexture);<NEW_LINE>mGLThread.start();<NEW_LINE>// On JS thread, get JavaScriptCore context, create EXGL context, call JS callb...
moduleRegistry.getModule(JavaScriptContextProvider.class);
1,017,990
private static // parse the index and default fixed leg day count<NEW_LINE>FloatingRateIndex parseIndex(CsvRow row, String leg) {<NEW_LINE>Optional<String> fixedRateOpt = findValue(row, leg, FIXED_RATE_FIELD);<NEW_LINE>Optional<String> indexOpt = findValue(row, leg, INDEX_FIELD);<NEW_LINE>Optional<String> knownAmountOp...
frn = FloatingRateName.parse(indexStr);
465,331
public void fullRedraw() {<NEW_LINE>setupCanvas();<NEW_LINE>DBIDSelection selContext = context.getSelection();<NEW_LINE>if (selContext == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>// Class for the dot markers<NEW_LINE>if (!svgp.getCSSClassManager().conta...
style.getSize(StyleLibrary.SELECTION);
141,525
private void handlePeerAdded(CallPeer callPeer) {<NEW_LINE>CallRecord callRecord = findCallRecord(callPeer.getCall());<NEW_LINE>// no such call<NEW_LINE>if (callRecord == null)<NEW_LINE>return;<NEW_LINE>callPeer.addCallPeerListener(new CallPeerAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void peerStateChang...
, callPeer.getProtocolProvider()));
1,797,768
// findInitialAvailableActionsByContentType.<NEW_LINE>@WrapInTransaction<NEW_LINE>public WorkflowScheme saveOrUpdate(final String schemeId, final WorkflowSchemeForm workflowSchemeForm, final User user) throws AlreadyExistException, DotDataException, DotSecurityException {<NEW_LINE>final WorkflowScheme newScheme = new W...
workflowAPI.saveScheme(newScheme, user);
1,819,727
public static ListRdsDBInstancesResponse unmarshall(ListRdsDBInstancesResponse listRdsDBInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRdsDBInstancesResponse.setRequestId(_ctx.stringValue("ListRdsDBInstancesResponse.RequestId"));<NEW_LINE>listRdsDBInstancesResponse.setTotalCount(_ctx.integerValue("ListRdsD...
("ListRdsDBInstancesResponse.RdsInstances[" + i + "].ZoneId"));
782,136
public static void showPopup(JComponent content, String title, int x, int y) {<NEW_LINE>if (popupWindow != null) {<NEW_LINE>// Content already showing<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Toolkit.getDefaultToolkit().addAWTEventListener(hideListener, AWTEvent.MOUSE_EVENT_MASK);<NEW_LINE>// NOT using PopupFactory<NEW_LIN...
getAccessibleContext().setAccessibleDescription(a11yDesc);
238,631
final ListNotificationRulesResult executeListNotificationRules(ListNotificationRulesRequest listNotificationRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listNotificationRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "codestar notifications");
890,978
// calculate the last fixing date<NEW_LINE>private LocalDate calculateLastFixingDate(LocalDate valuationDate, ReferenceData refData) {<NEW_LINE>SwapTrade trade = template.createTrade(valuationDate, BuySell.BUY, 1, 1, refData);<NEW_LINE>SwapLeg iborLeg = trade.getProduct().getLegs(SwapLegType.IBOR).get(1);<NEW_LINE>// S...
int nbPeriods = periods.size();
716,052
final ReceiveMessageResult executeReceiveMessage(ReceiveMessageRequest receiveMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(receiveMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
861,811
public static PileupElement createNonIndelPileupElement(final int offsetIntoRead, final Allele newAllele, final int lengthOfRead) {<NEW_LINE><MASK><NEW_LINE>ParamUtils.inRange(offsetIntoRead, 0, lengthOfRead - 1, "offset into read is invalid for creating an artificial read, must be 0-" + (lengthOfRead - 1) + ".");<NEW_...
ParamUtils.isPositive(lengthOfRead, "length of read is invalid for creating an artificial read, must be greater than 0.");
1,284,078
public Impl createHtmlBrowserImpl() {<NEW_LINE>return new Impl() {<NEW_LINE><NEW_LINE>private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);<NEW_LINE><NEW_LINE>private URL url;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void setURL(URL url) {<NEW_LINE>this.url = url;<NEW_LINE>URL url2 = externaliz...
browse(url2.toURI());
1,123,759
private int parseIntegerLiteral() {<NEW_LINE>String value = mToken.getContent();<NEW_LINE>String type = "xs:integer";<NEW_LINE>if (is(TokenType.VALUE, false)) {<NEW_LINE>// is at least decimal literal (could also be a double literal)<NEW_LINE>if (mToken.getType() == TokenType.POINT) {<NEW_LINE>// TODO: not so nice, try...
is(TokenType.SPACE, true);
1,382,502
private void fixReservationsForEvent(Event event, List<String> reservations) {<NEW_LINE>var byReservationId = ticketSearchRepository.loadAllReservationsWithTickets(event.getId(), reservations).stream().collect(groupingBy(trt -> trt.getTicketReservation().getId()));<NEW_LINE>log.trace("found {} reservations to fix for e...
loadAllForEvent(event.getId());
879,833
public Request<UpdateContinuousBackupsRequest> marshall(UpdateContinuousBackupsRequest updateContinuousBackupsRequest) {<NEW_LINE>if (updateContinuousBackupsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateContinuousBackupsRequest)");<NEW_LINE>}<NEW_LINE>Request<Upd...
request.addHeader("X-Amz-Target", target);
1,506,030
public boolean onActivate(Item item, Player player) {<NEW_LINE>this.level.getServer().getPluginManager().callEvent(new BlockRedstoneEvent(this, isPowerOn() ? 15 : 0, isPowerOn() ? 0 : 15));<NEW_LINE>this.setDamage(<MASK><NEW_LINE>this.getLevel().setBlock(this, this, false, true);<NEW_LINE>// TODO: coorect pitcj<NEW_LIN...
this.getDamage() ^ 0x08);
1,230,828
public final RowImpl20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> valuesRow() {<NEW_LINE>return new RowImpl20<>(Tools.field(value1(), field1()), Tools.field(value2(), field2()), Tools.field(value3(), field3()), Tools.field(value4(), field4()), Tools.field(value5(), field5...
(), field20()));
682,983
private PKeyword[] evaluateKeywords(VirtualFrame frame, Object callable, PRaiseNode raise, BranchProfile keywordsError) {<NEW_LINE>PKeyword[] result;<NEW_LINE>if (keywordArguments == null) {<NEW_LINE>result = PKeyword.EMPTY_KEYWORDS;<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>result = keywordArguments.execute(frame);<NE...
).executeObject(frame, callable);
1,441,955
public void marshall(CreateDomainConfigurationRequest createDomainConfigurationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDomainConfigurationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshall...
createDomainConfigurationRequest.getServerCertificateArns(), SERVERCERTIFICATEARNS_BINDING);
884,993
private BigDecimal sellItem(final User user, final ItemStack is, final String[] args, final boolean isBulkSell) throws Exception {<NEW_LINE>final int amount = ess.getWorth().getAmount(ess, user, is, args, isBulkSell);<NEW_LINE>final BigDecimal worth = ess.getWorth().getPrice(ess, is);<NEW_LINE>if (worth == null) {<NEW_...
, user.getDisplayName()));
1,265,074
public String generateDbRuleArrayStr(PartitionByType type, String idText, int start, int groups, int tablesPerGroup, DBPartitionDefinition dbPartitionDefinition) {<NEW_LINE>if (!PartitionByTypeUtils.isSupportedDbPartitionByType(type)) {<NEW_LINE>throw new IllegalArgumentException(String.format("Date column not support ...
(tablesPerGroup).append(")");
793,878
public <PSI> Match wait(PSI target, double timeout) throws FindFailed {<NEW_LINE>lastMatch = null;<NEW_LINE>String shouldAbort = "";<NEW_LINE>RepeatableFind rf = new RepeatableFind(target, null);<NEW_LINE>Image img = rf._image;<NEW_LINE>String targetStr = img.getName();<NEW_LINE>Boolean response = true;<NEW_LINE>if (!i...
response = handleFindFailed(target, img);
382,004
public void validate() {<NEW_LINE>super.validate();<NEW_LINE>if (body() != null) {<NEW_LINE>body().validate();<NEW_LINE>}<NEW_LINE>if (from() != null) {<NEW_LINE>from().validate();<NEW_LINE>}<NEW_LINE>if (newParticipants() != null) {<NEW_LINE>newParticipants().forEach(e -> e.validate());<NEW_LINE>}<NEW_LINE>if (sender(...
e -> e.validate());
561,429
public AliasAST visit(int lineNo, String line) throws ASTParseException {<NEW_LINE>try {<NEW_LINE>String[] trim = line.trim().split("\\s+");<NEW_LINE>if (trim.length < 2)<NEW_LINE>throw new ASTParseException(lineNo, "Not enough paramters");<NEW_LINE>int start = line.indexOf(trim[0]);<NEW_LINE>// op<NEW_LINE>OpcodeParse...
line.indexOf("\"")));
1,675,780
public boolean visit(MySqlUpdateStatement x) {<NEW_LINE>if (x.getTableSource().getClass() != SQLExprTableSource.class) {<NEW_LINE>throw new UnsupportedOperationException("Support single table only for SqlUpdate statement of calcite.");<NEW_LINE>}<NEW_LINE>SQLExprTableSource tableSource = (SQLExprTableSource) x.getTable...
sourceExpressList, condition, null, alias);
984,208
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String modelFlag, String workId) throws Exception {<NEW_LINE>logger.debug(effectivePerson, "modelFlag:{}, workId:{}.", modelFlag, workId);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult...
ExceptionModelNotReady(model.getName());
513,739
public static void bindEventFields(BoundStatement bound, IDeviceEvent event) throws SiteWhereException {<NEW_LINE>bound.setUUID(FIELD_DEVICE_ID, event.getDeviceId());<NEW_LINE>bound.setUUID(FIELD_EVENT_ID, event.getId());<NEW_LINE>if (event.getAlternateId() != null) {<NEW_LINE>bound.setString(FIELD_ALTERNATE_ID, event....
FIELD_ASSIGNMENT_ID, event.getDeviceAssignmentId());
1,844,474
private JSDynamicObject initializeLocaleUsingJString(JSDynamicObject localeObject, String tagArg, Object optionsArg) {<NEW_LINE>try {<NEW_LINE>JSDynamicObject <MASK><NEW_LINE>String tag = applyOptionsToTag(tagArg, options);<NEW_LINE>String optCalendar = getCalendarOption.executeValue(options);<NEW_LINE>if (optCalendar ...
options = coerceOptionsToObjectNode.execute(optionsArg);
1,070,295
public boolean save() {<NEW_LINE>// Add<NEW_LINE>p_properties.setProperty("ADEMPIERE_MAIN_VERSION", Adempiere.MAIN_VERSION);<NEW_LINE>p_properties.setProperty("ADEMPIERE_DATE_VERSION", Adempiere.DATE_VERSION);<NEW_LINE>p_properties.setProperty("ADEMPIERE_DB_VERSION", Adempiere.DB_VERSION);<NEW_LINE>// Create Connection...
JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE);
1,401,460
protected static long deserializePrimitiveField(TaggedDeserializationContext context, StructBondType.StructField<Long> field) throws IOException {<NEW_LINE>// an uint64 value may be deserialized from BT_UINT64, BT_UINT32, BT_UINT16 or BT_UINT8<NEW_LINE>if (context.readFieldResult.type.value != BondDataType.BT_UINT64.va...
context.readFieldResult.type, field);
213,504
public static DescribeRestoreJobsResponse unmarshall(DescribeRestoreJobsResponse describeRestoreJobsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRestoreJobsResponse.setRequestId(_ctx.stringValue("DescribeRestoreJobsResponse.RequestId"));<NEW_LINE>describeRestoreJobsResponse.setSuccess(_ctx.booleanValue("Descr...
("DescribeRestoreJobsResponse.RestoreJobs[" + i + "].SnapshotId"));
144,153
private static MethodHandle createNoPermissionsInvoker() {<NEW_LINE>final String className = "NoPermissionsInvoker";<NEW_LINE>final ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);<NEW_LINE>cw.visit(Opcodes.V1_7, ACC_PUBLIC | ACC_SUPER | ACC_FINAL, className, null, "java/lang/Obj...
mv.visitVarInsn(ALOAD, 1);
466,533
private Set<String> checkSteps(final Set<String> schemeIds, final List<WorkflowStep> steps) throws AlreadyExistException {<NEW_LINE>final ImmutableSet.Builder<String> setBuilder = new ImmutableSet.Builder<>();<NEW_LINE>for (final WorkflowStep step : steps) {<NEW_LINE>WorkflowStep repeatStep = null;<NEW_LINE>try {<NEW_L...
add(step.getId());
1,744,453
// snippet-start:[iam.java2.create_user.main]<NEW_LINE>public static String createIAMUser(IamClient iam, String username) {<NEW_LINE>try {<NEW_LINE>// Create an IamWaiter object<NEW_LINE>IamWaiter iamWaiter = iam.waiter();<NEW_LINE>CreateUserRequest request = CreateUserRequest.builder().<MASK><NEW_LINE>CreateUserRespon...
userName(username).build();
1,457,312
private void createPlayers(int numPlayers) {<NEW_LINE>// add missing player panels<NEW_LINE>if (numPlayers > players.size()) {<NEW_LINE>while (players.size() != numPlayers) {<NEW_LINE>TablePlayerPanel playerPanel = new TablePlayerPanel();<NEW_LINE>PlayerType playerType = PlayerType.HUMAN;<NEW_LINE>if (prefPlayerTypes.s...
players.size() - 1);
1,098,083
private static Result constructResult(Pair leftPair, Pair rightPair) {<NEW_LINE>long symbolValue = 4537077L * leftPair.getValue() + rightPair.getValue();<NEW_LINE>String text = String.valueOf(symbolValue);<NEW_LINE>StringBuffer buffer = new StringBuffer(14);<NEW_LINE>for (int i = 13 - text.length(); i > 0; i--) {<NEW_L...
) ? 3 * digit : digit);
625,196
protected static Member[] expandMultiPositionSlicerMembers(Member[] members, Evaluator evaluator) {<NEW_LINE>Map<Hierarchy, Set<Member>> mapOfSlicerMembers = null;<NEW_LINE>if (evaluator instanceof RolapEvaluator) {<NEW_LINE>// get the slicer members from the evaluator<NEW_LINE>mapOfSlicerMembers = ((<MASK><NEW_LINE>}<...
RolapEvaluator) evaluator).getSlicerMembersByHierarchy();
1,552,755
public void marshall(AlarmModelVersionSummary alarmModelVersionSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (alarmModelVersionSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(alarmModelVe...
alarmModelVersionSummary.getLastUpdateTime(), LASTUPDATETIME_BINDING);
1,020,238
public void resize(int width, int height, int dx, int dy) {<NEW_LINE>Tile[][] newMap = new Tile[height][width];<NEW_LINE>int[][] newFlags = <MASK><NEW_LINE>HashMap<Object, Properties> newTileInstanceProperties = new HashMap<>();<NEW_LINE>int maxX = Math.min(width, this.width + dx);<NEW_LINE>int maxY = Math.min(height, ...
new int[height][width];
1,398,530
private State buildState() {<NEW_LINE>State state = new State();<NEW_LINE>List<ProjectInternal> orderedProjects = Ordering.usingToString().sortedCopy(projectRegistry.getAllProjects());<NEW_LINE>for (ProjectInternal project : orderedProjects) {<NEW_LINE>if (project.getPlugins().hasPlugin(ComponentModelBasePlugin.class))...
(testSupport.getTestDependencies(nativeBinary));
1,730,198
public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>IInterpreterManager manager = InterpreterManagersAPI.getPythonInterpreterManager();<NEW_LINE>IInterpreterInfo[] existing = manager.getInterpreterInfos();<NEW_LINE>HashSet<String> skip = new HashSet<String>();<NEW_LINE>for (IInterpreterInfo info ...
IInterpreterInfo[existing.length + 1];
969,529
public boolean deny(RealmModel realm, String userCode) {<NEW_LINE>try {<NEW_LINE>OAuth2DeviceCodeModel deviceCode = findDeviceCodeByUserCode(realm, userCode);<NEW_LINE>if (deviceCode == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>OAuth2DeviceCodeModel denied = deviceCode.deny();<NEW_LINE>BasicCache<String, Actio...
> cache = codeCache.get();
1,360,744
private void drawLineRange(GC gc, int startLine, int endLine, int x, int w) {<NEW_LINE>final int viewPortWidth = fTextWidget.getClientArea().width;<NEW_LINE>for (int line = startLine; line <= endLine; line++) {<NEW_LINE>int lineOffset = fTextWidget.getOffsetAtLine(line);<NEW_LINE>// line end offset including line delim...
y = fTextWidget.getLinePixel(line);
1,641,531
private List<ImmutablePair<String, Object>> buildStatistics() {<NEW_LINE>Summary heap = getJVMMemory(MemoryType.HEAP);<NEW_LINE>Summary nonHeap = getJVMMemory(MemoryType.NON_HEAP);<NEW_LINE>List<ImmutablePair<String, Object>> memoryStatistics = new ArrayList<>();<NEW_LINE>memoryStatistics.add(ImmutablePair.of("mockServ...
().getCommitted()));
695,530
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {<NEW_LINE>if (holder.getBindingAdapterPosition() == statusList.size()) {<NEW_LINE>holder.name.setText(R.string.add);<NEW_LINE>holder.color.setVisibility(View.INVISIBLE);<NEW_LINE>holder.color.setBackgroundColor(Color.TRANSPARENT);<NEW_LINE>holder.c...
(statusList.indexOf(status));
870,763
final GetFlowLogsIntegrationTemplateResult executeGetFlowLogsIntegrationTemplate(GetFlowLogsIntegrationTemplateRequest getFlowLogsIntegrationTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFlowLogsIntegrationTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
240,427
public static void main(String[] args) {<NEW_LINE>String file1 = UtilIO.pathExample("stitch/kayak_01.jpg");<NEW_LINE>String file2 = UtilIO.pathExample("stitch/kayak_02.jpg");<NEW_LINE>InterestPointDetector<GrayF32> detector = FactoryInterestPoint.fastHessian(new ConfigFastHessian(1, 10, -1, 2, 9, 4, 4), GrayF32.class);...
(UtilImageIO.loadImage(file2));
1,285,855
public MergeCartResponse mergeCart(Customer customer, Order anonymousCart, boolean priceOrder) throws PricingException {<NEW_LINE>MergeCartResponse mergeCartResponse = new MergeCartResponse();<NEW_LINE>// reconstruct cart items (make sure they are valid)<NEW_LINE>ReconstructCartResponse reconstructCartResponse = recons...
HashMap<OrderItem, OrderItem>();
522,225
private boolean completedMockingEndPoints(String httpUrl, String requestJson, String methodName, Object bodyContent) throws java.io.IOException {<NEW_LINE>if (httpUrl.contains("/$MOCK") && methodName.equals("$USE.WIREMOCK")) {<NEW_LINE>MockSteps mockSteps = smartUtils.getMapper().readValue(requestJson, MockSteps.class)...
LOGGER.info("\n#body:\n" + bodyContent);
599,310
private static Bitmap createBorderedBitmap(Bitmap source, int width, int height) {<NEW_LINE>Bitmap dst = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);<NEW_LINE>Canvas canvas = new Canvas(dst);<NEW_LINE>if (DEBUG_PAINT) {<NEW_LINE>Paint dpaint = new Paint();<NEW_LINE>dpaint.setColor(0xff0000ff);<NEW_LINE>...
CLAMP, Shader.TileMode.CLAMP);
1,639,172
public boolean canApprove() {<NEW_LINE>if (!isCopy()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>File f = FileUtil.normalizeFile(new File(copyTo.getText()));<NEW_LINE>if (!f.getPath().equals(sharedLibrariesFolder.getPath()) && !(f.getPath()).startsWith(sharedLibrariesFolder.getPath() + File.separatorChar)) {<NEW_LINE>...
f, file.getName());
1,572,202
public List<ColuAccountContext> loadAccountContexts() {<NEW_LINE>List<ColuAccountContext> list = new ArrayList<>();<NEW_LINE>Cursor cursor = null;<NEW_LINE>try {<NEW_LINE>SQLiteQueryWithBlobs blobQuery = new SQLiteQueryWithBlobs(_database);<NEW_LINE>cursor = blobQuery.query(false, "single", new String[] { "id", "addres...
cursor.getInt(2) == 1;
748,960
private void createCombinedContext(final Image loadedImage, final int major, final int minor, final ImageAddressSpace space, final ImageProcess proc, final JavaRuntime rt, String coreFilePath) {<NEW_LINE>// take the DTFJ context and attempt to combine it with a DDR interactive one<NEW_LINE>Object obj = ctx.getPropertie...
minor, space, proc, rt);
1,550,973
public static void main(String[] args) {<NEW_LINE>// Create an OSSClient instance.<NEW_LINE>OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);<NEW_LINE>try {<NEW_LINE>// Specify the policyText.<NEW_LINE>String policyText = "{\"Statement\": [{\"Effect\": \"Allow\", \"Action\": [\"oss:G...
"Error Message: " + oe.getErrorMessage());
1,312,953
public JSONObject toJSON() {<NEW_LINE>JSONObject json = new JSONObject();<NEW_LINE>if (originalLocation != null) {<NEW_LINE>json.put("lat", String.format(Locale.US, "%.5f", originalLocation.getLatitude()));<NEW_LINE>json.put("lon", String.format(Locale.US, "%.5f", originalLocation.getLongitude()));<NEW_LINE>}<NEW_LINE>...
json.put("emptyQueryAllowed", emptyQueryAllowed);
454,356
private static Single<Response> request(final String method, final String uri, @Nullable final Parameters params, @Nullable final Parameters headers, @Nullable final File cacheFile) {<NEW_LINE>final Builder builder = new Builder();<NEW_LINE>if ("GET".equals(method)) {<NEW_LINE>final HttpUrl.Builder urlBuilder = HttpUrl...
param.left, param.right);
1,279,450
private Common.Payload createTransactionCommonPayload(ProposalPackage.Proposal chaincodeProposal, ByteString proposalResponsePayload, Collection<ProposalResponsePackage.Endorsement> endorsements) throws InvalidProtocolBufferException {<NEW_LINE>TransactionPackage.ChaincodeEndorsedAction.Builder chaincodeEndorsedActionB...
StringBuilder sb = new StringBuilder(10000);
1,414,550
public void channelRead(final ChannelHandlerContext ctx, final Object msg) throws Exception {<NEW_LINE>HandleContext<Handler> handleContext = (HandleContext<Handler>) msg;<NEW_LINE>try {<NEW_LINE>Handler handler = handleContext<MASK><NEW_LINE>Object[] args = handleContext.getArgs();<NEW_LINE>Object handleResult = handl...
.getMappingContext().payload();
271,699
private Mono<PagedResponse<ConnectorSettingInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() i...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,040,447
private void templateDetailsInitIfNotExist(long id, String name, String value) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>PreparedStatement stmt = null;<NEW_LINE>PreparedStatement stmtInsert = null;<NEW_LINE>boolean insert = false;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>stmt = tx...
stmtInsert = txn.prepareAutoCloseStatement("INSERT INTO vm_template_details(template_id, name, value) VALUES(?, ?, ?)");
686,156
public Object run() throws Exception {<NEW_LINE>Preferences fromPrjPrefs = ProjectUtils.getPreferences(prjFrom, IndentUtils.class, true);<NEW_LINE>if (!fromPrjPrefs.nodeExists(CODE_STYLE_PROFILE) || fromPrjPrefs.node(CODE_STYLE_PROFILE).get(USED_PROFILE, null) == null) {<NEW_LINE>// NOI18N<NEW_LINE>return NbBundle.getM...
ProjectPreferencesFactory(pf.getProject());
1,173,890
private void ensureParentDirectoryExists(ChannelSftp channel, URI uri) {<NEW_LINE>String parentPath = FilenameUtils.<MASK><NEW_LINE>if (parentPath.equals("/")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>URI parent = uri.resolve(parentPath);<NEW_LINE>try {<NEW_LINE>channel.lstat(parentPath);<NEW_LINE>return;<NEW_LINE>} catc...
getFullPathNoEndSeparator(uri.getPath());
1,846,025
public void enterSssgd_member(A10Parser.Sssgd_memberContext ctx) {<NEW_LINE>Optional<String> maybeName = toString(ctx, ctx.slb_server_name());<NEW_LINE>if (!maybeName.isPresent()) {<NEW_LINE>// dummy<NEW_LINE>_currentServiceGroupMember = new ServiceGroupMember(ctx.slb_server_name().getText(), -1);<NEW_LINE>return;<NEW_...
port, _currentServiceGroup.getType());
10,048
public void flush() {<NEW_LINE>// TODO: add a feature to Management Center to sync cache to db completely<NEW_LINE>try {<NEW_LINE>MapOperation mapFlushOperation = operationProvider.createMapFlushOperation(name);<NEW_LINE>BinaryOperationFactory operationFactory = new BinaryOperationFactory(mapFlushOperation, getNodeEngi...
operationService.invokeOnAllPartitions(SERVICE_NAME, operationFactory);
1,546,624
public static Long round(Long n, Long precision) throws ArithmeticException {<NEW_LINE>long nLong = n.longValue();<NEW_LINE>if (nLong == 0L || precision >= 0) {<NEW_LINE>return n;<NEW_LINE>}<NEW_LINE>long digitsToRound = -precision;<NEW_LINE>int digits = (int) (Math.log10(Math.abs(n.<MASK><NEW_LINE>if (digits <= digits...
doubleValue())) + 1);
732,613
private void internalRegionMultiGet(final Region region, final List<byte[]> subKeys, final boolean readOnlySafe, final CompletableFuture<Map<ByteArray, byte[]>> future, final int retriesLeft, final Errors lastCause, final boolean requireLeader) {<NEW_LINE>final RegionEngine regionEngine = getRegionEngine(<MASK><NEW_LIN...
region.getId(), requireLeader);
948,999
private static Notification createOrbotNotification(Context context) {<NEW_LINE>NotificationChannelManager.getInstance(context).createNotificationChannelsIfNecessary();<NEW_LINE>NotificationCompat.Builder builder = new NotificationCompat.Builder(context, NotificationChannelManager.ORBOT);<NEW_LINE>builder.setSmallIcon(...
keyserver_sync_orbot_notif_msg)).setAutoCancel(true);
642,896
private static File prepare() throws IOException {<NEW_LINE>File distributionDirectory = ContainerPathManager.get().getAppHomeDirectory();<NEW_LINE>String name = ApplicationNamesInfo.getInstance().getFullProductName();<NEW_LINE>final String iconPath = AppUIUtil.findIcon(distributionDirectory.getPath());<NEW_LINE>if (ic...
, distributionDirectory.getPath()));
1,810,142
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_...
ExceptionAccessDenied(effectivePerson.getDistinguishedName());
861,274
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " SetAcl <bucket> [object] <email> <permission>\n\n" + "Where:\n" + " bucket - the bucket to grant permissions on\n" + " object - (optional) the object grant permissions on\n" + " If object is specified, ...
String email = args[cur_arg++];
1,135,938
protected Object readState(IProject project) throws CoreException {<NEW_LINE>File file = getSerializationFile(project);<NEW_LINE>if (file != null && file.exists()) {<NEW_LINE>try (DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(file)))) {<NEW_LINE>String pluginID = in.readUTF();<NEW...
out.println("Project does not exist: " + project);
1,320,097
private void handleException(Throwable e, Request req, Response resp) throws ServletException, IOException {<NEW_LINE>String location;<NEW_LINE>Class<?> cls = e.getClass();<NEW_LINE>while (cls != null && !cls.equals(Throwable.class)) {<NEW_LINE>location = exception2location_.get(cls.getName());<NEW_LINE>if (location !=...
handleError(location, req, resp);
1,730,897
public ExitCode run(CommandEnv commandEnv) throws ValidationException, IOException, RepoException {<NEW_LINE>ConfigFileArgs configFileArgs = commandEnv.parseConfigFileArgs(this, /*useSourceRef*/<NEW_LINE>false);<NEW_LINE>Console console = commandEnv.getOptions().get(GeneralOptions.class).console();<NEW_LINE>ConfigWithD...
configFileArgs.getWorkflowName(), context);
1,239,680
private boolean isSystemVmIsoCopyNeeded(File srcIso, File destIso) {<NEW_LINE>if (!destIso.exists()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>boolean copyNeeded = false;<NEW_LINE>try {<NEW_LINE>String srcIsoMd5 = DigestUtils.md5Hex(new FileInputStream(srcIso));<NEW_LINE>String destIsoMd5 = DigestUtils.md5Hex(new Fil...
StringUtils.equals(srcIsoMd5, destIsoMd5);
384,438
/*<NEW_LINE>* Initializes the FlowController for this aggregate.<NEW_LINE>*/<NEW_LINE>protected void initFlowController(FlowControllerDeclaration aFlowControllerDeclaration, UimaContextAdmin aParentContext, AnalysisEngineMetaData aAggregateMetadata) throws ResourceInitializationException {<NEW_LINE>String key = aFlowCo...
].setComponentSofaName(CAS.NAME_DEFAULT_SOFA);
381,304
public VirtualMachine attach(String hostName, int port) throws IOException, IllegalConnectorArgumentsException {<NEW_LINE>AttachingConnector socketAttachingConnector = Bootstrap.virtualMachineManager().attachingConnectors().stream().filter(ac -> ac.name().equals(SOCKET_CONNECTOR_NAME)).findFirst().orElseThrow(() -> new...
(CONNECTOR_ARGS_HOST).setValue(hostName);
514,367
public void clusterStateProcessed(ClusterState oldState, ClusterState newState) {<NEW_LINE>initializingClones.remove(targetSnapshot);<NEW_LINE>if (updatedEntry != null) {<NEW_LINE>final Snapshot target = updatedEntry.snapshot();<NEW_LINE>final <MASK><NEW_LINE>for (Map.Entry<RepositoryShardId, ShardSnapshotStatus> index...
SnapshotId sourceSnapshot = updatedEntry.source();
934,015
public static void main(String[] args) {<NEW_LINE>// create an arbitrary transform from world to camera reference frames<NEW_LINE>Se3_F64 worldToCamera = new Se3_F64();<NEW_LINE>worldToCamera.getT().setTo(5, 10, -7);<NEW_LINE>ConvertRotation3D_F64.eulerToMatrix(EulerType.XYZ, 0.1, -0.3, <MASK><NEW_LINE>ExamplePnP app =...
0, worldToCamera.getR());