idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,547,821 | public void fieldEofResponse(byte[] headerNull, List<byte[]> fieldsNull, List<FieldPacket> fieldPackets, byte[] eofNull, boolean isLeft, @NotNull AbstractService service) {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>session.setHandlerStart(this);<NEW_LINE>if (terminate.get())<NEW_LINE>return;<NEW_LINE>this.fieldPack... | this.selItems.add(tmpItem); |
442,766 | final DeleteAliasResult executeDeleteAlias(DeleteAliasRequest deleteAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteAliasRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
100,796 | public int decodeKanji(PackedBits8 data, int bitLocation, int lengthBits) {<NEW_LINE>int length = data.read(bitLocation, lengthBits, true);<NEW_LINE>bitLocation += lengthBits;<NEW_LINE>byte[] rawdata <MASK><NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>if (data.size < bitLocation + 13) {<NEW_LINE>if (verbose != ... | = new byte[length * 2]; |
27,815 | public com.squareup.okhttp.Call tagsGetAsync(Integer limit, Integer offset, String xWSO2Tenant, String accept, String ifNoneMatch, final ApiCallback<TagList> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progr... | onDownloadProgress(bytesRead, contentLength, done); |
1,118,988 | public static String decodeString(String source) throws URISyntaxException {<NEW_LINE>if (source == null) {<NEW_LINE>return source;<NEW_LINE>}<NEW_LINE>int i;<NEW_LINE>// most strings not encoded, so prevent extra objects and work.<NEW_LINE>if ((i = source.indexOf(QUOTE_MARKER)) == -1) {<NEW_LINE>return source;<NEW_LIN... | decoded.toByteArray(), "UTF8"); |
684,283 | public static ProcessBuilder transformTranscodingVariables(String command, Map<String, String> vars) {<NEW_LINE>String[] splitCommand = StringUtil.split(command);<NEW_LINE>List<String> kl = new ArrayList<>(vars.size());<NEW_LINE>List<String> vl = new ArrayList<>(vars.size());<NEW_LINE>vars.entrySet().stream().filter(e ... | toArray(new String[0]); |
1,478,633 | public void loadAcceleratorPresets(final InputStream in) {<NEW_LINE>final Properties prop = new Properties();<NEW_LINE>try {<NEW_LINE>prop.load(in);<NEW_LINE>for (final Entry<Object, Object> property : new ArrayList<Entry<Object, Object>>(prop.entrySet())) {<NEW_LINE>String shortcutKey = <MASK><NEW_LINE>final String ke... | (String) property.getKey(); |
116,073 | private static void makeEmoticonPopupText(CachedImage<Emoticon> emoticonImage, boolean showImage, MyPopup popup, Element element) {<NEW_LINE>Debugging.println("emoteinfo", "makePopupText %s", emoticonImage.getObject());<NEW_LINE>Emoticon emote = emoticonImage.getObject();<NEW_LINE>EmotesetInfo info = TwitchEmotesApi.ap... | , showImage, result, popup)); |
599,947 | final public Diagram createSystem(ThemeStyle style, UmlSource source, ISkinSimple skinParam) {<NEW_LINE>final IteratorCounter2 it = source.iterator2();<NEW_LINE>final StringLocated startLine = it.next();<NEW_LINE>if (StartUtils.isArobaseStartDiagram(startLine.getString()) == false)<NEW_LINE>throw new UnsupportedOperati... | ), it.getTrace()); |
1,016,554 | private void endVisitMethodCode(final boolean unboxObject) {<NEW_LINE>if (this.operandsCount > 0) {<NEW_LINE>loadEnv();<NEW_LINE>if (unboxObject) {<NEW_LINE>this.mv.visitMethodInsn(INVOKEVIRTUAL, OBJECT_OWNER, "getValue", "(Ljava/util/Map;)Ljava/lang/Object;");<NEW_LINE>} else {<NEW_LINE>this.mv.visitMethodInsn(INVOKEV... | this.mv.visitInsn(ACONST_NULL); |
864,503 | public com.amazonaws.services.imagebuilder.model.InvalidVersionNumberException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.imagebuilder.model.InvalidVersionNumberException invalidVersionNumberException = new com.amazonaws.services.imagebuilder.model.InvalidV... | int originalDepth = context.getCurrentDepth(); |
1,793,680 | public void marshall(ParameterConstraints parameterConstraints, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (parameterConstraints == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(parameterConstraints.get... | parameterConstraints.getMinLength(), MINLENGTH_BINDING); |
1,423,846 | public void run() {<NEW_LINE>try {<NEW_LINE>while (currentPutCount.get() < totalPutCount) {<NEW_LINE>long startTimeInMs = SystemTime.getInstance().milliseconds();<NEW_LINE>int burstCount = threadLocalRandom.nextInt(maxParallelRequest) + 1;<NEW_LINE>logger.info("PutThread producing {} times ", burstCount);<NEW_LINE>fina... | currentPutCount.get(), totalPutCount); |
739,705 | void updateContentGrid() {<NEW_LINE>contentGrid.getColumnConstraints().clear();<NEW_LINE>contentGrid.getChildren().clear();<NEW_LINE>int colsNumber = daysPerWeek + (datePicker.isShowWeekNumbers() ? 1 : 0);<NEW_LINE>ColumnConstraints columnConstraints = new ColumnConstraints();<NEW_LINE>columnConstraints.setPercentWidth... | getColumnConstraints().add(columnConstraints); |
1,009,729 | public static RecordingProperties fromJson(JsonObject json) {<NEW_LINE>Boolean hasVideoAux = true;<NEW_LINE>Recording.OutputMode outputModeAux = null;<NEW_LINE>RecordingLayout recordingLayoutAux = null;<NEW_LINE>Builder builder = new RecordingProperties.Builder();<NEW_LINE>if (json.has("name")) {<NEW_LINE>builder.name(... | ("resolution").getAsString()); |
1,379,137 | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {<NEW_LINE>if (depth == 0) {<NEW_LINE>if (!"insane".equals(qName))<NEW_LINE>throw new SAXException("format");<NEW_LINE>} else if (depth != 1) {<NEW_LINE>throw new SAXException("format");<NEW_LINE>} else {<... | (name, getIdFromString(to)); |
1,429,570 | protected boolean add(@NotNull GoNamedElement o) {<NEW_LINE>PsiElement commonParent = PsiTreeUtil.findCommonParent(o, myOrigin);<NEW_LINE>if (commonParent instanceof GoRangeClause || commonParent instanceof GoTypeSwitchGuard)<NEW_LINE>return true;<NEW_LINE>PsiElement p = o.getParent();<NEW_LINE>boolean inVarOrRange = P... | class, GoRecvStatement.class) != null; |
1,461,288 | protected static List<Mat> extractMask(Mat target, boolean onlyChannel4) {<NEW_LINE>List<Mat> extracted = new ArrayList<>();<NEW_LINE>Mat mask = new Mat();<NEW_LINE>Mat targetBGR = new Mat();<NEW_LINE>int nChannels = target.channels();<NEW_LINE>if (nChannels == 4) {<NEW_LINE>List<Mat> mats <MASK><NEW_LINE>Core.split(ta... | = new ArrayList<Mat>(); |
1,069,709 | // Visible for testing<NEW_LINE>void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) throws SignatureException {<NEW_LINE>// check signature length, moved this check from JOSEToDER method<NEW_LINE>if (joseSignature.length != ecNumberSize * 2) {<NEW_LINE>throw new SignatureException("Invalid JOSE... | countPadding(joseSignature, 0, ecNumberSize); |
391,325 | public String queryRAPModel() throws UnsupportedEncodingException {<NEW_LINE>Map<String, Object> resultMap = new HashMap<String, Object>();<NEW_LINE>Gson g = new Gson();<NEW_LINE>Project p = projectMgr.getProject(projectId);<NEW_LINE>List<Action> aList = p.getAllAction();<NEW_LINE>Map<Integer, Object> mockDataMap = new... | resultMap.put("msg", 0); |
395,562 | public void initializePersistenceStrategy(Context ctx, SessionManager smBean, ServerConfigLookup serverConfigLookup) {<NEW_LINE>super.initializePersistenceStrategy(ctx, smBean, serverConfigLookup);<NEW_LINE>String persistenceType = PersistenceType.MEMORY.getType();<NEW_LINE>String ctxPath = ctx.getPath();<NEW_LINE>if (... | Level.SEVERE, msg, ex); |
1,245,306 | private ExtensionArchive newExtensionArchive(ServiceReference<WebSphereCDIExtension> sr) throws CDIException {<NEW_LINE>Bundle bundle = sr.getBundle();<NEW_LINE>String extra_classes_blob = (String) sr.getProperty(EXTENSION_API_CLASSES);<NEW_LINE>Set<String> extra_classes = new HashSet<String>();<NEW_LINE>// parse the l... | String) sr.getProperty(EXTENSION_BEAN_DEFINING_ANNOTATIONS); |
210,847 | static BytesRef encodeFloatRanges(Set<RangeFieldMapper.Range> ranges) throws IOException {<NEW_LINE>List<RangeFieldMapper.Range> sortedRanges = new ArrayList<>(ranges);<NEW_LINE>Comparator<RangeFieldMapper.Range> fromComparator = Comparator.comparingDouble(range -> ((Number) range.from).floatValue());<NEW_LINE>Comparat... | .from).floatValue()); |
347,135 | public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>String expectedPasswordType = "<wsse:Password Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest\">";<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request ... | String returnMsg = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Body xmlns=\"http://wssec.pwdigest.cxf.fats/types\"><provider>This is WSSECFVT CXF Web Service with SSL (Password Digest NoPassword) for: " + hdrText + ".</provider></soapenv:Body></soapenv:Envelope>"; |
1,647,828 | public void run() {<NEW_LINE>String cantOpen = "502 Couldn't open a port\r\n";<NEW_LINE>Log.d(TAG, "PASV running");<NEW_LINE>int port;<NEW_LINE>if ((port = sessionThread.onPasv()) == 0) {<NEW_LINE>// There was a problem opening a port<NEW_LINE>Log.e(TAG, "Couldn't open a port for PASV");<NEW_LINE>sessionThread.writeStr... | .replace('.', ',')); |
758,937 | private boolean isNeighbour(Direction dir) {<NEW_LINE>blockPos.set(x + dir.getOffsetX(), y + dir.getOffsetY(), <MASK><NEW_LINE>BlockState neighbourState = mc.world.getBlockState(blockPos);<NEW_LINE>if (neighbourState.getBlock() != state.getBlock())<NEW_LINE>return false;<NEW_LINE>VoxelShape cube = VoxelShapes.fullCube(... | z + dir.getOffsetZ()); |
1,835,266 | private void loadConfigValueType(final MapPack param) {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack pack = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>pack = (MapPack) tcp.getSingle(RequestCmd.CONFIGURE_VALUE_TYPE, param);<N... | pack.getInt(key))); |
1,514,960 | private boolean fetchRegistry() {<NEW_LINE>boolean success;<NEW_LINE>Stopwatch tracer = fetchRegistryTimer.start();<NEW_LINE>try {<NEW_LINE>// If the delta is disabled or if it is the first time, get all applications<NEW_LINE>if (serverConfig.shouldDisableDeltaForRemoteRegions() || (getApplications() == null) || (getAp... | "Unable to fetch registry information from the remote registry {}", this.remoteRegionURL, e); |
931,521 | public void writeMultiAxisData(MultiAxisData data) throws IOException {<NEW_LINE>if (isNewerVersionOrEqual(JRConstants.VERSION_4_8_0)) {<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_multiAxisData, getNamespace());<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_multiAxisDataset);<NEW_LINE>writeElementDataset... | writeDataLevelBucket(level.getBucket()); |
902,205 | public MappeableContainer iandNot(final MappeableBitmapContainer b2) {<NEW_LINE>int newCardinality = 0;<NEW_LINE>if (!BufferUtil.isBackedBySimpleArray(bitmap)) {<NEW_LINE>throw new RuntimeException("Should not happen. Internal bug.");<NEW_LINE>}<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>if (BufferUtil.isBackedB... | bitmap.get(k))); |
722,275 | public void valueChanged(ListSelectionEvent e) {<NEW_LINE><MASK><NEW_LINE>int[] indices = list.getSelectedIndices();<NEW_LINE>// bugfix #24193, check if the nodes in selection are in the view's root context<NEW_LINE>List<Node> ll = new ArrayList<Node>(indices.length);<NEW_LINE>for (int i = 0; i < indices.length; i++) {... | int curSize = model.getSize(); |
558,746 | private void generateChoiceSet(final List<Token> tokens) throws IOException {<NEW_LINE>final Token choiceToken = tokens.get(0);<NEW_LINE>final String choiceName = formatTypeName(choiceToken.applicableTypeName());<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>try (Writer out = outputManager.createOutpu... | generateChoiceEncodeDecode(sb, choiceName, choiceToken); |
146,805 | protected NetworkModule[] createNetworkModules(String address, MqttConnectOptions options) throws MqttException, MqttSecurityException {<NEW_LINE>final String methodName = "createNetworkModules";<NEW_LINE>// @TRACE 116=URI={0}<NEW_LINE>log.fine(CLASS_NAME, methodName, "116", new Object[] { address });<NEW_LINE>NetworkM... | = new String[] { address }; |
405,261 | public void addEntry(ByteBuf entry, boolean ackBeforeSync, WriteCallback cb, Object ctx, byte[] masterKey) throws IOException, BookieException, InterruptedException {<NEW_LINE>long requestNanos = MathUtils.nowInNano();<NEW_LINE>boolean success = false;<NEW_LINE>int entrySize = 0;<NEW_LINE>try {<NEW_LINE>LedgerDescripto... | create(BookieException.Code.LedgerFencedException); |
832,883 | public String deleteTranslation(HttpServletRequest request, HttpServletResponse response, Model model, @PathVariable Map<String, String> pathVars, @ModelAttribute(value = "form") final TranslationForm form, BindingResult result) throws Exception {<NEW_LINE>adminRemoteSecurityService.securityCheck(form.getCeilingEntity(... | (form.getTranslationId())); |
53,986 | private static UnionEle merge(UnionEle left, UnionEle right, ReduceOP op) {<NEW_LINE>UnionEle res = new UnionEle();<NEW_LINE>switch(op) {<NEW_LINE>case Min:<NEW_LINE>res.setDouble1(Math.min(left.getDouble1(), right.getDouble1()));<NEW_LINE>res.setDouble2(Math.min(left.getDouble2(), right.getDouble2()));<NEW_LINE>res.se... | , right.getFloat1())); |
630,269 | public Contract copyFromTemplate(Contract contract, ContractTemplate template) throws AxelorException {<NEW_LINE>if (template.getAdditionalBenefitContractLineList() != null && !template.getAdditionalBenefitContractLineList().isEmpty()) {<NEW_LINE>for (ContractLine line : template.getAdditionalBenefitContractLineList())... | setNote(template.getNote()); |
1,162,909 | /*<NEW_LINE>* protected LegacyAvailabilityTimeZoneTime(TimeZone.TransitionTime<NEW_LINE>* transitionTime, TimeSpan delta) { this(); this.delta = delta;<NEW_LINE>*<NEW_LINE>* if (transitionTime.IsFixedDateRule) { // TimeZoneInfo doesn't support an<NEW_LINE>* actual year. Fixed date transitions occur at the same // date ... | .class) * 60 * 1000); |
656,215 | public static Fingerprint computeSafetyNumber(boolean isUuidCapable, SignalServiceAddress ownAddress, IdentityKey ownIdentityKey, SignalServiceAddress theirAddress, IdentityKey theirIdentityKey) {<NEW_LINE>int version;<NEW_LINE>byte[] ownId;<NEW_LINE>byte[] theirId;<NEW_LINE>if (isUuidCapable) {<NEW_LINE>// Version 2: ... | .get().getBytes(); |
188,668 | public DLedgerEntry appendAsLeader(DLedgerEntry entry) {<NEW_LINE>PreConditions.check(memberState.isLeader(), DLedgerResponseCode.NOT_LEADER);<NEW_LINE>PreConditions.check(!isDiskFull, DLedgerResponseCode.DISK_FULL);<NEW_LINE>ByteBuffer dataBuffer = localEntryBuffer.get();<NEW_LINE>ByteBuffer indexBuffer = localIndexBu... | preAppend(dataBuffer.remaining()); |
1,303,845 | public boolean send(SmsMessage sms) {<NEW_LINE>String app_key = JPressOptions.get(JPressConsts.OPTION_CONNECTION_SMS_APPID);<NEW_LINE>String app_secret = <MASK><NEW_LINE>String random = new Random().nextInt(1000000) + "";<NEW_LINE>String time = System.currentTimeMillis() / 1000 + "";<NEW_LINE>String srcStr = "appkey=" ... | JPressOptions.get(JPressConsts.OPTION_CONNECTION_SMS_APPSECRET); |
251,699 | public void init() {<NEW_LINE>try {<NEW_LINE>// Clean up partial downloads.<NEW_LINE>getAllChannels().parallelStream().map(PodcastChannel::getId).map(this::getEpisodes).flatMap(List::parallelStream).filter(e -> e.getStatus() == PodcastStatus.DOWNLOADING).forEach(e -> {<NEW_LINE>deleteEpisode(e, false);<NEW_LINE>LOG.inf... | "Reset channel status '{}' since refresh was interrupted.", c.getTitle()); |
650,087 | public void marshall(DescribeGameSessionsRequest describeGameSessionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describeGameSessionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(des... | describeGameSessionsRequest.getAliasId(), ALIASID_BINDING); |
540,843 | private void deleteAllArtifactsByFolder(String folder) {<NEW_LINE>Iterable<Result<Item>> artifactNames = minioClient.listObjects(ListObjectsArgs.builder().bucket(S3Constants.BUCKET).prefix(folder + "/").recursive(true).build());<NEW_LINE>List<DeleteObject> objects = new LinkedList<>();<NEW_LINE>for (Result<Item> artifa... | ().objectName())); |
1,755,222 | public boolean process(List<Point2D_F64> observations, List<DMatrixRMaj> fundamentalWorldToCam, Point3D_F64 worldPt, Point3D_F64 refinedPt) {<NEW_LINE>func.setObservations(observations, fundamentalWorldToCam);<NEW_LINE><MASK><NEW_LINE>// the parameter being optimized is the world point location<NEW_LINE>param[0] = worl... | minimizer.setFunction(func, null); |
540,613 | private void createQuickMenus() {<NEW_LINE>IToolBarManager man = getViewSite().getActionBars().getToolBarManager();<NEW_LINE>man.add(new Action("Expand All", ImageUtil.getImageDescriptor(Images.expand)) {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>objTreeViewer.expandAll();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>man.add... | .getImageDescriptor(Images.flat_layout)); |
1,797,016 | public static void handle(String stmt, ManagerConnection c, int offset) {<NEW_LINE>int rs = ManagerParseReload.parse(stmt, offset);<NEW_LINE>switch(rs) {<NEW_LINE>case ManagerParseReload.CONFIG:<NEW_LINE>ReloadConfig.execute(c, false);<NEW_LINE>break;<NEW_LINE>case ManagerParseReload.CONFIG_ALL:<NEW_LINE><MASK><NEW_LIN... | ReloadConfig.execute(c, true); |
1,164,937 | protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>TextView tv = findViewById(R.id.data_item);<NEW_LINE>tv.setText((String) item.pv.get(EcuDataPv.FID_DESCRIPT));<NEW_LINE>// Color selection<NEW_LINE>Integer color = ColorAdapter.getItemColor(item.pv);<NEW_LINE>int pos = colorAdapter.getPosition(color);<NEW_... | long minValue = item.rawMin(); |
902,164 | private void rewriteModifiers(ASTNode parent, StructuralPropertyDescriptor property, int offset) {<NEW_LINE>RewriteEvent event = getEvent(parent, property);<NEW_LINE>if (event == null || event.getChangeKind() != RewriteEvent.REPLACED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>int oldModifiers = ((Integer) e... | keep = Modifier.isVolatile(newModifiers); |
777,276 | private TableFilter readDerivedTableWithCorrelation() {<NEW_LINE>Query query = parseQueryExpression();<NEW_LINE>read(CLOSE_PAREN);<NEW_LINE>Table table;<NEW_LINE>String alias;<NEW_LINE>ArrayList<String> derivedColumnNames = null;<NEW_LINE>IndexHints indexHints = null;<NEW_LINE>if (readIfUseIndex()) {<NEW_LINE>alias = s... | toArray(new Column[0]); |
995,098 | public static boolean validateDatasetMetadataExternally(Dataset ds, String executable, DataverseRequest request) {<NEW_LINE>String sourceAddressLabel = "0.0.0.0";<NEW_LINE>if (request != null) {<NEW_LINE><MASK><NEW_LINE>if (sourceAddress != null) {<NEW_LINE>sourceAddressLabel = sourceAddress.toString();<NEW_LINE>}<NEW_... | IpAddress sourceAddress = request.getSourceAddress(); |
1,711,582 | public FluentCv convertCirclesToLocations(List<Location> locations) {<NEW_LINE>checkCamera();<NEW_LINE>Location unitsPerPixel = camera.getUnitsPerPixelAtZ().convertToUnits(camera.<MASK><NEW_LINE>double avgUnitsPerPixel = (unitsPerPixel.getX() + unitsPerPixel.getY()) / 2;<NEW_LINE>for (int i = 0; i < mat.cols(); i++) {<... | getLocation().getUnits()); |
1,640,666 | private static Item format(Map<Node, Long> predicates, Map<Node, Long> types, long count) {<NEW_LINE>Item stats = Item.createList();<NEW_LINE>ItemList statsList = stats.getList();<NEW_LINE>statsList.add("stats");<NEW_LINE>Item meta = createTagged(StatsMatcher.META);<NEW_LINE>addPair(meta.getList(), "timestamp", NodeFac... | Node type = entry.getKey(); |
561,841 | public void completionChanged(DownloadManager manager, boolean bCompleted) {<NEW_LINE>DownloadManagerState dms = manager.getDownloadState();<NEW_LINE>long time = dms.getLongAttribute(DownloadManagerState.AT_COMPLETE_LAST_TIME);<NEW_LINE>if (time == -1) {<NEW_LINE>if (bCompleted) {<NEW_LINE>dms.setLongAttribute(Download... | dms.getLongParameter(DownloadManagerState.PARAM_DOWNLOAD_COMPLETED_TIME); |
286,975 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "intPrimitive,myint,myvarchar".split(",");<NEW_LINE>String stmtText <MASK><NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>env.assertPropsPerRowIterator("s0", fields, null);<NEW_LINE>sendSupportBeanEvent(env, 6);<NEW_LINE>env.asser... | = "@name('s0') select intPrimitive, myint, myvarchar from " + "SupportBean#keepall as s0, " + " sql:MyDBWithRetain ['select myint from mytesttable where ${intPrimitive} = mytesttable.mybigint'] as s1," + " sql:MyDBWithRetain ['select myvarchar from mytesttable where ${intPrimitive} = mytesttable.mybigint'] as s2 "; |
797,151 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String loggerName = "com.ibm.logs.ExtensionServlet";<NEW_LINE>String logMessage = "Test Extension Message";<NEW_LINE>java.util.logging.Logger logger = java.util.logging.Logger.getLogger(loggerN... | LogRecordContext.addExtension("correctFloatExtension_float", "100.123"); |
545,518 | public void generateMainMethod(BIRNode.BIRFunction userMainFunc, ClassWriter cw, BIRNode.BIRPackage pkg, String initClass, boolean serviceEPAvailable) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PUBLIC + ACC_STATIC, "main", "([Ljava/lang/String;)V", null, null);<NEW_LINE>mv.visitCode();<NEW_LINE>Label tryC... | MODULE_INIT_METHOD, MethodGenUtils.INIT_FUNCTION_SUFFIX, INIT_FUTURE_VAR); |
403,961 | // -------//<NEW_LINE>// visit //<NEW_LINE>// -------//<NEW_LINE>@Override<NEW_LINE>public void visit(AbstractChordInter chord) {<NEW_LINE>// Draw chord ID & voice if any<NEW_LINE>if (!viewParams.isChordIdsPainting()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// For readability, we need a sufficient zoom ratio<NEW_LINE>fi... | Voice voice = chord.getVoice(); |
184,176 | private Map<String, ConfigurationMetadata> readMavenConfigurations(Decoder decoder, DefaultMavenModuleResolveMetadata metadata, Map<Integer, MavenDependencyDescriptor> deduplicationDependencyCache) throws IOException {<NEW_LINE>ImmutableMap<String, Configuration> configurationDefinitions = metadata.getConfigurationDefi... | int configurationsCount = decoder.readSmallInt(); |
1,108,939 | public Request<DeleteSecurityProfileRequest> marshall(DeleteSecurityProfileRequest deleteSecurityProfileRequest) {<NEW_LINE>if (deleteSecurityProfileRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteSecurityProfileRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteSecurit... | request.addHeader("Content-Type", "application/x-amz-json-1.1"); |
1,606,893 | private static void removeReturn(SootMethod method) {<NEW_LINE>// check if this is a void method<NEW_LINE>if (!(method.getReturnType() instanceof VoidType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// get the methodnode<NEW_LINE>if (!method.hasActiveBody()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Chain units = ((DavaBody)... | stmts.size() - 1); |
1,821,357 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer <MASK><NEW_LINE>UnidbgPointer jvalue = context.getPointerArg(3);<NEW_LINE>DvmClass dvmClass = classMap.get(clazz.toIntPeer());<NEW_LINE>Dvm... | jmethodID = context.getPointerArg(2); |
673,453 | public void addRemovalTimeById(String processInstanceId, Date removalTime) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>commandContext.getHistoricActivityInstanceManager(<MASK><NEW_LINE>commandContext.getHistoricTaskInstanceManager().addRemovalTimeToTaskInstancesByProcessInstanceId(p... | ).addRemovalTimeToActivityInstancesByProcessInstanceId(processInstanceId, removalTime); |
1,661,259 | public final Description matchClass(ClassTree classTree, VisitorState state) {<NEW_LINE>if (!HAS_CONSTRUCTORS_WITH_INJECT.matches(classTree, state)) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>List<MethodTree> ctors = ASTHelpers.getConstructors(classTree);<NEW_LINE>ImmutableList<MethodTree> ctorsWithInj... | (getOnlyElement(ctorsWithInject), null); |
980,476 | FunctionalIterator<AttributeTypeImpl> overriddenOwns(boolean onlyKey, boolean transitive) {<NEW_LINE>if (isRoot())<NEW_LINE>return Iterators.empty();<NEW_LINE>FunctionalIterator<AttributeTypeImpl> overriddenOwns;<NEW_LINE>if (onlyKey) {<NEW_LINE>overriddenOwns = vertex.outs().edge(OWNS_KEY).overridden().filter(Objects:... | .of(graphMgr, v)); |
1,285,281 | protected void doPost(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>try {<NEW_LINE>PostParams params = PostParams.getPostParams(request);<NEW_LINE>String input = params.getParams();<NEW_LINE>boolean visible = params.isVisible();<NEW_LINE>if (visible) {<NEW_LINE>JSONObject jsonObject = JSONObject.... | println(jsonSmartContract.toJSONString()); |
1,445,991 | protected void append(ILoggingEvent event) {<NEW_LINE>if (inFlush.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (event.getLevel() == Level.DEBUG && event.getLoggerName().startsWith("io.grpc.")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (event.getLoggerName().startsWith("org.glowroot.central.") || event.getLoggerName... | setMessage(event.getFormattedMessage()); |
1,740,447 | protected static ApplicationContext applicationContext(Class<?> mainClass, String[] args) {<NEW_LINE>KestraApplicationContextBuilder builder = new KestraApplicationContextBuilder().mainClass(mainClass).environments(Environment.CLI).<MASK><NEW_LINE>CommandLine cmd = new CommandLine(mainClass, CommandLine.defaultFactory(... | classLoader(KestraClassLoader.instance()); |
169,790 | public static LoginRequest loginInternal(Server server, String user, String encPassword) {<NEW_LINE>LoginRequest result = new LoginRequest();<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("id", user);<NEW_LINE>param.put("pass", encPassword);<NEW_LINE>param.put("version", Version.getClientFul... | recommendedClientVersion = out.getText("client_version"); |
867,127 | private Messages.IndexingError.ErrorType errorTypeFromResponse(BulkItemResponse item) {<NEW_LINE>final ParsedElasticsearchException exception = ParsedElasticsearchException.from(item.getFailureMessage());<NEW_LINE>switch(exception.type()) {<NEW_LINE>case MAPPER_PARSING_EXCEPTION:<NEW_LINE>return Messages.IndexingError.... | return Messages.IndexingError.ErrorType.IndexBlocked; |
637,183 | private void handleEditReportal(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>final int id = getIntParam(req, "id");<NEW_LINE>final ProjectManager projectManager = this.server.getProjectManager();<NEW_LINE>final Page page = newPage(r... | page.add("errorMsgs", errors); |
1,021,569 | public void onCreatePreferences(Bundle state, String rootKey) {<NEW_LINE>setPreferencesFromResource(R.xml.settings, null);<NEW_LINE>findPreference("version").setSummary(BuildConfig.VERSION_NAME);<NEW_LINE>if (openConfigFile != null) {<NEW_LINE><MASK><NEW_LINE>configFilePref.setOnPreferenceChangeListener(this::onConfigF... | final TwoStatePreference configFilePref = findPreference("config_file"); |
1,796,094 | private void init(Object[] objs) {<NEW_LINE>try {<NEW_LINE>m_endpoint = objs[<MASK><NEW_LINE>String entity = "";<NEW_LINE>if (objs.length == 2) {<NEW_LINE>entity = objs[1].toString();<NEW_LINE>} else {<NEW_LINE>entity = "{ \"size\": 500," + " \"query\": { \"match_all\": {}}}";<NEW_LINE>}<NEW_LINE>m_method = "GET";<NEW_... | 0].toString() + "?scroll=1m"; |
1,671,808 | private static List<InjectionPoint> findUnmanagedInjectionPoints(BeanManager beanManager, WebSphereBeanDeploymentArchive bda, Class<?> targetClass, Member targetMember) throws CDIException {<NEW_LINE>List<InjectionPoint> injectionPoints = new ArrayList<InjectionPoint>();<NEW_LINE>List<InjectionPoint> allInjectionPoints... | createUnmanagedInjectionPoints(beanManager, targetClass, targetMember); |
243,877 | protected Message loadCurrentDeep(Cursor cursor, boolean lock) {<NEW_LINE>Message entity = loadCurrent(cursor, 0, lock);<NEW_LINE>int offset = getAllColumns().length;<NEW_LINE>User sender = loadCurrentOther(daoSession.<MASK><NEW_LINE>entity.setSender(sender);<NEW_LINE>offset += daoSession.getUserDao().getAllColumns().l... | getUserDao(), cursor, offset); |
1,019,746 | public boolean needRewriteToGsi(boolean rewrite) {<NEW_LINE>final String logicalTableName = sqlAlterTable.getOriginTableName().getLastName();<NEW_LINE>final TableMeta tableMeta = OptimizerContext.getContext(schemaName).getLatestSchemaManager().getTable(logicalTableName);<NEW_LINE>if (!DbInfoManager.getInstance().isNewP... | ).set(idx, newIndex); |
1,218,675 | public String saveJobSubmission(@Valid final JobSubmission jobSubmission) throws IdAlreadyExistsException {<NEW_LINE>log.debug("[saveJobSubmission] Attempting to save job submission {}", jobSubmission);<NEW_LINE>// TODO: Metrics<NEW_LINE>final JobEntity jobEntity = new JobEntity();<NEW_LINE>jobEntity.setStatus(JobStatu... | JobRequest jobRequest = jobSubmission.getJobRequest(); |
61,857 | public DominantLanguage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DominantLanguage dominantLanguage = new DominantLanguage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | class).unmarshall(context)); |
1,463,379 | final DisassociateOpsItemRelatedItemResult executeDisassociateOpsItemRelatedItem(DisassociateOpsItemRelatedItemRequest disassociateOpsItemRelatedItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateOpsItemRelatedItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | invoke(request, responseHandler, executionContext); |
1,295,311 | private String deriveOrderByWithMany(BeanPropertyAssocMany<?> manyProp) {<NEW_LINE>if (manyProp == null) {<NEW_LINE>return parseOrderBy();<NEW_LINE>}<NEW_LINE>String orderBy = parseOrderBy();<NEW_LINE>BeanDescriptor<?> desc = request.descriptor();<NEW_LINE>String orderById = desc.defaultOrderBy();<NEW_LINE>if (orderBy ... | + orderBy + "]. The id property [" + orderById + "]"; |
1,295,799 | public TryMigrateResult tryMigrate(String clusterName, String fromIdc, String toIdc) throws ClusterNotFoundException, MigrationNotSupportException, ClusterActiveDcNotRequest, ClusterMigratingNow, ToIdcNotFoundException, MigrationSystemNotHealthyException, ClusterMigratingNowButMisMatch {<NEW_LINE>if (!checker.getResult... | long activedcId = clusterTbl.getActivedcId(); |
157,627 | protected Ftile doStep1(Ftile inner) {<NEW_LINE>Ftile result = inner;<NEW_LINE>final List<Connection> conns = new ArrayList<>();<NEW_LINE>final HColor colorBar = getRose().getHtmlColor(skinParam(), ColorParam.activityBar);<NEW_LINE>final Ftile black = new FtileBlackBlock(skinParam(), colorBar, list99.get(0).getSwimlane... | ).getWidth(), barHeight); |
485,023 | void averageCommonCameras(List<ElevateViewInfo> views, FastAccess<SelfCalibrationLinearDualQuadratic.Intrinsic> solutions, int numCameras) {<NEW_LINE>cameraCounts.resetResize(numCameras, 0);<NEW_LINE>workCameras.resetResize(numCameras);<NEW_LINE>for (int i = 0; i < views.size(); i++) {<NEW_LINE>ElevateViewInfo info = v... | estimated.fy, estimated.skew); |
235,266 | public String toEnumVarName(String value, String datatype) {<NEW_LINE>if (value.length() == 0) {<NEW_LINE>return "EMPTY";<NEW_LINE>}<NEW_LINE>// for symbol, e.g. $, #<NEW_LINE>if (getSymbolName(value) != null) {<NEW_LINE>return getSymbolName(value).toUpperCase(Locale.ROOT);<NEW_LINE>}<NEW_LINE>// number<NEW_LINE>if ("I... | varName.replaceAll("-", "MINUS_"); |
897,752 | public void postHoneycombGetContactEmailsAndPhones(Cursor dataCursor) {<NEW_LINE>List<String> phoneListToStore = new ArrayList<String>();<NEW_LINE>List<String> emailListToStore = new ArrayList<String>();<NEW_LINE>if (dataCursor.moveToFirst()) {<NEW_LINE>final int PHONE_INDEX = HoneycombMR1Util.getPhoneIndex(dataCursor)... | MIME_INDEX = HoneycombMR1Util.getMimeIndex(dataCursor); |
415,328 | public void saveAction(final WorkflowAction action, final List<Permission> permissions, final User user) throws DotDataException {<NEW_LINE>DotPreconditions.isTrue(UtilMethods.isSet(action.getSchemeId()) && this.existsScheme(action.getSchemeId()), () -> {<NEW_LINE>Logger.error(this, String.format("Workflow Scheme '%s' ... | , ShortyIdAPI.ShortyInputType.WORKFLOW_SCHEME)); |
1,475,207 | public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>logDebug("onCreateOptionsMenu");<NEW_LINE>// Inflate the menu items for use in the action bar<NEW_LINE>MenuInflater inflater = getMenuInflater();<NEW_LINE>inflater.inflate(R.menu.file_explorer_action, menu);<NEW_LINE>searchMenuItem = menu.findItem(R.id.cab_menu_s... | findItem(R.id.cab_menu_new_chat); |
332,119 | private void loadNode428() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_AdditionalGroup_Placeholder_TrustList_Size, new QualifiedName(0, "Size"), new LocalizedText("en", "Size"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataV... | this.nodeManager.addNode(node); |
468,839 | private BCX509Key chooseKeyBC(List<String> keyTypes, Principal[] issuers, TransportData transportData, boolean forServer) {<NEW_LINE>Match bestMatch = getBestMatch(keyTypes, issuers, transportData, forServer);<NEW_LINE>if (bestMatch.compareTo(Match.NOTHING) < 0) {<NEW_LINE>try {<NEW_LINE>String keyType = <MASK><NEW_LIN... | keyTypes.get(bestMatch.keyTypeIndex); |
624,004 | public void onIceCandidate(final IceCandidate candidate) {<NEW_LINE><MASK><NEW_LINE>WritableMap params = Arguments.createMap();<NEW_LINE>params.putInt("id", id);<NEW_LINE>WritableMap candidateParams = Arguments.createMap();<NEW_LINE>candidateParams.putInt("sdpMLineIndex", candidate.sdpMLineIndex);<NEW_LINE>candidatePar... | Log.d(TAG, "onIceCandidate"); |
1,562,589 | public MegaChipChatExplorerAdapter.ViewHolderChips onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>logDebug("onCreateViewHolder");<NEW_LINE>Display display = ((Activity) context).getWindowManager().getDefaultDisplay();<NEW_LINE>DisplayMetrics outMetrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(... | findViewById(R.id.name_chip); |
3,827 | private Type internalAddImport(ITypeBinding binding, AST ast, ImportRewriteContext context, Type currentType, boolean getBase, TypeLocation location) {<NEW_LINE>Type type = null;<NEW_LINE>ITypeBinding normalizedBinding = null;<NEW_LINE>if (binding.isPrimitive()) {<NEW_LINE>type = ast.newPrimitiveType(PrimitiveType.toCo... | WildcardType wcType = ast.newWildcardType(); |
1,292,883 | public DownloadedFile downloadFile(String url) {<NEW_LINE>HttpRequest httpRequest = HttpRequest.newBuilder(URI.create(url)).GET().build();<NEW_LINE>HttpResponse<byte[]> response = null;<NEW_LINE>try {<NEW_LINE>response = httpClient.send(httpRequest, HttpResponse.BodyHandlers.ofByteArray());<NEW_LINE>} catch (IOExceptio... | ("/").split(url); |
186,973 | ByteString valueToByteString(Object value, Schema.FieldType type) {<NEW_LINE>switch(type.getTypeName()) {<NEW_LINE>case BOOLEAN:<NEW_LINE>return byteString(((Boolean) value) ? new byte[] { 1 } : new byte[] { 0 });<NEW_LINE>case FLOAT:<NEW_LINE>return byteString(Ints.toByteArray(Float.floatToIntBits((Float) value)));<NE... | toByteArray((Long) value)); |
146,805 | protected NetworkModule[] createNetworkModules(String address, MqttConnectOptions options) throws MqttException, MqttSecurityException {<NEW_LINE>final String methodName = "createNetworkModules";<NEW_LINE>// @TRACE 116=URI={0}<NEW_LINE>log.fine(CLASS_NAME, methodName, "116", <MASK><NEW_LINE>NetworkModule[] networkModul... | new Object[] { address }); |
1,558,018 | protected void process() {<NEW_LINE>String exportAll = "";<NEW_LINE>if (!hrBatch.getExportAlreadyExported()) {<NEW_LINE>exportAll = " AND self.exported = false ";<NEW_LINE>}<NEW_LINE>List<PayrollPreparation> payrollPreparationList = payrollPreparationRepository.all().filter("self.company = ?1 AND self.period = ?2 " + e... | .setMetaFile(nibelisExport(payrollPreparationList)); |
1,139,777 | private static BitfinexWebSocketAuthOrder createOrderObject(JsonNode order) {<NEW_LINE>if (order.size() < 32) {<NEW_LINE>LOG.error("createOrderObject unexpected record size={}, record={}", order.size(), order.toString());<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long id = order.get(0).longValue();<NEW_LINE>long groupI... | get(3).textValue(); |
1,532,740 | private StructuredGraph copy(String newName, ResolvedJavaMethod rootMethodForCopy, OptionValues optionsForCopy, Consumer<UnmodifiableEconomicMap<Node, Node>> duplicationMapCallback, CompilationIdentifier newCompilationId, DebugContext debugForCopy, boolean trackNodeSourcePositionForCopy) {<NEW_LINE>AllowAssumptions all... | stageFlags = EnumSet.copyOf(stageFlags); |
205,873 | public void refreshPreview() {<NEW_LINE>JEditorPane pane = (JEditorPane) getPreviewComponent();<NEW_LINE>try {<NEW_LINE>int rm = previewPrefs.getInt<MASK><NEW_LINE>// NOI18N<NEW_LINE>pane.putClientProperty("TextLimitLine", rm);<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>// Ignore it<NEW_LINE>}<NEW_LINE>Recta... | (rightMargin, getDefaultAsInt(rightMargin)); |
632,084 | protected void performRewrite(final TransformationContext ctx) throws Exception {<NEW_LINE>IfTree toRewrite = (IfTree) ctx.getPath().getLeaf();<NEW_LINE><MASK><NEW_LINE>if (toRewrite.getCondition() == null || toRewrite.getCondition().getKind() != Tree.Kind.PARENTHESIZED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Parenthes... | StatementTree elseStatement = toRewrite.getElseStatement(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.