idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,704,408
public void marshall(DescribeMLModelsRequest describeMLModelsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describeMLModelsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(describeMLModel...
describeMLModelsRequest.getLimit(), LIMIT_BINDING);
1,833,657
public static void printActionInputMap(JComponent comp) {<NEW_LINE>// Action Map<NEW_LINE>ActionMap am = comp.getActionMap();<NEW_LINE>// including Parents<NEW_LINE>Object[] amKeys = am.allKeys();<NEW_LINE>if (amKeys != null) {<NEW_LINE>System.out.println("-------------------------");<NEW_LINE>System.out.println("Actio...
System.out.println("-------------------------");
1,827,658
public Request<GetManagedPrefixListEntriesRequest> marshall(GetManagedPrefixListEntriesRequest getManagedPrefixListEntriesRequest) {<NEW_LINE>if (getManagedPrefixListEntriesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetManagedPrefixL...
<GetManagedPrefixListEntriesRequest>(getManagedPrefixListEntriesRequest, "AmazonEC2");
1,601,217
private static void initRocksDbSettings(Config config) {<NEW_LINE>String prefix = Constant.STORAGE_DB_SETTING;<NEW_LINE>int levelNumber = config.hasPath(prefix + "levelNumber") ? config.getInt(prefix + "levelNumber") : 7;<NEW_LINE>int compactThreads = config.hasPath(prefix + "compactThreads") ? config.getInt(prefix + "...
getInt(prefix + "targetFileSizeMultiplier") : 1;
1,050,796
void init() {<NEW_LINE>final long ptr = module_ptr;<NEW_LINE>module_name = jni_module_name(ptr);<NEW_LINE>int count = jni_fun_count(ptr);<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>final String name = jni_fun_name(ptr, i);<NEW_LINE>final int arity = jni_fun_arity(ptr, i);<NEW_LINE>final FunID fid = new FunID(m...
EModuleManager.bind_nif(fid, nif_handler);
1,733,841
public void handle(GameEvent event) {<NEW_LINE>DebugCommandEvent e = (DebugCommandEvent) event;<NEW_LINE>if (e.getName().equals("userInfo")) {<NEW_LINE>User user = GameServer.INSTANCE.getGameUniverse().getUser(e.getString("username"));<NEW_LINE>if (user != null) {<NEW_LINE>String message = "Showing information for user...
+ unit.getY() + ")\n";
501,783
public String sqlAD_getCustomParametersWithoutElement(String vendorName, String catalogName, String schemaName, ArrayList<String> customEntities) {<NEW_LINE>// table name<NEW_LINE>String tableName = "AD_Process_Para";<NEW_LINE>// table alias<NEW_LINE>String tableAlias = "c";<NEW_LINE>// column names<NEW_LINE>ArrayList<...
"UPPER(c.ColumnName)=UPPER(e.ColumnName)")), null, false);
353,823
public int longestSubsequenceWithActualSolution(int[] arr) {<NEW_LINE>int[] T = new int[arr.length];<NEW_LINE>int[] actualSolution = new int[arr.length];<NEW_LINE>for (int i = 0; i < arr.length; i++) {<NEW_LINE>T[i] = 1;<NEW_LINE>actualSolution[i] = i;<NEW_LINE>}<NEW_LINE>for (int i = 1; i < arr.length; i++) {<NEW_LINE...
] = T[j] + 1;
1,632,825
DataNodeConfig convert(ZNRecord record) {<NEW_LINE>int schemaVersion = getSchemaVersion(record);<NEW_LINE>if (schemaVersion != VERSION_0) {<NEW_LINE>LOGGER.warn("Unknown InstanceConfig schema version {} in {}. Ignoring.", schemaVersion, record);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DataNodeConfig dataNodeConfig = ...
diskProps.get(DISK_CAPACITY_STR)));
776,437
static final Object scanExecutor(Executor executor, Scannable.Attr key) {<NEW_LINE>if (executor instanceof DelegateServiceScheduler.UnsupportedScheduledExecutorService) {<NEW_LINE>executor = ((DelegateServiceScheduler.UnsupportedScheduledExecutorService) executor).get();<NEW_LINE>}<NEW_LINE>if (executor instanceof Scan...
final ThreadPoolExecutor poolExecutor = (ThreadPoolExecutor) executor;
208,127
public static void createGlobalSimpleType(final Datatype d, final SchemaModel sm, final SchemaComponent sc, final SchemaGenerator.UniqueId id, SchemaGenerator.PrimitiveCart pc) {<NEW_LINE>if (d != null) {<NEW_LINE>NamedComponentReference<GlobalSimpleType> ref = null;<NEW_LINE>if (isPrimitiveType(d)) {<NEW_LINE>ref = Sc...
getSchema().addSimpleType(gst);
619,891
@Produces(APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Remove superadmin privileges to user")<NEW_LINE>@Timed<NEW_LINE>public Response removeUserFromSuperAdmin(@PathParam("userID") @ApiParam(value = "User ID") final Username userID, @HeaderParam(AUTHORIZATION) @ApiParam(value = EXAMPLE_AUTHORIZATION_HEADER, requir...
authorization.removeUserFromSuperAdminRole(candidateUserInfo, assigningUserInfo);
858,827
private static RexNode refactorOrListToInList(List<RexNode> disjunctions) {<NEW_LINE>LinkedList<RexNode> firstList = new LinkedList<>();<NEW_LINE>LinkedList<RexNode> restList = new LinkedList<>();<NEW_LINE>Collection<RexNode> lastList;<NEW_LINE>Map<Boolean, List<RexNode>> map = disjunctions.stream().collect(Collectors....
(LinkedList) e.getValue();
187,305
private static String createJavapTaskFromArguments(String fqClassName, String[] args) throws Exception {<NEW_LINE>String byteCodeString = null;<NEW_LINE>if (classJavapTask != null) {<NEW_LINE>Constructor<?> constructor = classJavapTask.getDeclaredConstructor();<NEW_LINE>Object javapObject = constructor.newInstance();<N...
methodSetLog.invoke(javapObject, baos);
1,841,780
public LuaValue[] addTapTexts(LuaValue[] vars) {<NEW_LINE>UDArray targetTextsArray = vars.length > 0 ? (UDArray) vars[0] : null;<NEW_LINE>LuaFunction selectedFunction = vars.length > 1 ? (LuaFunction) vars[1] : null;<NEW_LINE>UDColor targetTextColor = vars.length > 2 ? (UDColor) vars[2] : null;<NEW_LINE>if (targetTexts...
start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
86,706
public void deleteReport(Report report) throws TskCoreException {<NEW_LINE>acquireSingleUserCaseWriteLock();<NEW_LINE>try (CaseDbConnection connection = connections.getConnection()) {<NEW_LINE>// DELETE FROM reports WHERE reports.obj_id = ?<NEW_LINE>PreparedStatement statement = <MASK><NEW_LINE>statement.setLong(1, rep...
connection.getPreparedStatement(PREPARED_STATEMENT.DELETE_REPORT);
1,314,082
public void configurarCores() {<NEW_LINE>labelVersao.setForeground(ColorController.COR_LETRA_TITULO);<NEW_LINE>arvoreExemplos.setBackground(ColorController.FUNDO_CLARO);<NEW_LINE>imagePane.setBackground(ColorController.FUNDO_ESCURO);<NEW_LINE>description.setForeground(ColorController.COR_LETRA);<NEW_LINE>scrollArvoreEx...
painelRecentesMaster.setBackground(ColorController.FUNDO_ESCURO);
557,481
public Object sGet(SField sField) {<NEW_LINE>if (sField.getName().equals("start")) {<NEW_LINE>return getStart();<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("end")) {<NEW_LINE>return getEnd();<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("progress")) {<NEW_LINE>return getProgress();<NEW_LINE>}<NEW_LINE>if (sFiel...
sField.getName() + " not found");
423,662
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_ID, new ColumnMeta(COLUMN_ID, "int(11)", false, true));<NEW_LINE>columnsType.put(COLUMN_ID, Fields.FIELD_TYPE_LONG);<NEW_LINE>columns.put(COLUMN_TYPE, new ColumnMeta(COLUMN_TYPE, "varchar(9)", false));<NEW_LINE>columnsType.put(COLUMN_TYPE, Fields.FIELD_TY...
put(COLUMN_USER_TYPE, Fields.FIELD_TYPE_VAR_STRING);
341,097
private void applyMigration(final Function<String, ViewElementDefinition> currentElementSupplier, final Map<String, ViewMigration> newElementDefs, final MigrateElement migration) {<NEW_LINE>final ViewElementDefinition originalOldElement = currentElementSupplier.apply(migration.getOldGroup());<NEW_LINE>final ViewElement...
newElement = migrateViewNewFromNew(migration, originalNewElement);
868,272
public static LocalTime truncate(LocalTime time, ChronoUnit unit, int stepRate) {<NEW_LINE>switch(unit) {<NEW_LINE>case HOURS:<NEW_LINE>return adjustField(time, HOUR_OF_DAY, stepRate).truncatedTo(unit);<NEW_LINE>case MINUTES:<NEW_LINE>return adjustField(time, MINUTE_OF_HOUR, stepRate).truncatedTo(unit);<NEW_LINE>case S...
, stepRate).truncatedTo(unit);
1,365,299
public void validate(SqlValidator validator, SqlValidatorScope scope) {<NEW_LINE>SqlValidatorTable table0 = validator.getCatalogReader().getTable(tableNames());<NEW_LINE>if (table0 == null) {<NEW_LINE>super.validate(validator, scope);<NEW_LINE>// should have failed with "Object not found"<NEW_LINE>assert false;<NEW_LIN...
columnListWithoutHidden = new ArrayList<>();
1,302,791
private Value mapObjectToValue(Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return Value.newBuilder().build();<NEW_LINE>}<NEW_LINE>if (Boolean.class.equals(value.getClass())) {<NEW_LINE>return makeValue((Boolean) value).build();<NEW_LINE>} else if (Byte.class.equals(value.getClass())) {<NEW_LINE>return makeVa...
) value)).build();
1,582,433
protected void encodeTabContent(FacesContext context, Tab tab, int index, boolean active, boolean dynamic, boolean repeating) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String styleClass = active ? TabView.ACTIVE_TAB_CONTENT_CLASS : TabView.INACTIVE_TAB_CONTENT_CLASS;<NE...
writeAttribute("class", styleClass, null);
240,154
public List<DSSWorkspaceMenuRole> generateDefaultWorkspaceMenuRole(int workspaceId, String username) {<NEW_LINE>List<DSSWorkspaceMenuRole> list = new ArrayList<>();<NEW_LINE>Date date = new Date(System.currentTimeMillis());<NEW_LINE>list.add(new DSSWorkspaceMenuRole(workspaceId, 2, 1, 1, date, username));<NEW_LINE>list...
, 1, date, username));
658,084
private DeployInheritInfo createInfo(Class<?> cls) {<NEW_LINE>DeployInheritInfo info = new DeployInheritInfo(cls);<NEW_LINE>Class<<MASK><NEW_LINE>if (parent != null) {<NEW_LINE>info.setParent(parent);<NEW_LINE>}<NEW_LINE>Inheritance ia = AnnotationUtil.typeGet(cls, Inheritance.class);<NEW_LINE>if (ia != null) {<NEW_LIN...
?> parent = findParent(cls);
1,520,188
public void onClick(DialogInterface dialog, int which) {<NEW_LINE>dialog.dismiss();<NEW_LINE>checkedResource = adapter.getCheckedItem();<NEW_LINE>try {<NEW_LINE>AbstractChat chat = getChat();<NEW_LINE>if (chat instanceof RegularChat) {<NEW_LINE>((RegularChat) chat).setOTRresource(Resourcepart.from(items.get(checkedReso...
Toast.LENGTH_SHORT).show();
1,039,347
/* ------------------------------------------------------------ */<NEW_LINE>protected Object parseObject(Source source) {<NEW_LINE>if (source.next() != '{')<NEW_LINE>throw new IllegalStateException();<NEW_LINE>Map<String, Object> map = newMap();<NEW_LINE>char next = seekTo("\"}", source);<NEW_LINE>while (source.hasNext...
loadClass(JSON.class, classname);
1,700,050
private void insert(Session session, String data) throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>String[] dataArray = data.split(",");<NEW_LINE>String device = dataArray[0];<NEW_LINE>long time = Long.parseLong(dataArray[1]);<NEW_LINE>List<String> measurements = Arrays.asList(dataArray[2].split(...
.add(valuesStr[i]);
414,503
public void updateConfiguration(Configuration configuration, HdfsContext context, URI uri) {<NEW_LINE>if (cacheConfig.isCachingEnabled() && cacheConfig.getCacheType() == ALLUXIO) {<NEW_LINE>configuration.set("alluxio.user.local.cache.enabled", String.valueOf(cacheConfig.isCachingEnabled()));<NEW_LINE>if (cacheConfig.ge...
(alluxioCacheConfig.isShadowCacheEnabled()));
665,168
final void executeRegisterActivityType(RegisterActivityTypeRequest registerActivityTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerActivityTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEven...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
460,786
private void addPage() throws IOException {<NEW_LINE>if (pageCount + 1 >= pageIndexes.length) {<NEW_LINE>int newSize = pageIndexes.length * 2;<NEW_LINE>// check overflow<NEW_LINE>if (newSize < pageIndexes.length) {<NEW_LINE>if (pageIndexes.length == Integer.MAX_VALUE) {<NEW_LINE>throw new IOException("Maximum buffer si...
] newPageIndexes = new int[newSize];
251,164
private void doQuery(CompletionResultSet resultSet, Document document, int caretOffset) {<NEW_LINE>if (NO_COMPLETION) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PHPSQLStatement stmt = PHPSQLStatement.computeSQLStatement(document, caretOffset);<NEW_LINE>if (stmt == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SQLCompletionC...
addAllItems(sqlResultSet.getItems());
1,217,161
public Bitmap bitmapForId(String id) {<NEW_LINE>LottieImageAsset asset = imageAssets.get(id);<NEW_LINE>if (asset == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Bitmap bitmap = asset.getBitmap();<NEW_LINE>if (bitmap != null) {<NEW_LINE>return bitmap;<NEW_LINE>}<NEW_LINE>if (delegate != null) {<NEW_LINE>bitmap = de...
).open(imagesFolder + filename);
835,361
// calculates an old to new allele index map array.<NEW_LINE>private <B extends Allele> int[] oldToNewAlleleIndexMap(final Map<B, List<A>> newToOldAlleleMap, final int oldAlleleCount, final B[] newAlleles) {<NEW_LINE>Arrays.stream(newAlleles).forEach(Utils::nonNull);<NEW_LINE>Utils.containsNoNull(newToOldAlleleMap.valu...
] oldToNewAlleleIndexMap = new int[oldAlleleCount];
1,211,878
public com.squareup.okhttp.Call userGetExecutionHistoryAsync(String symbol, OffsetDateTime timestamp, final ApiCallback<Object> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progressRequestListener = null;<NEW...
onUploadProgress(bytesWritten, contentLength, done);
891,951
public void openPreviewForEditor(final IEditorPart editorPart) {<NEW_LINE>try {<NEW_LINE>final IEditorInput editorInput = editorPart.getEditorInput();<NEW_LINE>if (!editorPart.isDirty()) {<NEW_LINE>openPreview(editorPart, editorInput, null);<NEW_LINE>} else if (editorPart instanceof AbstractTextEditor) {<NEW_LINE>IDocu...
Messages.PreviewManager_UnsavedPrompt_Title, Messages.PreviewManager_UnsavedPrompt_Message);
1,052,512
private void allSlotsInRAMStaticsDo() throws CorruptDataException {<NEW_LINE>if (ramClass.ramStatics().isNull()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Iterator<?> ofoIterator = J9ObjectFieldOffsetIterator.J9ObjectFieldOffsetIteratorFor(ramClass, J9ClassHelper.superclass(ramClass), new U32(J9ROMFieldOffsetWalkState.J9V...
addOffset(fields.getOffsetOrAddress());
438,262
private EnumSet<QueryOptions.Codec.Flag> gatherFlags(QueryOptions options, ProtocolVersion version) {<NEW_LINE>EnumSet<QueryOptions.Codec.Flag> flags = EnumSet.noneOf(QueryOptions.Codec.Flag.class);<NEW_LINE>if (options.getValues().size() > 0)<NEW_LINE>flags.add(QueryOptions.Codec.Flag.VALUES);<NEW_LINE>if (options.ski...
QueryOptions.Codec.Flag.SERIAL_CONSISTENCY);
1,745,981
public void addComment(@NonNull final String text) {<NEW_LINE>HttpObserver<IssueEvent> httpObserver = new HttpObserver<IssueEvent>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onError(Throwable error) {<NEW_LINE>mView.showErrorToast(getErrorTip(error));<NEW_LINE>mView.showAddCommentPage(text);<NEW_LINE>}<NEW_L...
.getProgressDialog(getLoadTip()));
995,140
final DescribeProductResult executeDescribeProduct(DescribeProductRequest describeProductRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeProductRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeProduct");
1,813,352
private RtAppInstanceDOExample buildExample(RtAppInstanceQueryCondition condition) {<NEW_LINE>RtAppInstanceDOExample example = new RtAppInstanceDOExample();<NEW_LINE>RtAppInstanceDOExample.<MASK><NEW_LINE>if (StringUtils.isNotBlank(condition.getAppInstanceId())) {<NEW_LINE>criteria.andAppInstanceIdEqualTo(condition.get...
Criteria criteria = example.createCriteria();
203,240
public void take(T key, ContextItem context, Promise<Void> promise, Future<Void> endFuture) {<NEW_LINE>endFuture.onComplete(voidAsyncResult -> {<NEW_LINE>global.recovery(context);<NEW_LINE>Entry entry = queue.poll();<NEW_LINE>if (entry != null) {<NEW_LINE>take((T) entry.key, entry.context, <MASK><NEW_LINE>}<NEW_LINE>})...
entry.promise, entry.endFuture);
872,755
private void applyNonConflictedChanges(@Nonnull ThreeSide side) {<NEW_LINE>executeMergeCommand("Apply Non Conflicted Changes", true, null, () -> {<NEW_LINE>List<TextMergeChange> allChanges = ContainerUtil.newArrayList(getAllChanges());<NEW_LINE>for (TextMergeChange change : allChanges) {<NEW_LINE>if (change.isConflict(...
replaceChange(change, masterSide, false);
59,103
// return TRUE if successful before timeout<NEW_LINE>// return FALSE if otherwise<NEW_LINE>// throws Exception if any unexpected error occurs<NEW_LINE>boolean repeat(double timeout) {<NEW_LINE>findTimeout = timeout;<NEW_LINE>int MaxTimePerScan = (int) (1000.0 / waitScanRate);<NEW_LINE>int timeoutMilli = (int) (timeout ...
()).getTime());
1,145,909
public static void main(String[] args) throws Exception {<NEW_LINE>if (!ValidInput(args)) {<NEW_LINE>PrintUsage();<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>final String command = args[0];<NEW_LINE>final String loadname = args[1];<NEW_LINE>final String savename = args[2];<NEW_LINE>final boolean silent = args.length...
APJ.unpack(input, null);
1,314,589
private void updateClientFromRep(ClientRepresentation rep, ClientModel client, KeycloakSession session) throws ModelDuplicateException {<NEW_LINE>UserModel serviceAccount = this.session.users().getServiceAccount(client);<NEW_LINE>if (TRUE.equals(rep.isServiceAccountsEnabled())) {<NEW_LINE>if (serviceAccount == null) {<...
).clientIdChanged(client, rep);
1,084,518
public void write(DataOutput dataOutput) throws IOException {<NEW_LINE>if (iterators != null) {<NEW_LINE>dataOutput.writeInt(iterators.size());<NEW_LINE>for (IteratorSetting setting : getIterators()) setting.write(dataOutput);<NEW_LINE>} else {<NEW_LINE>dataOutput.writeInt(0);<NEW_LINE>}<NEW_LINE>if (ranges != null) {<...
(samplerConfig).write(dataOutput);
1,151,414
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// load inspector<NEW_LINE>selectStartMode(getIntent(), getPackageName());<NEW_LINE><MASK><NEW_LINE>// init views and actions<NEW_LINE>findUsefulViews();<NEW_LINE>i...
LogUtility.d("Main started with mode " + modeType);
1,852,325
static void validateDTMStaticMethodAllowNull(EPTypeClass inputType, DateTimeMethodMode mode, EPTypeClass firstParameter, List<ExprNode> paramExpressions) throws ExprValidationException {<NEW_LINE>if (mode == null) {<NEW_LINE>if (inputType.getType() == firstParameter.getType()) {<NEW_LINE>throw new ExprValidationExcepti...
"Unexpected plug-in datetime method mode implementation " + mode.getClass());
929,671
private static RubyNumeric f_muldiv(ThreadContext context, RubyClass clazz, RubyInteger anum, RubyInteger aden, RubyInteger bnum, RubyInteger bden, final boolean mult) {<NEW_LINE>if (!mult) {<NEW_LINE>if (f_negative_p(context, bnum)) {<NEW_LINE>anum = anum.negate();<NEW_LINE>bnum = bnum.negate();<NEW_LINE>}<NEW_LINE>Ru...
ad / g2, bd / g1);
1,786,993
public static // which holds a real and an imag array of size x.length.<NEW_LINE>ComplexArray ifft(ComplexArray x) {<NEW_LINE>ComplexArray h = new ComplexArray(x.real.length);<NEW_LINE>int w;<NEW_LINE>for (w = 0; w < x.real.length; w++) {<NEW_LINE>h.real[w] = x.real[w] / x.real.length;<NEW_LINE>h.imag[w] = x.imag[w] / ...
.length / 2) + 1);
775,409
private XExpression parseScriptIntoXTextEObject(String scriptAsString) throws ScriptParsingException {<NEW_LINE>XtextResourceSet resourceSet = getResourceSet();<NEW_LINE>// IS-A XtextResource<NEW_LINE>Resource resource = resourceSet.createResource(computeUnusedUri(resourceSet));<NEW_LINE>try {<NEW_LINE>resource.load(ne...
, scriptAsString).addDiagnosticErrors(errors);
920,677
private String saveOscFile(OsmPoint[] points) {<NEW_LINE>FileOutputStream out = null;<NEW_LINE>try {<NEW_LINE>out = new FileOutputStream(srcFile);<NEW_LINE>XmlSerializer sz = Xml.newSerializer();<NEW_LINE>sz.setOutput(out, "UTF-8");<NEW_LINE>sz.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);<...
points, OsmPoint.Action.REOPEN);
1,080,506
final DeleteCampaignResult executeDeleteCampaign(DeleteCampaignRequest deleteCampaignRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCampaignRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
443,524
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>final ConfigurationProvider config = StructrApp.getConfiguration();<NEW_LINE>final String typeName = <MASK><NEW_LI...
sources[0].toString();
1,363,383
public RecoveredElement add(FieldDeclaration fieldDeclaration, int bracketBalanceValue) {<NEW_LINE>this.pendingTypeParameters = null;<NEW_LINE>if (this.typeDeclaration.declarationSourceEnd != 0 && fieldDeclaration.declarationSourceStart > this.typeDeclaration.declarationSourceEnd) {<NEW_LINE>resetPendingModifiers();<NE...
parent.add(fieldDeclaration, bracketBalanceValue);
996,412
private V put(@ParametricNullness K key, @ParametricNullness V value, boolean force) {<NEW_LINE>int keyHash = smearedHash(key);<NEW_LINE>int valueHash = smearedHash(value);<NEW_LINE>BiEntry<K, V> oldEntryForKey = seekByKey(key, keyHash);<NEW_LINE>if (oldEntryForKey != null && valueHash == oldEntryForKey.valueHash && Ob...
oldEntryForValue = seekByValue(value, valueHash);
341,080
public Request<EnterStandbyRequest> marshall(EnterStandbyRequest enterStandbyRequest) {<NEW_LINE>if (enterStandbyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<EnterStandbyRequest> request = new DefaultRequest<EnterStandbyRequest>(enterS...
(enterStandbyRequest.getAutoScalingGroupName()));
735,409
public String write(String prefix) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (!textForegroundInherited) {<NEW_LINE>sb.append(String.format(" addColor(d, \"%s%s\", %s);\n", prefix, "textForeground", textForeground.getValue().write()));<NEW_LINE>}<NEW_LINE>if (!textBackgroundInherited) {<NEW_L...
(property.write(prefix));
653,718
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>if (sources == null || sources.length != 2) {<NEW_LINE>logParameterError(caller, sources, ctx.isJavaScriptContext());<NEW_LINE>return usage(ctx.isJavaScriptContext());<NEW_LINE>}<NEW_LINE>try {...
DAYS.between(fromDate, toDate);
1,527,846
public void marshall(RoutingProfile routingProfile, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (routingProfile == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(routingProfile.getInstanceId(), INSTANCEID...
routingProfile.getDescription(), DESCRIPTION_BINDING);
973,485
private void createErrorNote(final PostingException ex) {<NEW_LINE>DB.saveConstraints();<NEW_LINE>try {<NEW_LINE>DB.getConstraints().setOnlyAllowedTrxNamePrefixes(false).incMaxTrx(1);<NEW_LINE>final PostingStatus postingStatus = ex.getPostingStatus(PostingStatus.Error);<NEW_LINE>final AdMessageKey AD_MessageValue = pos...
AD_MessageValue).translate(adLanguage));
1,282,892
final CreateKeyPairResult executeCreateKeyPair(CreateKeyPairRequest createKeyPairRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createKeyPairRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
false), new CreateKeyPairResultJsonUnmarshaller());
1,836,856
private void handle(AddVmNicToSecurityGroupMsg msg) {<NEW_LINE>AddVmNicToSecurityGroupReply reply = new AddVmNicToSecurityGroupReply();<NEW_LINE>validate(msg);<NEW_LINE>SimpleQuery<VmNicVO> q = dbf.createQuery(VmNicVO.class);<NEW_LINE>q.add(VmNicVO_.uuid, Op.IN, msg.getVmNicUuids());<NEW_LINE>List<VmNicVO> nicvos = q.l...
, msg.getSecurityGroupUuid()));
1,530,770
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Card card = game.getCard(source.getSourceId());<NEW_LINE>String chosenType = "";<NEW_LINE>if (player != null && card != null) {<NEW_LINE>Choice typeChoice = new ChoiceCreatureType();<NEW_LINE>St...
, SubType.byDescription(chosenType));
122,980
protected void write(ClassWriter classWriter, MethodWriter methodWriter, WriteScope writeScope) {<NEW_LINE>methodWriter.writeDebugInfo(getLocation());<NEW_LINE>if (operation == Operation.AND) {<NEW_LINE>Label fals = new Label();<NEW_LINE>Label end = new Label();<NEW_LINE>getLeftNode().write(classWriter, methodWriter, w...
"for type [" + getExpressionCanonicalTypeName() + "]");
993,317
private Class<? extends EventExecutor> createExecutor(Method method, Class<? extends Event> eventClass) throws ExecutionException {<NEW_LINE>return EXECUTOR_CACHE.get(method, () -> {<NEW_LINE>ClassWriter cv = new ClassWriter(ClassWriter.COMPUTE_MAXS);<NEW_LINE>cv.visit(Opcodes.V1_8, Opcodes.ACC_SUPER + Opcodes.ACC_SYNT...
getInternalName(EventExecutor.class) });
619,293
public void removeRssfeedSettings(int order) {<NEW_LINE>if (prefs.getString("rssfeed_url_" + order, null) == null)<NEW_LINE>// The settings that were requested to be removed do not exist<NEW_LINE>return;<NEW_LINE>// Copy all settings higher than the supplied order number to the previous spot<NEW_LINE>Editor edit = pref...
edit.remove("rssfeed_include_" + max);
694,773
public StaxEventItemReader<T> build() {<NEW_LINE>StaxEventItemReader<T> <MASK><NEW_LINE>if (this.resource == null) {<NEW_LINE>logger.debug("The resource is null. This is only a valid scenario when " + "injecting resource later as in when using the MultiResourceItemReader");<NEW_LINE>}<NEW_LINE>if (this.saveState) {<NEW...
reader = new StaxEventItemReader<>();
80,853
protected void computeBarycentricCoordinates(DogArray<Point3D_F64> controlWorldPts, DMatrixRMaj alphas, List<Point3D_F64> worldPts) {<NEW_LINE>alphas.reshape(worldPts.size(), numControl, false);<NEW_LINE>v_temp.reshape(3, 1);<NEW_LINE>A_temp.reshape(3, numControl - 1);<NEW_LINE>for (int i = 0; i < numControl - 1; i++) ...
] - w_temp.data[1];
826,249
private void printClass(TypeElement typeElement, @Nullable String outerClass) {<NEW_LINE>indent();<NEW_LINE>List<? extends AnnotationMirror<MASK><NEW_LINE>if (teannos != null && !teannos.isEmpty()) {<NEW_LINE>for (AnnotationMirror am : teannos) {<NEW_LINE>out.println(am);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (typeElement....
> teannos = typeElement.getAnnotationMirrors();
945,638
public Void map(ResultSet rs) throws SQLException {<NEW_LINE>while (rs.next()) {<NEW_LINE>String taskName = rs.getString("task_name");<NEW_LINE>Optional<Task> task = taskResolver.resolve(taskName);<NEW_LINE>if (!task.isPresent()) {<NEW_LINE><MASK><NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>String instanceId = rs.getString(...
LOG.warn("Failed to find implementation for task with name '{}'. Execution will be excluded from due. Either delete the execution from the database, or add an implementation for it. The scheduler may be configured to automatically delete unresolved tasks after a certain period of time.", taskName);
1,365,937
protected List<Map<String, Object>> searchInternal(final String query, final SearchRequestParams params, final OptionalThing<FessUserBean> userBean) {<NEW_LINE>final FessConfig fessConfig = ComponentUtil.getFessConfig();<NEW_LINE>final QueryHelper queryHelper = ComponentUtil.getQueryHelper();<NEW_LINE>final QueryFieldC...
QueryResponseList queryResponseList = ComponentUtil.getQueryResponseList();
974,967
private static ImmutableMap<String, KeyColumnNameInfo> extractKeyColumnNameInfosIndexedByKeyColumnName(@NonNull final List<SqlEntityFieldBinding> keyFields) {<NEW_LINE>final ArrayList<String> availableIntKeys = new ArrayList<>(I_T_WEBUI_ViewSelection.COLUMNNAME_IntKeys);<NEW_LINE>final ArrayList<String> availableString...
ArrayList<>(I_T_WEBUI_ViewSelection.COLUMNNAME_StringKeys);
1,140,515
public static void execMainClass(final Class<?> classWithMain, final String[] args) {<NEW_LINE>Method main = null;<NEW_LINE>try {<NEW_LINE>main = classWithMain.getMethod("main", args.getClass());<NEW_LINE>} catch (Exception t) {<NEW_LINE>log.error("Could not run main method on '" + classWithMain.getName() + "'.", t);<N...
(null, (Object) args);
1,812,403
private boolean sendEmail(SenderEmail senderEmail, AlertTemplate mail, String... mails) throws AlertException {<NEW_LINE>log.info(mail.getSubject());<NEW_LINE>try {<NEW_LINE>Map<String, AlertTemplate> out = new HashMap<>(16);<NEW_LINE>out.put("mail", mail);<NEW_LINE>String html = FreemarkerUtils.format(template, out);<...
getSmtpPort().toString());
874,184
public AutogenGitCodeDiff generate(SourceOfRandomness r, GenerationStatus status) {<NEW_LINE>// if (r.nextBoolean())<NEW_LINE>// return null;<NEW_LINE>AutogenGitCodeDiff obj = new AutogenGitCodeDiff();<NEW_LINE>if (r.nextBoolean()) {<NEW_LINE>obj.setA(Utils.removeEmpty(gen().type(AutogenGitCodeBlob.class).generate(r, s...
generate(r, status)));
96,206
void propagate_parentage_alternate_(Treap aet, int treeNode, int edge, int leftEdge, int twinEdge, int edgeChain, int edgeChainParent, int twinHalfEdgeChain) {<NEW_LINE>// Now do specific sweep calculations<NEW_LINE>// This one is done when we are doing a topological operation.<NEW_LINE>int geometry = m_shape.getFirstG...
parity = getHalfEdgeUserIndex(edge, m_tmpHalfEdgeOddEvenNumberIndex);
319,955
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.fine("Process Menu Request");<NEW_LINE>// Get Parameter: Exit<NEW_LINE>if (MobileUtil.getParameter(request, "Exit") != null) {<NEW_LINE>MobileUtil.createLoginPage(request, response, this, null...
Env.getAD_Client_ID(wsc.ctx);
1,586,039
public static AtlasBackupService create(AuthHeader authHeader, Refreshable<ServicesConfigBlock> servicesConfigBlock, String serviceName, Function<Namespace, Path> backupFolderFactory, Function<Namespace, KeyValueService> keyValueServiceFactory) {<NEW_LINE>ReloadingFactory reloadingFactory = DialogueClients.create(servi...
BackupPersister backupPersister = new ExternalBackupPersister(backupFolderFactory);
1,264,522
private Set<MonitorGroupMeta> buildBeaconGroups(Map<String, ClusterMeta> dcClusterMetas) {<NEW_LINE>Set<MonitorGroupMeta> groups = new HashSet<>();<NEW_LINE>dcClusterMetas.forEach((dc, clusterMeta) -> {<NEW_LINE>String activeDc = clusterMeta.getActiveDc();<NEW_LINE>// no register cross region dcs to beacon<NEW_LINE>if ...
collect(Collectors.toSet());
144,331
public void read(org.apache.thrift.protocol.TProtocol iprot, TStringStringValue struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == ...
skip(iprot, schemeField.type);
772,832
public void OpenShift_StubbedTests_usingSocialConfig_authenticatedMissingInTokenReviewResponse() throws Exception {<NEW_LINE>// Use a "captured" response from an OpenShift tokenReviews response<NEW_LINE>String access_token = "{\"kind\":\"TokenReview\",\"apiVersion\":\"authentication.k8s.io/v1\",\"metadata\":{\"creation...
genericTestServer.getServerHttpsString() + "/helloworld/rest/helloworld_accessTokenRequiredTrue");
128,631
public CalciteConnectionConfig toConnectionConfig() {<NEW_LINE>Properties connectionProperties = new Properties();<NEW_LINE>connectionProperties.put(CalciteConnectionProperty.CASE_SENSITIVE.camelName(), Boolean.toString(caseSensitive));<NEW_LINE>connectionProperties.put(CalciteConnectionProperty.UNQUOTED_CASING.camelNa...
), quotedCasing.toString());
966,649
private static void tryAssertionGrouped(RegressionEnvironment env, AtomicInteger milestone) {<NEW_LINE>String[] fields = "theString,firststring,firstint,laststring,lastint,allint".split(",");<NEW_LINE>env.sendEventBean(new SupportBean("E1", 10));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { "E1", "E1", 10, ...
] { 11, 13 } });
230,040
public static void switchBranch(final GitRepository repo, final String branchName) {<NEW_LINE>String text = MessageFormat.<MASK><NEW_LINE>IStatus switchStatus = repo.switchBranch(branchName, new NullProgressMonitor());<NEW_LINE>if (!switchStatus.isOK()) {<NEW_LINE>// If we couldn't switch, surface up the output<NEW_LIN...
format(Messages.SwitchBranchAction_BranchSwitch_Msg, branchName);
238,481
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(...
, parser.nextDouble(0));
672,619
final ListSuggestedResiliencyPoliciesResult executeListSuggestedResiliencyPolicies(ListSuggestedResiliencyPoliciesRequest listSuggestedResiliencyPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSuggestedResiliencyPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
endClientExecution(awsRequestMetrics, request, response);
386,571
public ListResponsePlansResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResponsePlansResult listResponsePlansResult = new ListResponsePlansResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
class).unmarshall(context));
221,890
public String[] authorize(URL home) {<NEW_LINE>FormLogin panel = new FormLogin();<NEW_LINE>String server = HudsonManager.simplifyServerLocation(home.toString(), true);<NEW_LINE>String username = loginPrefs().get(server, null);<NEW_LINE>if (username != null) {<NEW_LINE>panel.userField.setText(username);<NEW_LINE>char[] ...
setText(home.toString());
888,202
static ParserState doUnsignedShortInt(ParserState state, Object kwds, @SuppressWarnings("unused") char c, @SuppressWarnings("unused") char[] format, @SuppressWarnings("unused") int format_idx, Object kwdnames, Object varargs, @Shared("getArgNode") @Cached GetArgNode getArgNode, @Cached AsNativePrimitiveNode asNativePri...
.toInt64(arg, false));
1,256,989
protected Request.Builder applyHeaders(IGClient client, Request.Builder req) {<NEW_LINE>req.addHeader("Connection", "close");<NEW_LINE>req.addHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");<NEW_LINE>req.addHeader("Accept-Language", "en-US");<NEW_LINE>req.addHeader("X-IG-Capabilities", client...
req.addHeader("X-IG-App-Locale", "en_US");
1,333,811
public static String command(String input, Consumer<String> messageListener) {<NEW_LINE>if (input == null || input.isEmpty()) {<NEW_LINE>return "Invalid input.";<NEW_LINE>}<NEW_LINE>String[] split = <MASK><NEW_LINE>String command = split[0];<NEW_LINE>String parameter = null;<NEW_LINE>if (split.length == 2) {<NEW_LINE>p...
input.split(" ", 2);
126,346
private boolean processUninstalledInstallerBundle(long installerBundleId) {<NEW_LINE>// find out if the uninstalled bundle ID was an installer bundle and remove its installees as well<NEW_LINE>Set<Long> bundleIdsToUninstall;<NEW_LINE>boolean tracked;<NEW_LINE>synchronized (bundleOrigins) {<NEW_LINE>bundleIdsToUninstall...
tracked = allTracked.remove(installerBundleId);
1,815,512
private void wrapCalloutView() {<NEW_LINE>// some hackery is needed to get the arbitrary infowindow view to render centered, and<NEW_LINE>// with only the width/height that it needs.<NEW_LINE>if (this.calloutView == null || this.calloutView.getChildCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>LL...
LinearLayout LL = new LinearLayout(context);
1,497,847
public static void main(String[] args) throws InterruptedException {<NEW_LINE>final String usage = "\n" + "Usage:\n" + " <iam> <s3Path> <cron> <dbName> <crawlerName> <jobName> \n\n" + "Where:\n" + " iam - The ARN of the IAM role that has AWS Glue and S3 permissions. \n" + " s3Path - The Amazon Simple Storage S...
glueClient, jobName, iam, scriptLocation);
978,973
private Sequence record(Table srcTable, Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("record" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>Expression srcExp;<NEW_LINE>int pos = 0;<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>s...
Number) posObj).intValue();
1,160,639
public MultipleObjectsBundle filter(MultipleObjectsBundle objects) {<NEW_LINE>final int len = objects.dataLength();<NEW_LINE>MultipleObjectsBundle bundle = new MultipleObjectsBundle();<NEW_LINE>int[] order = new int[len];<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>order[i] = i;<NEW_LINE>}<NEW_LINE>Sorter compara...
column = objects.getColumn(r);
1,060,804
private short[] verifySignatureIntern(short[] signature) {<NEW_LINE>short[][] coeff_quadratic = ((RainbowPublicKeyParameters) <MASK><NEW_LINE>short[][] coeff_singular = ((RainbowPublicKeyParameters) this.key).getCoeffSingular();<NEW_LINE>short[] coeff_scalar = ((RainbowPublicKeyParameters) this.key).getCoeffScalar();<N...
this.key).getCoeffQuadratic();