idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
369,800 | private Local addStmtsToFetchClassBefore(Body b, Stmt target, boolean createNewAsShimple) {<NEW_LINE>SootClass sc = b.getMethod().getDeclaringClass();<NEW_LINE>SootField classCacher = classToClassField.get(sc);<NEW_LINE>if (classCacher == null) {<NEW_LINE>// Add a unique field named [__]class$name<NEW_LINE>String n = "... | Jimple jimp = Jimple.v(); |
1,511,058 | public static QueryDomainGroupListResponse unmarshall(QueryDomainGroupListResponse queryDomainGroupListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDomainGroupListResponse.setRequestId(_ctx.stringValue("QueryDomainGroupListResponse.RequestId"));<NEW_LINE>List<DomainGroup> data = new ArrayList<DomainGroup>();<NEW... | ("QueryDomainGroupListResponse.Data[" + i + "].DomainGroupId")); |
1,736,389 | public void run() {<NEW_LINE>sendThread = Thread.currentThread();<NEW_LINE>sendThread.setName(threadName);<NEW_LINE>final String methodName = "run";<NEW_LINE>MqttWireMessage message = null;<NEW_LINE>synchronized (lifecycle) {<NEW_LINE>current_state = State.RUNNING;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>State my_target;<NE... | .getKey(), message }); |
492,810 | public void init(GameEngine gameEngine) {<NEW_LINE>context = gameEngine.createChildContext();<NEW_LINE>headless = context.get(DisplayDevice.class).isHeadless();<NEW_LINE>initEntityAndComponentManagers(headless);<NEW_LINE>createLocalPlayer(context);<NEW_LINE>if (!headless) {<NEW_LINE>// TODO: REMOVE this and handle refr... | put(NUISkinEditorSystem.class, nuiSkinEditorSystem); |
311,384 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.<MASK><NEW_LINE>Permanent permanent = source.getSourcePermanentOrLKI(game);<NEW_LINE>if (player != null && permanent != null) {<NEW_LINE>UUID exileId = CardUtil.getExileZoneId(game, source);<NEW_LINE>TargetCardInGraveyard target = new Targe... | getPlayer(source.getControllerId()); |
759,981 | private void browseKeyStore() {<NEW_LINE>SipCommFileChooser dlg = GenericFileDialog.create(null, R.getI18NString("plugin.certconfig.BROWSE_KEYSTORE"), SipCommFileChooser.LOAD_FILE_OPERATION);<NEW_LINE><MASK><NEW_LINE>dlg.addFilter(new SipCommFileFilter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getDescript... | dlg.setSelectionMode(SipCommFileChooser.FILES_ONLY); |
1,138,621 | public static EncapsulatedPacket fromBinary(byte[] binary, boolean internal) {<NEW_LINE>EncapsulatedPacket packet = new EncapsulatedPacket();<NEW_LINE>int flags = binary[0] & 0xff;<NEW_LINE>packet.reliability = ((flags & 0b11100000) >> 5);<NEW_LINE>packet.hasSplit = (flags & 0b00010000) > 0;<NEW_LINE>int length, offset... | (binary, 5, 4)); |
1,146,194 | private void removeIllegalEntries(List<String> badEntriesList) {<NEW_LINE>logger.trace("Cleaning entries for {}", urlPath);<NEW_LINE>final List<String> cleanedEntriesList = new ArrayList<>();<NEW_LINE>try (InputStream is = Files.newInputStream(urlPath);<NEW_LINE>InputStreamReader isr = new InputStreamReader(is);<NEW_LI... | bufferedWriter.write(entry + '\n'); |
132,813 | protected void checkAuthorization(ProxyService service, TopicName topicName, String role, AuthenticationDataSource authenticationData) throws Exception {<NEW_LINE>if (!service.getConfiguration().isAuthorizationEnabled() || service.getConfiguration().getSuperUserRoles().contains(role)) {<NEW_LINE>// No enforcing of auth... | warn("[{}] Role {} is not allowed to lookup topic", topicName, role); |
1,389,266 | private synchronized void writeMessage(byte[] message, OutputStream os) throws IOException {<NEW_LINE>// prepare data for encryption<NEW_LINE>int bytesCount = 6 + message.length;<NEW_LINE>if (bytesCount < 16) {<NEW_LINE>bytesCount = 16;<NEW_LINE>}<NEW_LINE>byte[<MASK><NEW_LINE>int randomValue = this.rand.nextInt();<NEW... | ] data = new byte[bytesCount]; |
1,387,812 | // // Versions of compress/expand with Deflator using RecordCompressor<NEW_LINE>// static IRecordCompressor compressor = CompressorRegistry.fetch(CompressorRegistry.DEFLATE_BEST_SPEED);<NEW_LINE>// static String compressorKey = CompressorRegistry.DEFLATE_BEST_SPEED;<NEW_LINE>// /**<NEW_LINE>// * This configuration meth... | throw new UnsupportedOperationException("Unknown compressor: " + compressorKey); |
186,390 | public static TablesExtRecord convertToTablesExtRecord(TableRule newTableRule, String tableSchema, String tableName, boolean isGsi, boolean isAutoPartition) {<NEW_LINE>TablesExtRecord record = new TablesExtRecord();<NEW_LINE>record.tableSchema = tableSchema;<NEW_LINE>record.tableName = tableName;<NEW_LINE>record.newTab... | concat(newTableRule.getDbRuleStrs()); |
1,711,662 | // COM_INIT_DB: change current database of this session.<NEW_LINE>private void handleInitDb() {<NEW_LINE>String fullDbName = new String(packetBuf.array(), 1, packetBuf.limit() - 1);<NEW_LINE>if (Strings.isNullOrEmpty(ctx.getClusterName())) {<NEW_LINE>ctx.getState().setError(ErrorCode.ERR_CLUSTER_NAME_NULL, "Please ente... | getCatalogMgr().getCatalogNullable(catalogName); |
1,660,818 | public void marshall(App app, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (app == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(app.getAppId(), APPID_BINDING);<NEW_LINE>protocolMarshaller.marshall(app.ge... | app.getEnableBranchAutoBuild(), ENABLEBRANCHAUTOBUILD_BINDING); |
886,319 | private void searchBuildScripts() {<NEW_LINE>File f1 = new File(projectDir, BUILD_FILE_NAME_KTS);<NEW_LINE>if (!f1.canRead()) {<NEW_LINE>f1 <MASK><NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>File f2 = new File(projectDir, projectDir.getName() + ".gradle.kts");<NEW_LINE>if (!f2.canRead()) {<NEW_LINE>// NOI18N<NEW_LINE>f2 = n... | = new File(projectDir, BUILD_FILE_NAME); |
411,397 | public ListBillingGroupsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListBillingGroupsResult listBillingGroupsResult = new ListBillingGroupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken... | String currentParentElement = context.getCurrentParentElement(); |
582,677 | public void initialize(MultipleObjectsBundle bundle) {<NEW_LINE>super.initialize(bundle);<NEW_LINE>fold = 0;<NEW_LINE>IntArrayList[] classBuckets = new IntArrayList[this.labels.size()];<NEW_LINE>for (int i = 0; i < this.labels.size(); i++) {<NEW_LINE>classBuckets[i] = new IntArrayList();<NEW_LINE>}<NEW_LINE>for (int i ... | throw new AbortException("Label not in label list: " + label); |
440,059 | private static void appendSampleToChunk(TrakBox trakBox1, TrakBox trakBox2, int off) {<NEW_LINE>SampleToChunkBox stsc1 = trakBox1.getStsc();<NEW_LINE>SampleToChunkBox stsc2 = trakBox2.getStsc();<NEW_LINE>SampleToChunkEntry[<MASK><NEW_LINE>SampleToChunkEntry[] shifted = new SampleToChunkEntry[orig.length];<NEW_LINE>for ... | ] orig = stsc2.getSampleToChunk(); |
1,389,780 | private void writeManifest(File manifestFile, Document doc) throws IOException, TransformerException {<NEW_LINE>TransformerFactory xfactory = TransformerFactory.newInstance();<NEW_LINE>Transformer xformer = xfactory.newTransformer();<NEW_LINE>xformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");<NEW_LINE>S... | ), doc.getXmlEncoding()); |
785,410 | private void uuidChanged(String fromUuid, String toUuid) {<NEW_LINE>if (ActFmInvoker.SYNC_DEBUG)<NEW_LINE>Log.e(ERROR_TAG, "Task UUID collision -- old uuid: " + fromUuid + ", new uuid: " + toUuid);<NEW_LINE>// Update reference from UserActivity to task uuid<NEW_LINE>UserActivityDao activityDao = PluginServices.getUserA... | eq(oldUuid)), histTemplate); |
809,754 | private void onResponseMessage(ChannelHandlerContext ctx, RpcMessage rpcMessage) {<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.debug("server received:{},clientIp:{},vgroup:{}", rpcMessage.getBody(), NetUtil.toIpAddress(ctx.channel().remoteAddress()), ChannelManager.getContextFromIdentified(ctx.channel()).ge... | rpcMessage.getBody(), rpcContext); |
174,107 | public static void main(String[] args) {<NEW_LINE>Map<String, Object> kafkaConsumerConfig = new HashMap<>();<NEW_LINE>kafkaConsumerConfig.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");<NEW_LINE>kafkaConsumerConfig.put(ConsumerConfig.GROUP_ID_CONFIG, "sample-kafka-spout");<NEW_LINE>kafkaConsumerConfig.p... | config, topologyBuilder.createTopology()); |
809,638 | public void process(List<EllipseRotated_F64> ellipses, List<List<EllipsesIntoClusters.Node>> clusters) {<NEW_LINE>foundGrids.reset();<NEW_LINE>for (int i = 0; i < clusters.size(); i++) {<NEW_LINE>List<EllipsesIntoClusters.Node> cluster = clusters.get(i);<NEW_LINE>int clusterSize = cluster.size();<NEW_LINE>if (clusterSi... | seed = cornerColumn.get(j); |
1,702,615 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length == 0) {<NEW_LINE>log.info(USAGE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Use both Properties and TaggerConfig. It's okay.<NEW_LINE>Properties props = StringUtils.argsToProperties(args);<NEW_LINE>String client = props.getProperty("clien... | communicateWithMaxentTaggerServer(host, port, encoding); |
738,918 | public void doAction(ActionEvent e) {<NEW_LINE>String name = ((Component) e.getSource()).getName();<NEW_LINE>if (name != null) {<NEW_LINE>name = name.trim();<NEW_LINE>}<NEW_LINE>String action = e.getActionCommand();<NEW_LINE>if (action.equals(ActionNames.REMOTE_STOP)) {<NEW_LINE>GuiPackage.getInstance().getMainFrame().... | distributedRunner.exit(getRemoteHosts()); |
704,951 | public List<MappingField> resolveAndValidateFields(List<MappingField> userFields, Map<String, String> options, NodeEngine nodeEngine) {<NEW_LINE>InternalSerializationService ss = <MASK><NEW_LINE>// normalize and validate the names and external names<NEW_LINE>for (MappingField field : userFields) {<NEW_LINE>String name ... | (InternalSerializationService) nodeEngine.getSerializationService(); |
401,168 | /*<NEW_LINE>@Override<NEW_LINE>public Collection<String> listFiles(String path, boolean recursive) {<NEW_LINE>Set<String> files = new HashSet<>();<NEW_LINE><NEW_LINE>rwLock.readLock().lock();<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < sources.size(); i++) {<NEW_LINE>files.addAll(sources.get(i).listFiles(path, recursiv... | i).listFolders(path)); |
814,171 | public Object evaluate(final ActionContext ctx, final GraphObject entity, final EvaluationHints hints) throws FrameworkException, UnlicensedScriptException {<NEW_LINE>if (listExpression == null || filterExpression == null) {<NEW_LINE>return ERROR_MESSAGE_FILTER;<NEW_LINE>}<NEW_LINE>final Object listSource = listExpress... | ctx.setConstant("data", obj); |
1,461,745 | protected Solver.SolutionInfo solve(DataSet x) {<NEW_LINE>final int l = x.size();<NEW_LINE>QMatrix Q = new CachedQMatrix(l, cache_size, new R2_Qq(x, C));<NEW_LINE>Q.initialize();<NEW_LINE>double[] QD = Q.get_QD();<NEW_LINE>double[] alpha = new double[l];<NEW_LINE>// all others are 0.<NEW_LINE>alpha[0] = 1;<NEW_LINE>byt... | -2 * si.obj)); |
634,680 | private void loadNode2() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_ServerDiagnosticsSummaryDataType, new QualifiedName(0, "ServerDiagnosticsSummaryDataType"), new LocalizedText("en", "ServerDiagnosticsSumma... | DataValue(new Variant(o)); |
1,748,301 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Setting IpAddress To Log and taking header for original IP if forwarded from proxy<NEW_LINE>ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));<NEW_... | out.print(getServletInfo()); |
660,487 | public void add(Matrix4 o) {<NEW_LINE>final double[] oStorage = o._m4storage;<NEW_LINE>_m4storage[0] = _m4storage[0] + oStorage[0];<NEW_LINE>_m4storage[1] = _m4storage[1] + oStorage[1];<NEW_LINE>_m4storage[2] = _m4storage[2] + oStorage[2];<NEW_LINE>_m4storage[3] = _m4storage[3] + oStorage[3];<NEW_LINE>_m4storage[4] = _... | [5] + oStorage[5]; |
589,735 | public void onRequestFinish(MegaChatApiJava api, MegaChatRequest request, MegaChatError e) {<NEW_LINE>logDebug("onRequestFinish(CHAT)");<NEW_LINE>if (request.getType() == MegaChatRequest.TYPE_ARCHIVE_CHATROOM) {<NEW_LINE>long chatHandle = request.getChatHandle();<NEW_LINE>MegaChatRoom chat = megaChatApi.getChatRoom(cha... | .string.error_unarchive_chat, chatTitle)); |
1,388,518 | private void exitResizeMode(ResizeAction aResizeAction) {<NEW_LINE>if (!mAttachedWindow.isResizing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (aResizeAction == ResizeAction.RESTORE_SIZE) {<NEW_LINE>mAttachedWindow.restoreBeforeResizePlacement();<NEW_LINE>mWidgetManager.updateVisibleWidgets();<NEW_LINE>}<NEW_LINE>mAtt... | (!mAttachedWindow.isFullScreen()); |
1,817,485 | private static Response prepareRamIndex(Request request, CheckedBiFunction<QueryShardContext, LeafReaderContext, Response, IOException> handler, IndexService indexService) throws IOException {<NEW_LINE>Analyzer defaultAnalyzer = indexService.getIndexAnalyzers().getDefaultIndexAnalyzer();<NEW_LINE>try (Directory directo... | , () -> absoluteStartMillis, null); |
802,619 | public boolean addAddress(Long version, String address) throws BrokerException {<NEW_LINE>log.info("associated groupId: {}", this.client.getGroupId());<NEW_LINE>// check exist manually to avoid duplicate record<NEW_LINE>Map<Long, String> topicControlAddresses = listAddress();<NEW_LINE>if (topicControlAddresses.contains... | insert(TableName, ContractAddress, fieldNameToValueEntry); |
743,800 | private void fixOrRemovePatternsWhichReferenceNoneExistingTrips() {<NEW_LINE>int orgSize = tripPatterns.size();<NEW_LINE>List<Map.Entry<StopPattern, TripPattern>> removePatterns = new ArrayList<>();<NEW_LINE>for (Map.Entry<StopPattern, TripPattern> e : tripPatterns.entries()) {<NEW_LINE><MASK><NEW_LINE>ptn.removeTrips(... | TripPattern ptn = e.getValue(); |
1,480,240 | public Queue<Message> buildAll(@Nullable SplitPolicy... policy) {<NEW_LINE>if (this.isEmpty())<NEW_LINE>throw new UnsupportedOperationException("Cannot build a Message with no content. (You never added any content to the message)");<NEW_LINE>LinkedList<Message> messages = new LinkedList<>();<NEW_LINE>if (builder.length... | 1)).setEmbeds(embeds); |
1,112,200 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void zipFileBrowseBntActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_zipFileBrowseBntActionPerformed<NEW_LINE>JFileChooser fileWindow = chooserHelper.getChooser();<NEW_LINE>fileWindow.setFileSelectionMode(JFileChooser.FILES_ONLY);<... | zipFilePathField.setForeground(Color.BLACK); |
1,632,349 | public static <In extends ImageBase<In>, Out extends ImageBase<Out>, K extends Kernel1D> void vertical(K kernel, In input, Out output) {<NEW_LINE>switch(input.getImageType().getFamily()) {<NEW_LINE>case GRAY -><NEW_LINE>{<NEW_LINE>if (input instanceof GrayF32) {<NEW_LINE>ConvolveImageNoBorder.vertical((Kernel1D_F32) ke... | ) input, (InterleavedI16) output); |
681,790 | @NonNull<NEW_LINE>private RequestManager fragmentGet(@NonNull Context context, @NonNull android.app.FragmentManager fm, @Nullable android.app.Fragment parentHint, boolean isParentVisible) {<NEW_LINE>RequestManagerFragment <MASK><NEW_LINE>RequestManager requestManager = current.getRequestManager();<NEW_LINE>if (requestM... | current = getRequestManagerFragment(fm, parentHint); |
1,403,022 | public static void main(String[] args) throws IOException {<NEW_LINE>List<String> artists = getTop100Artists();<NEW_LINE>Set<String> tags = getTop100Tags();<NEW_LINE>List<Record> <MASK><NEW_LINE>Map<Centroid, List<Record>> clusters = KMeans.fit(records, 7, new EuclideanDistance(), 1000);<NEW_LINE>// Print the cluster c... | records = datasetWithTaggedArtists(artists, tags); |
1,795,737 | public Change perform(IProgressMonitor pm) throws CoreException, OperationCanceledException {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>pm.beginTask(NLSChangesMessages.createFile_creating_resource, 3);<NEW_LINE>initializeEncoding();<NEW_LINE>IFile file = getOldFile(new SubProgressMonitor(pm, 1));<NEW_LINE... | JavaModelException(ioe, IJavaModelStatusConstants.IO_EXCEPTION); |
1,769,777 | final DetachUserPolicyResult executeDetachUserPolicy(DetachUserPolicyRequest detachUserPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachUserPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,226,392 | private void initialize(@NonNull Context aContext) {<NEW_LINE>mTrayViewModel = new ViewModelProvider((VRBrowserActivity) getContext(), ViewModelProvider.AndroidViewModelFactory.getInstance(((VRBrowserActivity) getContext()).getApplication())).get(TrayViewModel.class);<NEW_LINE>mSettingsViewModel = new ViewModelProvider... | mPrefs = PreferenceManager.getDefaultSharedPreferences(mAppContext); |
69,012 | public static Split parseSplit(String splitCsvString) {<NEW_LINE>// TODO: parse reconciled state and date<NEW_LINE>String[] <MASK><NEW_LINE>if (tokens.length < 8) {<NEW_LINE>// old format splits<NEW_LINE>Money amount = new Money(tokens[0], tokens[1]);<NEW_LINE>Split split = new Split(amount, tokens[2]);<NEW_LINE>split.... | tokens = splitCsvString.split(";"); |
1,189,279 | public ApiResponse<String> downloadDownloadZipShareWithHttpInfo(String shareid) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'shareid' is set<NEW_LINE>if (shareid == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'shareid' when ca... | localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
1,746,039 | public void rebuildQueue() {<NEW_LINE>numFluidBlocksFound = 0;<NEW_LINE>pumpLayerQueues.clear();<NEW_LINE>int x = pos.getX();<NEW_LINE>int y = aimY;<NEW_LINE>int z = pos.getZ();<NEW_LINE>BlockPos pos = new BlockPos(x, y, z);<NEW_LINE>Fluid pumpingFluid = BlockUtil.getFluid(BlockUtil.getBlockState(worldObj, pos).getBloc... | ), visitedBlocks, fluidsFound, pumpingFluid); |
259,866 | public boolean tryOnNext(T t) {<NEW_LINE>if (sourceMode == Fuseable.ASYNC) {<NEW_LINE>actual.onNext(null);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (done) {<NEW_LINE>Operators.<MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>K k;<NEW_LINE>try {<NEW_LINE>k = Objects.requireNonNull(keyExtractor.apply(t), "The distinc... | onNextDropped(t, this.ctx); |
444,330 | final GetBotChannelAssociationResult executeGetBotChannelAssociation(GetBotChannelAssociationRequest getBotChannelAssociationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBotChannelAssociationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
705,637 | public void deleteFileCommentReactionsId(Integer id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling deleteFileCommentReactionsId");<NEW_... | HashMap<String, Object>(); |
78,431 | protected int encodeHeader(MessageTree tree, ByteBuf buf) {<NEW_LINE>BufferHelper helper = m_bufferHelper;<NEW_LINE>int count = 0;<NEW_LINE>count += helper.write(buf, VERSION);<NEW_LINE>count += helper.write(buf, TAB);<NEW_LINE>count += helper.write(buf, tree.getDomain());<NEW_LINE>count += helper.write(buf, TAB);<NEW_... | buf, tree.getThreadId()); |
763,925 | private void init() {<NEW_LINE>// WARNING: called from ctor so must not be overridden (i.e. must be private or final)<NEW_LINE>this.setLayout(new BorderLayout());<NEW_LINE>// MAIN PANEL<NEW_LINE>JPanel mainPanel = new JPanel();<NEW_LINE>Border margin = new EmptyBorder(10, 10, 5, 10);<NEW_LINE>Border margin2 = new Empty... | mainPanel.add(makeTitlePanel()); |
109,648 | final GetGroupResult executeGetGroup(GetGroupRequest getGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
121,020 | private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Person.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Person> cq = cb.createQuery(Person.class);<NEW_LINE>Root<Person> root = <MASK><NEW_LINE>cq.orderBy(c... | cq.from(Person.class); |
429,596 | public Set<String> validate() {<NEW_LINE>Set<String> validationErrors = new HashSet<>();<NEW_LINE>if (this.organizationId == null) {<NEW_LINE>validationErrors.add(AppsmithError.INVALID_PARAMETER.getMessage(FieldName.ORGANIZATION_ID));<NEW_LINE>}<NEW_LINE>if (this.applicationId == null) {<NEW_LINE>validationErrors.add(A... | .getMessage(FieldName.PLUGIN_ID)); |
1,370,438 | public static void main(String[] args) throws Exception {<NEW_LINE>// This solution is nearly TLE without using BufferedReader and PrintWriter<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>PrintWriter pw = new PrintWriter(new BufferedWriter(new <MASK><NEW_LINE>int TC = Inte... | OutputStreamWriter(System.out))); |
1,822,825 | ActionResult<Object> execute(EffectivePerson effectivePerson, String flag, String mode, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>Statement statement = null;<NEW_LINE>ActionResult<Object> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContai... | runtime, Statement.MODE_COUNT, wi); |
779,911 | public com.amazonaws.services.workmail.model.InvalidCustomSesConfigurationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.workmail.model.InvalidCustomSesConfigurationException invalidCustomSesConfigurationException = new com.amazonaws.services.workmail... | String currentParentElement = context.getCurrentParentElement(); |
1,104,065 | protected void computeMatrix(final Projection pProjection) {<NEW_LINE>final long topLeftCornerX = pProjection.getLongPixelXFromLongitude(mTopLeft.getLongitude());<NEW_LINE>final long topLeftCornerY = pProjection.getLongPixelYFromLatitude(mTopLeft.getLatitude());<NEW_LINE>final long topRightCornerX = pProjection.getLong... | [5] = (float) bottomRightCornerY; |
1,515,889 | // ===========================================================<NEW_LINE>// Methods<NEW_LINE>// ===========================================================<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>public void init() {<NEW_LINE>FrameLayout framelayout = new FrameLayout(this);<NEW_LINE>framelayout.layout(<MASK><... | 0, 0, 0, 0); |
60,503 | public KafkaClusterEncryptionInTransitDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KafkaClusterEncryptionInTransitDescription kafkaClusterEncryptionInTransitDescription = new KafkaClusterEncryptionInTransitDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
1,485,502 | final DescribeClusterResult executeDescribeCluster(DescribeClusterRequest describeClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
579,161 | public static DescribeSuspiciousEventsResponse unmarshall(DescribeSuspiciousEventsResponse describeSuspiciousEventsResponse, UnmarshallerContext context) {<NEW_LINE>describeSuspiciousEventsResponse.setRequestId(context.stringValue("DescribeSuspiciousEventsResponse.RequestId"));<NEW_LINE>describeSuspiciousEventsResponse... | + "].DetailList[" + j + "].Value")); |
509,261 | private static boolean verify(JReleaserContext context, Keyring keyring, FilePair filePair) throws SigningException {<NEW_LINE>context.<MASK><NEW_LINE>try {<NEW_LINE>context.getLogger().debug("{}", context.relativizeToBasedir(filePair.signatureFile));<NEW_LINE>InputStream sigInputStream = PGPUtil.getDecoderStream(new B... | getLogger().setPrefix("verify"); |
1,044,329 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(fields[0], "contained.arrayOf(x => x.p00)");<NEW_LINE>builder.expression(fields[1], "contained.arrayOf((x,... | .INTEGERBOXEDARRAY.getEPType())); |
488,252 | public void start() throws Exception {<NEW_LINE>try {<NEW_LINE>String saturnZip = System.getProperty("saturn.zipfile", System.getenv("SATURN_ZIP_FILE"));<NEW_LINE>if (saturnZip != null && !saturnZip.isEmpty()) {<NEW_LINE>File zipFile = new File(saturnZip);<NEW_LINE>File saturnHome = null;<NEW_LINE>if (zipFile.canRead()... | [0].getAbsolutePath()); |
304,240 | public // properties are read-only<NEW_LINE>void testJMSProducerSendMessage_NotWriteable_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext();<NEW_LINE>emptyQueue(qcfBindings, queue1);<NEW_LINE>StreamMessage msgOut ... | JMSProducer producer = jmsContextQCFBindings.createProducer(); |
1,692,188 | private void startBridge() throws IOException {<NEW_LINE>@Nullable<NEW_LINE>final HomekitServer homekitServer = this.homekitServer;<NEW_LINE>if (homekitServer != null && bridge == null) {<NEW_LINE>final HomekitRoot bridge = homekitServer.createBridge(authInfo, settings.name, HomekitAccessoryCategories.BRIDGES, HomekitS... | int lastAccessoryCount = changeListener.getLastAccessoryCount(); |
1,303,146 | public static void installMacOSXFonts(UIDefaults defaults) {<NEW_LINE>final String face = "Helvetica Neue";<NEW_LINE>final FontUIResource uiFont = getFont(face, 13, Font.PLAIN);<NEW_LINE>initFontDefaults(defaults, uiFont);<NEW_LINE>for (Object key : new HashSet<>(defaults.keySet())) {<NEW_LINE>if (!(key instanceof Stri... | defaults.put("Button.font", buttonFont); |
1,073,345 | private ExporterJob createGenerateGanttChartJob(final File outputFile, final List<File> resultFiles) {<NEW_LINE>ExporterJob result = new ExporterJob("generate gantt chart") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected IStatus run() {<NEW_LINE>try {<NEW_LINE>int zoomLevel = getPreferences().getInt("zoom", -1);<NEW_... | zoomLevel, exportSettings.isCommandLineMode()); |
639,965 | Value propertyHandlerCursor(Value v) {<NEW_LINE>IdentValue identValue = v.isIdentValue();<NEW_LINE>if (identValue == null) {<NEW_LINE>return v;<NEW_LINE>}<NEW_LINE>String ident = identValue.getIdent(<MASK><NEW_LINE>if (!ident.endsWith("-resize")) {<NEW_LINE>return v;<NEW_LINE>}<NEW_LINE>StringBuffer newIdent = new Stri... | ).toLowerCase(Locale.ROOT); |
1,842,373 | private void handleSecurityInterceptors(Node node, BeanDefinitionBuilder securityConfigBuilder) {<NEW_LINE>List<BeanDefinition> lms = new ManagedList<>();<NEW_LINE>for (Node child : childElements(node)) {<NEW_LINE>String nodeName = cleanNodeName(child);<NEW_LINE>if ("interceptor".equals(nodeName)) {<NEW_LINE>BeanDefini... | AbstractBeanDefinition beanDefinition = siConfigBuilder.getBeanDefinition(); |
202,335 | public MutableNetwork<Node, Edge> apply(MutableNetwork<Node, Edge> network) {<NEW_LINE>for (Node node : ImmutableList.copyOf(Iterables.filter(network.nodes(), IsFlatten.INSTANCE))) {<NEW_LINE>// For each successor instruction after the Flatten, connect it directly to the<NEW_LINE>// predecessor PCollections of Flatten.... | successorInstruction, edge.clone()); |
164,235 | private static void patchWithGitApply(Path rootDir, byte[] diffContents, ImmutableList<String> excludedPaths, int stripSlashes, boolean verbose, boolean reverse, Map<String, String> environment, @Nullable Path gitDir) throws IOException, InsideGitDirException {<NEW_LINE>GitEnvironment gitEnv = new GitEnvironment(enviro... | .getStderr()), e); |
513,487 | private void write(Coordinate[] coords, Writer writer, int level) throws IOException {<NEW_LINE>startLine(level, writer);<NEW_LINE>startGeomTag(GMLConstants.GML_COORDINATES, null, writer);<NEW_LINE>int dim = 2;<NEW_LINE>if (coords.length > 0) {<NEW_LINE>if (!(Double.isNaN(coords[0].getZ())))<NEW_LINE>dim = 3;<NEW_LINE>... | endGeomTag(GMLConstants.GML_COORDINATES, writer); |
1,074,215 | private void listProfiles(String[] args) throws CmdException {<NEW_LINE>if (args.length > 2)<NEW_LINE>throw new CmdSyntaxError();<NEW_LINE>ArrayList<Path> files = WURST.getKeybinds().listProfiles();<NEW_LINE>int page = parsePage(args);<NEW_LINE>int pages = (int) Math.ceil(files.size() / 8.0);<NEW_LINE>pages = Math.max(... | + files.size() + " profile"; |
473,811 | private Query createQuery(boolean forCount) {<NEW_LINE>Expression<MASK><NEW_LINE>// serialize<NEW_LINE>JDOQLSerializer serializer = new JDOQLSerializer(getTemplates(), source);<NEW_LINE>serializer.serialize(queryMixin.getMetadata(), forCount, false);<NEW_LINE>logQuery(serializer.toString(), serializer.getConstantToLabe... | <?> source = getSource(); |
193,941 | protected void buildActionMapping() {<NEW_LINE>mapping.clear();<NEW_LINE>Class<?> dc;<NEW_LINE>InterceptorManager interMan = InterceptorManager.me();<NEW_LINE>for (Routes routes : getRoutesList()) {<NEW_LINE>for (Route route : routes.getRouteItemList()) {<NEW_LINE>Class<? extends Controller> controllerClass = route.get... | controllerInters = interMan.createControllerInterceptor(controllerClass); |
1,680,988 | public Query rewrite(IndexReader reader) throws IOException {<NEW_LINE>Query rewritten = super.rewrite(reader);<NEW_LINE>if (rewritten != this) {<NEW_LINE>return rewritten;<NEW_LINE>}<NEW_LINE>if (termArrays.isEmpty()) {<NEW_LINE>return new MatchNoDocsQuery();<NEW_LINE>}<NEW_LINE>MultiPhraseQuery.Builder query = new Mu... | Occur.MUST).build(); |
264,688 | public GradientValue_I32 compute(int x, int y) {<NEW_LINE>int horizontalOffset = x - r;<NEW_LINE>int indexSrc1 = input.startIndex + (y - r) * input.stride + horizontalOffset;<NEW_LINE>int indexSrc2 = input.startIndex + y * input.stride + horizontalOffset;<NEW_LINE>int indexSrc3 = input.startIndex + (y + r) * input.stri... | p6 = input.data[indexSrc3]; |
570,128 | /*<NEW_LINE>* may be used for issue 177341 fix later<NEW_LINE>*/<NEW_LINE>private ForeignKeyElement[] removeDuplicateFK(ForeignKeyElement[] fkeys) {<NEW_LINE>if (fkeys == null || fkeys.length == 0)<NEW_LINE>return fkeys;<NEW_LINE>HashMap<ComparableFK, ForeignKeyElement> ret = new HashMap<ComparableFK, ForeignKeyElement... | (new ForeignKeyElement[] {}); |
1,223,503 | public static BoolQueryBuilder buildQuery(@Nullable final String sourceType, @Nonnull final Filter sourceEntityFilter, @Nullable final String destinationType, @Nonnull final Filter destinationEntityFilter, @Nonnull final List<String> relationshipTypes, @Nonnull final RelationshipFilter relationshipFilter) {<NEW_LINE><M... | BoolQueryBuilder finalQuery = QueryBuilders.boolQuery(); |
192,966 | public MarkupDocBuilder tableWithColumnSpecs(List<MarkupTableColumn> columnSpecs, List<List<String>> cells) {<NEW_LINE>Validate.notEmpty(cells, "cells must not be null");<NEW_LINE>Boolean hasHeader = false;<NEW_LINE>List<String> options = new ArrayList<>();<NEW_LINE>List<String> cols = new ArrayList<>();<NEW_LINE>if (c... | .TABLE).append(newLine); |
1,737,025 | public SeverityLevel unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SeverityLevel severityLevel = new SeverityLevel();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | class).unmarshall(context)); |
1,443,111 | public void addOperation(PathSpec path, MaskOperation op) {<NEW_LINE>List<String> segments = path.getPathComponents();<NEW_LINE>Map<String, Object> attributes = path.getPathAttributes();<NEW_LINE>final DataMap fieldMask = new DataMap();<NEW_LINE>// map variable contains DataMap, into which current segment will be put<N... | lastSegment, op.getRepresentation()); |
1,785,665 | public NodeFactorySegment createTokenSegment(Token token) {<NEW_LINE>// Decide on the method and add all parameters required, except for minutiae parameters.<NEW_LINE>// If there are no minutiae and the token constructor supports calling without minutiae, use that call.<NEW_LINE>NodeFactorySegment root;<NEW_LINE>// Dec... | (token.text())); |
1,602,840 | public void saveData(LdapDirectorySettings settings) {<NEW_LINE>settings.setName(this.nameField.getText());<NEW_LINE>settings.setHostname(hostnameField.getText());<NEW_LINE>if (encryptionBox.isSelected()) {<NEW_LINE>settings.setEncryption(Encryption.SSL);<NEW_LINE>} else {<NEW_LINE>settings.setEncryption(Encryption.CLE... | setMangleQuery(chkMangleQuery.isSelected()); |
1,103,275 | protected Optional<ActiveSession> performHandshake(Tracer tracer, X additionalData, URL url, Set<Dialect> downstreamDialects, Capabilities capabilities) {<NEW_LINE>try {<NEW_LINE>HttpClient client = HttpClient.Factory.<MASK><NEW_LINE>Command command = new Command(null, DriverCommand.NEW_SESSION(capabilities));<NEW_LINE... | createDefault().createClient(url); |
1,397,925 | private void sendListing(ChannelHandlerContext ctx, File dir, String dirPath) {<NEW_LINE>StringBuilder buf = new StringBuilder().append("<!DOCTYPE html>\r\n").append("<html><head><meta charset='utf-8' /><title>").append("Listing of: ").append(dirPath).append("</title></head><body>\r\n").append("<h3>Listing of: ").appen... | status(OK.toString()); |
1,355,651 | private Optional<DocumentOperationMessageV3> pullMessageFromRequest(FeederSettings settings, InputStream requestInputStream, BlockingQueue<OperationStatus> repliesFromOldMessages) {<NEW_LINE>while (true) {<NEW_LINE>Optional<String> operationId;<NEW_LINE>try {<NEW_LINE>operationId = streamReaderV3.getNextOperationId(req... | -> Exceptions.toMessageString(ioe)); |
1,118,993 | public static DoubleTensor of(Tensor<?> other) {<NEW_LINE>if (!(other instanceof NumericalTensor)) {<NEW_LINE>throw new UnsupportedOperationException(String.format("Only numerical tensor can ben cast to double tensor. tensor type: %s", other.getType()));<NEW_LINE>}<NEW_LINE>DataType otherDType = other.getType();<NEW_LI... | .getLong(), longs)); |
808,293 | public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {<NEW_LINE>String clientBeanName = getClientBeanName((ListableBeanFactory) registry);<NEW_LINE>if (clientBeanName != null) {<NEW_LINE>BeanDefinition beanDefinition = registry.getBeanDefinition(clientBeanName);<NEW_LINE>... | registry.registerBeanDefinition(BEAN_NAME, clientBeanDefinition); |
1,622,750 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | false), new UntagResourceResultJsonUnmarshaller()); |
516,771 | private void defineLayout() {<NEW_LINE><MASK><NEW_LINE>// Status<NEW_LINE>// --------------------------------<NEW_LINE>int r = 1;<NEW_LINE>builder.add(status.getLabel(), cst.xy(1, r));<NEW_LINE>builder.add(status.getField(), cst.xyw(3, r, 3));<NEW_LINE>// Tag<NEW_LINE>// -----------------------------------<NEW_LINE>r +... | final CellConstraints cst = new CellConstraints(); |
1,135,528 | private GraphQLFieldDefinition methodToFieldDefinition(Object module, Method method, String name, @Nullable String fullName, @Nullable Descriptor descriptor, SchemaOptions schemaOptions) {<NEW_LINE>method.setAccessible(true);<NEW_LINE>try {<NEW_LINE>ImmutableList<MethodMetadata> methodParameters = getMethodMetadata(met... | method.invoke(module, methodParameterValues); |
1,797,748 | private Mono<Response<BillingRoleAssignmentInner>> deleteByBillingAccountWithResponseAsync(String billingAccountName, String billingRoleAssignmentName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is req... | error(new IllegalArgumentException("Parameter billingAccountName is required and cannot be null.")); |
1,372,205 | public String confusionString() {<NEW_LINE>int maxLen = Integer.MIN_VALUE;<NEW_LINE>maxLen = Math.max(Event.EventType.EXPECTED.name().length(), maxLen);<NEW_LINE>maxLen = Math.max(Event.EventType.ANOMALOUS.name().length(), maxLen);<NEW_LINE>maxLen = Math.max(String.format(" %,d", getTrueNegatives()).length(), maxLen);<... | (countFormat, getFalsePositives())); |
448,488 | // try to read using JP2ForAndroid<NEW_LINE>private Bitmap readJPX(InputStream input, DecodeOptions options, DecodeResult result) throws IOException {<NEW_LINE>try {<NEW_LINE>Class.forName("com.gemalto.jp2.JP2Decoder");<NEW_LINE>} catch (ClassNotFoundException ex) {<NEW_LINE>throw new MissingImageReaderException("Canno... | COSDictionary parameters = result.getParameters(); |
1,547,666 | final StopEventsDetectionJobResult executeStopEventsDetectionJob(StopEventsDetectionJobRequest stopEventsDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopEventsDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.