idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,660,530
private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isEmpty(wi.getKey())) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>List<String> groupIds = business.expendGroupRoleToGroup(wi.getGroupList(), wi.getRoleList());<NEW_LINE>String str = Stri...
Wo.copier.copy(os);
845,113
public okhttp3.Call applicationsApplicationIdOauthKeysKeyMappingIdGetCall(String applicationId, String keyMappingId, String groupId, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/applications/{applic...
localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
1,784,299
public void endVisit(SQLCastExpr x) {<NEW_LINE>Item a = getItem(x.getExpr());<NEW_LINE>SQLDataType dataType = x.getDataType();<NEW_LINE>if (dataType instanceof SQLCharacterDataType) {<NEW_LINE>SQLCharacterDataType charType = (SQLCharacterDataType) dataType;<NEW_LINE>String upType = charType.getName().toUpperCase();<NEW...
"", "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character set " + charSetName + ")'");
1,657,632
private static SSLContext newSSLContext(Provider sslContextProvider, X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, long sessionCacheSize, long sessionTimeout, String keyStore) throw...
(sessionTimeout, Integer.MAX_VALUE));
336,218
public static <T extends Runnable> List<T> readParallel(int concurrency, int batchSize, HugeBatchNodeIterable idMapping, ExecutorService executor, HugeParallelGraphImporter<T> importer) {<NEW_LINE>Collection<PrimitiveLongIterable> iterators = idMapping.hugeBatchIterables(batchSize);<NEW_LINE><MASK><NEW_LINE>final List<...
int threads = iterators.size();
1,414,019
void removeLanguage(String language, DebuggerEngine engine) {<NEW_LINE>Object oldL;<NEW_LINE>String[] newLanguages;<NEW_LINE>synchronized (this) {<NEW_LINE>int i, k = languages.length;<NEW_LINE>for (i = 0; i < k; i++) if (language.equals(languages[i])) {<NEW_LINE>if (engines[i] != engine)<NEW_LINE>throw new IllegalArgu...
0, newEngines, 0, i);
1,461,030
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>// Hack for STR Rx, =0xSOMEADDR<NEW_LINE>IO...
= (registerOperand2.getValue());
1,152,194
public void readExternal(Element element) throws InvalidDataException {<NEW_LINE><MASK><NEW_LINE>Element schElement = element;<NEW_LINE>final String activeName = element.getAttributeValue(ACTIVE);<NEW_LINE>if (activeName != null) {<NEW_LINE>for (Element toolbarElement : (Iterable<Element>) element.getChildren(ACTIONS_S...
DefaultJDOMExternalizer.readExternal(this, element);
180,619
public Matrix3f normalize3x3(Matrix3f dest) {<NEW_LINE>float invXlen = Math.invsqrt(m00 * m00 + m01 * m01 + m02 * m02);<NEW_LINE>float invYlen = Math.invsqrt(m10 * m10 + m11 * m11 + m12 * m12);<NEW_LINE>float invZlen = Math.invsqrt(m20 * m20 + m21 * m21 + m22 * m22);<NEW_LINE>dest.m00(m00 * invXlen);<NEW_LINE>dest.m01(...
dest.m10(m10 * invYlen);
729,593
private String encodeCurrencyData(Currency currency) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>String skipped = "";<NEW_LINE>String displayName = currency.getDisplayName();<NEW_LINE>if (displayName == null) {<NEW_LINE>displayName = currency.getCode();<NEW_LINE>}<NEW_LINE>buf.append(displayName);<NEW_...
append(currency.getRounding());
567,789
public InteractionResultHolder<ItemStack> use(Level world, Player player, @Nonnull InteractionHand hand) {<NEW_LINE>ItemStack stack = player.getItemInHand(hand);<NEW_LINE>int range = 16;<NEW_LINE>List<WitherBoss> withers = world.getEntitiesOfClass(WitherBoss.class, new AABB(player.getX() - range, player.getY() - range,...
)) * 0.2F) * 0.7F);
559,827
protected String makeExternalUrl(int serverId) {<NEW_LINE>Server server = ServerManager.<MASK><NEW_LINE>String linkName = server.getExtLinkName();<NEW_LINE>String linkUrl = server.getExtLinkUrlPattern();<NEW_LINE>String objHashes = AgentModelThread.getInstance().getLiveObjectHashStringWithParent(serverId, objType);<NEW...
getInstance().getServer(serverId);
1,580,599
public BLangNode transform(QueryActionNode queryActionNode) {<NEW_LINE>BLangQueryAction bLQueryAction = (BLangQueryAction) TreeBuilder.createQueryActionNode();<NEW_LINE>BLangDoClause doClause = (BLangDoClause) TreeBuilder.createDoClauseNode();<NEW_LINE>doClause.body = (BLangBlockStmt) queryActionNode.<MASK><NEW_LINE>do...
blockStatement().apply(this);
1,028,678
/* (non-Javadoc)<NEW_LINE>* @see com.dotcms.repackage.com.bradmcevoy.http.PutableResource#createNew(java.lang.String, java.io.InputStream, java.lang.Long, java.lang.String)<NEW_LINE>*/<NEW_LINE>public Resource createNew(String newName, InputStream in, Long length, String contentType) throws IOException {<NEW_LINE>if (!...
+ f.getName()));
1,145,548
private TbEmail convert(TbMsg msg) throws IOException {<NEW_LINE>TbEmail.TbEmailBuilder builder = TbEmail.builder();<NEW_LINE>builder.from(fromTemplate(this.config.getFromTemplate(), msg));<NEW_LINE>builder.to(fromTemplate(this.config<MASK><NEW_LINE>builder.cc(fromTemplate(this.config.getCcTemplate(), msg));<NEW_LINE>b...
.getToTemplate(), msg));
1,344,184
public void evaluateNullAnnotations() {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.nullnessDefaultInitialized > 0 || !this.scope.compilerOptions().isAnnotationBasedNullAnalysisEnabled)<NEW_LINE>return;<NEW_LINE>if ((this.tagBits & TagBits.AnnotationNullMASK) != 0) {<NEW_L...
this.defaultNullness, typeDecl.declarationSourceStart);
1,601,037
final DescribePipelinesResult executeDescribePipelines(DescribePipelinesRequest describePipelinesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePipelinesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePipelines");
1,388
private void featuresAsJson(HttpServletRequest req, HttpServletResponse res) throws IOException {<NEW_LINE>String[] pathParts = req.getPathInfo().split("/");<NEW_LINE>res.setContentType(CONTENT_TYPE_JSON);<NEW_LINE>if (pathParts.length > 3) {<NEW_LINE>String featureId = pathParts[3];<NEW_LINE>if (getFf4j().getFeatureSt...
StringBuilder sb = new StringBuilder("[");
857,286
public int compareTo(GCStatus other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetLast(), other.isSetLast());<NEW_LINE>if (lastCompar...
this.last, other.last);
1,293,020
public Lifecycle unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Lifecycle lifecycle = new Lifecycle();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><...
JsonToken token = context.getCurrentToken();
211,715
private static boolean implVerify(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, byte phflag, byte[] m, int mOff, int mLen) {<NEW_LINE>if (!checkContextVar(ctx, phflag)) {<NEW_LINE>throw new IllegalArgumentException("ctx");<NEW_LINE>}<NEW_LINE>byte[] R = copy(sig, sigOff, POINT_BYTES);<NEW_LINE>byte[] S = co...
update(m, mOff, mLen);
873,940
public boolean OPEN() {<NEW_LINE>if ((this.cmd.length < 2) || (this.cmd.length > 3)) {<NEW_LINE>log.warn("Syntax: OPEN <host> [<port>]");<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int port = 21;<NEW_LINE>if (this.cmd.length == 3) {<NEW_LINE>try {<NEW_LINE>port = java.lang.Integer.parseInt(this.cmd[2]);<NEW_LINE>} catch...
':', 0) + 1));
178,601
public void draw(PoseStack matrixStack, int xOffset, int yOffset) {<NEW_LINE>matrixStack.pushPose();<NEW_LINE>matrixStack.translate(xOffset, yOffset, 100);<NEW_LINE>matrixStack.mulPose(Vector3f.XP.rotationDegrees(-15.5f));<NEW_LINE>matrixStack.mulPose(Vector3f.YP.rotationDegrees(22.5f));<NEW_LINE>int scale = 20;<NEW_LI...
) - offset * 8) % 30;
1,271,689
public void handleValue(final String value, final PropertiesParserState state) {<NEW_LINE>DrawHandler drawer = state.getDrawer();<NEW_LINE>StateTypeEnum type = StateTypeEnum.valueOf(value.toUpperCase(Locale.ENGLISH));<NEW_LINE>Dimension s = state.getGridElementSize();<NEW_LINE>// IMPORTANT NOTE: Make sure the element l...
1, h - 1, 1);
997,517
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>TriggerSmartContract.Builder build = TriggerSmartContract.newBuilder();<NEW_LINE>TransactionExtention.Builder trxExtBuilder = TransactionExtention.newBuilder();<NEW_LINE>Return.Builder retBuilder = Return.newBu...
jsonObject = JSONObject.parseObject(contract);
165,140
private Expression buildAnyFieldExpression(final PermissionCondition condition, final Function<Check, Expression> checkFn, final Set<String> requestedFields, final RequestScope scope) {<NEW_LINE>Type<?> resourceClass = condition.getEntityClass();<NEW_LINE>Class<? extends Annotation> annotationClass = condition.getPermi...
return new AnyFieldExpression(condition, entityExpression);
1,639,180
private Authentication doAuthentication(SocialAuthenticationService<?> authService, HttpServletRequest request, SocialAuthenticationToken token) {<NEW_LINE>try {<NEW_LINE>if (!authService.getConnectionCardinality().isAuthenticatePossible())<NEW_LINE>return null;<NEW_LINE>token.setDetails(authenticationDetailsSource.bui...
new SocialAuthenticationRedirectException(buildSignupUrl(request));
194,497
@ActionEvent(eventType = EventTypes.EVENT_USER_ENABLE, eventDescription = "enabling User")<NEW_LINE>public UserAccount enableUser(final long userId) {<NEW_LINE>Account caller = getCurrentCallingAccount();<NEW_LINE>// Check if user exists in the system<NEW_LINE>final User user = _userDao.findById(userId);<NEW_LINE>if (u...
InvalidParameterValueException("User id : " + userId + " is a system user, enabling is not allowed");
631,031
private void handleClassAsTarget(OSelectExecutionPlan plan, Set<String> filterClusters, OFromClause from, QueryPlanningInfo info, OCommandContext ctx, boolean profilingEnabled) {<NEW_LINE>OIdentifier identifier = from.getItem().getIdentifier();<NEW_LINE>if (handleClassAsTargetWithIndexedFunction(plan, filterClusters, i...
info, ctx, orderByRidAsc, profilingEnabled);
1,005,117
private InjectableResultImpl handleEESpecificImplementations(ResultImpl result, TypeElement firstElement, Set<Element> enabledTypes) {<NEW_LINE>if (result.getVariable() != null) {<NEW_LINE>String nm = result.getVariable().asType().toString();<NEW_LINE>int c = nm.indexOf('<');<NEW_LINE>if (c > 0) {<NEW_LINE>nm = nm.subs...
getResult(), firstElement, enabledTypes);
364,511
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public PortfolioItemSummary summarize() {<NEW_LINE>// 2Y Buy USD 1mm ENTITY / 1.5% : 21Jan18-21Jan20<NEW_LINE>PeriodicSchedule paymentSchedule = product.getPaymentSchedule();<NEW_LINE><MASK><NEW_LINE>buf.append(Summ...
StringBuilder buf = new StringBuilder(96);
929,468
void showDummyNotification(Service service) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {<NEW_LINE>if (!isShowingDummyNotification) {<NEW_LINE>NotificationManager notificationManager = <MASK><NEW_LINE>NotificationChannel channel = notificationManager.getNotificationChannel(CHANNEL_ID);<NEW_LINE>if (c...
service.getSystemService(NotificationManager.class);
274,249
public okhttp3.Call fakeOuterStringSerializeCall(String body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>b...
= new ArrayList<Pair>();
574,549
public synchronized void profile() {<NEW_LINE>// See http://man7.org/linux/man-pages/man5/proc.5.html for details about /proc/[pid]/io<NEW_LINE>Map<String, String> procMap = ProcFileUtils.getProcIO();<NEW_LINE>Long rchar = ProcFileUtils.getBytesValue(procMap, "rchar");<NEW_LINE>Long wchar = ProcFileUtils.getBytesValue(...
ioMap.put("wchar", wchar);
301,015
private List<Step> toSteps(Scenario scenario, List<KarateParser.StepContext> list) {<NEW_LINE>List<Step> steps = new <MASK><NEW_LINE>int index = 0;<NEW_LINE>for (KarateParser.StepContext sc : list) {<NEW_LINE>Step step = scenario == null ? new Step(feature, index++) : new Step(scenario, index++);<NEW_LINE>step.setComme...
ArrayList(list.size());
1,841,780
public LuaValue[] addTapTexts(LuaValue[] vars) {<NEW_LINE>UDArray targetTextsArray = vars.length > 0 ? (<MASK><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 (targetTextsArray == null)<NEW...
UDArray) vars[0] : null;
746,144
public void testConsumptionForDeletedEvents() {<NEW_LINE>final TestStreamingClient client = TestStreamingClient.create(URL, subscription.getId(<MASK><NEW_LINE>waitFor(() -> assertThat(client.getSessionId(), not(equalTo(SESSION_ID_UNKNOWN))));<NEW_LINE>// upon execution, we expect that event type will receive:<NEW_LINE>...
), "batch_flush_timeout=600&batch_limit=1&stream_timeout=2&stream_limit=6").start();
1,037,550
final StartExportLabelsTaskRunResult executeStartExportLabelsTaskRun(StartExportLabelsTaskRunRequest startExportLabelsTaskRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startExportLabelsTaskRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Glue");
628,758
protected void onHandleIntent(Intent intent) {<NEW_LINE>Notification.Builder notificationBuilder = createNotification();<NEW_LINE>final File zipFile = new File(getCacheDir(), "Minetest.zip");<NEW_LINE>try {<NEW_LINE>setIsRunning(true);<NEW_LINE>File userDataDirectory = Utils.getUserDataDirectory(this);<NEW_LINE>if (use...
] readBuffer = new byte[16384];
1,184,844
public double differentiateX0(PiecewisePolynomialResult2D pp, double x0Key, double x1Key) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>int order0 = pp.getOrder()[0];<NEW_LINE>int order1 = pp.getOrder()[1];<NEW_LINE>ArgChecker.isFalse(order0 < 2, "polynomial degree of x0 < 1");<NEW_LINE><MASK><NEW_LINE>DoubleArray ...
DoubleArray knots0 = pp.getKnots0();
892,715
private void doDownload(URI address, File destination) throws Exception {<NEW_LINE>String displayName = "Download " + address;<NEW_LINE>FileDownloadOperationDescriptor descriptor = new DefaultFileDownloadOperationDescriptor(displayName, address, null);<NEW_LINE>long startTime = clock.getCurrentTime();<NEW_LINE>buildPro...
long endTime = clock.getCurrentTime();
1,007,393
public BufferedImage intelligentResize(File incomingImage, int width, int height, int resampleOption) {<NEW_LINE>final String hash = DigestUtils.sha256Hex(incomingImage.getAbsolutePath());<NEW_LINE>Dimension originalSize = getWidthHeight(incomingImage);<NEW_LINE>width = Math.min(maxSize, width);<NEW_LINE>height = Math....
).runFilter(incomingImage, params);
1,658,554
final DescribeWebsiteCertificateAuthorityResult executeDescribeWebsiteCertificateAuthority(DescribeWebsiteCertificateAuthorityRequest describeWebsiteCertificateAuthorityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeWebsiteCertificateAuthorityRequest);<NEW_LINE>AWSRequestMetrics ...
false), new DescribeWebsiteCertificateAuthorityResultJsonUnmarshaller());
1,583,830
private static ImmutableList<CToolchain> createToolchains(NdkPaths ndkPaths, StlImpl stlImpl, String hostPlatform) {<NEW_LINE>List<CToolchain.Builder> toolchainBuilders = new ArrayList<>();<NEW_LINE>toolchainBuilders.addAll(new ArmCrosstools(ndkPaths, stlImpl).createCrosstools());<NEW_LINE>toolchainBuilders.addAll(new ...
new ImmutableList.Builder<>();
1,146,623
protected final void bindValues(DatabaseStatement stmt, TraceUser entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>stmt.bindString(1, entity.getLogin());<NEW_LINE>String name = entity.getName();<NEW_LINE>if (name != null) {<NEW_LINE>stmt.bindString(2, name);<NEW_LINE>}<NEW_LINE>String avatarUrl = entity.getAvatarUrl()...
stmt.bindString(3, avatarUrl);
519,999
public boolean isDaylight(TimeZone timeZone) {<NEW_LINE>Date riseDate = getDailyForecast().get(0).sun().getRiseDate();<NEW_LINE>Date setDate = getDailyForecast().get(0).sun().getSetDate();<NEW_LINE>if (riseDate != null && setDate != null) {<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>calendar.setTimeZ...
setTimeZone(TimeZone.getDefault());
82,404
public final Except_clauseContext except_clause() throws RecognitionException {<NEW_LINE>Except_clauseContext _localctx = new Except_clauseContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 94, RULE_except_clause);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState...
_localctx.NAME = match(NAME);
1,018,944
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>try {<NEW_LINE>IResource resource = null;<NEW_LINE>if (resource == null) {<NEW_LINE>resource = ResourcesPlugin.getWorkspace().getRoot();<NEW_LINE>}<NEW_LINE>IJSExceptionBreakpoint breakpoint = JSDebugModel.createExceptionBreakpoint(resource, (String) selected[0...
updateStatus(e.getStatus());
1,052,838
public boolean replaceLabels(HashMap<String, Long> globalLabels, HashMap<AssemblerToken, StringGetter> errors, AssemblerInterface assembler, HashMap<String, AssemblerMacro> macros) {<NEW_LINE>boolean hasErrors = false;<NEW_LINE>long pc = 0;<NEW_LINE>long nextpc = 0;<NEW_LINE>hierarchy.clear();<NEW_LINE>for (int i = 0; ...
errors, assembler, macros, hierarchy);
1,511,671
public synchronized Cursor artistAlbums(String artist, String artistDisambiguation) {<NEW_LINE>String[] fields = new String[] { ID };<NEW_LINE>WhereInfo whereInfo = new WhereInfo();<NEW_LINE>whereInfo.connection = "AND";<NEW_LINE>whereInfo.where.put(ARTISTS_ARTIST, new String[] { artist });<NEW_LINE>whereInfo.where.put...
ALBUMS_ALBUMARTISTID, TABLE_ARTISTS + "." + ID);
811,518
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent creature = game.getPermanent(source.getSourceId());<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player != null) {<NEW_LINE>player.drawCards(3, source, game);<NEW_LINE>Cards cards = new CardsImpl();<NEW_LINE>int card...
getControllerId(), source, game);
726,898
private void buildRolesReachableInOneStepMap() {<NEW_LINE>this.rolesReachableInOneStepMap = new HashMap<>();<NEW_LINE>for (String line : this.roleHierarchyStringRepresentation.split("\n")) {<NEW_LINE>// Split on > and trim excessive whitespace<NEW_LINE>String[] roles = line.trim().split("\\s+>\\s+");<NEW_LINE>for (int ...
this.rolesReachableInOneStepMap.get(higherRole);
1,637,110
private List<GpxDisplayItem> collectDisplayItemsFromGroup(GpxDisplayGroup group) {<NEW_LINE>List<GpxDisplayItem> splitSegments = new ArrayList<>();<NEW_LINE>boolean generalTrack = gpxItem.isGeneralTrack();<NEW_LINE><MASK><NEW_LINE>if ((group.isSplitDistance() || group.isSplitTime()) && (!generalGroup && !generalTrack |...
boolean generalGroup = group.isGeneralTrack();
656,760
final AdminDeleteUserAttributesResult executeAdminDeleteUserAttributes(AdminDeleteUserAttributesRequest adminDeleteUserAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminDeleteUserAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,114,809
public void handleFinishedUpload(ServerPlayer player, String schematic) {<NEW_LINE>String playerSchematicId = player.getGameProfile()<MASK><NEW_LINE>if (activeUploads.containsKey(playerSchematicId)) {<NEW_LINE>try {<NEW_LINE>activeUploads.get(playerSchematicId).stream.close();<NEW_LINE>SchematicUploadEntry removed = ac...
.getName() + "/" + schematic;
519,237
private void applyWebSettings() {<NEW_LINE>Logger.I(TAG, "applyWebSettings");<NEW_LINE>// PerformOnUiThread.exec(new Runnable() {<NEW_LINE>// @Override<NEW_LINE>// public void run() {<NEW_LINE>Logger.I(TAG, "Web settings is applying now >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");<NEW_LINE>double z = getCo...
int) (z * 100));
1,217,597
protected void encodeScript(FacesContext context, InputTextarea inputTextarea) throws IOException {<NEW_LINE>boolean autoResize = inputTextarea.isAutoResize();<NEW_LINE>String counter = inputTextarea.getCounter();<NEW_LINE>WidgetBuilder wb = getWidgetBuilder(context);<NEW_LINE>wb.init("InputTextarea", inputTextarea).at...
resolveComponent(context, inputTextarea, counter);
472,446
private static void updatePathIds(URL root, TaggedClassPath tcp, Map<URL, PathIds> pathIdsResult, Map<String, Set<URL>> pathIdToRootsResult) {<NEW_LINE>PathIds pathIds = pathIdsResult.get(root);<NEW_LINE>if (pathIds == null) {<NEW_LINE>pathIds = new PathIds();<NEW_LINE>pathIdsResult.put(root, pathIds);<NEW_LINE>}<NEW_L...
pathIdToRootsResult.put(id, rootsWithId);
1,647,542
private static void fillApiDeclarationInRepresentation(Operation operation, ResourceOperationDeclaration rod, Contract contract, Collection<String> usedModels) {<NEW_LINE>// Get in representation<NEW_LINE>ResourceOperationParameterDeclaration ropd;<NEW_LINE>PayLoad inputPayload = operation.getInputPayLoad();<NEW_LINE>i...
String itemsType = inputPayload.getType();
1,828,957
void doMainMenuChecks() {<NEW_LINE>// Code to disable draw menu items when cct is not editable, but no used in this version as it<NEW_LINE>// puts up a dialog box instead (see menuPerformed).<NEW_LINE>// int c = mainMenuItems.size();<NEW_LINE>// int i;<NEW_LINE>// for (i=0; i<c ; i++) {<NEW_LINE>// String s = mainMenuI...
combineAllItem.setEnabled(scopeCount > 1);
1,349,096
public DisableFastSnapshotRestoreStateErrorItem unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DisableFastSnapshotRestoreStateErrorItem disableFastSnapshotRestoreStateErrorItem = new DisableFastSnapshotRestoreStateErrorItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int...
XMLEvent xmlEvent = context.nextEvent();
1,552,558
public static void split2(InterleavedF32 interleaved, GrayF32 band0, GrayF32 band1) {<NEW_LINE>if (interleaved.numBands != 2)<NEW_LINE>throw new IllegalArgumentException("Input interleaved image must have 2 bands");<NEW_LINE>InputSanityCheck.checkSameShape(band0, interleaved);<NEW_LINE>InputSanityCheck.checkSameShape(b...
.startIndex + y * band1.stride;
1,775,713
public boolean configure(final String name, final Map<String, Object> params) throws ConfigurationException {<NEW_LINE>_name = name;<NEW_LINE>String value = (String) params.get("ssh.sleep");<NEW_LINE>_sleep = NumbersUtil.parseInt(value, 10) * 1000;<NEW_LINE>value = (String) params.get("ssh.retry");<NEW_LINE>_retry = Nu...
"The router.aggregation.command.each.timeout in seconds is set to " + _eachTimeout.getStandardSeconds());
521,541
public static void merge(Encoding from, Encoding to, boolean override, ApiContext context) {<NEW_LINE>if (from == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>to.setContentType(mergeProperty(to.getContentType(), from.getContentType(), override));<NEW_LINE>to.setStyle(mergeProperty(to.getStyle(), from.getStyle(), overri...
.getExplode(), override));
1,734,621
final ListResolverRulesResult executeListResolverRules(ListResolverRulesRequest listResolverRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResolverRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListResolverRules");
26,294
private static void writeAuxiliaryData(AuxiliaryConfiguration conf, boolean shared, List<M2Configuration> configs) {<NEW_LINE>if (configs.isEmpty()) {<NEW_LINE>// #226017<NEW_LINE>conf.removeConfigurationFragment(ROOT, NAMESPACE, shared);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element el = conf.getConfigurationFragment(R...
NodeList nl = enEl.getChildNodes();
1,783,309
protected Object walk(ExecutionContext context, JSFunction reviver, JSObject holder, String name) {<NEW_LINE>Object val = <MASK><NEW_LINE>if (val instanceof JSObject) {<NEW_LINE>JSObject jsVal = (JSObject) val;<NEW_LINE>if (jsVal.getClassName().equals("Array")) {<NEW_LINE>long len = Types.toInteger(context, jsVal.get(c...
holder.get(context, name);
1,454,057
public static void deleteGlobalEdgeComment(final AbstractSQLProvider provider, final INaviEdge edge, final Integer commentId, final Integer userId) throws CouldntDeleteException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00505: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(edge, "IE00...
(edge.getTarget()));
600,376
public void benchmarkCglib(Blackhole blackHole) {<NEW_LINE>blackHole.consume(cglibInstance.method(booleanValue));<NEW_LINE>blackHole.consume(cglibInstance.method(byteValue));<NEW_LINE>blackHole.consume(cglibInstance.method(shortValue));<NEW_LINE>blackHole.consume(cglibInstance.method(intValue));<NEW_LINE>blackHole.cons...
(stringValue, stringValue, stringValue));
417,671
private List<Completer> slurpCompleter(String command) {<NEW_LINE>List<Completer> <MASK><NEW_LINE>List<OptDesc> optDescs = commandOptions("slurp");<NEW_LINE>for (OptDesc o : optDescs) {<NEW_LINE>if (o.shortOption() != null && o.shortOption().equals("-f")) {<NEW_LINE>List<String> formats = new ArrayList<>(engine.getDese...
completers = new ArrayList<>();
1,023,858
public static SubstituteString create(String value) {<NEW_LINE>int lastEnd = 0;<NEW_LINE>int start = value.indexOf("%{");<NEW_LINE>// Shortcut<NEW_LINE>if (start < 0)<NEW_LINE>return null;<NEW_LINE>List<Component> components = new ArrayList<>();<NEW_LINE>while (start >= 0) {<NEW_LINE>int end = value.indexOf("}", start ...
add(new PropertyComponent(propertyName));
1,108,079
public static byte[] generateCreate2ContractAddress(byte[] address, byte[] salt, byte[] initCode) {<NEW_LINE>if (address.length != ADDRESS_BYTE_SIZE) {<NEW_LINE>throw new RuntimeException("Invalid address size");<NEW_LINE>}<NEW_LINE>if (salt.length != SALT_SIZE) {<NEW_LINE>throw new RuntimeException("Invalid salt size"...
buffer, offset, address.length);
209,733
public Object exec(@SuppressWarnings("rawtypes") List arguments) throws TemplateModelException {<NEW_LINE>String <MASK><NEW_LINE>if (CommonUtils.notEmpty(str)) {<NEW_LINE>if (uninitialized) {<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory dbf = NodeModel.getDocumentBuilderFactory();<NEW_LINE>dbf.setFeature("http://xml....
str = getString(0, arguments);
71,230
public final <T> List<T> buildModel(ResultSet rs, Class<? extends Model> modelClass, int pageSize) throws SQLException, ReflectiveOperationException {<NEW_LINE>List<T> result = new ArrayList<T>();<NEW_LINE>ResultSetMetaData rsmd = rs.getMetaData();<NEW_LINE>int columnCount = rsmd.getColumnCount();<NEW_LINE>String[] lab...
= new int[columnCount + 1];
1,030,817
public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>if (isPackagingSupported()) {<NEW_LINE>if (skip) {<NEW_LINE>getLog().info("Skipping Jetty start: jetty.skip==true");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isExcludedGoal(execution.getMojoDescriptor().getGoal())) {<NEW_LINE>getLog()....
project.getPackaging() + "] is unsupported");
834,715
private RolloverResult rolloverAlias(ClusterState currentState, IndexAbstraction.Alias alias, String aliasName, String newIndexName, CreateIndexRequest createIndexRequest, List<Condition<?>> metConditions, boolean silent, boolean onlyValidate) throws Exception {<NEW_LINE>final Metadata metadata = currentState.metadata(...
createIndexService.validateIndexName(rolloverIndexName, currentState);
1,821,183
private void checkHolderType(int oldType, int newType, HippyWaterfallItemRenderNode listItemRenderNode) {<NEW_LINE>// do checkHolderType onScreen<NEW_LINE>if (doCheckHolderTypeOnScreen(oldType, newType, listItemRenderNode)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// do checkHolderType inCache<NEW_LINE>final int scrapCou...
= mRecycler.mCachedViews.size();
652,915
final ListTagsResult executeListTags(ListTagsRequest listTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsRequest> request = null;<NEW_LINE>Response<ListTagsResult...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,302,718
public void calcFor(Timeline.Key.Bone boneOrObject, ObjectInfo info) {<NEW_LINE>float width = info.size.width * boneOrObject.scale.x;<NEW_LINE>float height = info.size.height * boneOrObject.scale.y;<NEW_LINE>float pivotX = width * boneOrObject.pivot.x;<NEW_LINE>float pivotY = height * boneOrObject.pivot.y;<NEW_LINE>thi...
width - pivotX, height - pivotY);
1,257,410
public static void growBorder(GrayS64 src, ImageBorder_S64 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayS64 dst) {<NEW_LINE>dst.reshape(src.width + borderX0 + borderX1, src.height + borderY0 + borderY1);<NEW_LINE>border.setImage(src);<NEW_LINE>// Copy src into the inner portion of dst<NEW_LINE>Im...
borderY1 + y) * dst.stride;
1,038,126
private void validateConfig() throws Exception {<NEW_LINE>try {<NEW_LINE>keystore = loadKeyStore();<NEW_LINE>X509Certificate certEntry = null;<NEW_LINE>if (keystore != null) {<NEW_LINE>if (!keystore.containsAlias(label)) {<NEW_LINE>String msg = getMessage("saf.label.does.not.exist", new Object[] { label, keyring });<NE...
X509Certificate) keystore.getCertificate(label);
1,667,799
public void writeAsBibtexCitation(OutputStream os) throws IOException {<NEW_LINE>// Use UTF-8<NEW_LINE>Writer out = new BufferedWriter(new OutputStreamWriter(os, "utf-8"));<NEW_LINE>if (getFileTitle() != null && isDirect()) {<NEW_LINE>out.write("@incollection{");<NEW_LINE>} else {<NEW_LINE>out.write("@data{");<NEW_LINE...
write(persistentId.getAuthority());
1,830,301
final GetHealthCheckResult executeGetHealthCheck(GetHealthCheckRequest getHealthCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getHealthCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,479,391
public void removeNonLeafEntry(final int entryIndex, final byte[] key, final int prevChild) {<NEW_LINE>if (isLeaf()) {<NEW_LINE>throw new IllegalStateException("Remove is applied to non-leaf buckets only");<NEW_LINE>}<NEW_LINE>final int entryPosition = getIntValue(POSITIONS_ARRAY_OFFSET + entryIndex * OIntegerSerialize...
setIntValue(currentPositionOffset, currentEntryPosition + entrySize);
1,560,505
final EngineDefaults executeDescribeEngineDefaultParameters(DescribeEngineDefaultParametersRequest describeEngineDefaultParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEngineDefaultParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
339,001
public void example3(Router router) {<NEW_LINE>Route route = router.route().path("/some/path/");<NEW_LINE>route.handler(ctx -> {<NEW_LINE>// This handler will be called for the following request paths:<NEW_LINE>// `/some/path/`<NEW_LINE>// `/some/path//`<NEW_LINE>//<NEW_LINE>// but not:<NEW_LINE>// `/some/path` the end...
route().path("/some/path");
625,670
public static Document buildDocument(final WebResponse webResponse) throws IOException, SAXException, ParserConfigurationException {<NEW_LINE>final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>if (webResponse == null) {<NEW_LINE>return factory.newDocumentBuilder().newDocument();<NEW_L...
.newDocumentBuilder().newDocument();
101,529
private Container ilazyorToRun(ArrayContainer x) {<NEW_LINE>if (isFull()) {<NEW_LINE>return full();<NEW_LINE>}<NEW_LINE>final int nbrruns = this.nbrruns;<NEW_LINE>final int offset = Math.max(nbrruns, x.getCardinality());<NEW_LINE>copyToOffset(offset);<NEW_LINE>int rlepos = 0;<NEW_LINE>this.nbrruns = 0;<NEW_LINE>Peekabl...
, getLength(rlepos + offset));
820,569
public void visit(PluginManagement target) {<NEW_LINE>PluginManagement t = target;<NEW_LINE>assert t != null ? t.isInDocumentModel() : true;<NEW_LINE><MASK><NEW_LINE>this.<Plugin>checkListObject(names.PLUGINS, names.PLUGIN, Plugin.class, PLUGINS(), t != null ? t.getPlugins() : null, new KeyGenerator<Plugin>() {<NEW_LIN...
POMQNames names = parent.getPOMQNames();
1,459,099
public void freePlot(int plotId, boolean resetBlocks) {<NEW_LINE>SpatialStoragePlot plot = getPlot(plotId);<NEW_LINE>if (plot == null) {<NEW_LINE>// Already removed apparently<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resetBlocks) {<NEW_LINE>BlockPos from = plot.getOrigin();<NEW_LINE>BlockPos to = from.offset(plot.getSi...
level.setBlockAndUpdate(blockPos, matrixFrame);
397,241
protected StopDatafeedAction.Response newResponse(StopDatafeedAction.Request request, List<StopDatafeedAction.Response> tasks, List<TaskOperationFailure> taskOperationFailures, List<FailedNodeException> failedNodeExceptions) {<NEW_LINE>// number of resolved (i.e. running on a node) started data feeds should be equal to...
length, tasks.size());
1,800,571
public byte[] toCbor(Integer maxConnections, Integer nodeId, List<CounterStatisticManager> healths) {<NEW_LINE>CBORObject map = CBORObject.NewOrderedMap();<NEW_LINE>map.set("systemstart"<MASK><NEW_LINE>if (nodeId != null) {<NEW_LINE>map.set("node-id", CBORObject.FromObject(nodeId));<NEW_LINE>}<NEW_LINE>if (maxConnectio...
, CBORObject.FromObject(START_TIME));
869,193
public static Map<String, Object> updateTag(String tagId, String tagName, String hostId) {<NEW_LINE>HttpServletRequest req = WebContextFactory.get().getHttpServletRequest();<NEW_LINE>List<String> saveTagErrors = new ArrayList<String>();<NEW_LINE>Map<String, Object> callbackData = new HashMap<String, Object>();<NEW_LINE...
clear(req.getSession());
1,053,853
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Business business = new Business(emc);<NEW_LINE>File file = emc.flag(flag, File.class);<NEW_...
result = new ActionResult<>();
497,601
protected final void bindValues(SQLiteStatement stmt, TraceRepo entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>stmt.bindLong(1, entity.getId());<NEW_LINE>stmt.bindString(2, entity.getName());<NEW_LINE>String description = entity.getDescription();<NEW_LINE>if (description != null) {<NEW_LINE>stmt.bindString(3, descri...
Integer watchersCount = entity.getWatchersCount();
1,801,331
public static Part newPartForContentType(String contentType, String partName) throws InvalidFormatException, PartUnrecognisedException {<NEW_LINE>if (contentType.equals(ContentTypes.PRESENTATIONML_MAIN) || contentType.equals(ContentTypes.PRESENTATIONML_TEMPLATE) || contentType.equals(ContentTypes.PRESENTATIONML_MACROEN...
ViewPropertiesPart(new PartName(partName));
392,097
public void searchV2(SearchPb.Request req, StreamObserver<TaskServicePb.TaskSearchResult> response) {<NEW_LINE>final int start = req.getStart();<NEW_LINE>final int size = GRPC_HELPER.optionalOr(req.getSize(), maxSearchSize);<NEW_LINE>final String sort = req.getSort();<NEW_LINE>final String freeText = GRPC_HELPER.option...
size, sort, freeText, query);
295,741
private static BigDecimal asBigDecimal(@Nullable final Object value, @Nullable final BigDecimal defaultValue, final boolean failIfUnparsable) {<NEW_LINE>if (// note that a zero-BigDecimal is also "empty" according to Check.IsEmpty()!<NEW_LINE>value == null) {<NEW_LINE>return defaultValue;<NEW_LINE>}<NEW_LINE>if (value ...
println(errorMsg + ". Returning defaultValue=" + defaultValue);
1,182,494
private QueryBuilder buildQueryString(@Nonnull String path, @Nonnull Map<String, String> requestMap, boolean isGroupQuery) {<NEW_LINE>final int browseDepthVal = getPathDepth(path) + 1;<NEW_LINE>final BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();<NEW_LINE>queryBuilder.mustNot(QueryBuilders.termQuery(REMOVED...
termQuery(field, val)));
1,713,064
private InternalImageProcessorResult process(Renderable renderer) throws JRException {<NEW_LINE>if (renderer instanceof ResourceRenderer) {<NEW_LINE>renderer = imageRenderersCache.getLoadedRenderer((ResourceRenderer) renderer);<NEW_LINE>}<NEW_LINE>Dimension2D dimension = null;<NEW_LINE>if (needDimension) {<NEW_LINE>Dim...
, JRTypeSniffer.getImageTypeValue(imageData));