idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
243,897 | public static boolean isDesired(int currentFeature, int desiredFeatures, int maxFeatureStringLen) {<NEW_LINE>boolean bRet;<NEW_LINE>String str1 = Integer.toBinaryString(desiredFeatures);<NEW_LINE>String <MASK><NEW_LINE>if (maxFeatureStringLen < str1.length())<NEW_LINE>maxFeatureStringLen = str1.length();<NEW_LINE>if (m... | str2 = Integer.toBinaryString(currentFeature); |
66,094 | final TerminateJobResult executeTerminateJob(TerminateJobRequest terminateJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(terminateJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,797,852 | public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.play_with_vlc:<NEW_LINE>systemPreferences.getValue().set(SystemPreferences.Companion.getChosenPlayer(), PreferredVideoPlayer.VLC);<NEW_LINE>play(mBaseItem, 0, false);<NEW_LINE>return true;<NEW_LINE>case R.id.play_with... | getValue().setCurrentVideoQueue(response); |
1,359,795 | public RefactoringPlugin createInstance(AbstractRefactoring refactoring) {<NEW_LINE>if (!(refactoring instanceof WhereUsedQuery)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TreePathHandle handle = refactoring.getRefactoringSource().lookup(TreePathHandle.class);<NEW_LINE>if (handle == null) {<NEW_LINE>return null;<NEW_... | [] { handle, kind }); |
1,132,472 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_loadmore);<NEW_LINE>toolbar = (Toolbar) findViewById(R.id.tool_bar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>getSupportActionBar().setDisplayShowTitleEnabled(false);<NEW_LI... | findViewById(R.id.ultimate_recycler_view); |
1,254,560 | public DashboardSearchFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DashboardSearchFilter dashboardSearchFilter = new DashboardSearchFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
999,018 | private TranslationResults buildResults() {<NEW_LINE>TranslationResults results = new TranslationResults();<NEW_LINE>if (hasTotalClassLevelOrdering) {<NEW_LINE>for (String next : totalClassLevelOrdering) {<NEW_LINE>EjbInterceptor interceptor = ejbBundle.getInterceptorByClassName(next);<NEW_LINE>results.allInterceptorCl... | interceptor = ejbBundle.getInterceptorByClassName(next); |
25,273 | public void bool(BoolCall<BadWordCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {<NEW_LINE>BadWordCQ mustQuery = new BadWordCQ();<NEW_LINE>BadWordCQ shouldQuery = new BadWordCQ();<NEW_LINE>BadWordCQ mustNotQuery = new BadWordCQ();<NEW_LINE>BadWordCQ filterQuery = new BadWordCQ();<NEW_LINE>boolLambda.ca... | mustQuery, shouldQuery, mustNotQuery, filterQuery); |
1,128,574 | public Authentication convert(HttpServletRequest request) {<NEW_LINE>// grant_type (REQUIRED)<NEW_LINE>String grantType = request.getParameter(OAuth2ParameterNames.GRANT_TYPE);<NEW_LINE>if (!AuthorizationGrantType.REFRESH_TOKEN.getValue().equals(grantType)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Authentication cli... | delimitedListToStringArray(scope, " "))); |
1,571,654 | public void removeAttachment(@NonNull PermissionAttachment attachment) {<NEW_LINE><MASK><NEW_LINE>LuckPermsPermissionAttachment luckPermsAttachment;<NEW_LINE>if (!(attachment instanceof LuckPermsPermissionAttachment)) {<NEW_LINE>// try to find a match<NEW_LINE>LuckPermsPermissionAttachment match = this.hookedAttachment... | Objects.requireNonNull(attachment, "attachment"); |
976,243 | public void dispose() {<NEW_LINE>channel.setMethodCallHandler(null);<NEW_LINE>activityResultListeners.clear();<NEW_LINE>if (methodCallDelegate != null) {<NEW_LINE>methodCallDelegate.dispose();<NEW_LINE>methodCallDelegate = null;<NEW_LINE>}<NEW_LINE>if (webView != null) {<NEW_LINE>if (manager.plugin.activityPluginBindin... | .setWebChromeClient(new WebChromeClient()); |
373,334 | public static QueryFpDBDeleteJobListResponse unmarshall(QueryFpDBDeleteJobListResponse queryFpDBDeleteJobListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryFpDBDeleteJobListResponse.setRequestId(_ctx.stringValue("QueryFpDBDeleteJobListResponse.RequestId"));<NEW_LINE>List<String> nonExistIds = new ArrayList<String>... | ("QueryFpDBDeleteJobListResponse.FpDBDeleteJobList[" + i + "].Id")); |
403,479 | public Object invoke(final MethodInvocation invocation) throws Throwable {<NEW_LINE>String name;<NEW_LINE>if (StringUtils.hasText(this.label)) {<NEW_LINE>name = this.label;<NEW_LINE>} else {<NEW_LINE>name = invocation.getMethod().toGenericString();<NEW_LINE>}<NEW_LINE>final String label = name;<NEW_LINE>RetryCallback<O... | this.retryOperations.execute(retryCallback); |
1,585,449 | public void deleteAllExcept(final com.abixen.platform.core.domain.model.Page page, final List<Long> ids) {<NEW_LINE>log.debug("deleteAllExcept() - page: {}, {}", page, ids);<NEW_LINE>if (ids.isEmpty()) {<NEW_LINE>deleteAll(page);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final List<Module> modules = moduleRepository.findAll... | moduleRepository.removeAllExcept(page, ids); |
316,998 | public static long calcPhyModifyViewScanMemCost(String groupName, List<List<String>> phyTableListArr, Map<Integer, ParameterContext> paramsOfPhySql) {<NEW_LINE>long phyOpMem = 0;<NEW_LINE>int lengthOfPhyTbOfOneShard = 0;<NEW_LINE>// for all tableNames<NEW_LINE>if (phyTableListArr != null && phyTableListArr.size() > 0) ... | ObjectSizeUtils.SIZE_INTEGER + ParameterContext.INSTANCE_MEM_SIZE); |
536,821 | public void drawTo(Graphic graphic, Style highLight) {<NEW_LINE>if (graphic.isFlagSet(Graphic.Flag.smallIO)) {<NEW_LINE>Vector center = new Vector(LATEX_RAD.x, 0);<NEW_LINE>graphic.drawCircle(center.sub(LATEX_RAD), center.add(LATEX_RAD), Style.NORMAL);<NEW_LINE>Vector textPos = new Vector(SIZE2 + LATEX_RAD.x, 0);<NEW_L... | Orientation.LEFTCENTER, Style.INOUT); |
1,051,333 | public void configureJobConf(TableDesc tableDesc, JobConf jobConf) {<NEW_LINE>if (tableDesc != null && tableDesc.getProperties() != null && tableDesc.getProperties().get(WRITE_KEY) != null) {<NEW_LINE>String tableName = tableDesc.getTableName();<NEW_LINE>Preconditions.checkArgument(!tableName.contains(TABLE_NAME_SEPARA... | jobConf.get(InputFormatConfig.OUTPUT_TABLES); |
1,034,982 | public void stateChanged(Download download, int old_state, int new_state) {<NEW_LINE>DefaultRankCalculator <MASK><NEW_LINE>if (dlData != null) {<NEW_LINE>// force a SR recalc, so that it gets position properly next process()<NEW_LINE>requestProcessCycle(dlData);<NEW_LINE>if ((new_state == Download.ST_READY || new_state... | dlData = rankCalculatorMap.get(download); |
998,954 | public View onCreateView(String name, Context context, AttributeSet attrs) {<NEW_LINE>// Allow super to try and create a view first<NEW_LINE>final View result = super.onCreateView(name, context, attrs);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_... | return new AppCompatCheckedTextView(this, attrs); |
1,810,720 | public void updateBackground(MotionModel homeToCurrent, T frame) {<NEW_LINE>worldToHome.concat(homeToCurrent, worldToCurrent);<NEW_LINE>worldToCurrent.invert(currentToWorld);<NEW_LINE>// find the distorted polygon of the current image in the "home" background reference frame<NEW_LINE>_transform.setModel(currentToWorld)... | y = (int) p.y; |
1,487,763 | final DeleteApplicationResult executeDeleteApplication(DeleteApplicationRequest deleteApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,109,630 | final DescribeNetworkInterfacesResult executeDescribeNetworkInterfaces(DescribeNetworkInterfacesRequest describeNetworkInterfacesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeNetworkInterfacesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,478,529 | // snippet-start:[s3.java2.delete_many_objects.main]<NEW_LINE>public static void deleteBucketObjects(S3Client s3, String bucketName) {<NEW_LINE>// Upload three sample objects to the specfied Amazon S3 bucket.<NEW_LINE>ArrayList<ObjectIdentifier> keys = new ArrayList<>();<NEW_LINE>PutObjectRequest putOb = null;<NEW_LINE... | key(keyName).build(); |
116,434 | public SLongCheckinActionState convertToSObject(LongCheckinActionState input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SLongCheckinActionState result = new SLongCheckinActionState();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid... | setRoid(input.getRoid()); |
208,368 | private File[] chooseAndOpenProjects(File workingDir, boolean open) {<NEW_LINE>if (workingDir != null) {<NEW_LINE>ProjectChooser.setProjectsFolder(workingDir);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (workingDir != null) {<NEW_LINE>chooser.setCurrentDirectory(workingDir);<NEW_LINE>}<NEW_LINE>chooser.setMultiSelectionEna... | JFileChooser chooser = ProjectChooser.projectChooser(); |
587,746 | private RouteTypeExpr toRouteType(Rp_route_typeContext ctx) {<NEW_LINE>if (ctx.INTERAREA() != null) {<NEW_LINE>return new LiteralRouteType(RouteType.INTERAREA);<NEW_LINE>} else if (ctx.INTERNAL() != null) {<NEW_LINE>return new LiteralRouteType(RouteType.INTERNAL);<NEW_LINE>} else if (ctx.LEVEL_1() != null) {<NEW_LINE>r... | return new LiteralRouteType(RouteType.TYPE_1); |
1,159,874 | private static void validateClientOptions(SdkClientConfiguration c) {<NEW_LINE>require("endpoint", c.option(SdkClientOption.ENDPOINT));<NEW_LINE>require("overrideConfiguration.additionalHttpHeaders", c.option(SdkClientOption.ADDITIONAL_HTTP_HEADERS));<NEW_LINE>require("overrideConfiguration.executionInterceptors", c.op... | .option(SdkClientOption.RETRY_POLICY)); |
584,381 | private static // payment schedule<NEW_LINE>PaymentSchedule parsePaymentSchedule(CsvRow row, String leg, Frequency accrualFrequency) {<NEW_LINE>PaymentSchedule.Builder builder = PaymentSchedule.builder();<NEW_LINE>// basics<NEW_LINE>builder.paymentFrequency(findValue(row, leg, PAYMENT_FREQUENCY_FIELD).map(s -> Frequenc... | )).orElse(accrualFrequency)); |
1,196,752 | public static DescribeFabricConsortiumsResponse unmarshall(DescribeFabricConsortiumsResponse describeFabricConsortiumsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricConsortiumsResponse.setRequestId(_ctx.stringValue("DescribeFabricConsortiumsResponse.RequestId"));<NEW_LINE>describeFabricConsortiumsResponse... | + "].Tags[" + j + "].Key")); |
1,634,512 | public void subscribeActual(Observer<? super T> observer) {<NEW_LINE>ObservableSource<? extends T>[] sources = this.sources;<NEW_LINE>int count = 0;<NEW_LINE>if (sources == null) {<NEW_LINE>sources = new ObservableSource[8];<NEW_LINE>try {<NEW_LINE>for (ObservableSource<? extends T> p : sourcesIterable) {<NEW_LINE>if (... | + (count >> 2)]; |
1,180,406 | public static boolean playClip(String strUri, Integer cycleCount, Double volume, boolean preloadOnly) throws ParserException {<NEW_LINE>final SoundManager manager = userSounds.get(strUri);<NEW_LINE>// Verify the uri and return an error if uri is incorrect<NEW_LINE>if (manager == null) {<NEW_LINE>try {<NEW_LINE>if (!Sou... | SoundManager(strUri, cycleCount, volume); |
1,253,417 | public void activateIndex(final String indexName) throws DotDataException {<NEW_LINE>final IndiciesInfo info = APILocator<MASK><NEW_LINE>final IndiciesInfo.Builder builder = IndiciesInfo.Builder.copy(info);<NEW_LINE>if (indexName == null) {<NEW_LINE>throw new DotRuntimeException("Index cannot be null");<NEW_LINE>}<NEW_... | .getIndiciesAPI().loadIndicies(); |
1,223,752 | private void handleError(BitIdResponse response) {<NEW_LINE>String message = Strings.nullToEmpty(response.message);<NEW_LINE>int code = response.code;<NEW_LINE>String userInfo;<NEW_LINE>if (code >= 400 && code < 500) {<NEW_LINE>// Display the error message if its short enough. Most probably the nonce has timed out.<NEW... | R.string.bitid_errorheader) + code; |
913,305 | private static void visitGetPropertySwitch(PersistentEntity<?, ?> entity, List<PersistentProperty<?>> persistentProperties, String internalClassName, MethodVisitor mv) {<NEW_LINE>Map<String, PropertyStackAddress> propertyStackMap = createPropertyStackMap(persistentProperties);<NEW_LINE>int[] hashes = new int[propertySt... | >(propertyStackMap.values()); |
873,801 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage: " + " <botName> <intentName> <intentVersion> \n\n" + "Where:\n" + " botName - the name of bot (for example, BookHotel).\n\n" + " intentName - the name of an existing intent (for example, BookHotel).\n\n" + " intentVersion - th... | System.out.println(USAGE); |
1,486,036 | private int sortValue(Operation op1, Operation op2) {<NEW_LINE>if (StorageConstants.COUNT.equals(m_type)) {<NEW_LINE>long count1 = op1.getCount();<NEW_LINE>long count2 = op2.getCount();<NEW_LINE>return count2 > count1 ? 1 : (count2 < count1 ? -1 : 0);<NEW_LINE>} else if (StorageConstants.LONG.equals(m_type)) {<NEW_LINE... | double avg2 = op2.getAvg(); |
1,365,390 | public static void replaceFieldValue(Object object, Field field, String oldVal, String newVal) throws Exception {<NEW_LINE>try {<NEW_LINE>if (field.getType().isAssignableFrom(String.class)) {<NEW_LINE>Object o = FieldUtils.readField(field, object, true);<NEW_LINE>if (null != o) {<NEW_LINE>String str = o.toString();<NEW... | readField(field, object, true); |
1,422,782 | Optional<AbstractOAuth2AuthenticationProvider> parseStateFromRequest(@NotNull String state) {<NEW_LINE>if (state == null || state.trim().equals("")) {<NEW_LINE>logger.log(Level.INFO, "No state present in request");<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>String[] topFields = state.split("~", 2);<NEW_LINE>... | .getOAuth2Provider(topFields[0]); |
1,284,780 | public void removeSection(NodeSectionPanel section) {<NEW_LINE>int panelIndex = section.getIndex();<NEW_LINE>contentPanel.remove((JPanel) section);<NEW_LINE>// the rest components have to be moved up<NEW_LINE>java.awt.Component[] components = contentPanel.getComponents();<NEW_LINE>java.util.List<NodeSectionPanel> remov... | new java.awt.GridBagConstraints(); |
1,741,967 | public void execute(MacroContext context, String macro, MapToolMacroContext executionContext) {<NEW_LINE>// Was the token states file passed?<NEW_LINE>File aliasFile = null;<NEW_LINE>if (macro.length() > 0) {<NEW_LINE>aliasFile = new File(macro);<NEW_LINE>} else {<NEW_LINE>// Ask the user for the token states file<NEW_... | (new FileInputStream(aliasFile))); |
915,700 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>long n = cursor.skip();<NEW_LINE>if (n < Integer.MAX_VALUE) {<NEW_LINE>return <MASK><NEW_LINE>} else {<NEW_LINE>return new Long(n);<NEW_LINE>}<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx... | new Integer((int) n); |
1,137,771 | private Triad<LogicalWindow, WorkbenchTabPanel, MinimizedModuleTabLayoutPanel> createTabSet(String persisterName, ArrayList<Tab> tabs) {<NEW_LINE>final WindowFrame frame <MASK><NEW_LINE>final MinimizedModuleTabLayoutPanel minimized = new MinimizedModuleTabLayoutPanel(persisterName);<NEW_LINE>final LogicalWindow logical... | = new WindowFrame(persisterName, persisterName); |
1,391,709 | private void doGetJsonResponse(HttpServletRequest req, HttpServletResponse resp) throws IOException {<NEW_LINE>resp.setContentType(MIME_JSON);<NEW_LINE>final Writer w = new OutputStreamWriter(resp.getOutputStream(), UTF8);<NEW_LINE>final Set<UUID> requestedQueryIds = getRequestedQueryIds(req);<NEW_LINE>// Map from IRun... | JsonHelper.writeRunningQueryList(w, modelRunningQueries); |
1,173,828 | static ASelectableCondition load(final XMLElement element) {<NEW_LINE>final String item = element.getAttribute(NodeTextCompareCondition.ITEM, TextController.FILTER_NODE);<NEW_LINE>final String valueString = element.getAttribute(NodeTextCompareCondition.VALUE, null);<NEW_LINE>final Object value;<NEW_LINE>if (valueString... | getAttribute(IGNORE_DIACRITICS, null))); |
1,491,982 | protected JComponent createContent() {<NEW_LINE>myMouseMotionListener = new MyMouseMotionListener();<NEW_LINE>myMouseListener = new MyMouseListener();<NEW_LINE>ListPopupStep<Object> step = getListStep();<NEW_LINE>myListModel = new ListPopupModel(this, getSpeedSearch(), step);<NEW_LINE>myList = new MyList();<NEW_LINE>if... | myList.setCellRenderer(getListElementRenderer()); |
798,629 | private NamedAttributeWriter createJspAttributeWriter(Element attributeElement, boolean isAttrFragment) throws JspCoreException {<NEW_LINE>int methodNesting = ((Integer) persistentData.get("methodNesting")).intValue();<NEW_LINE>String name = attributeElement.getAttribute("name");<NEW_LINE>if (name.indexOf(':') != -1) {... | getNamespaceURI(), attributeWriter, false); |
117,773 | public NetworkAclAssociation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>NetworkAclAssociation networkAclAssociation = new NetworkAclAssociation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<... | ().unmarshall(context)); |
10,286 | private void copyTrns_rgb(byte[] line, byte[] image, int pos, int step) {<NEW_LINE>byte tR = (byte) trnsR, tG = (byte) trnsG, tB = (byte) trnsB;<NEW_LINE>int l = line.length / 3;<NEW_LINE>for (int i = 0, oPos = pos; i < l; oPos += step * 4, ++i) {<NEW_LINE>byte r = line[i * 3], g = line[i * 3 + 1], b = line[i * 3 + 2];... | image[oPos + 1] = g; |
1,633,483 | public SortDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SortDefinition sortDefinition = new SortDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | class).unmarshall(context)); |
252,752 | public void create(final int theInputCount, final int theIdealCount) {<NEW_LINE>try {<NEW_LINE>this.inputCount = theInputCount;<NEW_LINE>this.idealCount = theIdealCount;<NEW_LINE>final double[] input = new double[inputCount];<NEW_LINE>final double[] ideal = new double[idealCount];<NEW_LINE>this.file.delete();<NEW_LINE>... | .put((byte) 'E'); |
1,654,475 | void monitor() {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Starting health monitor check");<NEW_LINE>}<NEW_LINE>List<Publisher<HealthResult>> healthResults = healthIndicators.stream().map(HealthIndicator::getResult).<MASK><NEW_LINE>Flux<HealthResult> reactiveSequence = Flux.merge(healthResults).filter(he... | collect(Collectors.toList()); |
1,197,644 | public List<GroupByResult>[] trimFinalResults(Map<String, Comparable>[] finalResultMaps) {<NEW_LINE>int numAggregationFunctions = _aggregationFunctions.length;<NEW_LINE>List<GroupByResult>[] trimmedResults = new List[numAggregationFunctions];<NEW_LINE>for (int i = 0; i < numAggregationFunctions; i++) {<NEW_LINE>LinkedL... | groupByResults = new LinkedList<>(); |
1,326,744 | public Address creatingFunction(ElfLoadHelper elfLoadHelper, Address functionAddress) {<NEW_LINE>Program program = elfLoadHelper.getProgram();<NEW_LINE>if ((functionAddress.getOffset() & 1) != 0) {<NEW_LINE>Register <MASK><NEW_LINE>if (tmodeRegister == null) {<NEW_LINE>elfLoadHelper.log("TMode mode not supported, unabl... | tmodeRegister = program.getRegister("TMode"); |
176,071 | public void engineExplorationV1(KernelPackage kernelPackage) {<NEW_LINE>for (int i = 0; i < MAX_DEVICES; i++) {<NEW_LINE>for (int j = 0; j < MAX_DEVICES; j++) {<NEW_LINE>// We play with 2 devices<NEW_LINE>TaskSchedule s0 = new TaskSchedule("x" + i);<NEW_LINE>TornadoRuntime.setProperty("x" + i + ".t" + j + ".device", "0... | + "0:" + DEVICE_INDEXES[i]); |
1,803,136 | public void registerServerAliases() {<NEW_LINE>Map<String, List<String>> values = this.server.getCommandAliases();<NEW_LINE>for (Map.Entry<String, List<String>> entry : values.entrySet()) {<NEW_LINE>String alias = entry.getKey();<NEW_LINE>List<String<MASK><NEW_LINE>if (alias.contains(" ") || alias.contains(":")) {<NEW_... | > commandStrings = entry.getValue(); |
1,600,975 | private static void drawStaticNewRevision(final AbstractSunburstGUI pGUI, final PGraphics pGraphic) {<NEW_LINE>assert pGraphic != null;<NEW_LINE>if (pGUI.mDepthMax > pGUI.mOldDepthMax + 1) {<NEW_LINE>pGraphic.pushMatrix();<NEW_LINE>pGraphic.textAlign(PConstants.LEFT, PConstants.CENTER);<NEW_LINE>float arcRadius = calcu... | EDisplay.YES, EReverseDirection.NO); |
472,421 | private PhysicalPropertySet enforceProperty(PhysicalPropertySet outputProperty, PhysicalPropertySet requiredProperty) {<NEW_LINE>boolean satisfyOrderProperty = outputProperty.getSortProperty().<MASK><NEW_LINE>boolean satisfyDistributionProperty = outputProperty.getDistributionProperty().isSatisfy(requiredProperty.getDi... | isSatisfy(requiredProperty.getSortProperty()); |
1,774,937 | public ListJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListJobsResult listJobsResult = new ListJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<... | String currentParentElement = context.getCurrentParentElement(); |
548,998 | protected void addField(MetaClass metaClass, MetaProperty metaProperty, Entity item, FieldGroup fieldGroup, boolean required, boolean custom, boolean readOnly, Collection<FieldGroup.FieldConfig> customFields) {<NEW_LINE>if (!attrViewPermitted(metaClass, metaProperty))<NEW_LINE>return;<NEW_LINE>if ((metaProperty.getType... | root = DocumentHelper.createElement("textArea"); |
1,590,368 | public void putAndUnlock(ByteArray key, KeyLockHandle<byte[]> handle) {<NEW_LINE>long startTimeNs = -1;<NEW_LINE>if (logger.isTraceEnabled())<NEW_LINE>startTimeNs = System.nanoTime();<NEW_LINE>StoreUtils.assertValidKey(key);<NEW_LINE>DatabaseEntry keyEntry = new DatabaseEntry(key.get());<NEW_LINE>DatabaseEntry valueEnt... | (Transaction) handle.getKeyLock(); |
1,216,953 | public Object copy(Map<Object, Object> refs) {<NEW_LINE>if (isFrozen()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>QName elemName = new QName(this.name.getNamespaceURI(), this.name.getLocalPart(), this.name.getPrefix());<NEW_LINE>XmlItem xmlItem = new XmlItem(elemName, (XmlSequence<MASK><NEW_LINE>MapValue<BString, BSt... | ) children.copy(refs)); |
1,218,785 | public static XAResourceFactory lookupXAResourceFactory(String filter) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "lookupXAResourceFactory", filter);<NEW_LINE>final BundleContext bundleContext = TxTMHelper.getBundleContext();<NEW_LINE>if (bundleContext == null) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LIN... | exit(tc, "lookupXAResourceFactory", null); |
700,182 | public ListAccountAssignmentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAccountAssignmentsResult listAccountAssignmentsResult = new ListAccountAssignmentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1... | String currentParentElement = context.getCurrentParentElement(); |
1,776,832 | public // re-sampling on all data<NEW_LINE>void inferenceAll(int maxIteration) {<NEW_LINE>// initialize test<NEW_LINE>this.test = new ArrayList<Topication>();<NEW_LINE>// initial sampling on testdata<NEW_LINE>ArrayList<LabelSequence> topicSequences = new ArrayList<LabelSequence>();<NEW_LINE>for (Instance instance : tes... | System.out.print(days); |
679,903 | protected void doMakeVisible(final int masterIndex, int[] startLines, int[] endLines, final boolean animate) {<NEW_LINE>final List<? extends Editor> editors = getEditors();<NEW_LINE>final List<? extends ScrollHelper> helpers = getScrollHelpers();<NEW_LINE>final int count = editors.size();<NEW_LINE>assert startLines.len... | masterEditor = editors.get(masterIndex); |
1,520,345 | public void visitMethodCallExpression(MethodCallExpression call) {<NEW_LINE>Space fmt = whitespace();<NEW_LINE>ImplicitDot implicitDot = null;<NEW_LINE>JRightPadded<Expression> select = null;<NEW_LINE>if (!call.isImplicitThis()) {<NEW_LINE>Expression selectExpr = visit(call.getObjectExpression());<NEW_LINE>int saveCurs... | isSafe() ? "?." : "."); |
1,814,501 | public void xor(final RoaringBitmap x2) {<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE><MASK><NEW_LINE>final int length2 = x2.highLowContainer.size();<NEW_LINE>main: if (pos1 < length1 && pos2 < length2) {<NEW_LINE>char s1 = highLowContainer.getKeyAtIndex(pos1);<NEW_LINE>char s2 = x2.highLowContainer.getKeyAtIndex(pos2);<... | int length1 = highLowContainer.size(); |
1,266,866 | private void writeNode(NodeVisitor parentNodeVisitor, AXmlNode node) {<NEW_LINE>NodeVisitor childNodeVisitor = parentNodeVisitor.child(node.getNamespace(), node.getTag());<NEW_LINE>// do not add excluded nodes<NEW_LINE>if (!node.isIncluded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Write the attributes<NEW_LINE>for (... | getAttributeResourceId(attr.getName()); |
90,743 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see edu.umd.cs.findbugs.bcel.OpcodeStackDetector#sawOpcode(int)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void sawOpcode(int seen) {<NEW_LINE>if (seen == INVOKEVIRTUAL) {<NEW_LINE>if ("equals".equals(getNameConstantOperand()) && "(Ljava/lang/Object;)Z".equals(getS... | item = stack.getStackItem(1); |
1,223,885 | private void insertRegionTypes() throws SQLException {<NEW_LINE>Closer closer = Closer.create();<NEW_LINE>try {<NEW_LINE>PreparedStatement stmt = closer.register(conn.prepareStatement("INSERT INTO " + config.getTablePrefix() + "region " + "(id, world_id, type, priority, parent) " + "VALUES " + "(?, ?, ?, ?, NULL)"));<N... | stmt.setInt(2, worldId); |
1,006,763 | public static void merge(String serverVariableName, ServerVariable from, Map<String, ServerVariable> to, boolean override) {<NEW_LINE>if (from == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>org.eclipse.microprofile.openapi.models.servers.ServerVariable variable = new ServerVariableImpl();<NEW_LINE>variable.setDefaultV... | .getDefaultValue(), override)); |
1,837,028 | private void checkValidity() {<NEW_LINE>if (booleanReleaseCalled.get()) {<NEW_LINE>String id = "none";<NEW_LINE>if ((wsBBRoot != null) && (wsBBRoot.pool != null)) {<NEW_LINE>id = Integer.toString(wsBBRoot.getID());<NEW_LINE>}<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(... | id + "\nBuffer: " + this.oByteBuffer); |
994,201 | private void initAttributes() {<NEW_LINE>globalAlpha = 1.0f;<NEW_LINE>blendmode = Mode.SRC_OVER;<NEW_LINE>fillPaint = Color.BLACK;<NEW_LINE>strokePaint = Color.BLACK;<NEW_LINE>linewidth = 1.0f;<NEW_LINE>linecap = BasicStroke.CAP_SQUARE;<NEW_LINE>linejoin = BasicStroke.JOIN_MITER;<NEW_LINE>miterlimit = 10f;<NEW_LINE>das... | path.setWindingRule(Path2D.WIND_NON_ZERO); |
1,549,508 | public void execute(final Editor editor, final DataContext dataContext, @Nullable final Producer<Transferable> producer) {<NEW_LINE>final Transferable transferable = EditorModificationUtil.getContentsToPasteToEditor(producer);<NEW_LINE>if (transferable == null)<NEW_LINE>return;<NEW_LINE>if (!CodeInsightUtilBase.prepare... | execute(editor, null, context); |
1,009,818 | public static ShaderCaseBuzzsaw registerShader_Buzzsaw(ResourceLocation name, String overlayType, Rarity rarity, int colour0, int colour1, int colour2, String additionalTexture, int colourAddtional) {<NEW_LINE>List<ShaderLayer> list = new ArrayList<>();<NEW_LINE>list.add(new ShaderLayer(new ResourceLocation("immersivee... | new ShaderLayer(null, 0xffffffff)); |
146,399 | public void execute(String[] args, Console console) {<NEW_LINE>if (args.length > 0) {<NEW_LINE>String itemName = args[0];<NEW_LINE>try {<NEW_LINE>Item item = this.itemRegistry.getItemByPattern(itemName);<NEW_LINE>if (args.length > 1) {<NEW_LINE>String stateName = args[1];<NEW_LINE>State state = TypeParser.parseState(<M... | item.getAcceptedDataTypes(), stateName); |
811,257 | private static String generateTeamsUserAadToken() throws MalformedURLException, ExecutionException, InterruptedException {<NEW_LINE>String teamsUserAadToken = "";<NEW_LINE>try {<NEW_LINE>IPublicClientApplication publicClientApplication = PublicClientApplication.builder("<M365_APP_ID>").authority("<M365_AAD_AUTHORITY>" ... | ] password = "<MSAL_PASSWORD>".toCharArray(); |
1,305,022 | private void processData(ImageAddressSpace space) {<NEW_LINE>// JavaRuntime metaRuntime = null;<NEW_LINE>// if (metaImageProcess != null) {<NEW_LINE>// Iterator i2 = metaImageProcess.getRuntimes();<NEW_LINE>// if (i2.hasNext()) {<NEW_LINE>// Object o2 = i2.next();<NEW_LINE>// if (!(o2 instanceof CorruptData) && o2 inst... | Object next = it.next(); |
1,427,243 | public static long[] encodeBlocks(int[] blocks, int bitsPerEntry) {<NEW_LINE>final long maxEntryValue <MASK><NEW_LINE>final char valuesPerLong = (char) (64 / bitsPerEntry);<NEW_LINE>final int magicIndex = 3 * (valuesPerLong - 1);<NEW_LINE>final long divideMul = Integer.toUnsignedLong(MAGIC[magicIndex]);<NEW_LINE>final ... | = (1L << bitsPerEntry) - 1; |
1,721,683 | public void registerForPush(final String regid) {<NEW_LINE>if (TextUtils.isEmpty(regid) || registeringForPush || getUserConfig().getClientUserId() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getUserConfig().registeredForPush && regid.equals(SharedConfig.pushString)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>registeri... | userConfig = UserConfig.getInstance(a); |
1,023,618 | public void addNewSubgroup(GroupNodeViewModel parent, GroupDialogHeader groupDialogHeader) {<NEW_LINE>currentDatabase.ifPresent(database -> {<NEW_LINE>Optional<AbstractGroup> newGroup = dialogService.showCustomDialogAndWait(new GroupDialogView(dialogService, database<MASK><NEW_LINE>newGroup.ifPresent(group -> {<NEW_LIN... | , preferences, null, groupDialogHeader)); |
383,206 | public void sendEmail(AlarmChecker<?> checker, int sequenceCount, StepExecution stepExecution) {<NEW_LINE>List<String> receivers = userGroupService.selectEmailOfMember(checker.getUserGroupId());<NEW_LINE>if (receivers.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>AlarmMailTemplate mailTemplate = new ... | .TO, getReceivers(receivers)); |
315,169 | final DeleteLogPatternResult executeDeleteLogPattern(DeleteLogPatternRequest deleteLogPatternRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLogPatternRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
261,136 | public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, OverviewDocument.Parameters params) {<NEW_LINE>Swagger swagger = params.swagger;<NEW_LINE>Info info = swagger.getInfo();<NEW_LINE>buildDocumentTitle(markupDocBuilder, info.getTitle());<NEW_LINE>applyOverviewDocumentExtension(new Context(Position.DOCUMENT_... | (Position.DOCUMENT_AFTER, markupDocBuilder)); |
1,122,868 | private List<Result> findStaticModels(SmallRyeOpenApiConfig openApiConfig, List<Pattern> ignorePatterns, Path target) {<NEW_LINE>List<Result> results = new ArrayList<>();<NEW_LINE>// First check for the file in both META-INF and WEB-INF/classes/META-INF<NEW_LINE>addStaticModelIfExist(results, ignorePatterns, Format.YAM... | ignorePatterns, Format.YAML, WEB_INF_CLASSES_META_INF_OPENAPI_YAML); |
1,744,176 | ActionResult<Wo> execute(String applicationId, String processId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<DateRange<MASK><NEW_L... | > os = this.listDateRange(); |
1,225,034 | public Object call(Job<Object> job, Map<String, Object> parameters) {<NEW_LINE>this.checkAndCollectParameters(parameters);<NEW_LINE>// Read configuration<NEW_LINE>try {<NEW_LINE>this.initializeConfig((ComputerJob) job);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new HugeException("Failed to initialize computer con... | (line).append("\n"); |
802,046 | public void marshall(CreateApplicationRequest createApplicationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createApplicationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createApplic... | createApplicationRequest.getLaunchParameters(), LAUNCHPARAMETERS_BINDING); |
324,408 | private DownloadInfo deserialiseDI(Map<String, Object> info_map, ContentCache cc) {<NEW_LINE>try {<NEW_LINE>int version = (int) MapUtils.importLong(info_map, "v", RelatedContent.VERSION_INITIAL);<NEW_LINE>byte[] hash = (byte[]) info_map.get("h");<NEW_LINE>String title = MapUtils.getMapString(info_map, "d", null);<NEW_L... | importInt(info_map, "e", 0); |
880,671 | public ServerAuthorConfigurationResponse configureAllAccessServices(String userId, String serverName, String serverToBeConfiguredName, Map<String, Object> accessServiceOptions) {<NEW_LINE>final String methodName = "configureAllAccessServices";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId... | getAuditLog(userId, serverName, methodName); |
654,305 | private void convertRegionsToJSON(List<TileRegion> tileRegions, Promise promise) {<NEW_LINE>CountDownLatch countDownLatch = new CountDownLatch(tileRegions.size());<NEW_LINE>ArrayList<TileRegionError> errors = new ArrayList<>();<NEW_LINE>ArrayList<Geometry> geometries = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>for (Ti... | getType().toString()); |
942,733 | public final DecoratorContext decorator() throws RecognitionException {<NEW_LINE>DecoratorContext _localctx = new DecoratorContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 8, RULE_decorator);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>ArgListBuilder args = null;<N... | split("\\.")[0]); |
1,451,959 | public DescribeEndpointsResult describeEndpoints(DescribeEndpointsRequest describeEndpointsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEndpointsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,220,123 | private void initTableHeader() {<NEW_LINE>JTableHeader header = itemTable.getTableHeader();<NEW_LINE>header.setPreferredSize(new Dimension(itemTable.getColumnModel().getTotalColumnWidth(), Math.max(20, itemTable.getFont().getSize() + 5)));<NEW_LINE>header.setReorderingAllowed(false);<NEW_LINE>// columns<NEW_LINE>TableC... | getColumn(remotePathFirst ? 3 : 1); |
1,095,251 | public void success(GetFactsRsp rsp) {<NEW_LINE>if (!rsp.isSuccess()) {<NEW_LINE>errors.add(operr("operation error, because:%s", rsp.getError()));<NEW_LINE>} else {<NEW_LINE>String fsid = rsp.fsid;<NEW_LINE>if (!getSelf().getFsid().equals(fsid)) {<NEW_LINE>errors.add(operr("the mon[ip:%s] returns a fsid[%s] different f... | CephBackupStorageMonVO monVO = base.getSelf(); |
658,090 | public static void fcBiRepulsor(Node N1, Node N2, double c) {<NEW_LINE>// distance en x entre les deux noeuds<NEW_LINE>double xDist = N1.x() - N2.x();<NEW_LINE>double yDist = N1.y() - N2.y();<NEW_LINE>// distance tout court<NEW_LINE>double dist = (float) Math.sqrt(xDist * xDist + yDist * yDist);<NEW_LINE>if (dist > 0) ... | ForceVectorNodeLayoutData N2L = N2.getLayoutData(); |
874,439 | private void initializeFabClickListener(boolean isActionMode) {<NEW_LINE>Intent intent = new Intent(getActivity(), NewConversationActivity.class);<NEW_LINE>if (isRelayingMessageContent(getActivity())) {<NEW_LINE>if (isActionMode) {<NEW_LINE>fab.setOnClickListener(v -> {<NEW_LINE>final Set<Long> selectedChats = getListA... | .startActivityForResult(intent, REQUEST_RELAY)); |
338,222 | public <T> CreateTableRequest generateCreateTableRequest(Class<T> clazz, DynamoDBMapperConfig config) {<NEW_LINE>config = mergeConfig(config);<NEW_LINE>final DynamoDBMapperTableModel<T> model = getTableModel(clazz, config);<NEW_LINE>final CreateTableRequest request = new CreateTableRequest();<NEW_LINE>request.setTableN... | .name(), RANGE)); |
448,724 | public static void test() throws Exception {<NEW_LINE>int spout_Parallelism_hint = JStormUtils.parseInt(conf.get(TOPOLOGY_SPOUT_PARALLELISM_HINT), 1);<NEW_LINE>int count_Parallelism_hint = JStormUtils.parseInt(conf.get(TOPOLOGY_COUNT_PARALLELISM_HINT), 1);<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_L... | , new FastRandomSentenceSpout(), spout_Parallelism_hint); |
1,762,843 | static public LambdaRoute resolve(ControllerMethod controllerMethod) {<NEW_LINE>try {<NEW_LINE>Lambdas.LambdaInfo lambdaInfo = Lambdas.reflect(controllerMethod);<NEW_LINE>switch(lambdaInfo.getKind()) {<NEW_LINE>case ANY_INSTANCE_METHOD_REFERENCE:<NEW_LINE>case STATIC_METHOD_REFERENCE:<NEW_LINE>// call impl method just ... | lambdaInfo.getImplementationMethod(), controllerMethod); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.