idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
515,131
public void preFillOperationsFromOptionals(ActionRequest request, ActionResponse response) {<NEW_LINE>Set<Map<String, Object>> optionalControlPoints = new HashSet<Map<String, Object>>();<NEW_LINE>List<ControlPoint> optionalControlPointList = new ArrayList<ControlPoint>();<NEW_LINE>Collection<Map<String, Object>> option...
"id")).longValue());
1,566,900
public void fullRedraw() {<NEW_LINE>makeLayerElement();<NEW_LINE>addCSSClasses();<NEW_LINE>final OPTICSPlot opticsplot = optics.getOPTICSPlot(context);<NEW_LINE>final ClusterOrder co = getClusterOrder();<NEW_LINE>final int oheight = opticsplot.getHeight();<NEW_LINE>final double xscale = plotwidth / (double) co.size();<...
yscale = plotheight / (double) oheight;
1,764,373
public void marshall(ColorCorrector colorCorrector, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (colorCorrector == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(colorCorrector.getBrightness(), BRIGHTNESS...
colorCorrector.getHue(), HUE_BINDING);
1,011,065
final DeleteCertificateResult executeDeleteCertificate(DeleteCertificateRequest deleteCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,139,777
private static BitfinexWebSocketAuthOrder createOrderObject(JsonNode order) {<NEW_LINE>if (order.size() < 32) {<NEW_LINE>LOG.error("createOrderObject unexpected record size={}, record={}", order.size(), order.toString());<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long id = order.get(0).longValue();<NEW_LINE>long groupI...
get(18).decimalValue();
17,282
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (requestCode == SUBREDDIT_SELECTION_REQUEST_CODE) {<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>if (data != null) {<NEW_LINE>subredditName = <MASK><N...
data.getStringExtra(SubredditSelectionActivity.EXTRA_RETURN_SUBREDDIT_NAME);
1,413,961
public TemplateModel exec(List args) throws TemplateModelException {<NEW_LINE>if (args.size() == 1) {<NEW_LINE>String messageKey = ((SimpleScalar) args.get(0)).getAsString();<NEW_LINE>String messageValue = messages.get(messageKey, language);<NEW_LINE>return new SimpleScalar(messageValue);<NEW_LINE>} else if (args.size(...
) o).getWrappedObject());
196,584
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.openhab.binding.digitalSTROM2.internal.client.job.SensorJob#execute(org.openhab.binding.digitalSTROM2.<NEW_LINE>* internal.client.DigitalSTROMAPI, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void execute(DigitalSTROMAPI digitalSTROM, String...
this.device.setTemperatureSensorValue(sensorValue);
765,337
final UpdateDomainNameResult executeUpdateDomainName(UpdateDomainNameRequest updateDomainNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
753,201
public static void main(String[] args) {<NEW_LINE>final String resultsFolder = "target" + File.separatorChar + "results";<NEW_LINE>final String reportsFolder = "target" + File.separatorChar + "reports";<NEW_LINE>String longTermBenchmarkResultFilename = System.getProperty("longTermBenchmarkResultFile");<NEW_LINE>if (lon...
new BenchmarkAggregator(resultsFolder), "Benchmark Duration Report");
1,194,446
final ListQueuesResult executeListQueues(ListQueuesRequest listQueuesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listQueuesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
225,099
private static String convertSpecialCharacters(StringBuilder idlName) {<NEW_LINE>for (int i = 0; i < idlName.length(); ++i) {<NEW_LINE>char c = idlName.charAt(i);<NEW_LINE>if (c == '$' || c > 255) {<NEW_LINE>idlName.replace(i, i + 1, "U");<NEW_LINE>String hex = Integer.<MASK><NEW_LINE>int numHex = hex.length();<NEW_LIN...
toHexString(c).toUpperCase();
881,283
public void marshall(ContainerRecipeSummary containerRecipeSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (containerRecipeSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(containerRecipeSum...
containerRecipeSummary.getOwner(), OWNER_BINDING);
1,722,863
public void save(JasperPrint jasperPrint, File file) throws JRException {<NEW_LINE>if (!file.getName().toLowerCase().endsWith(EXTENSION_XML) && !file.getName().toLowerCase().endsWith(EXTENSION_JRPXML)) {<NEW_LINE>file = new File(<MASK><NEW_LINE>}<NEW_LINE>if (!file.exists() || JOptionPane.OK_OPTION == JOptionPane.showC...
file.getAbsolutePath() + EXTENSION_JRPXML);
921,361
public SegmentResponse createSegment(AmazonPinpointClient client, String appId) {<NEW_LINE>Map<String, AttributeDimension> segmentAttributes = new HashMap<>();<NEW_LINE>segmentAttributes.put("Team", new AttributeDimension().withAttributeType(AttributeType.INCLUSIVE).withValues("Lakers"));<NEW_LINE>SegmentBehaviors segm...
("DAY_30").withRecencyType("ACTIVE");
954,010
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE><MASK><NEW_LINE>HttpSession ses = request.getSession(true);<NEW_LINE>Locale locale = new Locale(Validate.validateLanguage(ses));<NEW_LINE>boolean v...
out.print(getServletInfo());
1,552,875
public static int pickBestTransparency(Image image) {<NEW_LINE>// Take a shortcut if possible<NEW_LINE>if (image instanceof BufferedImage) {<NEW_LINE>return pickBestTransparency((BufferedImage) image);<NEW_LINE>}<NEW_LINE>// Legacy method<NEW_LINE>// NOTE: This is a horrible memory hog<NEW_LINE>int width = image.getWid...
pixelArray[y * width + x];
773,704
protected void handleRedirect(FacesContext context, Throwable rootCause, ExceptionInfo info, boolean responseResetted) throws IOException {<NEW_LINE>ExternalContext externalContext = context.getExternalContext();<NEW_LINE>externalContext.getSessionMap().put(ExceptionInfo.ATTRIBUTE_NAME, info);<NEW_LINE>Map<String, Stri...
writer.startElement("redirect", null);
1,092,666
final GetPolicyResult executeGetPolicy(GetPolicyRequest getPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
invoke(request, responseHandler, executionContext);
927,658
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>setDebugLogSubmitMultiTapView(view.findViewById(R.id.verify_header));<NEW_LINE>countryCode = view.findViewById(R.id.country_code);<NEW_LINE>number = view.findViewById(R.i...
).get(RegistrationViewModel.class);
1,161,923
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
125,421
public synchronized void addVariable(String deploymentId, VariableMetaData metaData, String optionalDeploymentIdContext, DataInputOutputSerde optionalSerde) {<NEW_LINE>// check if already exists<NEW_LINE>VariableDeployment deploymentEntry = deploymentsWithVariables.get(deploymentId);<NEW_LINE>if (deploymentEntry != nul...
(new ConcurrentHashMap<>());
1,260,116
private MethodType callCheckMethod(Warner warner, Inliner inliner, Object resultInfo, List<Type> actualArgTypes, MethodSymbol methodSymbol, Type site, Env<AttrContext> env) throws InferException {<NEW_LINE>try {<NEW_LINE>Method checkMethod;<NEW_LINE>checkMethod = Resolve.class.getDeclaredMethod("checkMethod", Env.class...
List.class, Warner.class);
642,787
public RelNode visit(QueryOperation other) {<NEW_LINE>if (other instanceof PlannerQueryOperation) {<NEW_LINE>return ((PlannerQueryOperation) other).getCalciteTree();<NEW_LINE>} else if (other instanceof DataStreamQueryOperation) {<NEW_LINE>return convertToDataStreamScan(<MASK><NEW_LINE>} else if (other instanceof JavaD...
(DataStreamQueryOperation<?>) other);
1,121,901
protected LeafRope makeValidLeafRopeAsciiCompat(byte[] bytes, Encoding encoding, CodeRange codeRange, NotProvided characterLength, @Cached BranchProfile errorProfile, @Cached CalculateCharacterLengthNode calculateCharacterLengthNode) {<NEW_LINE>// Extracted from StringSupport.strLength.<NEW_LINE>int calculatedCharacter...
(bytes, p, e));
681,979
private void registerWrapper(StandardWrapper wrapper) throws Exception {<NEW_LINE>ObjectName objectName = wrapper.getJmxName();<NEW_LINE>if (objectName == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String wrapperName = objectName.getKeyProperty("name");<NEW_LINE>String name = objectName.getKeyProperty("WebModule");<N...
wrapper, jspWildCard, wrapperName, true);
550,480
public Dataset updateDatasetAttributes(String datasetId, KeyValue attribute) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>DatasetEntity datasetObj = session.get(DatasetEntity.class, datasetId, LockMode.PESSIMISTIC_WRITE);<NEW_LINE>if (datasetObj == null) {<NEW_LINE>va...
(Collections.singletonList(updatedAttributeObj));
29,694
private void resolveSegments() {<NEW_LINE>if (!StringUtils.hasText(this.str)) {<NEW_LINE>LOGGER.warn("'connectionString' doesn't have text.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String[] tokenValuePairs = this.str.split(TOKEN_VALUE_PAIR_DELIMITER);<NEW_LINE>validateTokenValuePresents(tokenValuePairs);<NEW_LINE>...
segments.put(token, value);
226,883
public static void main(String[] args) {<NEW_LINE>final MetricsAdvisorAsyncClient advisorAsyncClient = new MetricsAdvisorClientBuilder().endpoint("https://{endpoint}.cognitiveservices.azure.com/").credential(new MetricsAdvisorKeyCredential("subscription_key", "api_key")).buildAsyncClient();<NEW_LINE>final String alertC...
"Detection Configuration Id: %s%n", anomaly.getDetectionConfigurationId());
939,537
protected static <T extends ParsedSingleBucketAggregation> T parseXContent(final XContentParser parser, T aggregation, String name) throws IOException {<NEW_LINE>aggregation.setName(name);<NEW_LINE>XContentParser.Token token = parser.currentToken();<NEW_LINE>String currentFieldName = parser.currentName();<NEW_LINE>if (...
setDocCount(parser.longValue());
1,151,369
public static void horizontal5(Kernel1D_S32 kernel, GrayU8 image, GrayI16 dest) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int <MASK><NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3];<NEW_...
k1 = kernel.data[0];
1,552,766
private static String fixRelativeLink(Pattern pattern, Path helpFile, String fileContents) {<NEW_LINE>int currentPosition = 0;<NEW_LINE>StringBuffer newContents = new StringBuffer();<NEW_LINE>Matcher matcher = pattern.matcher(fileContents);<NEW_LINE>boolean hasMatches = matcher.find();<NEW_LINE>if (!hasMatches) {<NEW_L...
= matchStart + fullMatch.length();
66,832
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(Job.ID.getPreferredName(), jobId);<NEW_LINE>builder.field(Result.RESULT_TYPE.getPreferredName(), RESULT_TYPE_VALUE);<NEW_LINE>if (partitionFieldName != null) {<NEW_LINE>b...
FAILED_CATEGORY_COUNT_FIELD.getPreferredName(), failedCategoryCount);
1,541,453
public static void vertical(Kernel1D_S32 kernel, ImageBorder_S32 input, GrayI8 output, int divisor) {<NEW_LINE>final byte[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int width = ou...
(total + halfDivisor) / divisor);
1,592,953
public int crypto_kem_dec(byte[] k, byte[] c, byte[] sk) {<NEW_LINE>int i, fail;<NEW_LINE>byte[] cmp = new byte[SABER_BYTES_CCA_DEC];<NEW_LINE>byte[] buf = new byte[64];<NEW_LINE>// Will contain key, coins<NEW_LINE>byte[] kr = new byte[64];<NEW_LINE>byte[] pk = Arrays.copyOfRange(sk, SABER_INDCPA_SECRETKEYBYTES, sk.len...
update(buf, 0, 64);
298,608
public List<validationData> addGeneralGoodExpectations(String testName, TestSettings settings, String providerTypeOverride) throws Exception {<NEW_LINE>// expect good (200) status codes for all steps<NEW_LINE>List<validationData> expectations = vData.addSuccessStatusCodes();<NEW_LINE>// Check if we got authorization co...
"Could not invoke protected application", null, Constants.APP_TITLE);
737,683
private HmilyParticipant buildParticipant(final HmilyTransactionContext context, final SofaRequest sofaRequest) throws HmilyRuntimeException {<NEW_LINE>if (HmilyActionEnum.TRYING.getCode() != context.getAction()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>HmilyParticipant hmilyParticipant = new HmilyParticipant();<NEW...
String methodName = sofaRequest.getMethodName();
771,625
public Map<String, Object> toMap() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("active", this.getActive());<NEW_LINE>map.put("actualCompanyId", this.getActualCompanyId());<NEW_LINE>map.put("birthday", this.g...
"nickname", this.getNickName());
477,612
protected MouseListener createMouseListener() {<NEW_LINE>return new MouseEventAdapter<MouseListener>(super.createMouseListener()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void mouseDragged(MouseEvent event) {<NEW_LINE>// DnDManagerImpl.SOURCE_KEY<NEW_LINE>Object property = UIUtil.getClientProperty(event.getSource...
int y = event.getY();
1,348,643
private List<Future> schedule(Settings settings) {<NEW_LINE>List<Future> futures = new LinkedList<>();<NEW_LINE>if (threadPoolExecutor != null) {<NEW_LINE>logger.info("already scheduled");<NEW_LINE>return futures;<NEW_LINE>}<NEW_LINE>String[] schedule = settings.getAsArray("schedule");<NEW_LINE>Long seconds = settings....
, new CronExpression(cron)));
419,125
public static boolean isOnline(Context context, boolean careAboutWifiOnly) {<NEW_LINE>SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);<NEW_LINE>// Check if we are restricted to download over wifi only<NEW_LINE>boolean wifiOnly = prefs.getBoolean("pref_download_wifi_only", true);<NEW_LIN...
netInfo.isConnectedOrConnecting() && !wifiOnly;
774,881
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.getPermanentEntering(source.getSourceId());<NEW_LINE>if (controller == null || permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int permanentsInPlay...
Cost cost = new PayLifeCost(payAmount);
1,666,432
public void visitRoot() {<NEW_LINE>preVisitStatement(root);<NEW_LINE>// write package<NEW_LINE>if (root.getPackageName() != null) {<NEW_LINE>groovyCode.append("package ");<NEW_LINE>String packageName = root.getPackageName();<NEW_LINE>// packageName ends with ".", chop it<NEW_LINE>groovyCode.append(packageName.substring...
getStaticStarImports().values());
1,522,609
public Void scan(Tree node, TreePath p) {<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TreePath currentPath = new TreePath(p, node);<NEW_LINE>boolean[<MASK><NEW_LINE>final NFA.State newActiveAfterVariable = nfa.transition(active, new Input(Kind.IDENTIFIER, "$", false));<NEW_LINE>Input normaliz...
] goDeeper = new boolean[1];
86,618
public void removeDependency(@NonNull T y, @NonNull D x) {<NEW_LINE>dependencies.removeGroupReturn(y, t -> t.equals(x));<NEW_LINE>Set<T> s2 = reverseDependencies.get(x);<NEW_LINE>if (s2 != null) {<NEW_LINE>s2.remove(y);<NEW_LINE>if (s2.isEmpty())<NEW_LINE>reverseDependencies.remove(x);<NEW_LINE>}<NEW_LINE>Iterable<Pair...
get(p.getSecond());
1,225,826
public void onBindViewHolder(@NonNull ViewHistoryHolder holder, int position) {<NEW_LINE>final String filePath = mHistoryList.get(position).getFilePath();<NEW_LINE>File file = new File(filePath);<NEW_LINE>final String operationDate = mHistoryList.get(position).getDate();<NEW_LINE>String[] formatDate = operationDate.spl...
holder.mFilename.setText(fileName);
1,394,085
private UnpackResult unpack(CacheableEntity entity, TarArchiveInputStream tarInput, OriginReader readOriginAction) throws IOException {<NEW_LINE>ImmutableMap.Builder<String, CacheableTree> treesBuilder = ImmutableMap.builder();<NEW_LINE>entity.visitOutputTrees((name, type, root) -> treesBuilder.put(name, new CacheableT...
childPath, missing, snapshots, entries);
1,472,558
protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>inNightMode = SettingValues.isNight();<NEW_LINE>disableSwipeBackLayout();<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>applyColorTheme();<NEW_LINE>setContentView(R.layout.activity_news);<NEW_LINE>mToolbar = (Toolbar) findViewById(R.id.toolbar)...
.net.ConnectivityManager.CONNECTIVITY_ACTION));
918,034
private void attachRouteActions(@NotNull Collection<? super LineMarkerInfo<?>> lineMarkerInfos, @NotNull PsiElement psiElement) {<NEW_LINE>if (psiElement.getNode().getElementType() != YAMLTokenTypes.SCALAR_KEY) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (!(yamlKeyValue instanceof YAMLKeyValue)) {<NEW_LIN...
PsiElement yamlKeyValue = psiElement.getParent();
949,815
public ByteBuffer write(ByteBuffer bb, FrontendConnection c, boolean writeSocketIfFull) {<NEW_LINE>bb = c.checkWriteBuffer(bb, c.getPacketHeaderSize(), writeSocketIfFull);<NEW_LINE>BufferUtil.writeUB3(bb, calcPacketSize());<NEW_LINE>bb.put(packetId);<NEW_LINE>for (int i = 0; i < fieldCount; i++) {<NEW_LINE>byte[] fv = ...
checkWriteBuffer(bb, 1, writeSocketIfFull);
319,622
public Pair<INDArray, MaskState> feedForwardMaskArray(INDArray maskArray, MaskState currentMaskState, int minibatchSize) {<NEW_LINE>if (maskArray == null || maskArray.rank() == 2)<NEW_LINE>return new Pair<>(maskArray, currentMaskState);<NEW_LINE>if (maskArray.rank() != 4 || maskArray.size(2) != 1 || maskArray.size(3) !...
size(1)), currentMaskState);
1,456,723
private static AgentRollup createAgentRollup(String agentRollupId, Multimap<String, String> childMultimap, Map<String, String> agentDisplayMap, boolean stripTopLevelDisplay) {<NEW_LINE>Collection<String> childAgentRollupIds = childMultimap.get(agentRollupId);<NEW_LINE>List<String> agentRollupIds = AgentRollupIds.getAge...
childAgentRollups = new ArrayList<>();
1,463,072
public InstanceIdentity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceIdentity instanceIdentity = new InstanceIdentity();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,581,487
private void serialize(Server server, Query query, List<Result> results, OutputStream outputStream) throws IOException {<NEW_LINE>JsonGenerator g = jsonFactory.createGenerator(outputStream, JsonEncoding.UTF8);<NEW_LINE>g.writeStartObject();<NEW_LINE>g.writeArrayFieldStart("counters");<NEW_LINE>g.writeEndArray();<NEW_LI...
Object value = result.getValue();
1,613,206
public void call(ClientSide clientSide, String data) {<NEW_LINE>Room room = new Room(ServerContains.getServerId());<NEW_LINE>room.setStatus(RoomStatus.WAIT);<NEW_LINE>room.setType(RoomType.PVP);<NEW_LINE>room.<MASK><NEW_LINE>room.getClientSideMap().put(clientSide.getId(), clientSide);<NEW_LINE>room.getClientSideList()....
setRoomOwner(clientSide.getNickname());
1,298,271
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args != null) {<NEW_LINE>routeId = args.getInt(ROUTE_ID_KEY);<NEW_LINE>}<NEW_LINE>pageMarginPx = dpToPx(PAGE_MARGIN);<NEW_LINE>toolbarHeightPx = getResources()...
pageMarginPx, 0, pageMarginPx, 0);
1,206,767
private void postAllStashedGraphicAction(final String instanceId, final BasicGraphicAction action) {<NEW_LINE>final RenderContextImpl <MASK><NEW_LINE>// / keep actions if renderContext still exist<NEW_LINE>ArrayList<Map<String, Object>> tmpList = null;<NEW_LINE>if (renderContext != null) {<NEW_LINE>tmpList = new ArrayL...
renderContext = mRenderContext.get(instanceId);
1,028,170
protected boolean onSignInteract(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException {<NEW_LINE>final ArrayList<MailMessage<MASK><NEW_LINE>final ListIterator<MailMessage> iterator = mail.listIterator();<NEW_LINE>boolean hadMail = false;<NEW_LINE>while (iterator.hasNex...
> mail = player.getMailMessages();
1,357,812
final DescribeOrganizationResult executeDescribeOrganization(DescribeOrganizationRequest describeOrganizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeOrganization");
521,677
public SVD createSVD(final RealMatrix realMat) {<NEW_LINE>Utils.nonNull(realMat, "Cannot perform Spark MLLib SVD on a null matrix.");<NEW_LINE>final RowMatrix mat = SparkConverter.convertRealMatrixToSparkRowMatrix(sc, realMat, NUM_SLICES);<NEW_LINE>// Compute all of the singular values and corresponding singular vector...
.V().transpose();
1,477,887
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException {<NEW_LINE>logger.info("x");<NEW_LINE>return new DirectoryStream() {<NEW_LINE><NEW_LINE>boolean closed = false;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Iterator iterator() {<NEW_LINE>if (!close...
files = new LinkedList<>();
1,248,658
private IWeEventFileClient buildIWeEventFileClient(Integer brokerId, String groupId, String nodeAddress) {<NEW_LINE>String clientKey = brokerId <MASK><NEW_LINE>if (!this.fileClientMap.containsKey(clientKey)) {<NEW_LINE>FiscoConfig fiscoConfig = new FiscoConfig();<NEW_LINE>fiscoConfig.load("");<NEW_LINE>List<String> nod...
+ IDENTIFIER + groupId + IDENTIFIER + nodeAddress;
1,097,984
private void execute(SSSPContext context, IFragment<Long, Long, Long, Double> frag) {<NEW_LINE>int innerVerticesNum = (int) frag.getInnerVerticesNum();<NEW_LINE>BiConsumer<Vertex<Long>, Integer> consumer = (vertex, finalTid) -> {<NEW_LINE>double curDist = context.partialResults.get(vertex);<NEW_LINE>AdjList<Long, Doubl...
nbrs = frag.getOutgoingAdjList(vertex);
1,764,982
public static // fun_name? argument_definition_list clause_guard? clause_body<NEW_LINE>boolean fun_clause(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "fun_clause"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, "<fun clause>", ERL_PAR_LEFT, ERL_VAR))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<N...
(b, l + 1));
306,050
public StepExecutionResult execute(ExecutionContext context) throws IOException, InterruptedException {<NEW_LINE>if (dryRunResultsPath.isPresent()) {<NEW_LINE>NSDictionary dryRunResult = new NSDictionary();<NEW_LINE>dryRunResult.put("relative-path-to-sign", dryRunResultsPath.get().getParent().relativize(pathToSign).toS...
> commandBuilder = ImmutableList.builder();
711,282
public ReleaseDTO updateAndPublish(@PathVariable("appId") String appId, @PathVariable("clusterName") String clusterName, @PathVariable("namespaceName") String namespaceName, @RequestParam("releaseName") String releaseName, @RequestParam("branchName") String branchName, @RequestParam(value = "deleteBranch", defaultValue...
transform(ReleaseDTO.class, release);
661,617
public void writeEntryHeader(byte[] outbuf) {<NEW_LINE>int offset = 0;<NEW_LINE>offset = TarHeader.getNameBytes(this.header.name, outbuf, offset, TarHeader.NAMELEN);<NEW_LINE>offset = Octal.getOctalBytes(this.header.mode, outbuf, offset, TarHeader.MODELEN);<NEW_LINE>offset = Octal.getOctalBytes(this.header.userId, outb...
checkSum = this.computeCheckSum(outbuf);
1,116,306
private DeploymentRoutingStatus deploymentStatus(String upstreamName) {<NEW_LINE>Instant changedAt = clock.instant();<NEW_LINE>Path path = deploymentStatusPath(upstreamName);<NEW_LINE>Optional<byte[]> data = curator.getData(path);<NEW_LINE>if (data.isEmpty()) {<NEW_LINE>return new DeploymentRoutingStatus(RoutingStatus....
field("cause").asString();
1,832,488
private static Map<OmrShape, Shape> buildOmrShapeMap() {<NEW_LINE>final Map<OmrShape, Shape> map = new EnumMap<>(OmrShape.class);<NEW_LINE>for (Map.Entry<Shape, OmrShape> entry : SHAPE_TO_OMRSHAPE.entrySet()) {<NEW_LINE>final Shape shape = entry.getKey();<NEW_LINE>final OmrShape omrShape = entry.getValue();<NEW_LINE>if...
OmrShape.articStaccatoAbove, Shape.STACCATO);
948,095
private void deleteItems() {<NEW_LINE>// Sort in ascending order so deleted items can be easily restored<NEW_LINE><MASK><NEW_LINE>Collections.sort(mPendingDeletedMessages, cmp);<NEW_LINE>removeItems();<NEW_LINE>Snackbar snackbar = Snackbar.make(getView(), getActivity().getString(R.string.item_deleted, mPendingDeletedMe...
Comparator cmp = Collections.reverseOrder();
1,676,525
public Map<FileObject, Collection<String>> findByPrefix(RefactoringElementType type, String prefix) {<NEW_LINE>String keyName = type.getIndexKey();<NEW_LINE>Map<FileObject, Collection<String>> <MASK><NEW_LINE>try {<NEW_LINE>Collection<? extends IndexResult> results = querySupport.query(keyName, prefix, QuerySupport.Kin...
map = new HashMap<>();
996,865
private void updateImpl() {<NEW_LINE>Color color = <MASK><NEW_LINE>myText.setForeground(color);<NEW_LINE>myText2.setForeground(color);<NEW_LINE>myProgressBar.setForeground(color);<NEW_LINE>if (!StringUtil.equals(myText.getText(), myProgress.getText())) {<NEW_LINE>myText.setText(myProgress.getText());<NEW_LINE>}<NEW_LIN...
TargetAWT.to(getTextForeground());
1,797,267
void propagate() {<NEW_LINE>if (this.parent != null) {<NEW_LINE>// Propagate the lowest death level of any descendants:<NEW_LINE>if (this.propagatedLowestChildSplitLevel == Double.MAX_VALUE) {<NEW_LINE>this.propagatedLowestChildSplitLevel = this.splitLevel;<NEW_LINE>}<NEW_LINE>if (this.propagatedLowestChildSplitLevel <...
parent.propagatedDescendants.add(this);
248,575
public void uploadProject(final Project project, final int version, final File localFile, final File startupDependencies, final User uploader, final String uploaderIPAddr) {<NEW_LINE>byte[] md5 = null;<NEW_LINE>if (!(this.storage instanceof DatabaseStorage)) {<NEW_LINE>md5 = computeHash(localFile);<NEW_LINE>}<NEW_LINE>...
getUserId(), md5, uploaderIPAddr);
867,399
public LinkedHashSet<String> unify(String statement, int max) {<NEW_LINE>assert statement != null;<NEW_LINE>// this should not happen<NEW_LINE>if (statement == null)<NEW_LINE>return null;<NEW_LINE>boolean urlencode = statement.startsWith("http://") || statement.startsWith("https://");<NEW_LINE>// initialize collection<...
s_com = new LinkedHashSet<>();
1,248,986
public int calcScanParallelism(double io, SplitInfo splitInfo) {<NEW_LINE>if (lowConcurrencyQuery) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>ParamManager paramManager = session.getClientContext().getParamManager();<NEW_LINE>int parallelsim = -1;<NEW_LINE>if (paramManager.getBoolean(ConnectionParams.MPP_PARALLELISM_AUTO_...
paramManager.getInt(ConnectionParams.MPP_PARALLELISM);
1,020,204
public void createPartControl(Composite parent) {<NEW_LINE>Server server = ServerManager.getInstance().getServer(serverId);<NEW_LINE>this.setPartName("ResponseTime[" + server.getName() + "]");<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NEW_LI...
xyGraph.primaryXAxis.setDateEnabled(true);
880,779
public Map<Long, DbgSectionImpl> complete(DbgPendingCommand<?> pending) {<NEW_LINE>Map<DebugThreadId, DbgThread> threads = process.getKnownThreads();<NEW_LINE>Set<DebugThreadId> cur = threads.keySet();<NEW_LINE>DebugSystemObjects so = manager.getSystemObjects();<NEW_LINE>DebugThreadId previous = so.getCurrentThreadId()...
warn(this, "Resync: Was missing thread: " + id);
1,241,025
public void postProcessPartitionTable(int index) {<NEW_LINE>if (nodePartitionTables.size() == 1) {<NEW_LINE>PartitionTable table = nodePartitionTables.values()<MASK><NEW_LINE>while (!partitionQ.isEmpty()) {<NEW_LINE>table.add(index, partitionQ.poll());<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>List<PartitionTable> underLoa...
.iterator().next();
1,175,356
private void sysmonLoop() {<NEW_LINE>final long interval = TimeUnit.MICROSECONDS.toNanos(WispConfiguration.SYSMON_TICK_US);<NEW_LINE>final long carrierCheckRate = TimeUnit.<MASK><NEW_LINE>final long checkCarrierOnNthTick = carrierCheckRate / interval;<NEW_LINE>final boolean checkCarrier = // Detach carrier's worker cnt...
MICROSECONDS.toNanos(WispConfiguration.SYSMON_CARRIER_GROW_TICK_US);
358,079
public void run() {<NEW_LINE>Thread.currentThread().setName("LogDispatcher-" + member.getName() + "-" + receiver);<NEW_LINE>try {<NEW_LINE>while (!Thread.interrupted()) {<NEW_LINE>SendLogRequest poll = logBlockingDeque.take();<NEW_LINE>currBatch.add(poll);<NEW_LINE>logBlockingDeque.drainTo(currBatch);<NEW_LINE>if (logg...
= request.serializedLogFuture.get();
23,545
public Request<GetSessionTokenRequest> marshall(GetSessionTokenRequest getSessionTokenRequest) {<NEW_LINE>if (getSessionTokenRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetSessionTokenRequest> request = new DefaultRequest<GetSessionTo...
(getSessionTokenRequest.getTokenCode()));
1,700,492
public static ListApmApplicationResponse unmarshall(ListApmApplicationResponse listApmApplicationResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApmApplicationResponse.setRequestId(_ctx.stringValue("ListApmApplicationResponse.RequestId"));<NEW_LINE>listApmApplicationResponse.setTotal(_ctx.integerValue("ListApmApplic...
(_ctx.integerValue("ListApmApplicationResponse.PageNumber"));
1,451,367
private BucketSearchResult firstItem(final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final LinkedList<PagePathItemUnit> path = new LinkedList<>();<NEW_LINE>long bucketIndex = ROOT_INDEX;<NEW_LINE>OCacheEntry cacheEntry = loadPageForRead(atomicOperation, fileId, bucketIndex, false);<NEW_LINE>int it...
= new CellBTreeBucketSingleValueV1<>(cacheEntry);
844,902
public FlaggedLine readLineExpectComment() throws IOException {<NEW_LINE>int charRead = read();<NEW_LINE>if (charRead == -1)<NEW_LINE>// end of the reader reached<NEW_LINE>return null;<NEW_LINE>boolean decided = false;<NEW_LINE>FlaggedLine fl = new FlaggedLine();<NEW_LINE>while (charRead != -1 && charRead != (int) '\n'...
.append((char) charRead);
903,796
public void generateProduct(Configurator configurator, JsonContext jsonAttributes, JsonContext jsonIndicators) throws AxelorException {<NEW_LINE>cleanIndicators(jsonIndicators);<NEW_LINE>Mapper mapper = Mapper.of(Product.class);<NEW_LINE>Product product = new Product();<NEW_LINE>for (String key : jsonIndicators.keySet(...
, jsonIndicators.get(key));
240,245
public void writePage(int zeroBasedPageNumber) throws IOException {<NEW_LINE>List<PageBox> pages = _root.getLayer().getPages();<NEW_LINE>if (zeroBasedPageNumber >= pages.size()) {<NEW_LINE>throw new IndexOutOfBoundsException();<NEW_LINE>}<NEW_LINE>RenderingContext c = newRenderingContext();<NEW_LINE>c.setInitialPageNo(...
DisplayListCollector boxCollector = new DisplayListCollector(pages);
1,028,512
private Address adjustTableEntryIfNonZero(Address tableBaseAddr, int entryIndex, long adjustment, ElfLoadHelper elfLoadHelper) throws MemoryAccessException, AddressOverflowException {<NEW_LINE>boolean is64Bit = elfLoadHelper.getElfHeader().is64Bit();<NEW_LINE>Memory memory = elfLoadHelper.getProgram().getMemory();<NEW_...
int) (offset + adjustment));
1,400,161
protected void testNavigationHandlerInjectionByApp(String contextRoot, LibertyServer server) throws Exception {<NEW_LINE>try (WebClient webClient = new WebClient()) {<NEW_LINE>URL url = JSFUtils.createHttpUrl(server, contextRoot, "NavigationHandler.jsf");<NEW_LINE>HtmlPage page = (HtmlPage) webClient.getPage(url);<NEW_...
().contains(":TestNavigationHandlerInterceptor:"));
271,968
public SecurityAuthentication create(SecurityCredentials credentials) {<NEW_LINE>String grantType = credentials.getPropertyStr("grantType");<NEW_LINE>String requestScope = credentials.getPropertyStr("scope");<NEW_LINE>String accessTokenUri = credentials.getPropertyStr("accessTokenUri");<NEW_LINE>String <MASK><NEW_LINE>...
tokenType = credentials.getPropertyStr("tokenType");
1,601,511
protected void addVerbatimBeforeComponent(UIComponentClassicTagBase parentTag, UIComponent verbatimComp, UIComponent component) {<NEW_LINE>UIComponent parent = component.getParent();<NEW_LINE>if (parent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<UIComponent<MASK><NEW_LINE>// EDGE CASE:<NEW_LINE>// Consider CA...
> children = parent.getChildren();
1,500,132
private static void deindentPreCodeBlock(ImmutableList.Builder<Token> output, PeekingIterator<Token> tokens) {<NEW_LINE>Deque<Token> saved = new ArrayDeque<>();<NEW_LINE>output.add(new Token(LITERAL, tokens.next().getValue<MASK><NEW_LINE>while (tokens.hasNext() && tokens.peek().getType() != PRE_CLOSE_TAG) {<NEW_LINE>To...
().trim()));
135,559
public void onValidate(@NonNull String purchaseData, @NonNull ValidationStatus status, boolean isTrial) {<NEW_LINE>LOGGER.i(TAG, "Validation status of '" + mType + "': " + status);<NEW_LINE>if (status == ValidationStatus.VERIFIED)<NEW_LINE>Statistics.INSTANCE.trackPurchaseEvent(Statistics.EventName.INAPP_PURCHASE_VALID...
boolean shouldActivateSubscription = status != ValidationStatus.NOT_VERIFIED;
391,820
public static void copy(Path sourcePath, Path targetPath) {<NEW_LINE>try {<NEW_LINE>Files.walkFileTree(sourcePath, new SimpleFileVisitor<Path>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public FileVisitResult visitFileFailed(Path file, IOException exc) {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>}<NEW_LINE><NEW...
StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.COPY_ATTRIBUTES };
1,428,394
public void checkEmptyListText(boolean isSearch) {<NEW_LINE>if (isSearch) {<NEW_LINE>getNoteListFragment().setEmptyListButton(isSearchQueryNotNull() ? getString(R.string.empty_notes_search_button, mSearchView.getQuery().toString()) : getString(R.string.empty_notes_search_button_default));<NEW_LINE>getNoteListFragment()...
(R.string.empty_notes_all));
1,368,700
/*<NEW_LINE>* This is kind of a hack, but it's safe to use this if the regular portability<NEW_LINE>* is stateless.<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public static <T> PersistentPortability<T> persistent(final Portability<T> normal) {<NEW_LINE>if (normal instanceof PersistentPortability<?>) {...
(klazz.getInterfaces()));
1,371,966
private Mono<Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String accountName, String streamingEndpointName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca...
this.client.mergeContext(context);
404,033
public void start(final WorkerSourceConfig sourceConfig, final Path jobRoot) throws Exception {<NEW_LINE>Preconditions.checkState(sourceProcess == null);<NEW_LINE>sourceProcess = integrationLauncher.read(jobRoot, WorkerConstants.SOURCE_CONFIG_JSON_FILENAME, Jsons.serialize(sourceConfig.getSourceConnectionConfiguration(...
().getState()));
297,372
private int completeDeletions() throws IOException {<NEW_LINE>int numPending = deletions.size();<NEW_LINE>int numFailures = 0;<NEW_LINE>if (numPending < 1) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>List<PendingFileDeletionExec> pendingExecs = deletions.parallelStream().map(f -> new PendingFileDeletionExec(f.getAbsoluteP...
getOrDefault(Boolean.TRUE, null);
1,039,765
public S3Location unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Location s3Location = new S3Location();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));