idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
236,012
final GetNetworkAnalyzerConfigurationResult executeGetNetworkAnalyzerConfiguration(GetNetworkAnalyzerConfigurationRequest getNetworkAnalyzerConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getNetworkAnalyzerConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
invoke(request, responseHandler, executionContext);
1,234,658
final DeleteReceiptRuleResult executeDeleteReceiptRule(DeleteReceiptRuleRequest deleteReceiptRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReceiptRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteReceiptRuleReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,450,831
public void renderTrack(RenderContext ctx, Repainter repainter, double w, double h) {<NEW_LINE>ctx.trace("CpuSummary", () -> {<NEW_LINE>CpuSummaryTrack.Data data = track.getData(state.toRequest<MASK><NEW_LINE>drawLoading(ctx, data, state, h);<NEW_LINE>if (data == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// TODO: de...
(), onUiThread(repainter));
719,581
protected void removeBean(EjbInvocation inv) throws RemoveException {<NEW_LINE>try {<NEW_LINE>//<NEW_LINE>//<NEW_LINE>ejbProbeNotifier.ejbBeanDestroyedEvent(getContainerId(), containerInfo.appName, containerInfo.modName, containerInfo.ejbName);<NEW_LINE>// Note: if there are concurrent invocations/transactions in<NEW_L...
Level.FINE, "entitybean.container.remove_bean_exception", logParams);
221,138
public static GetMetaProductListResponse unmarshall(GetMetaProductListResponse getMetaProductListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaProductListResponse.setRequestId(_ctx.stringValue("GetMetaProductListResponse.RequestId"));<NEW_LINE>getMetaProductListResponse.setSuccess(_ctx.booleanValue("GetMetaProd...
("GetMetaProductListResponse.MetaData.ProductsProfessional[" + i + "].DeployType"));
657,763
void peerSplitComponent(int orientation, MultiViewPeer mvPeer, MultiViewDescription defaultDesc, MultiViewDescription defaultDescClone, int splitPosition) {<NEW_LINE>MultiViewDescription[] descriptions = model.getDescriptions();<NEW_LINE>MultiViewDescription activeDescription = model.getActiveDescription();<NEW_LINE>if...
remove(layerUI.getSplitDragger());
178,491
public DummyVertex<N> insertDummyVertex(Edge<?> edge, DummyVertex.Type type) {<NEW_LINE>Edge<E> originalEdge;<NEW_LINE>if (edge instanceof DummyEdge) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Edge<E> tmp = (Edge<E>) ((DummyEdge<?>) edge).getOriginalEdge();<NEW_LINE>originalEdge = tmp;<NEW_LINE>} else {<NEW_LIN...
createDummyEdge(v, dv, originalEdge);
1,434,996
public Trait createTrait(ShapeId target, Node value) {<NEW_LINE><MASK><NEW_LINE>Builder builder = builder().sourceLocation(value);<NEW_LINE>String sdkId = objectNode.getStringMember("sdkId").map(StringNode::getValue).orElseThrow(() -> new SourceException(String.format("No sdkId was provided. Perhaps you could set this ...
ObjectNode objectNode = value.expectObjectNode();
356,438
private void generateQuarkusExtensionDescriptor(Path inputMetaInfDirectory, Path outputMetaInfDirectory) throws IOException {<NEW_LINE>File extensionFile = new File(inputMetaInfDirectory.toFile(), BootstrapConstants.QUARKUS_EXTENSION_FILE_NAME);<NEW_LINE>ObjectMapper mapper = getMapper();<NEW_LINE>ObjectNode extObject;...
prettyPrinter).writeValueAsString(extObject));
1,758,283
public static void tearDown() throws Exception {<NEW_LINE>try {<NEW_LINE>// Clean up database<NEW_LINE>try {<NEW_LINE>final Set<String> ddlSet = new HashSet<String>();<NEW_LINE>for (String ddlName : dropSet) {<NEW_LINE>ddlSet.add(ddlName.replace("${dbvendor}", getDbVendor().name()));<NEW_LINE>}<NEW_LINE>executeDDL(serv...
ServerConfiguration sc = server.getServerConfiguration();
1,805,819
public void write(DataOutput out) throws IOException {<NEW_LINE>// ATTN: must write type first<NEW_LINE>Text.writeString(out, dataSourceType.name());<NEW_LINE>out.writeLong(id);<NEW_LINE>Text.writeString(out, name);<NEW_LINE>Text.writeString(out, clusterName);<NEW_LINE>out.writeLong(dbId);<NEW_LINE>out.writeLong(tableI...
out, entry.getValue());
1,136,365
public void visitHistogram(StringBuilder sb, String prefix, String name, Histogram histogram) {<NEW_LINE>if (!CORE_METRICS.containsKey(name)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Snapshot snapshot = histogram.getSnapshot();<NEW_LINE>sb.append(Joiner.on(" ").join(prefix + name + "_75", CORE_METRICS.get(name), String.f...
))).append("\n");
627,336
void takeScreenshot(Canvas canvas, SingleObserver<String> observer) {<NEW_LINE>canvas.getScreenShot().subscribeOn(Schedulers.computation()).observeOn(Schedulers.io()).map(bitmap -> {<NEW_LINE><MASK><NEW_LINE>Date now = calendar.getTime();<NEW_LINE>// noinspection SpellCheckingInspection<NEW_LINE>SimpleDateFormat simple...
Calendar calendar = Calendar.getInstance();
810,274
public void updateGCPConfig(Provider provider, Map<String, String> config) throws IOException {<NEW_LINE>// Remove the key to avoid generating a credentials file unnecessarily.<NEW_LINE>config.remove("GCE_HOST_PROJECT");<NEW_LINE>// If we were not given a config file, then no need to do anything here.<NEW_LINE>if (conf...
, Json.toJson(config));
1,661,280
public void processElement(ProcessContext context) {<NEW_LINE>FailsafeElement<PubsubMessage, String> failsafeElement = context.element();<NEW_LINE>PubsubMessage pubsubMessage = failsafeElement.getOriginalPayload();<NEW_LINE>String message = pubsubMessage.getPayload().length > 0 ? new String(pubsubMessage.getPayload()) ...
(OBJECT_MAPPER.readTree(message));
735,202
protected AsyncState finish() {<NEW_LINE>boolean someIndicesWereDropped = dropUnregisteredIndices(state);<NEW_LINE>StringBuilder updated = new StringBuilder();<NEW_LINE>String updatedIndices = indicesRegistrationSink.changedIndices();<NEW_LINE>if (!updatedIndices.isEmpty())<NEW_LINE>updated.append(updatedIndices);<NEW_...
Throwable(updated.toString());
676,737
final GetEvaluationResult executeGetEvaluation(GetEvaluationRequest getEvaluationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEvaluationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetEvaluationReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
115,450
public static DescribeIngressResponse unmarshall(DescribeIngressResponse describeIngressResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIngressResponse.setRequestId(_ctx.stringValue("DescribeIngressResponse.RequestId"));<NEW_LINE>describeIngressResponse.setCode(_ctx.stringValue("DescribeIngressResponse.Code"));<...
(_ctx.stringValue("DescribeIngressResponse.Data.DefaultRule.AppId"));
894,452
public ProjectInternal findProject(String projectPath, ProjectInternal startProject) throws ProjectLookupException {<NEW_LINE>// We save the original path, as we are going to mangle the variable<NEW_LINE>String originalProjectPath = projectPath;<NEW_LINE>MatchedProject matchedProject;<NEW_LINE>if (projectPath.startsWit...
getProject().getPath());
703,691
private TypeBindings _bindingsForSubtype(JavaType baseType, int typeParamCount, Class<?> subclass, boolean relaxedCompatibilityCheck) {<NEW_LINE>PlaceholderForType[] placeholders = new PlaceholderForType[typeParamCount];<NEW_LINE>for (int i = 0; i < typeParamCount; ++i) {<NEW_LINE>placeholders[i] = new PlaceholderForTy...
, subclass.getName()));
1,570,287
/* Filtering functionality */<NEW_LINE>@Override<NEW_LINE>public void addContainerFilter(Filter filter) throws UnsupportedFilterException {<NEW_LINE>if (filterableContainer == null) {<NEW_LINE>throw new UnsupportedOperationException("Wrapped container is not filterable");<NEW_LINE>}<NEW_LINE>List<Filter> addedFilters =...
Object property = entry.getKey();
1,411,800
private void createTransformSettingsArea(Composite composite) {<NEW_LINE>Composite settingsPanel = UIUtils.createComposite(composite, 1);<NEW_LINE>if (composite.getLayout() instanceof GridLayout) {<NEW_LINE>settingsPanel.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>}<NEW_LINE>final Composite placeholder = ...
new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
1,833,579
public static List<Star> findClosestKStars(Iterator<Star> stars, int k) {<NEW_LINE>// maxHeap to store the closest k stars seen so far.<NEW_LINE>PriorityQueue<Star> maxHeap = new PriorityQueue<>(k, Collections.reverseOrder());<NEW_LINE>while (stars.hasNext()) {<NEW_LINE>// Add each star to the max-heap. If the max-heap...
Star star = stars.next();
1,445,397
public static void vaccinate(Person person, long time, int series) {<NEW_LINE>HealthRecord.Code encounterCode = new HealthRecord.Code("http://snomed.info/sct", "33879002", "Administration of vaccine to produce active immunity (procedure)");<NEW_LINE>EncounterModule.createEncounter(person, time, HealthRecord.EncounterTy...
covidImmunizationHistory = immunizationHistory.get(C19_PERSON_ATTRS_KEY);
58,939
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {<NEW_LINE>// ajax<NEW_LINE>if (AjaxUtils.isAjaxRequest(request)) {<NEW_LINE>PrintWriter writer = null;<NEW_LINE>try {<NEW_LINE>writer = response.getWriter();<NEW_LINE>RestfulResponse restfulResp...
ex.getMessage(), ex);
309,703
private Map<String, Long> estimateRootEntries(Map<String, String> aliasClasses, Map<String, OWhereClause> aliasFilters, OCommandContext ctx) {<NEW_LINE>Set<String> allAliases = new LinkedHashSet<String>();<NEW_LINE>allAliases.addAll(aliasClasses.keySet());<NEW_LINE>allAliases.addAll(aliasFilters.keySet());<NEW_LINE>OSc...
className = aliasClasses.get(alias);
1,803,930
private static String memoryToString(final Memory srcMem, final boolean isDoublesSketch) {<NEW_LINE>// either 1 or 2<NEW_LINE>final int preLongs = extractPreLongs(srcMem);<NEW_LINE>final int serVer = extractSerVer(srcMem);<NEW_LINE>final int familyID = extractFamilyID(srcMem);<NEW_LINE>final String famName = idToFamily...
(readOnly).append(LS);
1,714,433
public static void drawImage(int width, int height, String text, OutputStream outputStream) throws IOException {<NEW_LINE>BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);<NEW_LINE>Graphics g = bufferedImage.getGraphics();<NEW_LINE>g.setColor(getRandColor(210, 255));<NEW_LINE>g...
>= height ? height - 1 : fontWidth;
1,472,390
private ListenableFuture<?> rollupThroughputFromRows(RollupParams rollup, AggregateQuery query, Iterable<Row> rows) throws Exception {<NEW_LINE>long transactionCount = 0;<NEW_LINE>// error_count is null for data inserted prior to glowroot central 0.9.18<NEW_LINE>// rolling up any interval with null error_count should r...
rollupLevel()).bind();
352,266
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View rootView = inflater.inflate(R.layout.fragment_navigation_drawer, container, false);<NEW_LINE>View btn = requireViewById(<MASK><NEW_LINE>btn.setOnClickListener(v -> onAboutClick(...
rootView, R.id.drawer_about_btn);
1,177,153
private void registerAttributeHandlers(final ReadManager reader) {<NEW_LINE>final IAttributeHandler vShiftHandler = new IAttributeHandler() {<NEW_LINE><NEW_LINE>public void setAttribute(final Object userObject, final String value) {<NEW_LINE>final NodeModel node = (NodeModel) userObject;<NEW_LINE>LocationModel.createLo...
(value, LengthUnit.px));
832,750
public ExecutionContext deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {<NEW_LINE>ObjectCodec oc = jsonParser.getCodec();<NEW_LINE>JsonNode node = oc.readTree(jsonParser);<NEW_LINE>final ExecutionContext executionContext = new ExecutionConte...
(nodeValue.asBoolean()));
26,742
protected boolean verifyEnvironMarkerData(Map<String, String> markerData, Environment env, Iterable<String> keys) throws InterruptedException {<NEW_LINE>Map<String, String> environ = <MASK><NEW_LINE>if (env.valuesMissing()) {<NEW_LINE>// Returns false so caller knows to return immediately<NEW_LINE>return false;<NEW_LIN...
ActionEnvironmentFunction.getEnvironmentView(env, keys);
1,048,910
public ByteBuffer readBinaryValue(long chain) {<NEW_LINE>// first get total element size and allocate buffer<NEW_LINE>long element = chain + this.totalChainHeaderSize;<NEW_LINE>int totalLength = DETACHED_CONTIGUOUS_CHAIN_HEADER_SIZE;<NEW_LINE>do {<NEW_LINE>totalLength += ELEMENT_HEADER_SIZE + readElementLength(element)...
detachedContiguousBuffer = ByteBuffer.allocate(totalLength);
1,524,990
public void compute(double[][] seasonMatrix, int sP, int sQ, int season) {<NEW_LINE>// step 1: find CSS result<NEW_LINE>SCSSEstimate scssEstimate = new SCSSEstimate();<NEW_LINE>scssEstimate.compute(seasonMatrix, sP, sQ, season);<NEW_LINE>ArrayList<double[]> initCoef = new ArrayList<>();<NEW_LINE>initCoef.add(scssEstima...
+ sQ, sP + sQ));
1,486,907
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>Display display = ((Activity) context).getWindowManager().getDefaultDisplay();<NEW_LINE>outMetrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(outMetrics);<NEW_LINE>if (megaApi == null) {<NEW_LINE>megaAp...
setOnClickListener(v1 -> showRecentActivity());
407,012
/* We need to play a little dance here.<NEW_LINE>* task hooks are a list of class names that need to be invoked at various times during a topology run.<NEW_LINE>* However because Heron operates in org.apache world and Strom in backtype.storm world, we<NEW_LINE>* pass a ITaskHookDelegate to Heron and remember the actual...
translationHooks = new LinkedList<>();
693,274
private static BufferedImage joinBufferedImage(BufferedImage img1, BufferedImage img2) {<NEW_LINE>int wid = img1.getWidth() + img2.getWidth();<NEW_LINE>int height = Math.max(img1.getHeight(), img2.getHeight());<NEW_LINE>// create a new buffer and draw two image into the new image<NEW_LINE>BufferedImage newImage = new B...
g2.setPaint(Color.WHITE);
710,806
public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) {<NEW_LINE>logger.debug("NODE {}: Received Manufacture Specific Information", this.<MASK><NEW_LINE>int command = serialMessage.getMessagePayloadByte(offset);<NEW_LINE>switch(command) {<NEW_LINE>case MANUFACTURER_SPECIFIC_...
getNode().getNodeId());
1,006,942
public Request<MergeShardsRequest> marshall(MergeShardsRequest mergeShardsRequest) {<NEW_LINE>if (mergeShardsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(MergeShardsRequest)");<NEW_LINE>}<NEW_LINE>Request<MergeShardsRequest> request = new DefaultRequest<MergeShardsReq...
.toString(content.length));
52,307
private List<Field> convert(FieldDeclaration fieldDeclaration) {<NEW_LINE>List<Field> fields = new ArrayList<>();<NEW_LINE>for (Object object : fieldDeclaration.fragments()) {<NEW_LINE>org.eclipse.jdt.core.dom.VariableDeclarationFragment fragment = (org.eclipse.jdt.core.dom.VariableDeclarationFragment) object;<NEW_LINE...
IVariableBinding variableBinding = fragment.resolveBinding();
1,435,921
public static void down(GrayF64 input, GrayF64 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex ...
= input.data[indexIn0++];
249,140
/*<NEW_LINE>* Parses the reference pointer to an index array that contains document, sentence, and opinion indexes.<NEW_LINE>*/<NEW_LINE>public static int[] parseRefPointerToIndexArray(String assessmentPointer) {<NEW_LINE>// The pattern always start with character '#', the assessment index will existing in specified se...
(matcher.group(3));
632,369
public float[] eval(float[] input) throws IOException {<NEW_LINE>// This involves linear interpolation based on a set of sample points.<NEW_LINE>// Theoretically it's not that difficult ... see section 3.9.1 of the PDF Reference.<NEW_LINE>float[] sizeValues = getSize().toFloatArray();<NEW_LINE>int bitsPerSample = getBi...
), domain.getMax());
1,007,038
private void addMarkers() {<NEW_LINE>map.addMarker(new MarkerOptions().position(BRISBANE).title("Brisbane"));<NEW_LINE>map.addMarker(new MarkerOptions().position(MELBOURNE).title("Melbourne").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));<NEW_LINE>map.addMarker(new MarkerOptions().posi...
defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA)));
166,898
// returns a tight rect with CW winding<NEW_LINE>public static ConvexHull2D.PointF[] calculateRect(Raster alphaRaster, int inflate) {<NEW_LINE>int width = alphaRaster.getWidth();<NEW_LINE>int height = alphaRaster.getHeight();<NEW_LINE>int[] alpha = new int[width * height];<NEW_LINE>alpha = alphaRaster.getPixels(0, 0, w...
= new ConvexHull2D.PointF[4];
354,082
public void testMultipleObtrude() throws Exception {<NEW_LINE>BlockableIncrementFunction increment = new BlockableIncrementFunction("testMultipleObtrude", null, null);<NEW_LINE>CompletableFuture<Integer> cf1 = defaultManagedExecutor.supplyAsync(() -> 80);<NEW_LINE>cf1.obtrudeValue(90);<NEW_LINE>CompletableFuture<Intege...
.obtrudeException(new CancellationException());
1,337,519
private boolean fromSubjectTest(StringBuffer sb) {<NEW_LINE>boolean pass = false;<NEW_LINE>try {<NEW_LINE>Subject subject = WSSubject.getCallerSubject();<NEW_LINE>// set delegate to false for s4u2proxy testing<NEW_LINE>String token = SpnegoTokenHelper.buildSpnegoAuthorizationFromSubject(spn, subject, lifetime, false);<...
"Call to SpnegoTokenHelper.buildSpnegoAuthorizationFromSubject failed. Unexpected WSSecurityException thrown " + e.getMessage());
675,252
private void printParameterDeclarations(JavaWriter out, List<ParameterDefinition> parameters, boolean parametersAsField, String separator) {<NEW_LINE>for (ParameterDefinition parameter : parameters) {<NEW_LINE>final String memberName = getStrategy().getJavaMemberName(parameter);<NEW_LINE>if (scala) {<NEW_LINE>if (param...
(resolver(out))));
1,666,442
public void onRefresh(CallbackInfo ci, String string, StringReader reader) {<NEW_LINE>String prefix = Config.get().prefix.get();<NEW_LINE>int length = prefix.length();<NEW_LINE>if (reader.canRead(length) && reader.getString().startsWith(prefix, reader.getCursor())) {<NEW_LINE>reader.setCursor(reader.getCursor() + lengt...
.get().getDispatcher();
296,733
private void buildColorPickerView(View view, int colorCode) {<NEW_LINE>view.setVisibility(View.VISIBLE);<NEW_LINE>ShapeDrawable biggerCircle = new ShapeDrawable(new OvalShape());<NEW_LINE>biggerCircle.setIntrinsicHeight(20);<NEW_LINE>biggerCircle.setIntrinsicWidth(20);<NEW_LINE>biggerCircle.setBounds(new Rect(0, 0, 20,...
new ShapeDrawable(new OvalShape());
201,210
protected TupleList makeList(Evaluator evaluator) {<NEW_LINE>evaluator.getTiming().markStart(TIMING_NAME);<NEW_LINE>final int savepoint = evaluator.savepoint();<NEW_LINE>try {<NEW_LINE>Calc[] calcs = getCalcs();<NEW_LINE>ListCalc lcalc = (ListCalc) calcs[0];<NEW_LINE>BooleanCalc bcalc = (BooleanCalc) calcs[1];<NEW_LINE...
.getStatement().getCurrentExecution();
1,226,820
private MockResponse doCreateOrModify(String path, String initial, HasMetadata value, Action event) {<NEW_LINE>MockResponse mockResponse = new MockResponse();<NEW_LINE>// workaround for mockserver https://github.com/fabric8io/mockwebserver/pull/59<NEW_LINE>Map<String, String> pathValues = kubernetesAttributesExtractor....
getMapper().readTree(initial);
355,255
protected void moveViewport(boolean isInFlingMode) {<NEW_LINE>mScrollableWidth = mLayout.getContentWidth() - getWidth();<NEW_LINE>if (mScrollableWidth < 0) {<NEW_LINE>mScrollableWidth = 0;<NEW_LINE>}<NEW_LINE>mScrollableHeight = mLayout.getContentHeight() - getHeight();<NEW_LINE>if (mScrollableHeight < 0) {<NEW_LINE>mS...
(int) (mScrollableHeight + overflingDistance);
1,474,720
public void onReceivedSslError(WebView view, final SslErrorHandler handler, SslError error) {<NEW_LINE>String message;<NEW_LINE>switch(error.getPrimaryError()) {<NEW_LINE>case SslError.SSL_UNTRUSTED:<NEW_LINE>message = "\"Certificate authority is not trusted.\"";<NEW_LINE>break;<NEW_LINE>case SslError.SSL_EXPIRED:<NEW_...
HelperUnit.setupDialog(context, dialog);
652,635
private static boolean isValidSectionOffset(final JTextField textField, final Section section) {<NEW_LINE><MASK><NEW_LINE>Preconditions.checkNotNull(section, "Error: section argument can not be null");<NEW_LINE>if (textField.getText().isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String textFie...
Preconditions.checkNotNull(textField, "Error: textField argument can not be null");
1,818,685
public void changeRoleOfStorageNode(String instanceId, String replica, StorageRole newRole) {<NEW_LINE>assert StringUtils.isNotEmpty(replica);<NEW_LINE>StorageInstHaContext storageNode = null;<NEW_LINE>if (instanceId.equals(metaDbStorageHaCtx.storageInstId)) {<NEW_LINE>storageNode = metaDbStorageHaCtx;<NEW_LINE>} else ...
replicaHaInfo = storageNode.getNodeHaInfoByAddress(replica);
960,618
public Policy putPolicy(String domainName, String policyName, String auditRef, Policy policy) {<NEW_LINE>WebTarget target = base.path("/domain/{domainName}/policy/{policyName}").resolveTemplate("domainName", domainName).resolveTemplate("policyName", policyName);<NEW_LINE>Invocation.Builder invocationBuilder = target.re...
int code = response.getStatus();
103,272
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
5500, 150.0, 20.0, 0.0);
1,794,731
private static RuntimeConverter createRuntimeConverter(TypeInformation<?> info) {<NEW_LINE>if (info.equals(Types.VOID)) {<NEW_LINE>return (csvMapper, container, obj) -> container.nullNode();<NEW_LINE>} else if (info.equals(Types.STRING)) {<NEW_LINE>return (csvMapper, container, obj) -> container.textNode((String) obj);...
.numberNode((Float) obj);
26,040
public void changeVariables(Object source, Map<String, Object> variables) {<NEW_LINE>// Get new size<NEW_LINE>final Integer newWidth = (Integer) variables.get("width");<NEW_LINE>final Integer newHeight = (Integer) variables.get("height");<NEW_LINE>if (newWidth != null && newWidth.intValue() != getWidth()) {<NEW_LINE>se...
newWidth.intValue(), UNITS_PIXELS);
1,695,404
@Override<NEW_LINE>public JComponent createComponent() {<NEW_LINE>PostfixTemplateProvider postfixTemplateProvider = myExtensionPoint.getInstance();<NEW_LINE>if (postfixTemplateProvider == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>OnePixelSplitter splitter = new OnePixelSplitter();<NEW_LINE>splitter.setSplitterP...
JPanel component = myPostfixDescriptionPanel.getComponent();
536,798
public ByteBuffer encode(RemotingCommand remotingCommand) throws Exception {<NEW_LINE>RemotingSerializable serializable = getRemotingSerializable(remotingCommand.getSid());<NEW_LINE>// header length size<NEW_LINE>int length = 4;<NEW_LINE>// serializable id (int)<NEW_LINE>length += 4;<NEW_LINE>// header data length<NEW_...
putInt(serializable.getId());
1,821,747
protected void addMethodParameterAnnotation(String cName, String mName, String mSig, boolean isStatic, int param, AnnotationEnum annotation) {<NEW_LINE>// if (!Subtypes.DO_NOT_USE) {<NEW_LINE>// subtypes.addNamedClass(cName);<NEW_LINE>// }<NEW_LINE>if (addClassOnly) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SignatureParse...
(m, param), annotation);
41,261
public static void configureJNA() {<NEW_LINE>// Set JNA "jnidispatch" resolution rules<NEW_LINE>try {<NEW_LINE>if (System.getProperty("os.name") != null && System.getProperty("os.name").startsWith("Windows") && isNotBlank(System.getProperty("os.version")) && Double.parseDouble(System.getProperty("os.version")) < 5.2) {...
.getProperty("os.version") + ". Not applying Windows XP hack");
969,522
public void performHealthCheck(HttpServletRequest request, HttpServletResponse httpResponse) {<NEW_LINE>Set<HealthCheckResponse> hcResponses = null;<NEW_LINE>Set<String> apps = appTracker.getAppNames();<NEW_LINE>Iterator<String> appsIt = apps.iterator();<NEW_LINE>HealthCheckHttpResponseBuilder hcHttpResponseBuilder = n...
String moduleName = moduleIt.next();
1,039,234
/* Merges a and b<NEW_LINE>Lists are merged: a + b = [*a, *b]<NEW_LINE>Strings are not allowed, they will throw an error<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public static Map<String, Object> mergeManifestContext(Map<String, Object> a, Map<String, Object> b) throws RuntimeException {<NEW_LINE>Ma...
merged.put(key, mergedChildren);
508,005
void add(View view, boolean insertNextToCenterItem) {<NEW_LINE>// view.setBackgroundColor(mViews.size() % 2 == 0 ? 0xff660066 : 0xff666600);<NEW_LINE>view.setOnClickListener(mViewOnClickListener);<NEW_LINE>view.setOnTouchListener(mViewOnTouchListener);<NEW_LINE>int centerIndex = getCenterIndex();<NEW_LINE>int insertAtI...
.leftMargin = mEdgeMargin + insertAtIndex * mItemWidth;
525,606
protected void endNode(int node) throws org.xml.sax.SAXException {<NEW_LINE>switch(m_dtm.getNodeType(node)) {<NEW_LINE>case DTM.DOCUMENT_NODE:<NEW_LINE>this.m_contentHandler.endDocument();<NEW_LINE>break;<NEW_LINE>case DTM.ELEMENT_NODE:<NEW_LINE>String ns = m_dtm.getNamespaceURI(node);<NEW_LINE>if (null == ns)<NEW_LINE...
(m_dtm.getNodeName(node));
1,503,878
public OResult calculateSingle(OCommandContext iContext, OResult iRecord) {<NEW_LINE>initExcludes(iContext);<NEW_LINE>if (isExpand()) {<NEW_LINE>throw new IllegalStateException("This is an expand projection, it cannot be calculated as a single result" + toString());<NEW_LINE>}<NEW_LINE>if (items.size() == 0 || (items.s...
.execute(iRecord, iContext));
1,619,990
public static void main(String[] args) throws UnknownHostException {<NEW_LINE>Configuration config = Configuration.createWithFile(CONFIG_FILE, CONFIG_HEADER, DEFAULTS);<NEW_LINE>Configuration.setStandard(config);<NEW_LINE>int unicastPort = config.get(CoapConfig.COAP_PORT);<NEW_LINE>int multicastPort = unicastPort;<NEW_...
.add(new HelloWorldResource());
342,026
public void eventOccured(String message) {<NEW_LINE>// normally there comes only one line to the baseStation<NEW_LINE>// except when station is restarted<NEW_LINE>// Filter out the lines that contain garbage data<NEW_LINE>if (message.contains("(CRC wrong after decryption)")) {<NEW_LINE>logger.debug("BaseStation eventOc...
logger.debug("BaseStation eventOccurred - giving to Binding {}", logResult);
446,401
private void doUIandUsageLogging() {<NEW_LINE>if ((addedFrameworks != null) && (addedFrameworks.size() > 0)) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (int i = 0; i < addedFrameworks.size(); i++) {<NEW_LINE>if (sb.length() > 0) {<NEW_LINE>// NOI18N<NEW_LINE>sb.append("|");<NEW_LINE>}<NEW_LINE>sb.a...
[] { addedFrameworksNames }, "web.project");
238,361
public void writeExternal(ObjectOutput oo) throws IOException {<NEW_LINE>// backward compatibility must be ensured... (table model was implemented using arrays sooner)<NEW_LINE>oo.writeInt(rowCount);<NEW_LINE>int colCount = columns.size();<NEW_LINE>oo.writeInt(colCount);<NEW_LINE>String[] titles = new String[colCount];...
ci.type.getName());
970,320
public void marshall(CreateLocationObjectStorageRequest createLocationObjectStorageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLocationObjectStorageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMa...
createLocationObjectStorageRequest.getServerProtocol(), SERVERPROTOCOL_BINDING);
997,283
public int compare(T o1, T o2) {<NEW_LINE>Matcher m1 = parts.matcher<MASK><NEW_LINE>Matcher m2 = parts.matcher(converter.apply(o2));<NEW_LINE>while (m1.find() && m2.find()) {<NEW_LINE>int compareCharGroup = m1.group(ALPHA_PART).compareTo(m2.group(ALPHA_PART));<NEW_LINE>if (compareCharGroup != 0) {<NEW_LINE>return compa...
(converter.apply(o1));
839,741
public void marshall(UpdateMatchmakingConfigurationRequest updateMatchmakingConfigurationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateMatchmakingConfigurationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>p...
updateMatchmakingConfigurationRequest.getBackfillMode(), BACKFILLMODE_BINDING);
1,285,813
public void onGetRgbaFrame(byte[] data, int width, int height) {<NEW_LINE>if (mPausetime > 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check video frame cache number to judge the networking situation.<NEW_LINE>// Just cache GOP / FPS seconds data according to latency.<NEW_LINE>AtomicInteger videoFrameCacheNumber = flv...
hwRgbaFrame(data, width, height);
140,370
private void validateFingerprintUniqueness() {<NEW_LINE>HashMap<String, SCMs> map = new HashMap<>();<NEW_LINE>for (SCM scm : this) {<NEW_LINE>String fingerprint = scm.getFingerprint();<NEW_LINE>if (!map.containsKey(fingerprint)) {<NEW_LINE>map.put(fingerprint, new SCMs());<NEW_LINE>}<NEW_LINE>map.get(fingerprint).add(s...
scmNames = new ArrayList<>();
150,856
public void detect() {<NEW_LINE>getPredictLabel().addAll(<MASK><NEW_LINE>this.startTime = getTime().get(0);<NEW_LINE>int i = 0;<NEW_LINE>int windowSize = minLength / 2;<NEW_LINE>double[][] data = new double[windowSize][2];<NEW_LINE>SimpleRegression regression = new SimpleRegression();<NEW_LINE>while (i + windowSize < g...
new int[getLen()]);
1,427,514
private void searchMatchInSet(CtRole role, Set<? extends CtElement> set) {<NEW_LINE>if (!set.isEmpty()) {<NEW_LINE>// copy targets, because it might be modified by call of matchConsumer, when refactoring spoon model<NEW_LINE>// use List, because Spoon uses Sets with predictable order - so keep the order<NEW_LINE>TobeMa...
nextTobeMatched = pattern.matchAllWith(tobeMatched);
820,074
@Secured(action = ActionTypes.WRITE)<NEW_LINE>public ObjectNode batchUpdateInstanceMetadata(HttpServletRequest request) throws Exception {<NEW_LINE>final String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID);<NEW_LINE>String serviceName = WebUtils.required(request, C...
batchUpdateMetadata(namespaceId, instanceOperationInfo, targetMetadata);
1,418,384
public void visit(Code obj) {<NEW_LINE>if (!getMethod().isPublic() && !getMethod().isProtected()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SignatureParser p = new SignatureParser(getMethodSig());<NEW_LINE>LocalVariableTable t = obj.getLocalVariableTable();<NEW_LINE>if (t == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Pa...
String name = localVariable.getName();
1,174,764
private static CompletableFuture<Suggestions> suggest(CommandContext<CommandSourceStack> context, SuggestionsBuilder builder) throws CommandSyntaxException {<NEW_LINE>CommandSuggestionEvent event = new CommandSuggestionEvent(ForgeAdapter.adaptPlayer(context.getSource().getPlayerOrException()), builder.getInput());<NEW_...
> result = ImmutableList.builder();
946,571
public void parseAndInject(String[] args, T injectee) throws InvalidCommandException {<NEW_LINE>this.injectee = injectee;<NEW_LINE>pendingInjections.clear();<NEW_LINE>Iterator<String> <MASK><NEW_LINE>ImmutableList.Builder<String> builder = ImmutableList.builder();<NEW_LINE>while (argsIter.hasNext()) {<NEW_LINE>String a...
argsIter = Iterators.forArray(args);
1,297,564
private void pull() throws GitAPIException {<NEW_LINE>Git git = recordGit(Git.wrap(repository));<NEW_LINE>PullCommand pull = git.pull().setCredentialsProvider(endpoint.credentialsProvider()).setRebase(true);<NEW_LINE>PullResult result = pull.call();<NEW_LINE>if (!result.isSuccessful()) {<NEW_LINE>LOGGER.log(Level.WARNI...
"git status cleanliness: " + status.isClean());
331,369
private void storedNameIdMapToV3() throws IOException {<NEW_LINE>final Path nameIdMapHolderFileV3T = storagePath.resolve(NAME_ID_MAP_V3_T);<NEW_LINE>if (Files.exists(nameIdMapHolderFileV3T)) {<NEW_LINE>Files.delete(nameIdMapHolderFileV3T);<NEW_LINE>}<NEW_LINE>final FileChannel v3NameIdMapHolder = FileChannel.open(nameI...
(nameIdEntry.getValue()));
993,203
public void add(String rule, String value) {<NEW_LINE>if (rule.equals("sitemap")) {<NEW_LINE>if (this.sitemap == null) {<NEW_LINE>this.sitemap = new ArrayList<String>();<NEW_LINE>}<NEW_LINE>this.sitemap.add(value);<NEW_LINE>} else if (rule.equals("crawl-delay")) {<NEW_LINE>try {<NEW_LINE>this.crawlDelay = Double.parseD...
logger.error("Invalid key in robots.txt passed to UserAgentRules: {}", rule);
466,898
public static ListUserSolutionsResponse unmarshall(ListUserSolutionsResponse listUserSolutionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserSolutionsResponse.setRequestId(_ctx.stringValue("ListUserSolutionsResponse.RequestId"));<NEW_LINE>listUserSolutionsResponse.setCurrentPageNum(_ctx.integerValue("ListUserSo...
("ListUserSolutionsResponse.Data[" + i + "].BizId"));
1,053,801
private void updatePlayerMedia() {<NEW_LINE>if (answerFile != null) {<NEW_LINE>Clip clip = new Clip("audio:" + getFormEntryPrompt().getIndex().toString(), answerFile.getAbsolutePath());<NEW_LINE>audioPlayer.onPlayingChanged(clip.getClipID(), <MASK><NEW_LINE>audioPlayer.onPositionChanged(clip.getClipID(), binding.audioP...
binding.audioPlayer.audioController::setPlaying);
1,406,584
public void tick() {<NEW_LINE>super.tick();<NEW_LINE>if (!running || level == null) {<NEW_LINE>if (hasLevel() && !level.isClientSide) {<NEW_LINE>if (getSpeed() == 0)<NEW_LINE>return;<NEW_LINE>if (entityScanCooldown > 0)<NEW_LINE>entityScanCooldown--;<NEW_LINE>if (entityScanCooldown <= 0) {<NEW_LINE>entityScanCooldown =...
getSpeed()) / 1024f));
495,632
public static PreLoadedApk loadModule(String path) {<NEW_LINE>if (path == null)<NEW_LINE>return null;<NEW_LINE>var file = new PreLoadedApk();<NEW_LINE>var preLoadedDexes <MASK><NEW_LINE>var moduleClassNames = new ArrayList<String>(1);<NEW_LINE>var moduleLibraryNames = new ArrayList<String>(1);<NEW_LINE>try (var apkFile...
= new ArrayList<SharedMemory>();
760,273
public static boolean downloadNodeSources(Version version, boolean iojs) throws NetworkException, IOException {<NEW_LINE>assert !EventQueue.isDispatchThread();<NEW_LINE>assert version != null;<NEW_LINE>deleteExistingNodeSources(version);<NEW_LINE>File nodeSources = NodeJsUtils.getNodeSources();<NEW_LINE>String nodeVers...
new File(nodeSources, nodeVersion));
602,646
public boolean load(String date, Collection<Integer> hashs, int serverId) {<NEW_LINE>if (hashs == null || hashs.size() == 0)<NEW_LINE>return false;<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("date", date);<NEW_LINE>param.put("type", type);<NEW_LINE>ListValue hashLv = param.newList("hash");<NEW_LINE>Iter...
.toLong32(key), value);
274,692
private void buildWriterList(TupleMetadata schema) {<NEW_LINE>int colIndex = 0;<NEW_LINE>for (MaterializedField field : schema.toFieldList()) {<NEW_LINE>String fieldName = field.getName();<NEW_LINE>MinorType type = field<MASK><NEW_LINE>if (type == MinorType.FLOAT8) {<NEW_LINE>writerList.add(new DoubleSasColumnWriter(co...
.getType().getMinorType();
687,707
protected void init() {<NEW_LINE>setRowHeaderView(foldingSideBar = new FoldingSideBar(textView, this));<NEW_LINE>setViewportView(textView);<NEW_LINE>textView.setEditable(false);<NEW_LINE>textView.addMouseListener(this);<NEW_LINE>textView.addMouseMotionListener(this);<NEW_LINE>textView.addKeyListener(this);<NEW_LINE>tex...
setBorder(BorderFactory.createEmptyBorder());
1,281,494
public void adjustCost(BigDecimal deltaAmt, BigDecimal deltaQty, boolean reset) {<NEW_LINE>BigDecimal newCost = Env.ZERO;<NEW_LINE>BigDecimal newQty = Env.ZERO;<NEW_LINE>if (!reset) {<NEW_LINE>newCost = getA_Asset_Cost();<NEW_LINE>newQty = getA_QTY_Current();<NEW_LINE>}<NEW_LINE>newCost = newCost.add(deltaAmt);<NEW_LIN...
) + ", qty=" + getA_QTY_Current());
709,097
public <T> boolean tryExecute(Class<T> remoteInterface, T object, ExecutorService executorService, long timeout, TimeUnit timeUnit) throws InterruptedException {<NEW_LINE>String requestQueueName = getRequestQueueName(remoteInterface);<NEW_LINE>RBlockingQueue<String> requestQueue = getBlockingQueue(requestQueueName, Str...
request = commandExecutor.getInterrupted(taskFuture);
807,886
protected void permissionsCheck(Player player) {<NEW_LINE>canBeastLore = canUseSubskill(player, SubSkillType.TAMING_BEAST_LORE);<NEW_LINE>canCallWild = Permissions.callOfTheWild(player, EntityType.HORSE) || Permissions.callOfTheWild(player, EntityType.WOLF) || Permissions.callOfTheWild(player, EntityType.OCELOT);<NEW_L...
canUseSubskill(player, SubSkillType.TAMING_FAST_FOOD_SERVICE);
827,000
private static boolean extendsType(ReferenceType t1, ReferenceType t2) {<NEW_LINE>if (t2 instanceof InterfaceType) {<NEW_LINE>List<InterfaceType> superInterfaces;<NEW_LINE>if (t1 instanceof ClassType) {<NEW_LINE>superInterfaces = ((ClassType) t1).allInterfaces();<NEW_LINE>} else if (t1 instanceof InterfaceType) {<NEW_L...
InterfaceType) t1).superinterfaces();