idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,536,694
private static ImmutableList<RatesCurveGroupDefinition> buildCurveGroups(Map<CurveName, Set<GroupAndReference>> garMap) {<NEW_LINE>Multimap<CurveGroupName, RatesCurveGroupEntry<MASK><NEW_LINE>for (Map.Entry<CurveName, Set<GroupAndReference>> entry : garMap.entrySet()) {<NEW_LINE>CurveName curveName = entry.getKey();<NE...
> groups = LinkedHashMultimap.create();
69,012
public static Split parseSplit(String splitCsvString) {<NEW_LINE>// TODO: parse reconciled state and date<NEW_LINE>String[] tokens = splitCsvString.split(";");<NEW_LINE>if (tokens.length < 8) {<NEW_LINE>// old format splits<NEW_LINE>Money amount = new Money(tokens[0], tokens[1]);<NEW_LINE>Split split = new Split(amount...
.setMemo(tokens[5]);
1,612,506
/* (non-Javadoc)<NEW_LINE>* @see com.dotcms.repackage.com.bradmcevoy.http.MoveableResource#moveTo(com.dotcms.repackage.com.bradmcevoy.http.CollectionResource, java.lang.String)<NEW_LINE>*/<NEW_LINE>public void moveTo(CollectionResource collRes, String name) throws DotRuntimeException {<NEW_LINE>User user = (User) HttpM...
e.getMessage(), e);
1,169,934
private static void writeToFile(String filename, byte[] content, boolean append, int retries) {<NEW_LINE>U.notNull(filename, "filename");<NEW_LINE>U.notNull(content, "content");<NEW_LINE>FileOutputStream out = null;<NEW_LINE>try {<NEW_LINE>out = new FileOutputStream(filename, append);<NEW_LINE>out.write(content);<NEW_L...
filename, content, retries - 1);
380,109
public void initialize(Server server, Injector injector) {<NEW_LINE>final ServletContextHandler root = new ServletContextHandler(ServletContextHandler.SESSIONS);<NEW_LINE>root.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false");<NEW_LINE>root.addServlet(new ServletHolder(new DefaultServlet()), "/*...
GuiceFilter.class, "/status/*", null);
934,662
static Single<WebServer> startServer(Config config) {<NEW_LINE>Single<WebServer> webServer = WebServer.builder(createPlainRouting()).config(config).addNamedRouting("secured", createMtlsRouting()).build().start();<NEW_LINE>webServer.thenAccept(ws -> {<NEW_LINE>System.out.println("WebServer is up!");<NEW_LINE>System.out....
t.printStackTrace(System.err);
403,787
protected void writePosDeletes(CharSequence path, List<Long> deletedPos, int numNoise) throws IOException {<NEW_LINE>OutputFileFactory fileFactory = newFileFactory();<NEW_LINE>SparkFileWriterFactory writerFactory = SparkFileWriterFactory.builderFor(table()).dataFileFormat(fileFormat()).build();<NEW_LINE>ClusteredPositi...
specs().get(0);
1,601,097
public com.amazonaws.services.ram.model.InvalidMaxResultsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ram.model.InvalidMaxResultsException invalidMaxResultsException = new com.amazonaws.services.ram.model.InvalidMaxResultsException(null);<NEW_LINE><...
int originalDepth = context.getCurrentDepth();
148,088
public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.sample);<NEW_LINE>mAppPrefs = new AppPreferences(this);<NEW_LINE>mSharedPreferences = getSharedPreferences(SHARED_PREF_NAME, Context.MODE_MULTI_PROCESS);<NEW_LINE>int startupCount = <MAS...
mAppPrefs.getInt(STARTUP_COUNT, 0);
1,237,986
private void adjustColumnWidths(int topColumn) {<NEW_LINE>TableColumnModel colModel = getColumnModel();<NEW_LINE>int colWidth = 0;<NEW_LINE>int subColWidth = -1;<NEW_LINE>for (int row = 0; row < getRowCount(); row++) {<NEW_LINE>Item item = (Item) getValueAt(row, topColumn);<NEW_LINE>Component ren = prepareRenderer(this...
] subItems = item.getActivatableSubItems();
580,733
protected void execute(final Event e) {<NEW_LINE>if (invi != null) {<NEW_LINE>Inventory i;<NEW_LINE>assert invi != null;<NEW_LINE>Object <MASK><NEW_LINE>if (o instanceof Inventory) {<NEW_LINE>i = (Inventory) o;<NEW_LINE>} else if (o instanceof InventoryType) {<NEW_LINE>i = Bukkit.createInventory(null, (InventoryType) o...
o = invi.getSingle(e);
1,468,925
private void prepareGatlingData(Operation operation, Set<Parameter> parameters, String parameterType) {<NEW_LINE>if (parameters.size() > 0) {<NEW_LINE>List<String> parameterNames = new ArrayList<>();<NEW_LINE>List<Object> vendorList = new ArrayList<>();<NEW_LINE>for (Parameter parameter : parameters) {<NEW_LINE>Map<Str...
parameter.getName() + "}");
796,524
public ClassLoader build(final Module baseModule) {<NEW_LINE>if (baseModule == null) {<NEW_LINE>return getClass().getClassLoader();<NEW_LINE>}<NEW_LINE>final Project baseModuleProject = baseModule.getProject();<NEW_LINE>final List<URL> outputPaths = new ArrayList<>();<NEW_LINE>final Set<Module> transitiveDependencies =...
get().toURI());
445,487
final DescribeOrganizationConfigurationResult executeDescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
389,569
private byte readChunkImpl() throws IOException {<NEW_LINE>int chunkLen = in.readInt();<NEW_LINE>byte chunkType = in.readByte();<NEW_LINE>switch(chunkType) {<NEW_LINE>case NGConstants.CHUNKTYPE_STDIN:<NEW_LINE>LOG.log(<MASK><NEW_LINE>InputStream chunkStream = readPayload(in, chunkLen);<NEW_LINE>setInput(chunkStream, ch...
Level.FINEST, "Got stdin chunk, len {0}", chunkLen);
197,641
void computeCurrentVelocity(int units, float maxVelocity) {<NEW_LINE>final float[] pastX = mPastX;<NEW_LINE>final float[] pastY = mPastY;<NEW_LINE>final long[] pastTime = mPastTime;<NEW_LINE>final float oldestX = pastX[0];<NEW_LINE>final float oldestY = pastY[0];<NEW_LINE>final long oldestTime = pastTime[0];<NEW_LINE>f...
dist = pastY[i] - oldestY;
1,273,332
public void channelRead0(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {<NEW_LINE>if (HttpUtil.is100ContinueExpected(req)) {<NEW_LINE>ctx.write(new DefaultFullHttpResponse(HTTP_1_1, CONTINUE, Unpooled.EMPTY_BUFFER));<NEW_LINE>}<NEW_LINE>ByteBuf content = ctx.alloc().buffer();<NEW_LINE>content.writeBy...
).set(CONNECTION, KEEP_ALIVE);
797,633
public void reset(final BaseActivity activity, final RedditCommentListItem comment, final boolean updateOnly) {<NEW_LINE>if (!updateOnly) {<NEW_LINE>if (!comment.isComment()) {<NEW_LINE>throw new RuntimeException("Not a comment");<NEW_LINE>}<NEW_LINE>if (mComment != comment) {<NEW_LINE>if (mComment != null) {<NEW_LINE>...
RedditRenderableComment renderableComment = mComment.asComment();
519,499
public void marshall(ScheduleActionSettings scheduleActionSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (scheduleActionSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(scheduleActionSett...
scheduleActionSettings.getStaticImageActivateSettings(), STATICIMAGEACTIVATESETTINGS_BINDING);
1,242,478
protected void paintComponent(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>if (isEnabled()) {<NEW_LINE>if (checked) {<NEW_LINE>g2.drawImage(<MASK><NEW_LINE>} else {<NEW_LINE>g2.drawImage(normalImage, 0, 0, null);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>if (mode == Mode.CHECK && checked) {<NEW_LINE>g2.d...
checkedImage, 0, 0, null);
244,017
public Role unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Role role = new Role();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == ...
int originalDepth = context.getCurrentDepth();
1,316,154
private void drawHorizontalDecorations(Canvas canvas, RecyclerView parent) {<NEW_LINE>if (!needsHorizontalDecoration()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FlexboxLayoutManager layoutManager = (FlexboxLayoutManager) parent.getLayoutManager();<NEW_LINE>int flexDirection = layoutManager.getFlexDirection();<NEW_LINE>in...
.getRight() + lp.rightMargin;
1,473,315
public InventoryLine updateInventoryLine(InventoryLine inventoryLine, Inventory inventory) {<NEW_LINE>StockLocation stockLocation = inventory.getStockLocation();<NEW_LINE><MASK><NEW_LINE>if (product != null) {<NEW_LINE>StockLocationLine stockLocationLine = Beans.get(StockLocationLineService.class).getOrCreateStockLocat...
Product product = inventoryLine.getProduct();
549,669
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (WurstClient.MC.getBlockEntityRenderDispatcher().camera == null)<NEW_LINE>return;<NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>GL11.glEnab...
GL11.glEnable(GL11.GL_DEPTH_TEST);
1,180,395
private void createFieldMap() {<NEW_LINE>DeserializerSchemaManager deserializerSchemaManager = protoMapper.getDeserializerSchemaManager();<NEW_LINE>BeanDescriptor beanDescriptor = protoMapper.getBeanDescriptorManager().getOrCreateBeanDescriptor(javaType);<NEW_LINE>List<FieldSchema<T>> fieldSchemas = new ArrayList<>();<...
getField(propertyDescriptor.getName());
981,763
private static void addAccounts(final BaseActivity activity, final Menu menu, final int showAsAction) {<NEW_LINE>if (showAsAction == DO_NOT_SHOW) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final RedditAccountManager accountManager = RedditAccountManager.getInstance(activity);<NEW_LINE>final ArrayList<RedditAccount> account...
setIcon(R.drawable.ic_accounts_dark);
309,436
public HashMapVirtualObject next() throws BimserverDatabaseException {<NEW_LINE>if (start == -1) {<NEW_LINE>start = System.nanoTime();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>while (!stack.isEmpty()) {<NEW_LINE>if (stack.size() > MAX_STACK_SIZE) {<NEW_LINE>dumpEndQuery();<NEW_LINE>throw new BimserverDatabaseException("Query...
boolean done = stackFrame.process();
563,334
private void onNextClick() {<NEW_LINE>if (account == null) {<NEW_LINE>Toast.makeText(getActivity(), getString(R.string.EMPTY_ACCOUNT), Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DomainBareJid server;<NEW_LINE>try {<NEW_LINE>server = JidCreate.domainBareFrom(serverView.getText().toString());<NEW_LI...
Toast.LENGTH_LONG).show();
243,918
protected Map<String, String> flags() {<NEW_LINE>Map<String, String> flags = new HashMap<>();<NEW_LINE>flags.put("QByteArray::Base64Options", "QByteArray::Base64Option");<NEW_LINE>flags.put("QEventLoop::ProcessEventsFlags", "QEventLoop::ProcessEventsFlag");<NEW_LINE>flags.put("QSizePolicy::ControlTypes", "QSizePolicy::...
flags.put("QString::SectionFlags", "QString::SectionFlag");
685,918
public void configurarCores() {<NEW_LINE>if (Configuracoes.getInstancia().isTemaDark()) {<NEW_LINE>jPanel1.setBackground(ColorController.FUNDO_BOTOES_EXPANSIVEIS);<NEW_LINE>if (WeblafUtils.weblafEstaInstalado()) {<NEW_LINE>WeblafUtils.configurarBotao(botaoRetrair, ColorController.FUNDO_BOTOES_EXPANSIVEIS, ColorControll...
COR_DESTAQUE, ColorController.COR_LETRA, 5);
11,389
public static IncludeExclude parseInclude(XContentParser parser) throws IOException {<NEW_LINE>XContentParser.Token token = parser.currentToken();<NEW_LINE>if (token == XContentParser.Token.VALUE_STRING) {<NEW_LINE>return new IncludeExclude(parser.text(), null);<NEW_LINE>} else if (token == XContentParser.Token.START_A...
return new IncludeExclude(partition, numPartitions);
1,129,479
public void copyTo(CollectionResource collRes, String name) throws DotRuntimeException {<NEW_LINE>User user = (User) HttpManager.request()<MASK><NEW_LINE>if (collRes instanceof TempFolderResourceImpl) {<NEW_LINE>TempFolderResourceImpl tr = (TempFolderResourceImpl) collRes;<NEW_LINE>try {<NEW_LINE>dotDavHelper.copyFileT...
.getAuthorization().getTag();
1,726,157
public Map<String, String> parse(List<String> xpeList) {<NEW_LINE>Map<String, String> dict = new TreeMap<String, String>();<NEW_LINE>try {<NEW_LINE>XPathFactory factory = XPathFactory.newInstance();<NEW_LINE>XPath xpath = factory.newXPath();<NEW_LINE>for (String xpe : xpeList) {<NEW_LINE>// /text()<NEW_LINE>XPathExpres...
expr = xpath.compile(xpe);
159,865
public void handleEvent(Event event) {<NEW_LINE>Point pt = new Point(event.x, event.y);<NEW_LINE>TableItem item = policyTable.getItem(pt);<NEW_LINE>if (item != null) {<NEW_LINE>for (int col = 1; col < policyTable.getColumnCount(); col++) {<NEW_LINE>Rectangle <MASK><NEW_LINE>if (rect.contains(pt)) {<NEW_LINE>String text...
rect = item.getBounds(col);
515,845
private TokenFilter evaluate(String name, FilterPath[] filters) {<NEW_LINE>if (filters != null) {<NEW_LINE>List<FilterPath> nextFilters = null;<NEW_LINE>for (FilterPath filter : filters) {<NEW_LINE>FilterPath <MASK><NEW_LINE>if (next != null) {<NEW_LINE>if (next.matches()) {<NEW_LINE>return MATCHING;<NEW_LINE>} else {<...
next = filter.matchProperty(name);
151,669
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("prior" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>String field;<NEW_LINE>Record parent = null;<NEW_LINE>int maxLevel = 1000;<NEW_LINE>if (param.isLea...
MessageManager mm = EngineMessage.get();
479,487
public PersistenceResponse fetch(PersistencePackageRequest request) throws ServiceException {<NEW_LINE>PersistencePackage pkg = persistencePackageFactory.create(request);<NEW_LINE>CriteriaTransferObject cto = getDefaultCto();<NEW_LINE>if (request.getFilterAndSortCriteria() != null) {<NEW_LINE>cto.addAll(Arrays.asList<M...
(request.getFilterAndSortCriteria()));
372,463
public DoubleMatrix differentiateX0(PiecewisePolynomialResult2D pp, double[] x0Keys, double[] x1Keys) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>int order0 = pp.getOrder()[0];<NEW_LINE>int order1 = pp.getOrder()[1];<NEW_LINE>ArgChecker.<MASK><NEW_LINE>DoubleArray knots0 = pp.getKnots0();<NEW_LINE>DoubleArray kno...
isFalse(order0 < 2, "polynomial degree of x0 < 1");
590,617
public io.kubernetes.client.proto.V1.SecretProjection buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1.SecretProjection result = new io.kubernetes.client.proto.V1.SecretProjection(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x0...
util.Collections.unmodifiableList(items_);
126,163
public static void main(String[] args) {<NEW_LINE>LRUCache cache = new LRUCache(2);<NEW_LINE>cache.put(1, 1);<NEW_LINE>cache.put(2, 2);<NEW_LINE>// 1<NEW_LINE>System.out.println(cache.get(1));<NEW_LINE>cache.put(3, 3);<NEW_LINE>// -1<NEW_LINE>System.out.println(cache.get(2));<NEW_LINE>cache.put(4, 4);<NEW_LINE>// -1<NE...
(cache.get(1));
570,216
// getClass<NEW_LINE>private final Class<?> findModelClassByTableName(final String tableName) {<NEW_LINE>if (Check.isEmpty(tableName, true) || tableName.endsWith("_Trl")) {<NEW_LINE>return NO_CLASS;<NEW_LINE>}<NEW_LINE>// Import Tables (Name conflict)<NEW_LINE>if (tableName.startsWith("I_")) {<NEW_LINE>final Class<?> c...
className.substring(index + 1);
910,072
final UpdateClusterResult executeUpdateCluster(UpdateClusterRequest updateClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,400,129
static void parseAndPopulateNamespaceMap(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>String nsPrefix = element.getAttribute("ns-prefix");<NEW_LINE>String nsUri = element.getAttribute("ns-uri");<NEW_LINE>String namespaceMapRef = element.getAttribute("namespace-map");<NEW_LINE>...
namespaceMapProvided = StringUtils.hasText(namespaceMapRef);
1,405,679
private static void processLine(Line line, LineNumberReader rdr, Path file, TagProcessor tagProcessor) throws IOException {<NEW_LINE>if (line == null) {<NEW_LINE>// this can happen if we call ourselves recursively<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int tagStartIndex = -1;<NEW_LINE>int tagNameEndIndex = -1;<NEW_LINE>S...
+ COMMENT_START_TAG.length() + 1;
1,279,914
private Mono<Response<SharedAccessSignatureAuthorizationRuleInner>> listKeysForKeyNameWithResponseAsync(String provisioningServiceName, String keyName, String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.c...
error(new IllegalArgumentException("Parameter provisioningServiceName is required and cannot be null."));
776,638
private void doStatement(boolean yield, boolean await) {<NEW_LINE>// Capture DO token.<NEW_LINE>final long doToken = token;<NEW_LINE>int doLine = 0;<NEW_LINE>// DO tested in the caller.<NEW_LINE>next();<NEW_LINE>final ParserContextLoopNode doWhileNode = new ParserContextLoopNode();<NEW_LINE>lc.push(doWhileNode);<NEW_LI...
test = joinPredecessorExpression(yield, await);
871,165
private WebElement proxyElement(final WebElement element, final String id) {<NEW_LINE>InvocationHandler handler = (object, method, objects) -> {<NEW_LINE>if ("getId".equals(method.getName())) {<NEW_LINE>return id;<NEW_LINE>} else if ("getWrappedElement".equals(method.getName())) {<NEW_LINE>return element;<NEW_LINE>} el...
ProxiedElement.class, Locatable.class };
1,438,288
public JSONObject asJson(String... testPatterns) throws Exception {<NEW_LINE>Pattern pattern = Pattern.compile("^\\s*(.*?)\\s*=\\s*(.*)\\s*$");<NEW_LINE>JSONObject entry = new JSONObject();<NEW_LINE>for (String testPattern : testPatterns) {<NEW_LINE>Matcher <MASK><NEW_LINE>if (matcher.matches()) {<NEW_LINE>String keys ...
matcher = pattern.matcher(testPattern);
1,714,870
protected boolean compareAndAdjustFulfillmentGroupOffers(PromotableOrder order, boolean fgOfferApplied) {<NEW_LINE>Money regularOrderDiscountShippingTotal = BroadleafCurrencyUtils.getMoney(BigDecimal.ZERO, order.getOrderCurrency());<NEW_LINE>regularOrderDiscountShippingTotal = regularOrderDiscountShippingTotal.add(orde...
add(fg.calculatePriceWithoutAdjustments());
1,559,940
public Request<ImportVolumeRequest> marshall(ImportVolumeRequest importVolumeRequest) {<NEW_LINE>if (importVolumeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ImportVolumeRequest> request = new DefaultRequest<ImportVolumeRequest>(import...
(importVolumeRequest.getDescription()));
1,020,279
public List<OptExpression> transform(OptExpression input, OptimizerContext context) {<NEW_LINE>LogicalFilterOperator filter = (LogicalFilterOperator) input.getOp();<NEW_LINE>OptExpression joinOpt = input.getInputs().get(0);<NEW_LINE>LogicalJoinOperator join = (LogicalJoinOperator) joinOpt.getOp();<NEW_LINE>if (join.get...
inputAt(0).getOp();
1,092,498
public final // JPA2.g:417:1: simple_entity_expression : ( identification_variable | input_parameter );<NEW_LINE>JPA2Parser.simple_entity_expression_return simple_entity_expression() throws RecognitionException {<NEW_LINE>JPA2Parser.simple_entity_expression_return retval = new JPA2Parser.simple_entity_expression_return...
Object) adaptor.rulePostProcessing(root_0);
211,242
public void marshall(Prediction prediction, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (prediction.getPredictedLabel() != null) {<NEW_LINE>String predictedLabel = prediction.getPredictedLabel();<NEW_LINE>jsonWriter.name("predictedLabel");<NEW_LINE>jsonWriter.value(predic...
name(predictedScoresEntry.getKey());
1,335,160
public void upgrade() {<NEW_LINE>if (clusterConfigService.get(MigrationCompleted.class) != null) {<NEW_LINE>LOG.debug("Migration already completed!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, String> dashboardIds = new HashMap<>();<NEW_LINE>for (MigrationDashboard dashboard : dashboardService.all()) {<NEW_LINE>...
(newRow).build());
1,047,899
protected synchronized boolean deleteTicketImpl(RepositoryModel repository, TicketModel ticket, String deletedBy) {<NEW_LINE>if (ticket == null) {<NEW_LINE>throw new RuntimeException("must specify a ticket!");<NEW_LINE>}<NEW_LINE>boolean success = false;<NEW_LINE>Repository db = repositoryManager.getRepository(ticket.r...
deletedBy, "- " + ticket.number);
1,640,284
public ExportResult<CalendarContainerResource> export(UUID jobId, TokensAndUrlAuthData authData, Optional<ExportInformation> exportInformation) {<NEW_LINE>if (!exportInformation.isPresent()) {<NEW_LINE>return exportCalendars(authData, Optional.empty());<NEW_LINE>} else {<NEW_LINE>StringPaginationToken paginationToken =...
idOnlyContainerResource.getId(), pageData);
1,190,541
public Completable replyToMessage(Thread thread, Message message, String reply) {<NEW_LINE>return Completable.defer(() -> {<NEW_LINE>Message newMessage = newMessage(MessageType.Text, thread);<NEW_LINE>// If this is already a reply, then don't copy the meta data<NEW_LINE>if (message.isReply()) {<NEW_LINE>newMessage.setT...
message.doubleForKey(Keys.MessageLongitude);
1,386,679
public static void writeTo(BaksmaliOptions options, IndentingWriter writer, Field field, boolean setInStaticConstructor) throws IOException {<NEW_LINE>EncodedValue initialValue = field.getInitialValue();<NEW_LINE>int accessFlags = field.getAccessFlags();<NEW_LINE>if (setInStaticConstructor && AccessFlags.STATIC.isSet(a...
> annotations = field.getAnnotations();
774,220
void klingonsShoot(GameCallback callback) {<NEW_LINE>// no klingons<NEW_LINE>if (klingons <= 0)<NEW_LINE>return;<NEW_LINE>if (enterprise.isDocked()) {<NEW_LINE>Util.println("STARBASE SHIELDS PROTECT THE ENTERPRISE");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (int i = 1; i <= 3; i++) {<NEW_LINE>if (klingonQuadrants[i][3]...
int randomDevice = Util.fnr();
689,574
public Map<String, Object> grantProject(User loginUser, int userId, String projectIds) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>result.<MASK><NEW_LINE>// check exist<NEW_LINE>User tempUser = userMapper.selectById(userId);<NEW_LINE>if (tempUser == null) {<NEW_LINE>putMsg(result, Status.USER_NOT_...
put(Constants.STATUS, false);
1,412,095
public // snippet-start:[s3.java1.s3_encrypt.kms_encryption_only]<NEW_LINE>void encryptionOnly_KmsManagedKey() throws NoSuchAlgorithmException {<NEW_LINE>// snippet-start:[s3.java1.s3_encrypt.kms_encryption_only_build]<NEW_LINE>AmazonS3Encryption s3Encryption = // Can either be Key ID or alias (prefixed with 'alias/')<...
.getObjectAsString(BUCKET_NAME, ENCRYPTED_KEY));
955,716
public void onGameStateChanged(GameStateChanged event) {<NEW_LINE>GameState state = event.getGameState();<NEW_LINE>if (state == GameState.LOGGED_IN) {<NEW_LINE>// LOGGED_IN is triggered between region changes too.<NEW_LINE>// Check that the username changed or the world type changed.<NEW_LINE>XpWorldType type = worldSe...
String username = local.getName();
1,062,788
public E relaxedPeek() {<NEW_LINE>final int chunkMask = this.chunkMask;<NEW_LINE>final int chunkShift = this.chunkShift;<NEW_LINE>final long cIndex = this.lvConsumerIndex();<NEW_LINE>final int ciChunkOffset = (int) (cIndex & chunkMask);<NEW_LINE>final long ciChunkIndex = cIndex >> chunkShift;<NEW_LINE>MpmcUnboundedXadd...
> next = consumerBuffer.lvNext();
1,641,253
protected void drawImage(Graphics g, Object nativeGraphics, int x, int y) {<NEW_LINE>int oldColor = g.getColor();<NEW_LINE>int oldAlpha = g.getAlpha();<NEW_LINE>Font oldFont = g.getFont();<NEW_LINE>if (opacity > 0 && opacity < 255) {<NEW_LINE>g.concatenateAlpha(opacity);<NEW_LINE>}<NEW_LINE>if (backgroundOpacity != 0) ...
height / 2 - h / 2);
1,430,942
public void deleteById(String id) {<NEW_LINE>String workspaceName = Utils.getValueFromIdByName(id, "workspaces");<NEW_LINE>if (workspaceName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));<NEW...
format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id)));
1,011,176
public okhttp3.Call validateAsyncAPISpecificationCall(Boolean returnContent, String url, File file, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/validate-asyncapi";<NEW_LINE>List<Pair> localVar...
localVarHeaderParams.put("Accept", localVarAccept);
408,573
private void enterRoom(String roomId, String userId) {<NEW_LINE>mTRTCCloud = TRTCCloud.sharedInstance(getApplicationContext());<NEW_LINE>mTRTCCloud.setListener(new TRTCCloudImplListener(SwitchRoomActivity.this));<NEW_LINE>TRTCCloudDef.TRTCParams mTRTCParams = new TRTCCloudDef.TRTCParams();<NEW_LINE>mTRTCParams.sdkAppId...
mTRTCCloud.startLocalPreview(true, mTXCloudPreviewView);
93,564
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final Map<String, Object> nodeData = webSocketData.getNodeData();<NEW_LINE>final String parentId = (String) nodeData.get("parentId");<NEW_LINE>final String newId = (String) nodeData.get("newId");<NE...
).build(), true);
231,274
final ListEventBusesResult executeListEventBuses(ListEventBusesRequest listEventBusesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventBusesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListEventBusesRequest> request = nu...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
904,193
public void startExperiment(SearchForActions<NQueensBoard, QueenAction> search) {<NEW_LINE>search.addNodeListener(n -> notifyProgressTrackers(n.getState(), search.getMetrics()));<NEW_LINE>Problem<NQueensBoard, QueenAction> problem;<NEW_LINE>if (board.getNumberOfQueensOnBoard() == 0)<NEW_LINE>problem = new GeneralProble...
actions = search.findActions(problem);
149,385
//<NEW_LINE>// Alarm interface<NEW_LINE>//<NEW_LINE>// d91878<NEW_LINE>@Override<NEW_LINE>public // F73234<NEW_LINE>// F73234<NEW_LINE>void run() {<NEW_LINE>synchronized (// d601399<NEW_LINE>this) {<NEW_LINE>if (// d583637<NEW_LINE>ivIsCanceled) {<NEW_LINE>// if this instance has been canceled, we do no more processing...
CLASS_NAME + ".alarm", "226", this);
432,148
<T> T instantiate(Class<T> cls) throws ParameterNotInstantiableException, IllegalAccessException, InvocationTargetException, FactoryMethodReturnsNullException {<NEW_LINE>if (cls.isEnum()) {<NEW_LINE>T[] constants = cls.getEnumConstants();<NEW_LINE>if (constants.length > 0) {<NEW_LINE>return constants[0];<NEW_LINE>} els...
> instantiationExceptions = Lists.newArrayList();
1,711,161
public void addFiles(String[] thePackageValues, String theFolder) throws ParseException, ExecutionException {<NEW_LINE>if (thePackageValues != null) {<NEW_LINE>for (String nextPackageValue : thePackageValues) {<NEW_LINE>if (!nextPackageValue.contains("/")) {<NEW_LINE>throw new ParseException(Msg.code(1552) + "Invalid f...
contents.getBytes(StandardCharsets.UTF_8);
432,558
public void initCacheTable(TableDefinition cacheTableDefinition, ConfigReader configReader, SiddhiAppContext siddhiAppContext, RecordTableHandler recordTableHandler, boolean cacheExpiryEnabled, int maxSize, String cachePolicy) {<NEW_LINE>this.maxSize = maxSize;<NEW_LINE>this.cacheExpiryEnabled = cacheExpiryEnabled;<NEW...
= new StreamEventCloner(cacheTableMetaStreamEvent, cacheTableStreamEventFactory);
1,047,682
public synchronized void recalculateChecksum() {<NEW_LINE>List<Instance> ips = allIPs();<NEW_LINE>StringBuilder ipsString = new StringBuilder();<NEW_LINE>ipsString.append(getServiceString());<NEW_LINE>if (Loggers.SRV_LOG.isDebugEnabled()) {<NEW_LINE>Loggers.SRV_LOG.debug("service to json: " + getServiceString());<NEW_L...
checksum = RandomStringUtils.randomAscii(32);
1,826,592
private boolean removeChild(long childID, DBRecord pcRec, boolean isFragment, boolean deleteChild) throws IOException {<NEW_LINE>parentChildAdapter.removeParentChildRecord(pcRec.getKey());<NEW_LINE>updateChildCount(-1);<NEW_LINE>String name = null;<NEW_LINE>boolean success = true;<NEW_LINE>if (isFragment) {<NEW_LINE>DB...
success = fragmentAdapter.removeFragmentRecord(childID);
1,195,203
private InitiateProfilingCommand createInitiateInstrumnetation(int instrType, String[] classNames, boolean instrSpawnedThreads, boolean startProfilingPointsActive) {<NEW_LINE>RuntimeProfilingPoint[] points = settings.getRuntimeProfilingPoints();<NEW_LINE>String[] profilingPointHandlers = new String[points.length];<NEW_...
= new String[points.length];
180,266
// Using timed invokeAll submit a group of tasks where some block, such that invokeAll times out before<NEW_LINE>// all of the tasks complete. Verify that the blocking tasks are canceled such that invokeAll can return<NEW_LINE>// in a timely manner, and that any non-blocking tasks completed, either successfully or exce...
x.printStackTrace(System.out);
50,749
private static Matcher parsePermission(Permission permission) {<NEW_LINE>switch(permission.getRuleCase()) {<NEW_LINE>case AND_RULES:<NEW_LINE>List<Matcher> andMatch = new ArrayList<>();<NEW_LINE>for (Permission p : permission.getAndRules().getRulesList()) {<NEW_LINE>andMatch.add(parsePermission(p));<NEW_LINE>}<NEW_LINE...
getOrRules().getRulesList());
800,107
private void processBindingConfiguration() {<NEW_LINE>if (m_config.containsKey("refresh")) {<NEW_LINE>m_refreshInterval = Integer.parseInt(m_config.get("refresh"));<NEW_LINE>logger.info("refresh interval set to {}s", m_refreshInterval / 1000);<NEW_LINE>}<NEW_LINE>long deadDeviceCount = 10;<NEW_LINE>if (m_config.contain...
error("error reading additional devices from {}", fileName, e);
1,190,060
public void replaceTokens(int[] tokens, int start, int end) {<NEW_LINE>if (!this.record)<NEW_LINE>return;<NEW_LINE>tokens = filterTokens(tokens);<NEW_LINE>if (tokens.length == 0)<NEW_LINE>return;<NEW_LINE>this.data.replacedTokensPtr++;<NEW_LINE>if (this.data.replacedTokensStart == null) {<NEW_LINE>this.data.replacedTok...
.replacedTokensStart = new int[10];
832,487
public okhttp3.Call policiesMediationMediationPolicyIdDeleteCall(String mediationPolicyId, String ifMatch, String ifUnmodifiedSince, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/policies/mediation/{...
= new ArrayList<Pair>();
313,581
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>List<Element> consumerElements = DomUtils.getChildElementsByTagName(element, "consumer");<NEW_LINE>ManagedMap<String, BeanMetadataElement> consumers = new ManagedMap<String, BeanMetadataElement>();<NEW_LINE>fo...
key = consumerElement.getAttribute("key");
1,069,788
public static DescribeRecoveryPointsResponse unmarshall(DescribeRecoveryPointsResponse describeRecoveryPointsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRecoveryPointsResponse.setRequestId(_ctx.stringValue("DescribeRecoveryPointsResponse.RequestId"));<NEW_LINE>describeRecoveryPointsResponse.setSuccess(_ctx.b...
(_ctx.stringValue("DescribeRecoveryPointsResponse.Message"));
892,484
public void verifyKeyPair(PrivateKey privateKey, PublicKey publicKey) {<NEW_LINE>String algorithm = publicKey.getAlgorithm();<NEW_LINE>for (SignatureAlgorithm signatureAlgorithm : SignatureAlgorithm.values()) {<NEW_LINE>if (signatureAlgorithm.isSupported(algorithm)) {<NEW_LINE>SignatureAndHashAlgorithm signatureAndHash...
] data = "Just a signature test".getBytes();
642,025
private SpanEntry parseSpan(EnumConstantSource enumConstant, JavaEnumImpl myEnum) {<NEW_LINE>List<MemberSource<EnumConstantSource.Body, ?>> members = enumConstant.getBody().getMembers();<NEW_LINE>if (members.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String name = "";<NEW_LINE>String description = enumConst...
.getName().getIdentifier();
1,383,250
public static void main(String[] args) throws Exception {<NEW_LINE>//<NEW_LINE>// create the generator for creating an smime/compressed message<NEW_LINE>//<NEW_LINE>SMIMECompressedGenerator gen = new SMIMECompressedGenerator();<NEW_LINE>//<NEW_LINE>// create the base for our message<NEW_LINE>//<NEW_LINE>MimeBodyPart ms...
writeTo(new FileOutputStream("compressed.message"));
1,569,622
public Result trim(final AssemblyRegion region, final SortedSet<VariantContext> variants, ReferenceContext referenceContext) {<NEW_LINE>if (assemblyRegionArgs.enableLegacyAssemblyRegionTrimming) {<NEW_LINE>return trimLegacy(region, variants);<NEW_LINE>}<NEW_LINE>final List<VariantContext> variantsInRegion = variants.st...
() - padding, 1));
942,342
void invoke() {<NEW_LINE>final <MASK><NEW_LINE>final String[] functionUnits = StringUtils.hasText(definition) ? definition.split(";") : new String[] {};<NEW_LINE>if (functionUnits.length == 0) {<NEW_LINE>resolvableTypeMap.forEach((key, value) -> {<NEW_LINE>Optional<KafkaStreamsBindableProxyFactory> proxyFactory = Array...
String definition = streamFunctionProperties.getDefinition();
1,405,803
public static void cancelNotification(Context context, String channelId, String rootId, Integer notificationId, Boolean isCRTEnabled) {<NEW_LINE>if (!android.text.TextUtils.isEmpty(channelId)) {<NEW_LINE>final String notificationIdStr = notificationId.toString();<NEW_LINE>final Boolean isThreadNotification = isCRTEnabl...
notifications = notificationsInChannel.get(groupId);
868,288
public void execute(Realm realm) {<NEW_LINE>MessageItem messageItem = realm.where(MessageItem.class).equalTo(MessageItem.Fields.UNIQUE_ID, messageId).findFirst();<NEW_LINE>if (messageItem != null) {<NEW_LINE>RealmList<Attachment> attachments = messageItem.getAttachments();<NEW_LINE>// remove temporary attachments creat...
setFilePath(file.getPath());
221,234
protected void onLoad() {<NEW_LINE>super.onLoad();<NEW_LINE>releaseOnUnload_.add(tabPanel_.addBeforeSelectionHandler(beforeSelectionEvent -> {<NEW_LINE>if (clearing_)<NEW_LINE>return;<NEW_LINE>if (getSelectedIndex() >= 0) {<NEW_LINE>int unselectedTab = getSelectedIndex();<NEW_LINE>if (unselectedTab < tabs_.size()) {<NE...
.getItem().intValue();
809,492
public DescribeClustersResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClustersResult describeClustersResult = new DescribeClustersResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 2;<NEW_LINE>...
int originalDepth = context.getCurrentDepth();
813,732
private CommandResultCode placeOrderRiskCheck(final OrderCommand cmd) {<NEW_LINE>final UserProfile userProfile = <MASK><NEW_LINE>if (userProfile == null) {<NEW_LINE>cmd.resultCode = CommandResultCode.AUTH_INVALID_USER;<NEW_LINE>log.warn("User profile {} not found", cmd.uid);<NEW_LINE>return CommandResultCode.AUTH_INVAL...
userProfileService.getUserProfile(cmd.uid);
1,840,052
private void createUpperMenu(Composite composite) {<NEW_LINE>headerComp = new Composite(composite, SWT.NONE);<NEW_LINE>headerComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));<NEW_LINE>headerComp.setLayout(UIUtil.formLayout(0, 0));<NEW_LINE>Button manualBtn = new <MASK><NEW_LINE>manualBtn.setImage(Image...
Button(headerComp, SWT.PUSH);
296,516
private // <editor-fold defaultstate="collapsed" desc=" Generated Code "><NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>info = new javax.swing.JLabel();<NEW_LINE>holder = new javax.swing.JPanel();<NEW_LINE>cancelButton = new javax.swing.JButton();<NEW_LINE>setLayout(...
12, 12, 11, 11);
1,566,244
private void parseBody(Body body, PostmanRequest requestDesc) {<NEW_LINE><MASK><NEW_LINE>if (postmanBody == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String bodyMode = postmanBody.getString("mode");<NEW_LINE>if (StringUtils.isBlank(bodyMode)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (StringUtils.equals(bodyMode, Po...
JSONObject postmanBody = requestDesc.getBody();
1,134,579
private static void objectToJson(StringBuilder builder, Object obj) {<NEW_LINE>if (obj == null) {<NEW_LINE>builder.append("\"\"");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (obj instanceof String) {<NEW_LINE>String str = (String) obj;<NEW_LINE>if (TextUtils.isEmpty(str)) {<NEW_LINE>builder.append("\"\"");<NEW_LINE>} else...
) obj) ? 0 : obj);
882,096
private static CharSequence escapeOboString(String in, EscapeMode mode) {<NEW_LINE>String replace = <MASK><NEW_LINE>if (mode == EscapeMode.MOST || mode == EscapeMode.QUOTES) {<NEW_LINE>replace = replace.replace("\"", "\\\"");<NEW_LINE>}<NEW_LINE>replace = replace.replace("\n", "\\n");<NEW_LINE>if (mode == EscapeMode.MO...
in.replace("\\", "\\\\");
272,989
public static void fuzzerTestOneInput(FuzzedDataProvider data) {<NEW_LINE>int width = data.consumeInt(100, 200);<NEW_LINE>int height = data.consumeInt(100, 200);<NEW_LINE>BarcodeFormat format = data.pickValue(BarcodeFormat.values());<NEW_LINE><MASK><NEW_LINE>BitMatrix matrix;<NEW_LINE>try {<NEW_LINE>matrix = new MultiF...
String originalData = data.consumeRemainingAsAsciiString();