idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
617,583
public static List<List<String>> removeAnnounceURLs(List<List<String>> base_urls, List<List<String>> remove_urls, boolean use_prefix_match) {<NEW_LINE>base_urls = getClone(base_urls);<NEW_LINE>if (remove_urls == null) {<NEW_LINE>return (base_urls);<NEW_LINE>}<NEW_LINE>Set<String> removeSet = new HashSet<>();<NEW_LINE>/...
> it2 = l.iterator();
458,057
public static void hessianBorder(GrayS32 integral, int skip, int size, GrayF32 intensity, @Nullable IntegralKernel storageKerXX, @Nullable IntegralKernel storageKerYY, @Nullable IntegralKernel storageKerXY) {<NEW_LINE>final int w = intensity.width;<NEW_LINE>final int h = intensity.height;<NEW_LINE>// get convolution ke...
y, yy, x, xx);
992,095
public Page unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Page page = new Page();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g...
().unmarshall(context));
1,328,447
public BalloonBuilder createHtmlTextBalloonBuilder(@Nonnull final String htmlContent, @Nullable final Image icon, Color textColor, final Color fillColor, @Nullable final HyperlinkListener listener) {<NEW_LINE>JEditorPane text = IdeTooltipManager.initPane(htmlContent, new HintHint().setTextFg(textColor).setAwtTooltip(tr...
new NonOpaquePanel(new BorderLayout());
182,216
final DisassociateAssessmentReportEvidenceFolderResult executeDisassociateAssessmentReportEvidenceFolder(DisassociateAssessmentReportEvidenceFolderRequest disassociateAssessmentReportEvidenceFolderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateAssessmentReportEvidenceFolderRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
455,890
protected Collection<Artifact<?>> doEmitCompilation(TreeLogger logger, LinkerContext context, CompilationResult result, ArtifactSet artifacts) throws UnableToCompleteException {<NEW_LINE>String[<MASK><NEW_LINE>Collection<Artifact<?>> toReturn = new ArrayList<Artifact<?>>();<NEW_LINE>byte[] primary = generatePrimaryFrag...
] js = result.getJavaScript();
1,080,701
public Vector filterUp(double threshold) {<NEW_LINE>LongIntSparseVectorStorage newStorage = new LongIntSparseVectorStorage(size());<NEW_LINE>if (storage.isDense()) {<NEW_LINE>int[] values = ((LongIntVectorStorage) storage).getValues();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (values[i] >= thresho...
Entry entry = iter.next();
951,601
private void createLogWindow(String title, ArrayList<String> logMessages, Color color) {<NEW_LINE>// do nothing if no log messages exist<NEW_LINE>if (logMessages == null || logMessages.size() == 0)<NEW_LINE>return;<NEW_LINE>ArrayList<String> displayLogMessages = new ArrayList<String>(logMessages);<NEW_LINE>// create wi...
, 10, 10, 10));
337,305
public void reset() {<NEW_LINE>myProfilesComboBox.setSelectedItem(myManager.getDefaultCopyright());<NEW_LINE>final List<ScopeSetting> mappings = new ArrayList<ScopeSetting>();<NEW_LINE>final Map<String, String> copyrights = myManager.getCopyrightsMapping();<NEW_LINE>final DependencyValidationManager manager = Dependenc...
copyrights.get(scopeName)));
693,778
protected Integer doInBackground(Void... params) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>Context context = contextRef.get();<NEW_LINE>DecoderFactory<? extends ImageDecoder> decoderFactory = decoderFactoryRef.get();<NEW_LINE>SubsamplingScaleImageView view = viewRef.get();<NEW_LINE>if (context != null && decoderFactory...
String sourceUri = source.toString();
805,261
public static // See https://developer.android.com/reference/android/app/Fragment<NEW_LINE>void addToolbarToDialog(final android.app.Fragment context, final Dialog dialog, String title) {<NEW_LINE>if (!context.isAdded() || dialog == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>View dialogContainerView = DialogExtension...
(ViewGroup) dialogContainerView.getParent();
1,348,108
final DescribeCodeBindingResult executeDescribeCodeBinding(DescribeCodeBindingRequest describeCodeBindingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCodeBindingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
262,586
protected void onHandleIntent(Intent intent) {<NEW_LINE>Caches caches = new Caches(this);<NEW_LINE>if (intent != null) {<NEW_LINE>final String action = intent.getAction();<NEW_LINE>if (ACTION_SEND_PKG_INFO.equals(action)) {<NEW_LINE>String socketName = intent.getStringExtra(EXTRA_SOCKET_NAME);<NEW_LINE>if (socketName =...
intent.getBooleanExtra(EXTRA_ONLY_DEBUG, false);
211,282
public JobExecution submitJob(Integer theBatchSize, List<String> theUrlsToDeleteExpunge, RequestDetails theRequest) throws JobParametersInvalidException {<NEW_LINE>if (theBatchSize == null) {<NEW_LINE>theBatchSize = myDaoConfig.getExpungeBatchSize();<NEW_LINE>}<NEW_LINE>RequestListJson requestListJson = myPartitionedUr...
ProviderConstants.OPERATION_DELETE_EXPUNGE, theBatchSize, requestListJson);
861,509
void applyAnimation(Context context, CustomTabsIntent.Builder builder, ReadableMap animations) {<NEW_LINE>final int startEnterAnimationId = animations.hasKey(KEY_ANIMATION_START_ENTER) ? resolveAnimationIdentifierIfNeeded(context, animations.getString(KEY_ANIMATION_START_ENTER)) : -1;<NEW_LINE>final int startExitAnimat...
getString(KEY_ANIMATION_START_EXIT)) : -1;
922,813
public JsonResponseBPartnerCompositeUpsertItem persist(@Nullable final String orgCode, @NonNull final JsonRequestBPartnerUpsertItem requestItem, @NonNull final SyncAdvise parentSyncAdvise) {<NEW_LINE>// TODO: add support to retrieve without changelog; we don't need changelog here;<NEW_LINE>// but! make sure we don't sc...
).setParameter("effectiveSyncAdvise", effectiveSyncAdvise);
927,800
public static String resolvePath(String input) {<NEW_LINE>if (null == input) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>// matching for 2 groups match ${VAR_NAME} or $VAR_NAME<NEW_LINE>Pattern pathPattern = Pattern.compile("\\$\\{(.+?)\\}");<NEW_LINE>// get a matcher<NEW_LINE>Matcher matcherPattern = pathPattern.matc...
envConfVarValue = config.getString(confVarName);
749,206
private void createSelectionTill(@Nonnull LogicalPosition targetPosition) {<NEW_LINE>List<CaretState> caretStates = new ArrayList<>(myCaretStateBeforeLastPress);<NEW_LINE>if (myRectangularSelectionInProgress) {<NEW_LINE>caretStates.addAll(EditorModificationUtil.calcBlockSelectionState(this, myLastMousePressedLocation, ...
offsetToVisualLine(newCaretOffset), 0));
923,760
public LoggerSetup merge(LogOptions logOptions) {<NEW_LINE>int logLevel = logOptions.getLogLevel() != null ? logOptions.getLogLevel() : this.logLevel;<NEW_LINE>int macAddressLogSetting = logOptions.getMacAddressLogSetting() != null ? logOptions.getMacAddressLogSetting() : this.macAddressLogSetting;<NEW_LINE>int uuidLog...
uuidLogSetting, shouldLogAttributeValues, shouldLogScanResults, logger);
1,357,752
public void testSFRemoteEnvEntry_Double() throws Exception {<NEW_LINE>// The test case looks for a environment variable named "envDouble".<NEW_LINE>Double tempDouble = fejb1.getDoubleEnvVar("envDouble");<NEW_LINE>assertNotNull("Get environment double object was null.", tempDouble);<NEW_LINE>assertEquals("Test content o...
doubleValue(), 7003.0, DDELTA);
384,852
private HttpPipeline createHttpPipeline() {<NEW_LINE>Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;<NEW_LINE>if (httpLogOptions == null) {<NEW_LINE>httpLogOptions = new HttpLogOptions();<NEW_LINE>}<NEW_LINE>if (clientOptions == null) {<NEW_LINE>clien...
.add(new CookiePolicy());
72,726
public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveCompactions_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.t...
skip(iprot, schemeField.type);
1,157,195
public static long parseInt000Greedy(CharSequence sequence, final int p, int lim) throws NumericException {<NEW_LINE>if (lim == p) {<NEW_LINE>throw NumericException.INSTANCE;<NEW_LINE>}<NEW_LINE>boolean negative = sequence.charAt(p) == '-';<NEW_LINE>int i = p;<NEW_LINE>if (negative) {<NEW_LINE>i++;<NEW_LINE>}<NEW_LINE>...
c = sequence.charAt(i);
1,267,724
public void paintEntity(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setFont(HandlerElementMap.getHandlerForElement(this).getFontHandler().getFont());<NEW_LINE>// enable colors<NEW_LINE>Composite[] composites = colorize(g2);<NEW_LINE>g2.setColor(fgColor);<NEW_LINE>Polygon poly = new Polygon();<NEW...
.setComposite(composites[1]);
1,469,141
private void tryAssertionOneParameterLambdaReturn(RegressionEnvironment env, String epl) {<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>EPTypeClass inner = EPTypeClassParameterized.from(Collection.class, SupportBean_ST0.class);<NEW_LINE>env.assertStmtTypes("s0", "val1,val2".split(","), new EPTypeClass[] ...
("val2")).toArray();
1,391,235
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// WUtil.debug(new String("In do Post"),"");<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>WebSessionCtx wsc = WebSessionCtx.get(request);<NEW_LINE>Properties ctx = wsc.ctx;<NEW_LINE...
activeNode, nodes, nodes_ID, sess);
1,699,242
static public String bindSQL(String sqlText, String params) {<NEW_LINE>if (params == null || "".equals(params)) {<NEW_LINE>return sqlText;<NEW_LINE>}<NEW_LINE>ArrayList<String> binds = divideParams(params);<NEW_LINE>if (binds == null || binds.size() == 0) {<NEW_LINE>return sqlText;<NEW_LINE>}<NEW_LINE>int bindLength = ...
i)).append("\r\n");
1,245,611
final ListExecutionsResult executeListExecutions(ListExecutionsRequest listExecutionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listExecutionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new ListExecutionsResultJsonUnmarshaller());
1,212,769
public SimpleTreeNode find(SimpleTreeNode fromNode, int recordId) {<NEW_LINE>if (fromNode == null)<NEW_LINE>fromNode = getRoot();<NEW_LINE>MTreeNode data = (MTreeNode) fromNode.getData();<NEW_LINE>if (data.getNode_ID() == recordId)<NEW_LINE>return fromNode;<NEW_LINE>// If the MTree model and the tree model aren't in sy...
"Uninitialized node exists in tree. Node ID: " + data.getNode_ID());
966,998
private ConnectionInfo parseForwardedInfo(ConnectionInfo connectionInfo, String forwardedHeader) {<NEW_LINE>String forwarded = forwardedHeader.split<MASK><NEW_LINE>Matcher hostMatcher = FORWARDED_HOST_PATTERN.matcher(forwarded);<NEW_LINE>if (hostMatcher.find()) {<NEW_LINE>connectionInfo = connectionInfo.withHostAddress...
(",", 2)[0];
897,297
public void initNearbyFilter() {<NEW_LINE><MASK><NEW_LINE>searchView.setOnQueryTextFocusChangeListener((v, hasFocus) -> {<NEW_LINE>if (hasFocus) {<NEW_LINE>presenter.searchViewGainedFocus();<NEW_LINE>nearbyFilterList.setVisibility(View.VISIBLE);<NEW_LINE>} else {<NEW_LINE>nearbyFilterList.setVisibility(View.GONE);<NEW_...
nearbyFilterList.setVisibility(View.GONE);
1,634,950
public static void main(String[] args) {<NEW_LINE>FhirContext ctx = FhirContext.forDstu3();<NEW_LINE>IGenericClient source = ctx.newRestfulGenericClient("http://localhost:8080/baseDstu3");<NEW_LINE>IGenericClient <MASK><NEW_LINE>List<String> resType = Arrays.asList("Patient", "Organization", "Encounter", "Procedure", "...
target = ctx.newRestfulGenericClient("https://try.smilecdr.com:8000");
1,480,739
final UpdateExperimentResult executeUpdateExperiment(UpdateExperimentRequest updateExperimentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateExperimentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,740,817
private void updateEnabled() {<NEW_LINE>// add and OK is disabled in waitmodel<NEW_LINE>// TODO C.P how to disable OK?<NEW_LINE>boolean okEnabled = !UIUtil.isWaitModel(dependencyList.getModel());<NEW_LINE>// if there is no selection disable edit/remove buttons<NEW_LINE>boolean enabled = dependencyList.getModel().getSiz...
] selectedIndices = emListComp.getSelectedIndices();
330,084
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>final String sensor = ((TextView) view).getText().toString();<NEW_LINE>final MaterialDialog dialog = new MaterialDialog.Builder(context).title(sensor).customView(R.layout.sensor_list_long_click_dailog, false).build();<NEW...
View customView = dialog.getCustomView();
18,511
final ListGrantsResult executeListGrants(ListGrantsRequest listGrantsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGrantsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListGrants");
75,385
protected String buildBaseQuery() {<NEW_LINE>final StringBuilder queryBuf = new StringBuilder(255);<NEW_LINE>if (params.hasConditionQuery()) {<NEW_LINE>appendConditions(queryBuf, params.getConditions());<NEW_LINE>} else {<NEW_LINE>final String query = params.getQuery();<NEW_LINE>if (StringUtil.isNotBlank(query)) {<NEW_...
relatedQueries = relatedQueryHelper.getRelatedQueries(query);
902,991
private void prepareSpawn() {<NEW_LINE>int centerX = spawnLocation.getBlockX() >> 4;<NEW_LINE>int centerZ = spawnLocation.getBlockZ() >> 4;<NEW_LINE>int radius = 4 * server.getViewDistance() / 3;<NEW_LINE>long loadTime = System.currentTimeMillis();<NEW_LINE>int total = ((radius << 1) + 1) * ((radius << 1) + 1);<NEW_LIN...
int progress = 100 * current / total;
1,224,632
public Task applyUpdateTaskPayload(boolean isAdmin, UpdateTaskPayload updateTaskPayload) {<NEW_LINE>org.activiti.engine.task.Task internalTask;<NEW_LINE>if (isAdmin) {<NEW_LINE>internalTask = getInternalTask(updateTaskPayload.getTaskId());<NEW_LINE>} else {<NEW_LINE>internalTask = getTaskToUpdate(updateTaskPayload.getT...
updatePriority(updateTaskPayload, internalTask, updates);
641,000
public static MethodProvider create(TypeRegistry registry, TypeDescriptor typeDescriptor) {<NEW_LINE>if (typeDescriptor.isReloadable()) {<NEW_LINE>ReloadableType rtype = registry.getReloadableType(typeDescriptor.getName(), false);<NEW_LINE>if (rtype == null) {<NEW_LINE>TypeRegistry tr = registry;<NEW_LINE>while (rtype ...
tr = TypeRegistry.getTypeRegistryFor(cl);
78,832
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/fake/outer/composite";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>()...
String[] localVarAccepts = { "*/*" };
386,684
private void copySettingsIfAvailable(IJTPreset selected) {<NEW_LINE>IPreferencePageContainer container = getContainer();<NEW_LINE>if (!(container instanceof PreferenceDialog)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PreferenceManager manager = ((PreferenceDialog) container).getPreferenceManager();<NEW_LINE>List<IPrefere...
.INSTANCE.getMinimumToolBarHeight()));
1,426,401
void addComponentInternal(ObserverInfo observer) {<NEW_LINE>ResultHandle beanIdToBeanHandle = addMethod.getMethodParam(0);<NEW_LINE>ResultHandle observersHandle = addMethod.getMethodParam(1);<NEW_LINE>String observerType = observerToGeneratedName.get(observer);<NEW_LINE>List<ResultHandle> params = new ArrayList<>();<NE...
).getIdentifier())));
407,169
public void run() {<NEW_LINE>if (label_comp.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ticks++;<NEW_LINE>image_index++;<NEW_LINE>if (image_index == vitality_images.length) {<NEW_LINE>image_index = 0;<NEW_LINE>}<NEW_LINE>boolean do_results = ticks % 5 == 0;<NEW_LINE>boolean all_done = do_results;<NEW_LINE>for ...
.setImage(vitality_images[image_index]);
75,363
public GradientValue_F32 compute(int x, int y) {<NEW_LINE>int horizontalOffset = x - r - 1;<NEW_LINE>int indexSrc1 = input.startIndex + (y - r - 1) * input.stride + horizontalOffset;<NEW_LINE>int indexSrc2 = indexSrc1 + r * input.stride;<NEW_LINE>int indexSrc3 = indexSrc2 + input.stride;<NEW_LINE>int indexSrc4 = indexS...
data[indexSrc1 + r + 1];
714,500
public static void main(final String... args) throws Exception {<NEW_LINE>LOGGER.info("\n=========================================================" + "\n " + "\n Welcome to Spring Integration! " + "\n " + <MASK><NEW_LINE>final AbstractApplicationContext context = new ClassPathXmlAppli...
"\n For more information please visit: " + "\n https://www.springsource.org/spring-integration " + "\n " + "\n=========================================================");
386,362
public static byte[] signData(String clientID, byte[] data) {<NEW_LINE>if (clientID == null || clientID.isEmpty()) {<NEW_LINE>LOGGER.severe<MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (data == null || data.length == 0) {<NEW_LINE>LOGGER.severe(Common.addTag("[SignAndVerify] the parameter data is null or empty, p...
(Common.addTag("[SignAndVerify] the parameter clientID is null or empty, please check!"));
307,292
public ArrayList<?> convert(String value) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>} else if (value.length() == 0) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>} else if (value.startsWith("[") && value.endsWith("]")) {<NEW_LINE>try {<NEW_LINE>final JsonStreamReader reader = new JsonStreamReader(v...
?>) reader.getList();
1,852,735
private String toggleTenantState(String tenantName, String stateStr, @Nullable String tenantType) {<NEW_LINE>Set<String> serverInstances = new HashSet<>();<NEW_LINE>Set<String> brokerInstances = new HashSet<>();<NEW_LINE>ObjectNode instanceResult = JsonUtils.newObjectNode();<NEW_LINE>if ((tenantType == null) || tenantT...
serverInstances = _pinotHelixResourceManager.getAllInstancesForServerTenant(tenantName);
1,848,928
static void crop(String source, ReadableMap options, final Promise promise, ReactApplicationContext ctx) {<NEW_LINE>int cropWidth = (int) (options.getDouble("cropWidth"));<NEW_LINE>int cropHeight = (int) (options.getDouble("cropHeight"));<NEW_LINE>int cropOffsetX = (int) (options.getDouble("cropOffsetX"));<NEW_LINE>int...
(options.getDouble("cropOffsetY"));
449,858
public void loadState(Element parentNode) {<NEW_LINE>try {<NEW_LINE>ourLocalRunManager.set(this);<NEW_LINE>clear(false);<NEW_LINE>List<Element> children = parentNode.getChildren(CONFIGURATION);<NEW_LINE>Element[] sortedElements = children.toArray(new Element[children.size()]);<NEW_LINE>// ensure templates are loaded fi...
myLoadedSelectedConfigurationUniqueName = parentNode.getAttributeValue(SELECTED_ATTR);
657,427
private void runOperationInCluster(K key, MergedUpdate<V> task, SessionEntityWrapper<V> sessionWrapper) {<NEW_LINE>V session = sessionWrapper.getEntity();<NEW_LINE>SessionUpdateTask.CacheOperation operation = task.getOperation(session);<NEW_LINE>// Don't need to run update of underlying entity. Local updates were alrea...
getMaxIdleTimeMs(), TimeUnit.MILLISECONDS);
516,562
public static GetCustomFieldsByTemplateIdResponse unmarshall(GetCustomFieldsByTemplateIdResponse getCustomFieldsByTemplateIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCustomFieldsByTemplateIdResponse.setRequestId(_ctx.stringValue("GetCustomFieldsByTemplateIdResponse.RequestId"));<NEW_LINE>getCustomFieldsByTempla...
= new ArrayList<DataItem>();
805,833
/* get code directory hash */<NEW_LINE>private long csops(Emulator<DarwinFileIO> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>int pid = context.getIntArg(0);<NEW_LINE>int <MASK><NEW_LINE>Pointer addr = context.getPointerArg(2);<NEW_LINE>int length = context.getIntArg(3);<NEW_LINE>if (l...
op = context.getIntArg(1);
793,013
public WordprocessingMLPackage createSmartArtDocx(PageSizePaper sz, boolean landscape, MarginsWellKnown margins, Document xml) throws Exception {<NEW_LINE>// Make a basic docx<NEW_LINE>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage(sz, landscape);<NEW_LINE>// Layout part<NEW_LINE>DiagramL...
PgSz pgSz = pd.getPgSz();
1,661,138
private static void allocateRoutingNodes(Map<String, Map<Integer, String>> shardNodes, Map<String, Map<String, IntIndexedContainer>> locations) {<NEW_LINE>for (Map.Entry<String, Map<String, IntIndexedContainer>> indicesByNodeId : locations.entrySet()) {<NEW_LINE>String nodeId = indicesByNodeId.getKey();<NEW_LINE>for (M...
String index = shardsByIndexEntry.getKey();
1,495,398
private boolean shouldHideFromRecent(TaskInfo taskInfo) throws RemoteException {<NEW_LINE>Intent intent = taskInfo.baseIntent;<NEW_LINE>if (intent == null) {<NEW_LINE>XLog.d("isVisibleRecentTask, intent is null for task: %s", taskInfo);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String <MASK><NEW_LINE>if (pkgName == nu...
pkgName = PkgUtils.packageNameOf(intent);
587,915
private void pollAndNotifyNetworkInterfaceAddress() {<NEW_LINE>Collection<CidrAddress> newInterfaceAddresses = getAllInterfaceAddresses();<NEW_LINE>if (networkAddressChangeListeners.isEmpty()) {<NEW_LINE>// no listeners listening, just update<NEW_LINE>lastKnownInterfaceAddresses = newInterfaceAddresses;<NEW_LINE>return...
collect(Collectors.toList());
1,553,623
public DescribeInstanceAttributeResult describeInstanceAttribute(DescribeInstanceAttributeRequest describeInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInstanceAttributeRequest);<NEW_LINE>AWSRequestMetrics aws...
JsonUnmarshallerContext> unmarshaller = new DescribeInstanceAttributeResultJsonUnmarshaller();
1,146,939
@Produces({ "application/html", "application/javascript" })<NEW_LINE>@Path("search")<NEW_LINE>public Response searchPage(@Context final HttpServletRequest request, @Context final HttpServletResponse response, @QueryParam("path") final String path, @QueryParam("live") final Boolean liveQueryParam, @QueryParam("onlyLiveS...
User user = initData.getUser();
1,844,064
public static boolean isSideInvisible(@Nonnull IColoredBlock block, @Nonnull BlockState state, @Nonnull BlockState adjacentBlockState, @Nonnull Direction side) {<NEW_LINE><MASK><NEW_LINE>if (adjacentBlock instanceof BlockPlasticTransparent || adjacentBlock instanceof BlockPlasticTransparentSlab || adjacentBlock instanc...
Block adjacentBlock = adjacentBlockState.getBlock();
980,150
public void addView(String name, Icon icon, String description, JComponent view, boolean closable) {<NEW_LINE>if (tabs == null) {<NEW_LINE>if (firstView == null) {<NEW_LINE>firstView = view;<NEW_LINE>firstName = name;<NEW_LINE>firstIcon = icon;<NEW_LINE>firstDescription = description;<NEW_LINE>firstClosable = closable;...
createTabs(tabPlacement, tabLayoutPolicy, minimizeOuterMargin);
660,205
public void paintIcon(Component comp, Graphics originalGraphics, int x, int y) {<NEW_LINE>if (myImageFilters == null || myImageFilters.length == 0) {<NEW_LINE>Graphics2D g = (Graphics2D) originalGraphics.create();<NEW_LINE>GraphicsConfig config = GraphicsUtil.setupAAPainting(g);<NEW_LINE>paintIcon(g, x, y);<NEW_LINE>co...
config = GraphicsUtil.setupAAPainting(g);
1,744,032
public void main() {<NEW_LINE>mgPosition.assign(maPosition);<NEW_LINE>mgNormal.assign(maNormal);<NEW_LINE>mgTextureCoord.assign(maTextureCoord);<NEW_LINE>if (mUseVertexColors) {<NEW_LINE>mgColor.assign(maVertexColor);<NEW_LINE>} else {<NEW_LINE>mgColor.assign(muColor);<NEW_LINE>}<NEW_LINE>// -- do fragment stuff<NEW_LI...
muModelViewMatrix.multiply(mgPosition)));
632,037
public Annotation createAnnotation() {<NEW_LINE>PluginException.reportDeprecatedUsage("AnnotationBuilder#createAnnotation", "Use `#create()` instead");<NEW_LINE>if (range == null) {<NEW_LINE>range = myCurrentElement.getTextRange();<NEW_LINE>}<NEW_LINE>if (tooltip == null && message != null) {<NEW_LINE>tooltip = XmlStri...
fix, finalRange, fb.key);
1,241,007
private Node createFileAnnotationNode(FileAnnotationViewModel annotation) {<NEW_LINE>GridPane node = new GridPane();<NEW_LINE>ColumnConstraints firstColumn = new ColumnConstraints();<NEW_LINE>ColumnConstraints secondColumn = new ColumnConstraints();<NEW_LINE>firstColumn.setPercentWidth(70);<NEW_LINE>secondColumn.setPer...
add(date, 1, 0);
337,170
public void marshall(CreateHyperParameterTuningJobRequest createHyperParameterTuningJobRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createHyperParameterTuningJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot...
createHyperParameterTuningJobRequest.getTrainingJobDefinition(), TRAININGJOBDEFINITION_BINDING);
1,106,853
public void read(org.apache.thrift.protocol.TProtocol iprot, echoBool_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.a...
skip(iprot, schemeField.type);
191,843
private static Map<Integer, String> make() {<NEW_LINE>final Map<Integer, String> map = new HashMap<>(0);<NEW_LINE>map.put(HttpURLConnection.HTTP_OK, "OK");<NEW_LINE>map.put(HttpURLConnection.HTTP_CREATED, "Created");<NEW_LINE>map.put(HttpURLConnection.HTTP_ACCEPTED, "Accepted");<NEW_LINE>map.put(HttpURLConnection.HTTP_...
put(HttpURLConnection.HTTP_PARTIAL, "Partial Content");
66,025
public static <K> KStreamHolder<K> build(final KStreamHolder<K> left, final KTableHolder<K> right, final StreamTableJoin<K> join, final RuntimeBuildContext buildContext, final JoinedFactory joinedFactory) {<NEW_LINE>final Formats leftFormats = join.getInternalFormats();<NEW_LINE>final QueryContext queryContext = join.g...
QueryContext.Stacker.of(queryContext);
903,810
public void sendNotification(Check check, Subscription subscription, List<Alert> alerts) throws NotificationFailedException {<NEW_LINE>String token = subscription.getTarget();<NEW_LINE><MASK><NEW_LINE>List<String> tags = Lists.newArrayList(Splitter.on(',').omitEmptyStrings().trimResults().split(seyrenConfig.getFlowdock...
String externalUsername = seyrenConfig.getFlowdockExternalUsername();
452,620
public static float distance(int mx, int my, int x, int y, int width, int height) {<NEW_LINE>if (inside(mx, my, x, y, width, height)) {<NEW_LINE>return 0;<NEW_LINE>} else {<NEW_LINE>if (mx > x && mx < x + width) {<NEW_LINE>return Math.min(Math.abs(my - y), Math.abs(my - (y + height)));<NEW_LINE>} else if (my > y && my ...
= mx - (x + width);
611,304
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>CommandLine cl = parseComandLine(args);<NEW_LINE>FindSCU main = new FindSCU();<NEW_LINE>CLIUtils.configureConnect(main.remote, main.rq, cl);<NEW_LINE>CLIUtils.configureBind(main.<MASK><NEW_LINE>CLIUtils.configure(main.conn, cl);<NEW_LINE>main.remote.setTl...
conn, main.ae, cl);
1,120,871
private Format1Charset readFormat1Charset(CFFDataInput dataInput, int format, int nGlyphs, boolean isCIDFont) throws IOException {<NEW_LINE>Format1Charset charset = new Format1Charset(isCIDFont);<NEW_LINE>charset.format = format;<NEW_LINE>if (isCIDFont) {<NEW_LINE>charset.addCID(0, 0);<NEW_LINE>charset.rangesCID2GID = ...
int rangeLeft = dataInput.readCard8();
370,624
private Menu createMenu(ToolItem toolItem) {<NEW_LINE>if (menu != null) {<NEW_LINE>menu.dispose();<NEW_LINE>}<NEW_LINE>{<NEW_LINE>MenuManager menuManager = new MenuManager();<NEW_LINE>ToolBar toolBar = toolItem.getParent();<NEW_LINE>menu = new Menu(toolBar);<NEW_LINE>List<StreamValueManagerDescriptor> managers = new Ar...
PARAM_STREAM_MANAGER_ID, manager.getId());
887,344
public void required_createPublisher3MustProduceAStreamOfExactly3Elements() throws Throwable {<NEW_LINE>activePublisherTest(3, true, new PublisherTestRun<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(Publisher<T> pub) throws InterruptedException {<NEW_LINE>ManualSubscriber<T> sub = env.newManualSubscribe...
.format("Publisher %s produced only 1 element", pub));
1,217,737
private ImageResource iconForSourceItem(SourceItem sourceItem) {<NEW_LINE>// check for bookdown xref<NEW_LINE>if (sourceItem.hasXRef()) {<NEW_LINE>XRef xref = sourceItem.getXRef();<NEW_LINE>ImageResource icon = iconForXRef(xref);<NEW_LINE>if (icon != null)<NEW_LINE>return icon;<NEW_LINE>}<NEW_LINE>// compute image<NEW_...
CodeIcons.INSTANCE.clazz2x());
1,303,505
public XMLEventReader readSubtree() throws XMLStreamException, FileNotFoundException, ServiceXmlDeserializationException {<NEW_LINE>if (!this.isStartElement()) {<NEW_LINE>throw new ServiceXmlDeserializationException("The current position is not the start of an element.");<NEW_LINE>}<NEW_LINE>XMLEventReader eventReader ...
eventReader = inputFactory.createXMLEventReader(in);
673,453
public void addRemovalTimeById(String processInstanceId, Date removalTime) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>commandContext.getHistoricActivityInstanceManager().addRemovalTimeToActivityInstancesByProcessInstanceId(processInstanceId, removalTime);<NEW_LINE>commandContext.ge...
).addRemovalTimeToByteArraysByProcessInstanceId(processInstanceId, removalTime);
204,772
public void generateWriter(JBlock body, JExpression parcel, JVar flags, ASTType type, JExpression getExpression, JDefinedClass parcelableClass, JVar writeIdentitySet) {<NEW_LINE>if (!(type instanceof ASTArrayType)) {<NEW_LINE>throw new ParcelerRuntimeException("Input type not an array");<NEW_LINE>}<NEW_LINE>ASTArrayTyp...
componentRef = generationUtil.ref(componentType);
1,346,353
public float[] findHorizontalSeparators(float minRowHeight) {<NEW_LINE>boolean foundShorter = false;<NEW_LINE>List<Integer> horizontalSeparators = new ArrayList<>();<NEW_LINE>for (Ruling r : area.getHorizontalRulings()) {<NEW_LINE>System.out.println(r.length() / this.textBounds.getWidth());<NEW_LINE>if (r.length() / th...
float[horizontalSeparators.size()];
204,688
public // =============<NEW_LINE>void functionScore(OperatorCall<DuplicateHostCQ> queryLambda, ScoreFunctionCall<ScoreFunctionCreator<DuplicateHostCQ>> functionsLambda, final ConditionOptionCall<FunctionScoreQueryBuilder> opLambda) {<NEW_LINE>DuplicateHostCQ cq = new DuplicateHostCQ();<NEW_LINE>queryLambda.callback(cq)...
list = new ArrayList<>();
1,254,640
public void build(BuildProducer<FeatureBuildItem> feature, BuildProducer<GeneratedResourceBuildItem> resourceBuildItemBuildProducer, BuildProducer<NativeImageResourceBuildItem> nativeImageResources, OpenApiFilteredIndexViewBuildItem openApiFilteredIndexViewBuildItem, Capabilities capabilities, List<AddToOpenAPIDefiniti...
= openApiConfig.storeSchemaDirectory.isPresent();
714,603
private void registerPushMonitorPoint() {<NEW_LINE>tpsMonitorManager.registerTpsControlPoint(new TpsMonitorPoint(TpsMonitorItem<MASK><NEW_LINE>tpsMonitorManager.registerTpsControlPoint(new TpsMonitorPoint(TpsMonitorItem.NAMING_RPC_PUSH_SUCCESS.name()));<NEW_LINE>tpsMonitorManager.registerTpsControlPoint(new TpsMonitorP...
.NAMING_RPC_PUSH.name()));
120,988
protected void configure() {<NEW_LINE>List<Class<?>> classes = finder.findAnnotatedTypes(Plugin.class);<NEW_LINE>List<Class<?>> interfaces = new ArrayList<MASK><NEW_LINE>List<Class<?>> unusedInterfaces;<NEW_LINE>// Find plugin interfaces<NEW_LINE>for (Class<?> c : classes) {<NEW_LINE>if (c.isInterface()) {<NEW_LINE>int...
<Class<?>>();
1,641,178
// ////<NEW_LINE>@Override<NEW_LINE>public void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {<NEW_LINE>super.onCharacteristicChanged(gatt, characteristic);<NEW_LINE>try {<NEW_LINE>String charString = characteristic<MASK><NEW_LINE>String service = characteristic.getService().g...
.getUuid().toString();
1,197,926
public static List<Inter> intersectedInters(List<? extends Inter> inters, GeoOrder order, Rectangle box) {<NEW_LINE>List<Inter> <MASK><NEW_LINE>int xMax = (box.x + box.width) - 1;<NEW_LINE>int yMax = (box.y + box.height) - 1;<NEW_LINE>for (Inter inter : inters) {<NEW_LINE>if (inter.isRemoved()) {<NEW_LINE>continue;<NEW...
found = new ArrayList<>();
1,621,611
private void onRender2D(Render2DEvent event) {<NEW_LINE>for (Entity entity : mc.world.getEntities()) {<NEW_LINE>UUID ownerUuid;<NEW_LINE>if (entity instanceof TameableEntity)<NEW_LINE>ownerUuid = ((TameableEntity) entity).getOwnerUuid();<NEW_LINE>else if (entity instanceof HorseBaseEntity)<NEW_LINE>ownerUuid = ((HorseB...
ProjectileEntityAccessor) entity).getOwnerUuid();
1,846,118
public NamePatternRec parseNamePattern(MetaClass metaClass) {<NEW_LINE>Map attributes = (Map) metaClass.getAnnotations().get(<MASK><NEW_LINE>if (attributes == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String pattern = (String) attributes.get("value");<NEW_LINE>if (StringUtils.isBlank(pattern)) {<NEW_LINE>return...
NamePattern.class.getName());
1,308,885
void draw(Graphics g) {<NEW_LINE>int state = isCurrent() ? SELECTED : UNSELECTED;<NEW_LINE>g.setColor(tabColor[state]);<NEW_LINE>// if (notification) {<NEW_LINE>// g.setColor(errorColor);<NEW_LINE>// }<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.fill(Toolkit.createRoundRect(left, TAB_TOP, right, TAB_BOTTOM, 0,...
) || notification) ? selectedIcon : enabledIcon;
956,916
public void initialize(WizardDescriptor wizard) {<NEW_LINE>wiz = wizard;<NEW_LINE>project = Templates.getProject(wiz);<NEW_LINE>SourceGroup[] sourceGroups = SourceGroups.getJavaSourceGroups(project);<NEW_LINE>// create the Java Project chooser<NEW_LINE>if (sourceGroups.length == 0) {<NEW_LINE>SourceGroup[] genericSourc...
(MessageHandlerWizard.class, "LBL_Handler_Name"));
1,418,821
private static String generateColumnCardinalitySql(Dialect dialect, String schema, String table, String column) {<NEW_LINE>final StringBuilder buf = new StringBuilder();<NEW_LINE>String exprString = dialect.quoteIdentifier(column);<NEW_LINE>if (dialect.allowsCountDistinct()) {<NEW_LINE>// e.g. "select count(distinct pr...
quoteIdentifier(buf, schema, table);
1,748,806
private static IborIndex parseIborIndex(CsvRow row) {<NEW_LINE>String name = row.getValue(NAME_FIELD);<NEW_LINE>Currency currency = Currency.parse(row.getValue(CURRENCY_FIELD));<NEW_LINE>boolean active = Boolean.parseBoolean(row.getValue(ACTIVE_FIELD));<NEW_LINE>DayCount dayCount = DayCount.of(row.getValue(DAY_COUNT_FI...
(row.getValue(FIXED_LEG_DAY_COUNT));
1,551,370
private void remember(IType type, ReferenceBinding typeBinding) {<NEW_LINE>if (((CompilationUnit) type.getCompilationUnit()).isOpen()) {<NEW_LINE>try {<NEW_LINE>IGenericType genericType = (IGenericType) ((JavaElement) type).getElementInfo();<NEW_LINE>remember(genericType, typeBinding);<NEW_LINE>} catch (JavaModelExcept...
typeName[typeName.length - 1];
307,847
public static <T> Map<String, String> checkConfigProperties(Class<T> configClass) throws InterruptedException {<NEW_LINE>ConfigurableApplicationContext app = SpringApplication.run(configClass, new String[] { "--spring.main.web-application-type=none" });<NEW_LINE>OpenviduConfig config = app.getBean(OpenviduConfig.class)...
value = CONFIG_PROPS.get(property);
753,884
public void checkForBuildTimeConfigChange(ConfigRecorder recorder, ConfigurationBuildItem configItem, LoggingSetupBuildItem loggingSetupBuildItem, List<SuppressNonRuntimeConfigChangedWarningBuildItem> suppressNonRuntimeConfigChangedWarningItems) {<NEW_LINE>BuildTimeConfigurationReader.ReadResult readResult = configItem...
>(suppressNonRuntimeConfigChangedWarningItems.size());
132,953
public Dataset open(Assembler a, Resource root, Mode mode) {<NEW_LINE>Resource dataset = GraphUtils.getResourceValue(root, pDataset);<NEW_LINE>Resource index = GraphUtils.getResourceValue(root, pIndex);<NEW_LINE>Resource textDocProducerNode = GraphUtils.getResourceValue(root, pTextDocProducer);<NEW_LINE>Dataset ds = (D...
"': " + ex.getMessage());
1,407,403
public void writePlanItemDefinitionSpecificAttributes(ExternalWorkerServiceTask externalWorkerServiceTask, XMLStreamWriter xtw) throws Exception {<NEW_LINE>super.writePlanItemDefinitionSpecificAttributes(externalWorkerServiceTask, xtw);<NEW_LINE><MASK><NEW_LINE>xtw.writeAttribute(FLOWABLE_EXTENSIONS_PREFIX, FLOWABLE_EX...
TaskExport.writeCommonTaskAttributes(externalWorkerServiceTask, xtw);
1,655,230
public void onRequestFinish(MegaApiJava api, MegaRequest request, MegaError e) {<NEW_LINE>log.fine("Request finish (" + request.getRequestString() + "); Result: " + e.toString());<NEW_LINE>int requestType = request.getType();<NEW_LINE>if (requestType == MegaRequest.TYPE_LOGIN) {<NEW_LINE>if (e.getErrorCode() != MegaErr...
"Pro level: " + accountDetails.getProLevel());
972,626
final DescribeReservedNodesResult executeDescribeReservedNodes(DescribeReservedNodesRequest describeReservedNodesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedNodesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeReservedNodes");