idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,668,446 | public Rectangle rect(double minX, double maxX, double minY, double maxY) {<NEW_LINE>Rectangle bounds = ctx.getWorldBounds();<NEW_LINE>// Y<NEW_LINE>if (// NaN will pass<NEW_LINE>minY < bounds.getMinY() || maxY > bounds.getMaxY())<NEW_LINE>throw new InvalidShapeException("Y values [" + minY + " to " + maxY + "] not in ... | "maxY must be >= minY: " + minY + " to " + maxY); |
870,907 | public void testRxFlowableInvoker_postReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>Cl... | "testRxFlowableInvoker_postReceiveTimeout with TIMEOUT " + TIMEOUT + " OnError elapsed time " + elapsed); |
257,458 | public synchronized boolean start() {<NEW_LINE>if (State.IDLE != this.state) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (0 < getMaximumBackupFiles()) {<NEW_LINE>this.myFormat = new SimpleDateFormat("_yy.MM.dd_HH.mm.ss", Locale.US);<NEW_LINE>this.backups <MASK><NEW_LINE>// backups would convert access.log to access... | = new LinkedList<File>(); |
302,504 | public Policy createPolicyFromJsonString(String jsonString) {<NEW_LINE>if (jsonString == null) {<NEW_LINE>throw new IllegalArgumentException("JSON string cannot be null");<NEW_LINE>}<NEW_LINE>JsonNode policyNode;<NEW_LINE>JsonNode idNode;<NEW_LINE>JsonNode statementsNode;<NEW_LINE>Policy policy = new Policy();<NEW_LINE... | .add(statementOf(statementsNode)); |
1,377,379 | public void testXA012(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>final TransactionManager tm = TransactionManagerFactory.getTransactionManager();<NEW_LINE>tm.begin();<NEW_LINE>final Transaction tx = tm.getTransaction();<NEW_LINE>tx.enlistResource(new XAResourceImpl()<MASK><NEW... | .setPrepareAction(XAException.XA_RBROLLBACK)); |
1,350,273 | // GEN-LAST:event_tfComponentListURLActionPerformed<NEW_LINE>private void miProxy1ActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_miProxy1ActionPerformed<NEW_LINE>ProxyPanel prp = new ProxyPanel(System.getProperty("http.proxyHost"), System.getProperty("http.proxyPort"));<NEW_LINE>final JOp... | String prop = e.getPropertyName(); |
196,673 | protected RestChannelConsumer innerPrepareRequest(RestRequest request, NodeClient client) throws IOException {<NEW_LINE>try (XContentParser parser = request.contentParser()) {<NEW_LINE>final SamlInitiateSingleSignOnRequest initRequest = PARSER.parse(parser, null);<NEW_LINE>return channel -> client.execute(SamlInitiateS... | "error", response.getError()); |
1,551,915 | void finish(final String tag) {<NEW_LINE>if (mRequestQueue != null) {<NEW_LINE>mRequestQueue.finish(this);<NEW_LINE>}<NEW_LINE>if (MarkerLog.ENABLED) {<NEW_LINE>final long threadId = Thread.currentThread().getId();<NEW_LINE>if (Looper.myLooper() != Looper.getMainLooper()) {<NEW_LINE>// If we finish marking off of the m... | Handler(Looper.getMainLooper()); |
1,519,875 | private static <T, F extends Format<T>> F makeByOptOverview(Map<OptionID, List<Pair<Parameter<?>, Class<?>>>> byopt, F format) {<NEW_LINE>format.init("ELKI command line parameter overview by option");<NEW_LINE>for (OptionID oid : sorted(byopt.keySet(), SORT_BY_OPTIONID)) {<NEW_LINE>Parameter<?> firstopt = byopt.get(oid... | format.appendDefaultValueIfSet(optdl, firstopt); |
1,262,946 | public static DescribeCouponListResponse unmarshall(DescribeCouponListResponse describeCouponListResponse, UnmarshallerContext context) {<NEW_LINE>describeCouponListResponse.setRequestId(context.stringValue("DescribeCouponListResponse.RequestId"));<NEW_LINE>List<Coupon> coupons <MASK><NEW_LINE>for (int i = 0; i < conte... | = new ArrayList<Coupon>(); |
1,467,183 | public Object postProcessAfterInitialization(Object bean, String beanName) {<NEW_LINE>if (MONGO_DB_FACTORY_AVAILABLE && bean instanceof MongoDbFactory) {<NEW_LINE>final MongoDbFactory mongoDbFactory = (MongoDbFactory) bean;<NEW_LINE>final InvocationHandler invocationHandler = new InvocationHandler() {<NEW_LINE><NEW_LIN... | .createDatabaseProxy((MongoDatabase) result); |
399,884 | final SearchSystemInstancesResult executeSearchSystemInstances(SearchSystemInstancesRequest searchSystemInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchSystemInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | (super.beforeMarshalling(searchSystemInstancesRequest)); |
1,600,766 | final UpdateNetworkResourceMetadataResult executeUpdateNetworkResourceMetadata(UpdateNetworkResourceMetadataRequest updateNetworkResourceMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateNetworkResourceMetadataRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,465,261 | public PiecewisePolynomialResult interpolate(final double[] xValues, final double[][] yValuesMatrix) {<NEW_LINE>ArgChecker.notNull(xValues, "xValues");<NEW_LINE>ArgChecker.notNull(yValuesMatrix, "yValuesMatrix");<NEW_LINE>ArgChecker.isTrue(xValues.length == yValuesMatrix[0].length, "(xValues length = yValuesMatrix's ro... | ][i]), "yValuesMatrix containing NaN"); |
183,344 | public void onHostPause() {<NEW_LINE>// Need to create a copy here because it is possible for other code to modify playerPool<NEW_LINE>// at the same time which will lead to a ConcurrentModificationException being thrown<NEW_LINE>Map<Integer, MediaPlayer> playerPoolCopy = new HashMap<>(this.playerPool);<NEW_LINE>for (M... | data.putMap("info", info); |
304,171 | private boolean checkCSeq(SipServletRequestImpl request, boolean isAck, boolean isCancel) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { _tuWrapper.getAppName(), _tuWrapper.getId(), isAck, isCancel };<NEW_LINE>c_logger.traceEntry(this, "checkCSeq", params);<NEW_LINE>}<NEW_LINE>boolean... | this, "checkCSeq", " Is OK: " + isOk); |
1,127,874 | private AuthenticationResult processPasswordMessage(final ChannelHandlerContext context, final PostgreSQLPacketPayload payload) {<NEW_LINE>char messageType = (char) payload.readInt1();<NEW_LINE>if (PostgreSQLMessagePacketType.PASSWORD_MESSAGE.getValue() != messageType) {<NEW_LINE>throw new PostgreSQLProtocolViolationEx... | ), loginResult.getErrorMessage()); |
1,570,902 | public Request<RemoveAttributesRequest> marshall(RemoveAttributesRequest removeAttributesRequest) {<NEW_LINE>if (removeAttributesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(RemoveAttributesRequest)");<NEW_LINE>}<NEW_LINE>Request<RemoveAttributesRequest> request = new... | ).marshall(updateAttributesRequest, jsonWriter); |
780,343 | public void run() {<NEW_LINE>log.log(Level.INFO, "BEGIN mBtConnectThread SocketType:" + mSocketType);<NEW_LINE>// Make a connection to the BluetoothSocket<NEW_LINE>try {<NEW_LINE>log.log(Level.FINE, "Connect BT socket");<NEW_LINE>// This is a blocking call and will only return on a<NEW_LINE>// successful connection or ... | .getRemoteDevice().getClass(); |
825,291 | private static ImageResult fixGifFps(byte[] imageData, ImageRequest request) throws IOException {<NEW_LINE>GifDecoderFMS gif = new GifDecoderFMS();<NEW_LINE>gif.read(new ByteArrayInputStream(imageData));<NEW_LINE>ByteArrayOutputStream bos = new ByteArrayOutputStream();<NEW_LINE>Dimension actualBaseSize;<NEW_LINE>try (I... | frame = gif.getFrame(i); |
1,115,361 | public void marshall(CreateFaqRequest createFaqRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createFaqRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.m... | createFaqRequest.getIndexId(), INDEXID_BINDING); |
623,951 | private static boolean dontUseHostName(String nonProxyHosts, String host) {<NEW_LINE>if (host == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean dontUseProxy = false;<NEW_LINE>StringTokenizer st = new StringTokenizer(nonProxyHosts, "|", false);<NEW_LINE>while (st.hasMoreTokens() && !dontUseProxy) {<NEW_LINE>... | (), host, nonProxyHosts }); |
1,034,233 | static // power of a number x<NEW_LINE>void power(int x, int n) {<NEW_LINE>// printing value "1" for power = 0<NEW_LINE>if (n == 0) {<NEW_LINE>System.out.print("1");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] res = new int[MAX];<NEW_LINE>int res_size = 0;<NEW_LINE>int temp = x;<NEW_LINE>// Initialize result<NEW_LINE>wh... | [res_size++] = temp % 10; |
1,262,310 | public void prepare() throws IOException {<NEW_LINE>int1RuntimeSchema = RuntimeSchema.createFrom(Int1.class);<NEW_LINE>int10RuntimeSchema = RuntimeSchema.createFrom(Int10.class);<NEW_LINE>sparseInt1RuntimeSchema = RuntimeSchema.createFrom(SparseInt1.class);<NEW_LINE>sparseInt10RuntimeSchema = <MASK><NEW_LINE>generatedI... | RuntimeSchema.createFrom(SparseInt10.class); |
629,974 | protected String computeContentEncoding(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings, String urlWithoutQuery) {<NEW_LINE>// Check if the request itself tells us what the encoding is<NEW_LINE>String contentEncoding;<NEW_LINE>String requestContentEncoding = ConversionUtils.... | debug("Computed encoding:{} for url:{}", contentEncoding, urlWithoutQuery); |
190,374 | private void replicate(CRDTReplicationAwareService service, Member target) {<NEW_LINE>if (Thread.currentThread().isInterrupted()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int targetIndex = getDataMemberListIndex(target);<NEW_LINE>final Map<String, VectorClock> lastSuccessfullyReplicatedClocks = replicationMigration... | OperationService operationService = nodeEngine.getOperationService(); |
747,658 | protected String doSubmitAction(@ModelAttribute("command") GeneralSettingsCommand command, RedirectAttributes redirectAttributes) {<NEW_LINE>int themeIndex = Integer.parseInt(command.getThemeIndex());<NEW_LINE>Theme theme = settingsService.getAvailableThemes()[themeIndex];<NEW_LINE>int localeIndex = Integer.parseInt(co... | settingsService.getAvailableLocales()[localeIndex]; |
1,696,915 | public List<Country> loadCountries() {<NEW_LINE>// To decode received country codes from SMSVerificationActivity<NEW_LINE>// Each string in ArrayList is "DO:1809,1829,1849,"<NEW_LINE>ArrayList<Country> countryCodeList = new ArrayList<>();<NEW_LINE>if (this.receivedCountryCodes != null) {<NEW_LINE>for (String countryStr... | + 1).split(","); |
875,408 | private void updateInProjectCombo(boolean show) {<NEW_LINE>if (show) {<NEW_LINE>// NOI18N<NEW_LINE>remoteCheckBox.setText(org.openide.util.NbBundle.getMessage<MASK><NEW_LINE>} else {<NEW_LINE>// NOI18N<NEW_LINE>remoteCheckBox.setText(org.openide.util.NbBundle.getMessage(EjbFacadeVisualPanel2.class, "LBL_Remote"));<NEW_... | (EjbFacadeVisualPanel2.class, "LBL_Remote_In_Project")); |
1,192,389 | protected void onActivityResult(int requestCode, int resultCode, Intent intent) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, intent);<NEW_LINE>if (resultCode == RESULT_MEDIA_EJECTED) {<NEW_LINE>onSdCardNotMounted();<NEW_LINE>return;<NEW_LINE>} else if (resultCode == RESULT_DB_ERROR) {<NEW_LINE>handleDbErr... | ImportUtils.handleFileImport(this, intent); |
1,224,449 | public BExpressionValue evaluate() throws EvaluationException {<NEW_LINE>try {<NEW_LINE>// A new-expr constructs a new object or stream. The class-descriptor in an explicit-new-expr must refer to<NEW_LINE>// a class or a stream type.<NEW_LINE>//<NEW_LINE>// An explicit-type-expr specifying a class-descriptor T has stat... | toSourceCode().trim()); |
1,065,292 | protected static void extractEnumerations(CoreMap s, List<Mention> mentions, Set<IntPair> mentionSpanSet, Set<IntPair> namedEntitySpanSet) {<NEW_LINE>List<CoreLabel> sent = s.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>Tree tree = s.get(TreeCoreAnnotations.TreeAnnotation.class);<NEW_LINE>SemanticGraph basicDe... | get(CoreAnnotations.IndexAnnotation.class); |
1,296,083 | public Observable<ServiceResponse<OperationStatus>> deletePrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) {<NEW_LINE>if (this.client.endpoint() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");... | this.client.endpoint()); |
1,601,838 | private void ensureKeyboardsAreBuilt() {<NEW_LINE>if (mAlphabetKeyboards.length == 0 || mSymbolsKeyboardsArray.length == 0 || mAlphabetKeyboardsCreators.length == 0) {<NEW_LINE>if (mAlphabetKeyboards.length == 0 || mAlphabetKeyboardsCreators.length == 0) {<NEW_LINE>final List<KeyboardAddOnAndBuilder> enabledKeyboardBui... | = new AnyKeyboard[mAlphabetKeyboardsCreators.length]; |
1,506,993 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.csi1_layout);<NEW_LINE>th = (TabHost) findViewById(R.id.tabhost);<NEW_LINE>populateTable(this, dbPassword);<NEW_LINE>referenceXML();<NEW_LINE>Too... | navigation_drawer_open, R.string.navigation_drawer_close); |
976,393 | public void prepare(Map<String, Object> conf, TopologyContext context, OutputCollector collector) {<NEW_LINE>String mdF = ConfUtils.getString(conf, metadataFilterParamName);<NEW_LINE>if (StringUtils.isNotBlank(mdF)) {<NEW_LINE>// split it in key value<NEW_LINE>int equals = mdF.indexOf('=');<NEW_LINE>if (equals != -1) {... | 0, equals).trim(); |
1,231,355 | public Events queryEvents(List<EventQueryCondition> conditionList) throws Exception {<NEW_LINE>// This method maybe have poor efficiency. It queries all data which meets a condition without select function.<NEW_LINE>// https://github.com/apache/iotdb/discussions/3888<NEW_LINE>StringBuilder query = new StringBuilder();<... | final Events events = new Events(); |
962,814 | public static void updateFileExtension(@Nonnull Project project, @Nullable VirtualFile file) throws IOException {<NEW_LINE>ApplicationManager.getApplication().assertWriteAccessAllowed();<NEW_LINE>if (CommandProcessor.getInstance().getCurrentCommand() == null) {<NEW_LINE>throw new AssertionError("command required");<NEW... | file.getNameWithoutExtension(), ext); |
1,771,717 | public void initialize(GenericApplicationContext context) {<NEW_LINE>Supplier<R2dbcDataAutoConfiguration> r2dbcDataConfiguration = new Supplier<R2dbcDataAutoConfiguration>() {<NEW_LINE><NEW_LINE>private R2dbcDataAutoConfiguration configuration;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public R2dbcDataAutoConfiguration get... | getBean(R2dbcCustomConversions.class))); |
1,063,927 | private Overlay createPolygon(BoundingBox key, Integer value, int redthreshold, int orangethreshold) {<NEW_LINE>Polygon polygon = new Polygon(mMapView);<NEW_LINE>if (value < orangethreshold)<NEW_LINE>polygon.getFillPaint().setColor(Color.parseColor(alpha + yellow));<NEW_LINE>else if (value < redthreshold)<NEW_LINE>poly... | , key.getLonWest())); |
967,839 | public void hitsExecute(SearchContext context, SearchHit[] hits) throws IOException {<NEW_LINE>if (context.version() == false || (context.storedFieldsContext() != null && context.storedFieldsContext().fetchFields() == false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// don't modify the incoming hits<NEW_LINE>hits = hits.... | getIndexReader().leaves()); |
343,209 | private GridPane createVotesTable() {<NEW_LINE>GridPane votesGridPane = new GridPane();<NEW_LINE>votesGridPane.setHgap(5);<NEW_LINE>votesGridPane.setVgap(5);<NEW_LINE>votesGridPane.setPadding(new Insets(15));<NEW_LINE>ColumnConstraints columnConstraints1 = new ColumnConstraints();<NEW_LINE>columnConstraints1.setHalignm... | , 0, 0, 0)); |
444,046 | public static Binomial binomial(double[][] x, int[] y, double lambda, double tol, int maxIter) {<NEW_LINE>if (x.length != y.length) {<NEW_LINE>throw new IllegalArgumentException(String.format("The sizes of X and Y don't match: %d != %d", x.length, y.length));<NEW_LINE>}<NEW_LINE>if (lambda < 0.0) {<NEW_LINE>throw new I... | p = x[0].length; |
1,617,257 | private void init(CodegenVariable parent, String testDataPath, Map<String, CodegenModel> models) {<NEW_LINE>this.parent = parent;<NEW_LINE>this.isArray = dataType.endsWith("[]");<NEW_LINE>this.testDataPath = testDataPath;<NEW_LINE>CodegenModel cm = models.get(dataType);<NEW_LINE>if (cm != null && (cm.isArray || cm.isMa... | init(this, testDataPath, models); |
963,902 | public static void main(String[] args) {<NEW_LINE>InputReader in = new InputReader(System.in);<NEW_LINE>PrintWriter pw <MASK><NEW_LINE>// Code starts..<NEW_LINE>int n = in.nextInt();<NEW_LINE>int[] a = in.nextIntArray(n);<NEW_LINE>query[] qr1 = new query[n];<NEW_LINE>pair[] p = new pair[n];<NEW_LINE>q = n;<NEW_LINE>Has... | = new PrintWriter(System.out); |
566,764 | final PollForThirdPartyJobsResult executePollForThirdPartyJobs(PollForThirdPartyJobsRequest pollForThirdPartyJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(pollForThirdPartyJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | false), new PollForThirdPartyJobsResultJsonUnmarshaller()); |
305,228 | private static void writeThreadPoolMetrics(final HystrixThreadPoolMetrics threadPoolMetrics, JsonGenerator json) throws IOException {<NEW_LINE>HystrixThreadPoolKey key = threadPoolMetrics.getThreadPoolKey();<NEW_LINE>json.writeStartObject();<NEW_LINE>json.writeStringField("type", "HystrixThreadPool");<NEW_LINE>json.wri... | getCurrentTaskCount().longValue()); |
188,816 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>String appPackage = invokerPackage + ".app";<NEW_LINE>supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));<NEW_LINE>supportingFiles.add(new SupportingFile("build.mustache", "", "build.sbt"));<NEW_LINE>supportingFiles.add(new Supp... | sourceFolderByPackage(invokerPackage), "JettyMain.scala")); |
1,509,243 | private Composite createBasicInfoGroup(Composite parent, IFileStore fileStore, IFileInfo fileInfo) {<NEW_LINE>Composite container = new Composite(parent, SWT.NULL);<NEW_LINE>container.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).margins(0, 0).create());<NEW_LINE>Label label = new Label(container, SWT.NONE);<... | Label(container, SWT.LEFT); |
1,768,655 | public void onEntityDeath(DestructEntityEvent.Death event) {<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE><MASK><NEW_LINE>if (dead instanceof Player) {<NEW_LINE>// Process Death<NEW_LINE>SessionCache.getCachedSession(dead.getUniqueId()).ifPresent(ActiveSession::addDeath);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE... | Living dead = event.getTargetEntity(); |
429,097 | public Feature decodeLoc(final LineIterator lineIterator) {<NEW_LINE>final String line = lineIterator.next();<NEW_LINE>if (line.startsWith(COMMENT_LINE_CHARACTER)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String[] <MASK><NEW_LINE>if (fields.length < MINIMUM_LINE_FIELD_COUNT) {<NEW_LINE>throw new TribbleExcepti... | fields = line.split(LINE_DELIMITER); |
791,390 | public Set<Integer> updateQuote(short siteId, Serializable id, CmsContentParameters contentParameters, CmsModel cmsModel, CmsCategory category, CmsContentAttribute attribute) {<NEW_LINE>CmsContent entity = getEntity(id);<NEW_LINE>Set<Integer> categoryIds = new HashSet<>();<NEW_LINE>if (null != entity) {<NEW_LINE>for (C... | setCover(entity.getCover()); |
1,158,522 | public void draw(DrawHandler drawHandler, DrawingInfo drawingInfo) {<NEW_LINE>PointDouble send = new PointDouble(getSendX(drawingInfo), drawingInfo.getVerticalCenter(sendTick));<NEW_LINE>PointDouble receive = new PointDouble(getReceiveX(drawingInfo), drawingInfo.getVerticalCenter(sendTick + duration));<NEW_LINE>Relatio... | LineType oldLt = drawHandler.getLineType(); |
555,768 | public List<MapTuple> join(final Iterable left, final Iterable right, final Match match, final MatchKey matchKey, final Boolean flatten) {<NEW_LINE>// For LEFT keyed Joins it's LEFT and vice versa for RIGHT.<NEW_LINE>final String keyName;<NEW_LINE>// the matching values name (opposite of keyName)<NEW_LINE>final String ... | keyObj, matching, keyName, matchingValuesName); |
778,370 | private static final ImmutableSet<String> extractColumnNamesToCheckForChanges(final Class<?> modelClass, final String[] changedColumnsArr, final String[] ignoredColumnsArr) {<NEW_LINE>final ImmutableSet<String> changedColumns = changedColumnsArr != null ? ImmutableSet.copyOf(changedColumnsArr) : ImmutableSet.of();<NEW_... | ignoredColumnsArr) : ImmutableSet.of(); |
1,288,583 | public static void main(String[] args) {<NEW_LINE>CharsetDecoder dec = Charset.forName("UTF-8").newDecoder();<NEW_LINE>dec.onMalformedInput(CodingErrorAction.REPORT);<NEW_LINE>dec.onUnmappableCharacter(CodingErrorAction.REPORT);<NEW_LINE>byte[] bytes = { (byte) 0xF0, (byte) 0x9D, (byte) 0x80, (byte) 0x80 };<NEW_LINE>by... | System.out.println(cr); |
164,739 | private void addLocals(StyledDocument doc1, StyledDocument doc2, Function function1, Function function2) {<NEW_LINE>Variable[] vars1 = function1.getLocalVariables();<NEW_LINE>Variable[] vars2 = function2.getLocalVariables();<NEW_LINE>if (ProgramDiff.equivalentVariableArrays(vars1, vars2, false)) {<NEW_LINE>return;<NEW_... | addFrameInfo(doc1, "Local Variables: ", ""); |
972,765 | private void createNewPLV(final I_M_PriceList_Version oldCustomerPLV, final I_M_PriceList_Version newBasePLV, final UserId userId) {<NEW_LINE>final I_M_PriceList_Version newCustomerPLV = copy().setSkipCalculatedColumns(true).setFrom(oldCustomerPLV).copyToNew(I_M_PriceList_Version.class);<NEW_LINE>newCustomerPLV.setVali... | setM_DiscountSchema_ID(newBasePLV.getM_DiscountSchema_ID()); |
1,243,750 | private static void asynchronousApiCall() {<NEW_LINE>SearchAsyncClient client = createBuilder().buildAsyncClient();<NEW_LINE>List<Hotel> hotels = new ArrayList<>();<NEW_LINE>hotels.add(new Hotel().setHotelId("100"));<NEW_LINE>hotels.add(new Hotel().setHotelId("200"));<NEW_LINE>hotels.add(new Hotel().setHotelId("300"));... | of(AddHeadersFromContextPolicy.AZURE_REQUEST_HTTP_HEADERS_KEY, headers); |
1,770,273 | private boolean isIFixFileListValid(IFixInfo iFixInfo, File wlpInstallationDirectory) throws ParseException {<NEW_LINE>// First get the list of files to check<NEW_LINE>Updates updates = iFixInfo.getUpdates();<NEW_LINE>if (updates == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Set<UpdatedFile> files = updates.getF... | matcher(fileId).matches(); |
1,227,091 | /* (non-Javadoc)<NEW_LINE>* @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void modifyText(ModifyEvent arg0) {<NEW_LINE>String fName = file.getText();<NEW_LINE>wizard.savePath = fName;<NEW_LINE>String error = "";<NEW_LINE>if (!fNa... | && error.equals("")); |
1,264,831 | private void initListeners() {<NEW_LINE>selectedActionsList.addMouseListener(new DoubleClickDelegator((actionReference) -> {<NEW_LINE>selectedActionsListModel.removeElement(actionReference);<NEW_LINE>changer.changed();<NEW_LINE>}));<NEW_LINE>selectedActionsList.addListSelectionListener(e -> {<NEW_LINE>boolean hasSelect... | indexOf(selectedActionsList.getSelectedValue()); |
1,255,675 | public void store() {<NEW_LINE>BrandingModel branding = getBranding();<NEW_LINE>SplashUISupport.setValue(branding.getSplashRunningTextFontSize(), SplashUISupport.numberToString((Number) fontSize.getValue()));<NEW_LINE>SplashUISupport.setValue(branding.getSplashRunningTextBounds(), SplashUISupport.boundsToString((Rectan... | getHeight(null), 10)); |
1,757,320 | private V putInternal(K key, int hash, V value, Function<? super K, ? extends V> function, boolean onlyIfAbsent) {<NEW_LINE>removeStale();<NEW_LINE>int c = count;<NEW_LINE>// ensure capacity<NEW_LINE>if (c++ > threshold) {<NEW_LINE>int reduced = rehash();<NEW_LINE>// adjust from possible weak cleanups<NEW_LINE>if (redu... | , function), valueType, refQueue); |
215,181 | public AwsCloudFrontDistributionOriginGroups unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsCloudFrontDistributionOriginGroups awsCloudFrontDistributionOriginGroups = new AwsCloudFrontDistributionOriginGroups();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentP... | )).unmarshall(context)); |
134,410 | private void convertDocument(Schema schema, ParsedDocument parsed, ConvertParsedFields fieldConverter) {<NEW_LINE>SDDocumentType document = new SDDocumentType(parsed.name());<NEW_LINE>for (String inherit : parsed.getInherited()) {<NEW_LINE>var parent = convertedDocuments.get(inherit);<NEW_LINE>assert (parent != null);<... | "Cannot modify already-existing struct: " + struct.name()); |
1,231,894 | public JsonElement serialize(Object src, Type typeOfSrc, JsonSerializationContext context) {<NEW_LINE>JsonObject object = new JsonObject();<NEW_LINE>if (typeOfSrc.equals(AuditWrapper.class)) {<NEW_LINE>AuditWrapper auditWrapper = (AuditWrapper) src;<NEW_LINE>object.addProperty("user_id", auditWrapper.getUser().getId())... | getSessionOutput().getId()); |
1,034,402 | public Container copy(final Container source, Host destination, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException {<NEW_LINE>if (!permissionAPI.doesUserHavePermission(source, PermissionAPI.PERMISSION_READ, user, respectFrontendRoles)) {<NEW_LINE>throw new DotSecurityExce... | ContainerStructure> sourceCS = getContainerStructures(source); |
598,346 | private void handleSecurityPermissions(Node node, BeanDefinitionBuilder securityConfigBuilder) {<NEW_LINE>Set<BeanDefinition> permissions = new ManagedSet<>();<NEW_LINE>NamedNodeMap attributes = node.getAttributes();<NEW_LINE>Node onJoinOpAttribute = attributes.getNamedItem("on-join-operation");<NEW_LINE>if (onJoinOpAt... | securityConfigBuilder.addPropertyValue("clientPermissionConfigs", permissions); |
1,159,821 | static void blickActionMapImpl(ActionMap map, Component[] focus) {<NEW_LINE>assert EventQueue.isDispatchThread();<NEW_LINE>Object obj = Lookup.getDefault(<MASK><NEW_LINE>if (obj instanceof GlobalActionContextImpl) {<NEW_LINE>GlobalActionContextImpl g = (GlobalActionContextImpl) obj;<NEW_LINE>Lookup[] arr = { map == nul... | ).lookup(ContextGlobalProvider.class); |
557,783 | public void marshall(ImageRecipeSummary imageRecipeSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (imageRecipeSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(imageRecipeSummary.getArn(), A... | imageRecipeSummary.getName(), NAME_BINDING); |
249,564 | public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {<NEW_LINE>com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields());<NEW_LINE>while (tru... | .VProto.Error.newBuilder(); |
223,252 | private <T> MultiNodeResult<T> collectResults(Map<NodeExecution, Future<NodeResult<T>>> futures) {<NEW_LINE>boolean done = false;<NEW_LINE>MultiNodeResult<T> <MASK><NEW_LINE>Map<RedisClusterNode, Throwable> exceptions = new HashMap<>();<NEW_LINE>Set<String> saveGuard = new HashSet<>();<NEW_LINE>while (!done) {<NEW_LINE... | result = new MultiNodeResult<>(); |
1,124,049 | public void finishedFiltersWithNullTarget(ServletRequest request, ServletResponse response, RequestProcessor requestProcessor) throws NoTargetForURIException {<NEW_LINE>// a filter could potentially send on a ServletRequest instead of<NEW_LINE>// HttpServletRequest<NEW_LINE>HttpServletRequest httpRequest = (HttpServlet... | unwrapRequest(request, HttpServletRequest.class); |
68,627 | public static long LLVMDIBuilderCreateStaticMemberType(@NativeType("LLVMDIBuilderRef") long Builder, @NativeType("LLVMMetadataRef") long Scope, @NativeType("char const *") CharSequence Name, @NativeType("LLVMMetadataRef") long File, @NativeType("unsigned int") int LineNumber, @NativeType("LLVMMetadataRef") long Type, @... | int stackPointer = stack.getPointer(); |
1,078,583 | private boolean isSetpointHigh(Map<Clutch.Metric, UpdateDoublesSketch> sketches) {<NEW_LINE>double cpuMedian = sketches.get(Clutch.Metric.CPU).getQuantile(0.5);<NEW_LINE>double networkMedian = sketches.get(Clutch.Metric.NETWORK).getQuantile(0.5);<NEW_LINE>// TODO: How do we ensure we're not just always operating in a t... | cpuMedian, trueNetworkMax.get()); |
562,910 | default void populateDatastreamGroupIdInMetadata(Datastream datastream, List<Datastream> allDatastreams, Optional<Logger> logger) {<NEW_LINE>String <MASK><NEW_LINE>List<Datastream> existingDatastreamsWithGroupIdOverride = allDatastreams.stream().filter(DatastreamUtils::containsTaskPrefix).filter(ds -> DatastreamUtils.g... | datastreamTaskPrefix = DatastreamUtils.getTaskPrefix(datastream); |
234,395 | public void resolve(final ResolveContext resolveContext, final DependencyGraphVisitor modelVisitor, boolean includeSyntheticDependencies) {<NEW_LINE>IdGenerator<Long> idGenerator = new LongIdGenerator();<NEW_LINE>DefaultBuildableComponentResolveResult rootModule = new DefaultBuildableComponentResolveResult();<NEW_LINE>... | ), resolutionStrategy.isFailingOnChangingVersions()); |
134,188 | public void initSubDevices() {<NEW_LINE>ModelFactory factory = ModelFactory.eINSTANCE;<NEW_LINE>ColorColor color = factory.createColorColor();<NEW_LINE><MASK><NEW_LINE>String subIdColor = "color";<NEW_LINE>color.setSubId(subIdColor);<NEW_LINE>logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdColor);<NEW_L... | color.setUid(getUid()); |
1,615,408 | public static RestoreInProgress updateRestoreStateWithDeletedIndices(RestoreInProgress oldRestore, Set<Index> deletedIndices) {<NEW_LINE>boolean changesMade = false;<NEW_LINE>RestoreInProgress.Builder builder = new RestoreInProgress.Builder();<NEW_LINE>for (RestoreInProgress.Entry entry : oldRestore) {<NEW_LINE>Immutab... | .State.FAILURE, "index was deleted")); |
357,937 | private BeanDefinition buildListenerContainer(Element element, ParserContext parserContext) {<NEW_LINE>if (!element.hasAttribute("queue-names")) {<NEW_LINE>parserContext.getReaderContext().error("If no 'listener-container' reference is provided, " + "the 'queue-names' attribute is required.", element);<NEW_LINE>}<NEW_L... | setReferenceIfAttributeDefined(builder, element, attributeName); |
1,255,816 | private void dynInit(boolean createNew) {<NEW_LINE>// Resource<NEW_LINE>fillResourceType();<NEW_LINE>fillResource();<NEW_LINE>fieldResourceType.<MASK><NEW_LINE>fieldResource.addEventListener(Events.ON_SELECT, this);<NEW_LINE>// Date - Elaine 2008/12/12<NEW_LINE>fieldDate.setValue(m_dateFrom);<NEW_LINE>fieldDate.getDate... | addEventListener(Events.ON_SELECT, this); |
1,102,423 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | invoke(request, responseHandler, executionContext); |
1,454,847 | // Using the example in the book<NEW_LINE>public static void main(String[] args) {<NEW_LINE>List<String> students = new ArrayList<>();<NEW_LINE>students.add("Alice");<NEW_LINE>students.add("Bob");<NEW_LINE>students.add("Carol");<NEW_LINE>students.add("Dave");<NEW_LINE>students.add("Eliza");<NEW_LINE>students.add("Frank... | preferences.put("Eliza", elizaPreferences); |
380,783 | public void layoutContainer(Container container) {<NEW_LINE>Insets insets = container.getInsets();<NEW_LINE>int i = container.getSize().height - (insets.top + insets.bottom + vGap * 2);<NEW_LINE>int j = container.getSize().width - (insets.left + insets.right + hGap * 2);<NEW_LINE>int k = container.getComponentCount();<... | component = container.getComponent(l1); |
566,376 | final DeleteRepositoryResult executeDeleteRepository(DeleteRepositoryRequest deleteRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
403,376 | static void createExampleTable() {<NEW_LINE>// Provide the initial provisioned throughput values as Java long data<NEW_LINE>// types<NEW_LINE>ProvisionedThroughput provisionedThroughput = new ProvisionedThroughput().withReadCapacityUnits(5L).withWriteCapacityUnits(6L);<NEW_LINE>CreateTableRequest request = new CreateTa... | .withKeyType(KeyType.HASH)); |
1,662,780 | public void keyPressed(KeyEvent e) {<NEW_LINE>// HACK for invoking tooltip using Ctrl+F1 because a condition in ToolTipManager.shouldRegisterBindings cannot be satisfied<NEW_LINE>if (e.getKeyCode() == KeyEvent.VK_F1 && (e.getModifiers() & InputEvent.CTRL_MASK) == InputEvent.CTRL_MASK) {<NEW_LINE>MouseContext context = ... | WidgetKeyEvent(++eventIDcounter, e)); |
1,821,445 | private void loadNode44() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.AddReferencesItem_Encoding_DefaultBinary, new QualifiedName(0, "Default Binary"), new LocalizedText("en", "Default Binary"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UBy... | .expanded(), true)); |
406,085 | public Pair<Boolean, byte[]> execute(byte[] data) {<NEW_LINE>if (data == null) {<NEW_LINE>return Pair.of(true, DataWord.ZERO().getData());<NEW_LINE>}<NEW_LINE>if (data.length != SIZE) {<NEW_LINE>return Pair.of(true, DataWord.ZERO().getData());<NEW_LINE>}<NEW_LINE>boolean result;<NEW_LINE>long ctx = JLibrustzcash.librus... | ] bindingSig = new byte[64]; |
199,064 | private void create() {<NEW_LINE>buttonGroup = new ButtonGroup();<NEW_LINE>ItemListener listener = new ItemListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void itemStateChanged(ItemEvent e) {<NEW_LINE>if (e.getStateChange() == ItemEvent.SELECTED) {<NEW_LINE>mergeManager.clearStatusText();<NEW_LINE>mergeManage... | createUseForAllCheckBox(), BorderLayout.SOUTH); |
1,575,411 | public void handleError(final String errorMsg, final Throwable t) {<NEW_LINE>String stackTrace = "";<NEW_LINE>String title = "Error";<NEW_LINE>if (t != null) {<NEW_LINE>// Convert exception to string<NEW_LINE>StringWriter sw = new StringWriter(100);<NEW_LINE>t.printStackTrace(new PrintWriter(sw));<NEW_LINE>stackTrace =... | setMessage(finalMsg).create(); |
1,436,557 | public Factory build() {<NEW_LINE>Set<String> extraKeyNames = new LinkedHashSet<>();<NEW_LINE>for (Map.Entry<String, Set<String>> entry : nameToKeyNames.entrySet()) {<NEW_LINE>BaggageField field = BaggageField.create(entry.getKey());<NEW_LINE>if (redactedNames.contains(field.name())) {<NEW_LINE>baggageFactory.add(Singl... | addAll(entry.getValue()); |
345,033 | public static KeyPart[] split(MatrixMeta matrixMeta, int rowId, long[] keys) {<NEW_LINE>PartitionKey[] matrixParts = matrixMeta.getPartitionKeys();<NEW_LINE>int matrixPartNumMinus1 = matrixParts.length - 1;<NEW_LINE>KeyPart[] keyParts = new KeyPart[matrixParts.length];<NEW_LINE>int avgPartElemNum <MASK><NEW_LINE>for (i... | = keys.length / matrixParts.length; |
865,426 | public Matrix initMatrix(MatrixFilesMeta matrixFilesMeta) {<NEW_LINE>Map<Integer, MatrixPartitionMeta> partMetas = matrixFilesMeta.getPartMetas();<NEW_LINE>Int2LongOpenHashMap rowIdToElemNumMap = new Int2LongOpenHashMap();<NEW_LINE>for (MatrixPartitionMeta partMeta : partMetas.values()) {<NEW_LINE>Map<Integer, RowParti... | valueOf(matrixFilesMeta.getRowType()); |
177,787 | private void rotateLocalSessionKeys() throws OtrException {<NEW_LINE>if (Debug.DEBUG_ENABLED)<NEW_LINE>Log.d(ImApp.LOG_TAG, "Rotating local keys.");<NEW_LINE>SessionKeys sess1 = getSessionKeysByIndex(SessionKeys.Previous, SessionKeys.Current);<NEW_LINE>if (sess1.getIsUsedReceivingMACKey()) {<NEW_LINE>if (Debug.DEBUG_EN... | d(ImApp.LOG_TAG, "Detected used Receiving MAC key. Adding to old MAC keys to reveal it."); |
1,072,776 | public ComplexSamples generateComplexSamples(int sampleCount) {<NEW_LINE>if (sampleCount % VECTOR_SPECIES.length() != 0) {<NEW_LINE>throw new IllegalArgumentException("Requested sample count [" + sampleCount + "] must be a power of 2 and a multiple of the SIMD lane width [" + VECTOR_SPECIES.length() + "]");<NEW_LINE>}<... | previousInphase.intoArray(mPreviousInphases, 0); |
1,189,933 | static Intent createExecuteIntent(String action) {<NEW_LINE>ExecutionCommand executionCommand = new ExecutionCommand();<NEW_LINE>executionCommand.executableUri = new Uri.Builder().scheme(TERMUX_SERVICE.URI_SCHEME_SERVICE_EXECUTE).path(BIN_SH).build();<NEW_LINE>executionCommand.arguments = new String[] { "-c", action };... | TERMUX_SERVICE.ACTION_SERVICE_EXECUTE, executionCommand.executableUri); |
1,658,835 | public void afterPropertiesSet() {<NEW_LINE>this.factory = createRepositoryFactory();<NEW_LINE>this.factory.setQueryLookupStrategyKey(queryLookupStrategyKey);<NEW_LINE>this.factory.setNamedQueries(namedQueries);<NEW_LINE>this.factory.setEvaluationContextProvider(evaluationContextProvider.orElseGet(() -> QueryMethodEval... | this.factory.getRepositoryMetadata(repositoryInterface); |
1,042,276 | public DocumentFilter unwrap(@NonNull final JSONDocumentFilter jsonFilter) {<NEW_LINE>final DocumentFilter.DocumentFilterBuilder filter = DocumentFilter.builder().setFilterId(jsonFilter.getFilterId()).setFacetFilter(isFacetFilter());<NEW_LINE>final Map<String, JSONDocumentFilterParam> jsonParams = Maps.uniqueIndex(json... | convertValueFromJson(jsonParam.getValueTo()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.