idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
855,450 | private List<MBeanParameterInfo[]> extractMBeanParameterInfos(MBeanServerConnection pServer, JmxExecRequest pRequest, String pOperation) throws InstanceNotFoundException, ReflectionException, IOException {<NEW_LINE>try {<NEW_LINE>MBeanInfo mBeanInfo = pServer.getMBeanInfo(pRequest.getObjectName());<NEW_LINE>List<MBeanP... | add(opInfo.getSignature()); |
648,657 | final GetDistributionConfigurationResult executeGetDistributionConfiguration(GetDistributionConfigurationRequest getDistributionConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDistributionConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
834,674 | public final void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>DataContext dataContext = e.getDataContext();<NEW_LINE>final Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null)<NEW_LINE>return;<NEW_LINE>PsiDocumentManager.<MASK><NEW_LINE>final Editor editor = e.getData(CommonDataKe... | getInstance(project).commitAllDocuments(); |
1,591,423 | public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.userId, convLabelName("User Id"));<NEW_LINE>if (err... | .deleteFlag, convLabelName("Delete Flag")); |
1,092,358 | public K ceiling(K e) {<NEW_LINE>java.lang.Comparable<K> object = map.comparator() == null ? toComparable((K) e) : null;<NEW_LINE>Entry<K, V> node = <MASK><NEW_LINE>if (node != null && !map.checkUpperBound(node.key)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (node != null && !map.checkLowerBound(node.key)) {<NEW_L... | map.m.findFloorEntry(e); |
991,587 | protected void dynInit() throws Exception {<NEW_LINE>m_AD_Client_ID = Env.getAD_Client_ID(Env.getCtx());<NEW_LINE>c_AcctSchema_ID = DB.getSQLValue(null, "SELECT MIN(C_AcctSchema_ID) FROM C_AcctSchema WHERE AD_CLient_ID=?", m_AD_Client_ID);<NEW_LINE>MElementValue reEl = (MElementValue) MAcctSchemaGL.get(Env.getCtx(), c_... | " iscampaigndim='N' AND isglbudgetdim='N' AND islocfromdim='N' AND isloctodim='N' AND isorgtrxdim='N' AND isproductdim='N' AND isprojectdim='N' AND " + " isprojectphasedim='N' AND isprojecttaskdim='N' AND issalesregiondim='N' AND issubacctdim='N' AND isuser2dim='N' AND isuserelement2dim='N' AND isuserelement1dim... |
1,809,145 | // /////////////////////////<NEW_LINE>// ActionListener method //<NEW_LINE>// /////////////////////////<NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>Object source = e.getSource();<NEW_LINE>if (source == cancelButton) {<NEW_LINE>dispose();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// othe... | setPath(searchFilesField.getText()); |
1,430,649 | public void announceBackgroundJobServer(BackgroundJobServerStatus serverStatus) {<NEW_LINE>try (final Jedis jedis = getJedis();<NEW_LINE>final Transaction t = jedis.multi()) {<NEW_LINE>t.hset(backgroundJobServerKey(keyPrefix, serverStatus), BackgroundJobServers.FIELD_ID, serverStatus.getId().toString());<NEW_LINE>t.hse... | (serverStatus.getSystemFreeMemory())); |
286,150 | private int[] longestPath(TreeNode root) {<NEW_LINE>if (root == null) {<NEW_LINE>return new <MASK><NEW_LINE>}<NEW_LINE>int increasing = 1;<NEW_LINE>int decreasing = 1;<NEW_LINE>if (root.left != null) {<NEW_LINE>int[] left = longestPath(root.left);<NEW_LINE>if (root.val == root.left.val + 1) {<NEW_LINE>decreasing = left... | int[] { 0, 0 }; |
182,275 | private void sendEvent(Address subscriber, EventEnvelope eventEnvelope, int orderKey) {<NEW_LINE>String serviceName = eventEnvelope.getServiceName();<NEW_LINE>EventServiceSegment segment = getSegment(serviceName, true);<NEW_LINE>boolean sync = segment.incrementPublish() % eventSyncFrequency == 0;<NEW_LINE>if (sync) {<N... | setPacketType(Packet.Type.EVENT); |
1,050,674 | public BundleEntity postBundles(BundlesBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling postBundles");<NEW_LINE>}<NEW_LIN... | localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
1,270,303 | private boolean addChecksFromExplicitAccessRequiredAnnos(final AdminCommand command, final List<AccessCheckWork> accessChecks, final boolean isTaggable) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException {<NEW_LINE>boolean isAnnotated = false;<NEW_LINE>for (ClassLineageIterator cIt = new Clas... | c, command, accessChecks, isTaggable); |
1,493,500 | public static DetailsHandle createDetailsArea(final String[] detailsItems, JComponent chartContainer) {<NEW_LINE>final HTMLTextArea detailsArea = new HTMLTextArea();<NEW_LINE>detailsArea.setBorder(BorderFactory.createEmptyBorder(8, 10, 0, 10));<NEW_LINE>detailsArea.setText(createDetailsString(detailsItems, null));<NEW_... | detailsArea.select(selStart, selEnd); |
820,795 | private int scanIdentifier() {<NEW_LINE>final int start = position;<NEW_LINE>// Make sure first character is valid start character.<NEW_LINE>if (ch0 == '\\' && ch1 == 'u') {<NEW_LINE>skip(2);<NEW_LINE>final int ch = unicodeEscapeSequence(TokenType.IDENT);<NEW_LINE>if (!Character.isJavaIdentifierStart(ch)) {<NEW_LINE>er... | ch = unicodeEscapeSequence(TokenType.IDENT); |
959,730 | /*<NEW_LINE>* Adds a new file entry to the ZIP output stream.<NEW_LINE>*/<NEW_LINE>public static boolean addFileToZip(@Nonnull ZipOutputStream zos, @Nonnull File file, @Nonnull String relativeName, @Nullable Set<String> writtenItemRelativePaths, @Nullable FileFilter fileFilter, @Nonnull FileContentProcessor contentProc... | ? 0 : file.length(); |
131,236 | public static boolean checkParamsCompliance(JSONObject queryParamsObj, List<MockConfigRequestParams> mockConfigRequestParamList, boolean isAllMatch) {<NEW_LINE>if (isAllMatch) {<NEW_LINE>if (CollectionUtils.isNotEmpty(mockConfigRequestParamList)) {<NEW_LINE>for (MockConfigRequestParams params : mockConfigRequestParamLi... | String key = params.getKey(); |
977,365 | public void execute(UIManager.ViewHolder viewHolder) {<NEW_LINE>try {<NEW_LINE>NativeAdView nativeAdView = null;<NEW_LINE>MediaView mediaView = null;<NEW_LINE>MediaView adIconView = null;<NEW_LINE>if (adTag != -1) {<NEW_LINE>nativeAdView = (NativeAdView) viewHolder.get(adTag);<NEW_LINE>}<NEW_LINE>if (mediaViewTag != -1... | promise.reject("E_CANNOT_CAST", e); |
1,592,837 | public okhttp3.Call addAPIProductDocumentCall(String apiProductId, DocumentDTO documentDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = documentDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api-products/{apiProductId}/documents".replaceAll("\\{... | localVarHeaderParams.put("Accept", localVarAccept); |
531,397 | public void delete(Iterable<AllValueTypesTestRow> rows) {<NEW_LINE>List<byte[]> rowBytes = Persistables.persistAll(rows);<NEW_LINE>Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size() * 11);<NEW_LINE>cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("c0")));<NEW_LINE>cells.addAll(C... | t.delete(tableRef, cells); |
1,552,939 | private void printStats(CombinedStatistics combinedStatistics) {<NEW_LINE>MutationStatistics stats = combinedStatistics.getMutationStatistics();<NEW_LINE>final PrintStream ps = System.out;<NEW_LINE>ps.println<MASK><NEW_LINE>ps.println("- Mutators");<NEW_LINE>ps.println(StringUtil.separatorLine('='));<NEW_LINE>for (fina... | (StringUtil.separatorLine('=')); |
1,794,674 | protected void convertAgg(Blackboard bb, SqlSelect select, List<SqlNode> orderExprList) {<NEW_LINE>final boolean distinct = select.isDistinct();<NEW_LINE>assert bb.root != null : "precondition: child != null";<NEW_LINE>SqlNodeList groupList = select.getGroup();<NEW_LINE>SqlNodeList selectList = select.getSelectList();<... | bb.setRoot(input, false); |
389,789 | public static CommunicationIdentifierModel convert(CommunicationIdentifier identifier) throws IllegalArgumentException {<NEW_LINE>if (identifier == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (identifier instanceof CommunicationUserIdentifier) {<NEW_LINE>CommunicationUserIdentifier communicationUserIdentifier ... | ).toString()))); |
1,007,979 | // auto-generated, see spoon.generating.ReplacementVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtConditional(final spoon.reflect.code.CtConditional<T> conditional) {<NEW_LINE>replaceElementIfExist(conditional.getType(), new spoon.support.visitor.replace.ReplacementVisitor.CtTypedElementT... | .ReplacementVisitor.CtElementCommentsReplaceListener(conditional)); |
466,995 | protected void close(boolean closeWrapperOnly) throws SQLException {<NEW_LINE>TraceComponent tc = getTracer();<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "close");<NEW_LINE>// Make sure we only get closed once.<NEW_... | "state --> " + state.name()); |
674,396 | public boolean saveAs(final MapModel map) {<NEW_LINE>final JFileChooser chooser = getMindMapFileChooser();<NEW_LINE>File mapFile = map.getFile();<NEW_LINE>if (mapFile == null || mapFile.getParentFile() == null) {<NEW_LINE>File defaultFile = new File(getFileNameProposal(map) + org.freeplane.features.url.UrlManager.FREEP... | .getMapViewManager().updateMapViewName(); |
1,354,238 | protected HashMap<String, IntFunction<LocalDateTime>> initHolidayFuncs() {<NEW_LINE>HashMap<String, IntFunction<LocalDateTime>> holidays = new HashMap<>(super.initHolidayFuncs());<NEW_LINE>holidays.put("mayday", EnglishHolidayParserConfiguration::mayday);<NEW_LINE>holidays.put("yuandan", EnglishHolidayParserConfigurati... | put("arborday", EnglishHolidayParserConfiguration::treePlantDay); |
1,748,787 | public boolean pay(Ability ability, Game game, Ability source, UUID controllerId, boolean noMana, Cost costToPay) {<NEW_LINE>Player player = game.getPlayer(controllerId);<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>paid = false;<NEW_LINE>if (player.getHand().count(filter, game) > 0 && play... | TargetCardInHand target = new TargetCardInHand(filter); |
814,760 | private void registerModal(String id, String title, String... lines) {<NEW_LINE>contents.append("<div id=\"").append(id).append("\" uk-modal>\n").append(" <div class=\"uk-modal-dialog uk-modal-body\">\n").append(" <h2 class=\"uk-modal-title\">").append(title).append("</h2>\n");<NEW_LINE>for (String line : lin... | (" </div>\n").append("</div>\n"); |
1,302,612 | protected void blurObjectIntoView(Graphics2D gView, BufferedImage frame, Nozzle nozzle, Location l) {<NEW_LINE>// Blur according to Z coordinate<NEW_LINE>AffineTransform tx = gView.getTransform();<NEW_LINE>gView.setTransform(new AffineTransform());<NEW_LINE>double distanceMm = Math.abs(l.subtract(getSimulatedLocation()... | .Millimeters).getZ()); |
1,034,440 | public Result isConditionMet(Index index, ClusterState clusterState) {<NEW_LINE>IndexMetadata followerIndex = clusterState.metadata().index(index);<NEW_LINE>if (followerIndex == null) {<NEW_LINE>// Index must have been since deleted, ignore it<NEW_LINE>logger.debug("[{}] lifecycle action for index [{}] executed but ind... | return new Result(true, null); |
1,282,540 | final void loadFile(final AbstractFile file) {<NEW_LINE>ensureInSwingThread();<NEW_LINE>if (!isInited()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>final double panelHeight = fxPanel.getHeight();<NEW_LINE>Platform.runLater(() -> {<NEW_LINE>if (readImageFileTask != null) {<NEW_LINE>readImageFileTask.ca... | double panelWidth = fxPanel.getWidth(); |
19,700 | public void onEnd(AttributesBuilder attributes, Context context, String s, @Nullable Object result, @Nullable Throwable error) {<NEW_LINE>if (result == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Unwrap ListenableFuture (if present)<NEW_LINE>if (result instanceof ListenableFuture) {<NEW_LINE>try {<NEW_LINE>result =... | Status status = message.getStatus(); |
1,284,111 | protected static BigInteger calculateY_FF3(BlockCipher cipher, BigInteger bigRadix, byte[] T, int wOff, int round, short[] AB) {<NEW_LINE>// ii.<NEW_LINE>byte[] P = new byte[BLOCK_SIZE];<NEW_LINE>Pack.intToBigEndian(round, P, 0);<NEW_LINE>xor(T, wOff, P, 0, 4);<NEW_LINE>BigInteger numAB = num(bigRadix, AB);<NEW_LINE>by... | bytesAB = BigIntegers.asUnsignedByteArray(numAB); |
325,611 | public void marshall(CreateProjectRequest createProjectRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createProjectRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createProjectRequest.get... | createProjectRequest.getEnvironment(), ENVIRONMENT_BINDING); |
1,623,932 | public MFAOptionType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MFAOptionType mFAOptionType = new MFAOptionType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | class).unmarshall(context)); |
1,758,388 | private <T extends Metric> AsyncFuture<WriteMetric> writeOne(final String columnFamily, Series series, BigtableDataClient client, T p, Function<T, ByteString> serializer) throws IOException {<NEW_LINE>final long timestamp = p.getTimestamp();<NEW_LINE>final long base = base(timestamp);<NEW_LINE>final long offset = offse... | Builder builder = Mutations.builder(); |
1,199,726 | public <T> T putAndLockProject(Project project, ProjectLockAction<T> func) throws ResourceConflictException {<NEW_LINE>return transaction((handle, dao) -> {<NEW_LINE>StoredProject proj;<NEW_LINE>if (dao instanceof H2Dao) {<NEW_LINE>((H2Dao) dao).upsertAndLockProject(siteId, project.getName());<NEW_LINE>proj = dao.getPr... | (handle, siteId), proj); |
276,838 | public Resolution unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Resolution resolution = new Resolution();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken()... | int originalDepth = context.getCurrentDepth(); |
1,046,807 | public Object put(HttpServletRequest request, HttpServletResponse response) throws DdlException {<NEW_LINE>checkFromValidFe(request);<NEW_LINE>String portStr = request.getParameter(PORT);<NEW_LINE>// check port to avoid SSRF(Server-Side Request Forgery)<NEW_LINE>if (Strings.isNullOrEmpty(portStr)) {<NEW_LINE>return Res... | = Storage.IMAGE + "." + versionStr; |
1,293,058 | // guarded by myLock<NEW_LINE>private void initMetricsIfNeeded() {<NEW_LINE>if (myPlainSpaceWidth >= 0)<NEW_LINE>return;<NEW_LINE>Font font = myEditor.getColorsScheme().getFont(EditorFontType.PLAIN);<NEW_LINE>FontMetrics fm = FontInfo.getFontMetrics(font, myFontRenderContext);<NEW_LINE>float width = FontLayoutService.g... | )) + metrics.getLeading(); |
973,098 | public ApiReturn doFilter(String fullyName) {<NEW_LINE>if (TYPE_SET.stream().anyMatch(fullyName::startsWith)) {<NEW_LINE>ApiReturn apiReturn = new ApiReturn();<NEW_LINE>if (fullyName.contains("<")) {<NEW_LINE>String[] strings = DocClassUtil.getSimpleGicName(fullyName);<NEW_LINE>String newFullName = strings[0];<NEW_LINE... | newFullName.indexOf("<"))); |
1,696,047 | final DBSubnetGroup executeModifyDBSubnetGroup(ModifyDBSubnetGroupRequest modifyDBSubnetGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBSubnetGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.star... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,687,011 | private boolean doOutputStreamEncrypt07() throws Exception {<NEW_LINE>if (StringUtils.isEmpty(writeWorkbookHolder.getPassword()) || !ExcelTypeEnum.XLSX.equals(writeWorkbookHolder.getExcelType())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (writeWorkbookHolder.getFile() != null) {<NEW_LINE>return false;<NEW_LINE>}<... | .getWorkbook().close(); |
1,066,642 | public void enableUARTPassThrough(int baudrate, boolean persist) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>mPacketHandler.sendByte(mCommandsProto.PASS_UART);<NEW_LINE>if (persist)<NEW_LINE>mPacketHandler.sendByte(1);<NEW_LINE>else<NEW_LINE>mPacketHandler.sendByte(0);<NEW_LINE>mPacketHandler.sendInt((int) Math.round(((6... | mPacketHandler.sendByte(mCommandsProto.PASSTHROUGHS); |
1,675,649 | public void handle(JsonNode packet) {<NEW_LINE>if (!packet.hasNonNull("user_id")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long userId = packet.get("user_id").asLong();<NEW_LINE>if (packet.hasNonNull("guild_id")) {<NEW_LINE>handleServerVoiceChannel(packet, userId);<NEW_LINE>} else if (packet.hasNonNull("channel_id")) {<N... | optionalChannel = api.getVoiceChannelById(channelId); |
566,387 | final CreateConfigurationProfileResult executeCreateConfigurationProfile(CreateConfigurationProfileRequest createConfigurationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigurationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,030,141 | public static String replace(@NonNls @Nonnull final String text, @NonNls @Nonnull final String oldS, @NonNls @Nonnull final String newS, final boolean ignoreCase) {<NEW_LINE>if (text.length() < oldS.length())<NEW_LINE>return text;<NEW_LINE>StringBuilder newText = null;<NEW_LINE>int i = 0;<NEW_LINE>while (i < text.lengt... | i, text.length()); |
1,543,067 | public String toEnumVarName(String value, String datatype) {<NEW_LINE>// our enum var names are keys in a python dict, so change spaces to underscores<NEW_LINE>if (value.length() == 0) {<NEW_LINE>return "EMPTY";<NEW_LINE>}<NEW_LINE>String intPattern = "^[-\\+]?\\d+$";<NEW_LINE>String floatPattern = "^[-\\+]?\\d+\\.\\d+... | usedValue.replaceAll("[_]$", ""); |
1,297,322 | private SlimAssertion callFunctionInRow(ScenarioTable scenario, String functionName, int row) throws SyntaxError {<NEW_LINE>int <MASK><NEW_LINE>String name = Disgracer.disgraceMethodName(functionName);<NEW_LINE>if (!scenario.getOutputs().contains(name)) {<NEW_LINE>throw new SyntaxError(String.format("The argument %s is... | col = funcStore.getColumnNumber(functionName); |
685,918 | public void configurarCores() {<NEW_LINE>if (Configuracoes.getInstancia().isTemaDark()) {<NEW_LINE>jPanel1.setBackground(ColorController.FUNDO_BOTOES_EXPANSIVEIS);<NEW_LINE>if (WeblafUtils.weblafEstaInstalado()) {<NEW_LINE>WeblafUtils.configurarBotao(botaoRetrair, ColorController.FUNDO_BOTOES_EXPANSIVEIS, ColorControll... | COR_DESTAQUE, ColorController.COR_LETRA, 5); |
612,103 | public NoteEncryption.Encryption.EncPlaintext encode() {<NEW_LINE>ByteBuffer <MASK><NEW_LINE>buffer.putLong(0, value);<NEW_LINE>byte[] valueLong = buffer.array();<NEW_LINE>for (int i = 0; i < valueLong.length / 2; i++) {<NEW_LINE>byte temp = valueLong[i];<NEW_LINE>valueLong[i] = valueLong[valueLong.length - 1 - i];<NEW... | buffer = ByteBuffer.allocate(ZC_V_SIZE); |
1,718,502 | private void run(String... args) {<NEW_LINE>TreeMap<Integer, String> map = getProcesses();<NEW_LINE>System.out.println("Processes:");<NEW_LINE>System.out.println(map);<NEW_LINE>if (args.length == 0) {<NEW_LINE>System.out.println("Kill a Java process");<NEW_LINE>System.out.println("Usage: java " + getClass().getName() +... | println("Process " + processName + " not found"); |
346,852 | public static void resolve(String[] sourceUnits, String[] encodings, String[] bindingKeys, FileASTRequestor requestor, int apiLevel, Map options, List classpaths, int flags, IProgressMonitor monitor) {<NEW_LINE>INameEnvironmentWithProgress environment = null;<NEW_LINE>CancelableProblemFactory problemFactory = null;<NEW... | ), problemFactory, subMonitor, false); |
741,735 | public static void main(String[] args) throws PcapNativeException, NotOpenException {<NEW_LINE>String filter = args.length != 0 ? args[0] : "";<NEW_LINE>System.out.println(COUNT_KEY + ": " + COUNT);<NEW_LINE>System.out.println(READ_TIMEOUT_KEY + ": " + READ_TIMEOUT);<NEW_LINE>System.out.println(SNAPLEN_KEY + ": " + SNA... | "ps_recv: " + ps.getNumPacketsReceived()); |
1,541,176 | final DescribeJobResult executeDescribeJob(DescribeJobRequest describeJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,573,001 | public static void main(String[] args) {<NEW_LINE>Exercise41_OddLengthDirectedCycle oddLengthDirectedCycle = new Exercise41_OddLengthDirectedCycle();<NEW_LINE>Digraph digraph1 = new Digraph(4);<NEW_LINE>digraph1.addEdge(0, 1);<NEW_LINE>digraph1.addEdge(1, 2);<NEW_LINE>digraph1.addEdge(2, 3);<NEW_LINE>digraph1.addEdge(3... | digraph3.addEdge(9, 4); |
1,731,598 | public void run() {<NEW_LINE>org.bitcoinj.core.Context.propagate(Constants.CONTEXT);<NEW_LINE>while (running.get()) {<NEW_LINE>try (// start a blocking call, and return only on success or exception<NEW_LINE>final BluetoothSocket socket = listeningSocket.accept();<NEW_LINE>final DataInputStream is = new DataInputStream(... | log.info("cannot decode message received via bluetooth", x); |
113,872 | public void doApplyInformationToEditor() {<NEW_LINE>final Long stamp = myEditor.getUserData(LAST_TIME_INDENTS_BUILT);<NEW_LINE>if (stamp != null && stamp.longValue() == nowStamp())<NEW_LINE>return;<NEW_LINE>List<RangeHighlighter> oldHighlighters = myEditor.getUserData(INDENT_HIGHLIGHTERS_IN_EDITOR_KEY);<NEW_LINE>final ... | myEditor.putUserData(INDENT_HIGHLIGHTERS_IN_EDITOR_KEY, newHighlighters); |
732,953 | private void readBandType3And4(BitReader _in, float[] coef, int idx, int g, int sfb, float[] vq, VLC vlc) {<NEW_LINE>int g_len = group_len[g];<NEW_LINE>int cfo = swbOffset[sfb];<NEW_LINE>int off_len = swbOffset[sfb + 1] - swbOffset[sfb];<NEW_LINE>for (int group = 0; group < g_len; group++, cfo += 128) {<NEW_LINE>int cf... | 0 : _in.readNBit(nnz); |
118,206 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.fine("");<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>WWindowStatus ws = WWindowStatus.get(request);<NEW_LINE>if (ws == null) {<NEW_LINE>WebUtil.createTimeoutPage(request, respo... | ().length() > 0; |
1,397,973 | public UpdateVocabularyFilterResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateVocabularyFilterResult updateVocabularyFilterResult = new UpdateVocabularyFilterResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | JsonToken token = context.getCurrentToken(); |
764,181 | public void validateCreateTable(SqlNode sqlCreateTable) {<NEW_LINE>// Validate all fields<NEW_LINE>SqlNode node = sqlCreateTable;<NEW_LINE>List<RelDataType> relDataTypes = new ArrayList<>();<NEW_LINE>List<String> fieldList = new ArrayList<>();<NEW_LINE>final SqlCreateTable sqlCreateTbNode = (SqlCreateTable) node;<NEW_L... | = SqlTypeName.BLOB.getName(); |
1,797,267 | void propagate() {<NEW_LINE>if (this.parent != null) {<NEW_LINE>// Propagate the lowest death level of any descendants:<NEW_LINE>if (this.propagatedLowestChildSplitLevel == Double.MAX_VALUE) {<NEW_LINE>this.propagatedLowestChildSplitLevel = this.splitLevel;<NEW_LINE>}<NEW_LINE>if (this.propagatedLowestChildSplitLevel <... | .parent.propagatedStability += this.propagatedStability; |
689,194 | void swapIndex(int i, int j) {<NEW_LINE><MASK><NEW_LINE>byte tmpByte = this.y[i];<NEW_LINE>this.y[i] = this.y[j];<NEW_LINE>this.y[j] = tmpByte;<NEW_LINE>double tmp = this.gradient[i];<NEW_LINE>this.gradient[i] = this.gradient[j];<NEW_LINE>this.gradient[j] = tmp;<NEW_LINE>tmpByte = this.alphaStatus[i];<NEW_LINE>this.alp... | kernel.swapIndex(i, j); |
1,400,785 | public List<JavaFile> generate(ViewInterfaceInfo viewInterfaceInfo) {<NEW_LINE><MASK><NEW_LINE>TypeName nameWithTypeVariables = viewInterfaceInfo.getNameWithTypeVariables();<NEW_LINE>TypeSpec.Builder classBuilder = TypeSpec.classBuilder(viewName.simpleName() + MvpProcessor.VIEW_STATE_SUFFIX).addModifiers(Modifier.PUBLI... | ClassName viewName = viewInterfaceInfo.getName(); |
30,893 | public ResponseEntity<?> index(HttpServletRequest request) {<NEW_LINE>Enumeration enumeration = request.getParameterNames();<NEW_LINE>Map<String, String[]> parameters = request.getParameterMap();<NEW_LINE>Map<String, String> response = new HashMap<>();<NEW_LINE>if (!parameters.containsKey(KEY_ID_PARAM_KEY) || !paramete... | response.put("sig", signature); |
848,764 | public ResponseEntity<Resource> stream(Authentication authentication, @RequestParam(required = false) Integer playlist, @RequestParam(required = false) String format, @RequestParam(required = false) String suffix, @RequestParam Optional<Integer> maxBitRate, @RequestParam Optional<Integer> id, @RequestParam Optional<Str... | getUserByName(authentication.getName()); |
419,986 | public okhttp3.Call testClassnameCall(Client body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>basePath = l... | localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); |
847,838 | private void runAssertionSelectNested(RegressionEnvironment env, String typename, FunctionSendEvent send, Function<Object, Object> optionalValueConversion, Pair[] tests, Class expectedPropertyType, RegressionPath path) {<NEW_LINE>String stmtText = "@name('s0') select " + " item.nested?.nestedValue as n1, " + " exists(i... | + " item.nested?.nestedNested?.nestedNestedValue? as n6, " + " exists(item.nested?.nestedNested?.nestedNestedValue?) as exists_n6 " + " from " + typename; |
188,493 | final DeletePortfolioResult executeDeletePortfolio(DeletePortfolioRequest deletePortfolioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePortfolioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | invoke(request, responseHandler, executionContext); |
1,561,014 | protected void deactivate(ComponentContext context) {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>// Block the progress of deactivate so that session manager is able to access the cache until it finishes stopping applications.<NEW_LINE>// The approach of blocking is copied from Databas... | TimeUnit.MILLISECONDS.sleep(100); |
695,751 | private void zip(ZipOutputStream out, File root, File file, TransferStatus status, HttpRange range) throws IOException {<NEW_LINE>// Exclude all hidden files starting with a "."<NEW_LINE>if (file.getName().startsWith(".")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String zipName = file.getCanonicalPath().substring(root.ge... | ZipEntry zipEntry = new ZipEntry(zipName); |
746,453 | public static boolean handleLocalCommands(UUID chatId, String text) {<NEW_LINE>final StringTokenizer st = new StringTokenizer(text.trim());<NEW_LINE>final int tokens = st.countTokens();<NEW_LINE>if (tokens == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final String serverAddress = SessionHandler.getSession().getSer... | final String ignoreTarget = getRemainingTokens(st); |
1,788,587 | public PrioritySearcher<DBIDRef> search(DBIDRef query) {<NEW_LINE>off = 0;<NEW_LINE>threshold = Double.POSITIVE_INFINITY;<NEW_LINE>int x = ids.getOffset(query);<NEW_LINE>int pos = triangleSize(x);<NEW_LINE>// Initialize ids:<NEW_LINE>idx[0] = x;<NEW_LINE>for (int y = 0; y < x; y++) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE... | idx[y + 1] = y; |
1,225,700 | private void _notWriteDefault(MethodVisitor mw, FieldInfo property, Context context, Label _end) {<NEW_LINE>if (context.writeDirect) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Label elseLabel = new Label();<NEW_LINE>mw.visitVarInsn(ILOAD, context.var("notWriteDefaultValue"));<NEW_LINE>mw.visitJumpInsn(IFEQ, elseLabel);<NEW... | , context.var("short")); |
145,882 | public static void transformPermanent(Permanent permanent, Card sourceCard, Game game, Ability source) {<NEW_LINE>if (sourceCard == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>permanent.setTransformed(true);<NEW_LINE>permanent.setName(sourceCard.getName());<NEW_LINE>permanent.getColor(game).setColor(sourceCard.getColo... | permanent.copySubTypesFrom(game, sourceCard); |
1,640,200 | public WebDriver create(String name, DesiredCapabilities capabilities, String seleniumHost) {<NEW_LINE>RemoteWebDriver driver = null;<NEW_LINE>if (seleniumHost == null) {<NEW_LINE>seleniumHost = Configuration.getSeleniumUrl();<NEW_LINE>}<NEW_LINE>if (isCapabilitiesEmpty(capabilities)) {<NEW_LINE>capabilities = getCapab... | EventFiringSeleniumCommandExecutor(new URL(seleniumHost)); |
1,523,351 | private void calculateAdditionalSpaceForYAxisTextWidth() {<NEW_LINE>double maxWidth = 0;<NEW_LINE>double valueWidth;<NEW_LINE>if (axisConfig.isxDescription()) {<NEW_LINE>// y-axis contains values<NEW_LINE>if (axisConfig.drawValueAxisMarkerText()) {<NEW_LINE>for (Double v : valuesShownOnAxisSorted) {<NEW_LINE>valueWidth... | .setBorderX((int) adjustValue); |
674,297 | public static OneWireBindingConfig createOneWireDeviceProperty(Item pvItem, String pvBindingConfig) throws BindingConfigParseException {<NEW_LINE>logger.debug("createOneWireDeviceProperty: {} - bindingConfig:{}", <MASK><NEW_LINE>OneWireBindingConfig lvNewBindingConfig = null;<NEW_LINE>if (OneWireClearCacheControlBindin... | pvItem.getName(), pvBindingConfig); |
537,190 | public void marshall(AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails awsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argume... | e.getMessage(), e); |
502,554 | private SortedSetEntry readSortedSet(IndexInput meta) throws IOException {<NEW_LINE>SortedSetEntry entry = new SortedSetEntry();<NEW_LINE>byte multiValued = meta.readByte();<NEW_LINE>switch(multiValued) {<NEW_LINE>case // singlevalued<NEW_LINE>0:<NEW_LINE><MASK><NEW_LINE>return entry;<NEW_LINE>case // multivalued<NEW_L... | entry.singleValueEntry = readSorted(meta); |
328,665 | private ImmutableMap<String, JdbcTable> computeTables() {<NEW_LINE>Connection connection = null;<NEW_LINE>ResultSet resultSet = null;<NEW_LINE>try {<NEW_LINE>connection = dataSource.getConnection();<NEW_LINE>DatabaseMetaData metaData = connection.getMetaData();<NEW_LINE>resultSet = metaData.getTables(catalog, schema, n... | schemaName = resultSet.getString(2); |
545,184 | protected void initializeCapacities(MkAppEntry exampleLeaf) {<NEW_LINE>// exampleLeaf.getParentDistance().externalizableSize();<NEW_LINE>int distanceSize = ByteArrayUtil.SIZE_DOUBLE;<NEW_LINE>// overhead = index(4), numEntries(4), id(4), isLeaf(0.125)<NEW_LINE>double overhead = 12.125;<NEW_LINE>if (getPageSize() - over... | "\nLeaf Capacity: " + (leafCapacity - 1)); |
139,012 | private void drawLabel(Canvas canvas, Line line, PointValue pointValue, float rawX, float rawY, float offset) {<NEW_LINE>final Rect contentRect = computator.getContentRectMinusAllMargins();<NEW_LINE>final int numChars = line.getFormatter().formatChartValue(labelBuffer, pointValue);<NEW_LINE>if (numChars == 0) {<NEW_LIN... | - offset - labelHeight - labelMargin * 2; |
203,925 | public Controller createController() {<NEW_LINE>try {<NEW_LINE>Controller controller = new Controller(applicationResourceController);<NEW_LINE>Controller.setCurrentController(controller);<NEW_LINE>applicationResourceController.init();<NEW_LINE>LogInitializer.createLogger();<NEW_LINE>ApplicationResourceController.showSy... | final ScannerController scannerController = new ScannerController(); |
791,157 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create table MyTable(k1 string primary key, c1 int);\n" + "insert into MyTable select theString as k1, intPrimitive as c1 from SupportBean;\n";<NEW_LINE>env.compileDeploy(epl, path);<NEW_LINE... | env.compileDeploy(epl, path); |
238,527 | private void handleSearchResult(SearchResult sr) {<NEW_LINE>final int hitCountTotal = sr.getTotalHitCount();<NEW_LINE>final int hitCount = sr.getHitCount();<NEW_LINE>if (log.isLoggable(Level.FINE)) {<NEW_LINE>log.log(Level.FINE, "Got SearchResult with " + hitCountTotal + " in total and " + hitCount + " hits in real for... | ) + query.getHits()); |
1,424,493 | public Request<RequestEnvironmentInfoRequest> marshall(RequestEnvironmentInfoRequest requestEnvironmentInfoRequest) {<NEW_LINE>if (requestEnvironmentInfoRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RequestEnvironmentInfoRequest> reques... | <RequestEnvironmentInfoRequest>(requestEnvironmentInfoRequest, "AWSElasticBeanstalk"); |
56,135 | private Scanner createScanner(Locale loc) {<NEW_LINE>final Scanner s = new Scanner(new String[] { loc.toString() }, false);<NEW_LINE>s.setFirstChars("+-0123456789,.");<NEW_LINE>final DateFormat shortDateTimeFormat = SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, loc);<NEW_LINE>if (shortDateTim... | (), loc, "short date format")); |
731,056 | public void onChapterLoadSuccess(List<Chapter> list) {<NEW_LINE>hideProgressBar();<NEW_LINE>if (mPresenter.getComic().getTitle() != null && mPresenter.getComic().getCover() != null) {<NEW_LINE>mDetailAdapter.clear();<NEW_LINE>mDetailAdapter.addAll(list);<NEW_LINE>mDetailAdapter.notifyDataSetChanged();<NEW_LINE>}<NEW_LI... | FirebaseAnalytics.Param.SUCCESS, true); |
436,168 | public OBinaryResponse executeCreateDatabase(OCreateDatabaseRequest request) {<NEW_LINE>if (server.existsDatabase(request.getDatabaseName()))<NEW_LINE>throw new ODatabaseException("Database named '" + request.getDatabaseName() + "' already exists");<NEW_LINE>if (request.getBackupPath() != null && !"".equals(request.get... | ), request.getStorageMode()); |
466,546 | //<NEW_LINE>public // to this analysis of this method (which depends on context)<NEW_LINE>// to this analysis of this method (which depends on context)<NEW_LINE>boolean // to this analysis of this method (which depends on context)<NEW_LINE>isObjectLocal(Value local) {<NEW_LINE>EquivalentValue source = new CachedEquival... | local + " is Local (LIKE ALL VALUES) in " + sm + " "); |
1,088,085 | private void processG1GCPhase(GCLogTrace trace, String line) {<NEW_LINE>String phase = trace.getGroup(1);<NEW_LINE>if ("Code Root Fixup".equals(phase))<NEW_LINE>((G1Young) forwardReference).setCodeRootFixupDuration(trace.getDoubleGroup(2));<NEW_LINE>else if ("Code Root Migration".equals(phase))<NEW_LINE>((G1Young) forw... | (trace.getDoubleGroup(2)); |
119,778 | //<NEW_LINE>@Override<NEW_LINE>protected void visitAnnotation(final AnnotationNode node) {<NEW_LINE>ClassNode type = node.getClassNode();<NEW_LINE>VariableScope scope = scopes.getLast();<NEW_LINE>TypeLookupResult noLookup = new TypeLookupResult(type, type, node, TypeConfidence.EXACT, scope);<NEW_LINE>VisitStatus status... | util.ArrayDeque<>(scopes); |
22,406 | public static Collection Collection(Context context, @NonNull String path, boolean server, boolean log, @NonNull Time time) {<NEW_LINE>assert (path.endsWith(".anki2") || path.endsWith(".anki21"));<NEW_LINE>File dbFile = new File(path);<NEW_LINE>boolean create = !dbFile.exists();<NEW_LINE>DroidBackend backend = <MASK><N... | DroidBackendFactory.getInstance(useBackend()); |
321,739 | private boolean startAuthActivityForResult(Activity activity) {<NEW_LINE>final PackageManager pm = activity.getPackageManager();<NEW_LINE>final String packageName = availableSSOPackage(pm);<NEW_LINE>if (packageName == null) {<NEW_LINE>Twitter.getLogger().e(TwitterCore.TAG, "SSO app signature check failed", null);<NEW_L... | = new ComponentName(packageName, SSO_CLASS_NAME); |
1,225,898 | private Component buildToolbar() {<NEW_LINE>JXToolBar toolbar = UISupport.createToolbar();<NEW_LINE>methodCombo = new JComboBox(RestRequestInterface.HttpMethod.getMethods());<NEW_LINE>methodCombo.setSelectedItem(getModelItem().getMethod());<NEW_LINE>methodCombo.setToolTipText("Set desired HTTP method");<NEW_LINE>method... | toolbar.addLabeledFixed("HTTP method", methodCombo); |
1,429,598 | public BooleanExpr toBooleanExpr(Configuration c, CiscoConfiguration cc, Warnings w) {<NEW_LINE>Disjunction d = new Disjunction();<NEW_LINE>List<BooleanExpr> disjuncts = d.getDisjuncts();<NEW_LINE>for (String listName : _listNames) {<NEW_LINE>Object list;<NEW_LINE>Ip6AccessList ipAccessList = null;<NEW_LINE>Route6Filte... | add(new MatchIp6AccessList(listName)); |
1,817,087 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public JSONArray autoComplete(@FormDataParam(CoordConsts.SVC_KEY_API_KEY) String apiKey, @FormDataParam(CoordConsts.SVC_KEY_VERSION) String clientVersion, @FormDataParam(CoordConsts.SVC_KEY_NETWORK_NAME) String networkName, /* Optional: not needed for some completions */<N... | _logger.errorf("WMS:autoComplete exception: %s", stackTrace); |
1,013,505 | public ListenerResult listen(WorkflowContext context) {<NEW_LINE>GroupResourceProcessForm form = (GroupResourceProcessForm) context.getProcessForm();<NEW_LINE>String groupId = form.getInlongGroupId();<NEW_LINE><MASK><NEW_LINE>log.info("begin to execute UpdateGroupCompleteListener for groupId={}, operateType={}", groupI... | GroupOperateType operateType = form.getGroupOperateType(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.