idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,089,781 | private long insertOrUpdateGroupContactInDb(ChatGroup group) {<NEW_LINE>// Insert a record in contacts table<NEW_LINE>ContentValues values = new ContentValues(4);<NEW_LINE>values.put(Imps.Contacts.USERNAME, group.getAddress().getAddress());<NEW_LINE>values.put(Imps.Contacts.NICKNAME, group.getName());<NEW_LINE>values.p... | id = listManager.queryGroup(group); |
1,425,001 | public void add(final CommittedChangesFilterKey key, final JComponent comp) {<NEW_LINE>final int idx = myInnerSplitterContents.size();<NEW_LINE><MASK><NEW_LINE>if (idx == 0) {<NEW_LINE>myParentSplitter.setFirstComponent(myInnerSplitter);<NEW_LINE>if (myParentSplitter.getProportion() < 0.05f) {<NEW_LINE>myParentSplitter... | myInnerSplitterContents.put(key, idx); |
624,585 | public void read(org.apache.thrift.protocol.TProtocol prot, setNamespaceProperty_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (incoming... | .ns = iprot.readString(); |
1,512,121 | public void marshall(LambdaFunctionRecommendation lambdaFunctionRecommendation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (lambdaFunctionRecommendation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(... | lambdaFunctionRecommendation.getCurrentPerformanceRisk(), CURRENTPERFORMANCERISK_BINDING); |
485,106 | protected void validateUsingQuery(String query, String prevTableSnapshot, String newTableSnapshot, SQLContext sqlContext) {<NEW_LINE>String queryWithPrevSnapshot = query.replaceAll(HoodiePreCommitValidatorConfig.VALIDATOR_TABLE_VARIABLE, prevTableSnapshot);<NEW_LINE>String queryWithNewSnapshot = query.replaceAll(Hoodie... | System.out.println("Expected result (sample records only):"); |
956,243 | final DisassociateLensesResult executeDisassociateLenses(DisassociateLensesRequest disassociateLensesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateLensesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | invoke(request, responseHandler, executionContext); |
1,488,947 | protected void drawInternalU(UGraphic ug, Area area) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final int textHeight = (int) getTextHeight(stringBounder);<NEW_LINE>int x2 = (int) getTextWidth(stringBounder);<NEW_LINE>final double diffX = area.getDimensionToUse().getWidth() - getPrefe... | polygon.addPoint(cornersize, 0); |
368,575 | private Statement buildMoreCompletionEnclosingContext(Statement statement) {<NEW_LINE>IfStatement ifStatement = null;<NEW_LINE>int index = -1;<NEW_LINE>int blockIndex = lastIndexOfElement(K_BLOCK_DELIMITER);<NEW_LINE>int controlIndex = lastIndexOfElement(K_CONTROL_STATEMENT_DELIMITER);<NEW_LINE>int instanceOfIndex = la... | Expression) this.elementObjectInfoStack[index]; |
228,449 | public static HashMap<Integer, Long> createFileTypeToLongMap(final long listings, final long thumbnails, final long images) {<NEW_LINE>final HashMap<Integer, Long> maxAgeMap = new HashMap<>(10);<NEW_LINE>maxAgeMap.put(Constants.FileType.POST_LIST, listings);<NEW_LINE>maxAgeMap.put(Constants.FileType.COMMENT_LIST, listi... | Constants.FileType.INBOX_LIST, listings); |
1,251,966 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest servletReq = (HttpServletRequest) request;<NEW_LINE>HttpServletResponse servletResp = (HttpServletResponse) response;<NEW_LINE>// Accept timeOffset as argument to ... | timeOffsetParam = request.getParameter(TIME_OFFSET_PARAM); |
1,071,281 | public void initiateOpenIdLogin(String issuer, String redirectUri, String language, Boolean test) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'issuer' is set<NEW_LINE>if (issuer == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter '... | ("", "language", language)); |
1,464,481 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>startGetSummaries_result result = new startGetSummaries_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSecurity... | .apache.thrift.TApplicationException) e; |
371,243 | private static Hashtable parseQueryString(String query) {<NEW_LINE>Hashtable<String, String[]> ht = new Hashtable<String, String[]>();<NEW_LINE>if (query == null)<NEW_LINE>return ht;<NEW_LINE>StringTokenizer st = new StringTokenizer(query, "&");<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE>String pair = st.nextToken(... | String[oldvalues.length + 1]; |
1,266,203 | public InstanceStorageInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceStorageInfo instanceStorageInfo = new InstanceStorageInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE... | ().unmarshall(context)); |
488,528 | private static JsonAlbertaPatient patientToPatientBPartner(@NonNull final Patient patient) {<NEW_LINE>final JsonAlbertaPatient albertaPatient = new JsonAlbertaPatient();<NEW_LINE>albertaPatient.setIsTransferPatient(patient.isChangeInSupplier());<NEW_LINE>albertaPatient.setIVTherapy(patient.isIvTherapy());<NEW_LINE>// d... | setDeactivationComment(patient.getDeactivationComment()); |
597,944 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Permanent creature = game.getPermanent(getTargetPointer().getFirst(game, source));<NEW_LINE>if (controller != null && creature != null) {<NEW_LINE>for (CombatGroup combatGroup : game.getCombat().getGroups()) {<NEW_LINE>i... | getPlayer(source.getControllerId()); |
1,804,016 | public ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>ActionResult<List<Wo>> <MASK><NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>if (business.isManager(effectivePerson... | result = new ActionResult<>(); |
914,373 | public static void writeActionsFromString(OFFlowMod.Builder fmb, String inst) {<NEW_LINE>if (fmb.getVersion().compareTo(OFVersion.OF_11) < 0) {<NEW_LINE>log.error("Write Actions Instruction not supported in OpenFlow 1.0");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// ActionUtils.fromString() will use setActions(), which sho... | .instructions().buildWriteActions(); |
30,738 | public static void extractSuperClassGenerics(ClassNode type, ClassNode target, Map<String, ClassNode> spec) {<NEW_LINE>// TODO: this method is very similar to StaticTypesCheckingSupport#extractGenericsConnections,<NEW_LINE>// but operates on ClassNodes instead of GenericsType<NEW_LINE>if (target == null || type == targ... | target.getComponentType(), spec); |
1,124,390 | public Set<UUID> possibleTargets(UUID sourceControllerId, Ability source, Game game) {<NEW_LINE>Set<UUID> possibleTargets = super.possibleTargets(sourceControllerId, source, game);<NEW_LINE>if (this.getTargets().size() == 1) {<NEW_LINE>Card card = game.getCard(this.getTargets().get(0));<NEW_LINE>possibleTargets.removeI... | ).forEach(possibleTargets::add); |
1,470,330 | public void start(Stage primaryStage) {<NEW_LINE>StyleClassedTextArea textArea = new StyleClassedTextArea();<NEW_LINE>textArea.setWrapText(true);<NEW_LINE>Subscription cleanupWhenFinished = textArea.multiPlainChanges().successionEnds(Duration.ofMillis(500)).subscribe(change -> {<NEW_LINE>textArea.setStyleSpans(0, compu... | ("spellchecking.css").toExternalForm()); |
620,907 | private ReduceByKey<InputT, KeyT, ValueT, AccT, OutputT> createOperator() {<NEW_LINE>if (valueExtractor == null) {<NEW_LINE>valueExtractor = identity();<NEW_LINE>}<NEW_LINE>if (reducer != null) {<NEW_LINE>return new ReduceByKey<>(name, keyExtractor, keyType, valueExtractor, valueType, reducer, valueComparator, windowBu... | .ofNullable(outputType)))); |
1,560,647 | Object execute(Object[] arguments, @Cached HPyAsContextNode asContextNode, @Cached PCallHPyFunction callHelperFunctionNode, @Cached HPyCreateTypeFromSpecNode createTypeFromSpecNode, @Cached HPyAsHandleNode asHandleNode, @Cached HPyTransformExceptionToNativeNode transformExceptionToNativeNode, @Exclusive @Cached GilNode... | boolean mustRelease = gil.acquire(); |
1,474,258 | public Collection<Segment> cutSegmentIfNeed(Collection<Segment> allDelays) {<NEW_LINE>final List<Segment> sortedDelay = new ArrayList<>(allDelays);<NEW_LINE>Collections.sort(sortedDelay, new SortPos1());<NEW_LINE>final List<Segment> result2 = new ArrayList<>();<NEW_LINE>double pendingStart = pos1;<NEW_LINE>for (Segment... | (pendingStart, this.pos2)); |
1,307,613 | private void loadNode502() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultUserTokenGroup_TrustList_Read_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), L... | String xml = sb.toString(); |
268,370 | private void addDict(String dict, boolean expandMidDot) {<NEW_LINE>String content = IOUtils.slurpFileNoExceptions(dict, "utf-8");<NEW_LINE>String[] lines = content.split("\n");<NEW_LINE>logger.info(" " + dict + <MASK><NEW_LINE>for (String line : lines) {<NEW_LINE>line = line.trim();<NEW_LINE>// normalize any midDot<NE... | ": " + lines.length + " entries"); |
9,307 | public void publishApi(String designId, NewApiPublication info, String dereference) throws ServerError, NotFoundException {<NEW_LINE>LinkedAccountType type = info.getType();<NEW_LINE>try {<NEW_LINE>// First step - publish the content to the soruce control system<NEW_LINE>ISourceConnector connector = this.sourceConnecto... | designId, ApiContentType.Publish, publicationData); |
1,650 | private static ECKey extractKeyFromASN1(byte[] asn1privkey) {<NEW_LINE>// To understand this code, see the definition of the ASN.1 format for EC private keys in the OpenSSL source<NEW_LINE>// code in ec_asn1.c:<NEW_LINE>//<NEW_LINE>// ASN1_SEQUENCE(EC_PRIVATEKEY) = {<NEW_LINE>// ASN1_SIMPLE(EC_PRIVATEKEY, version, LONG... | size() == 4, "Input does not appear to be an ASN.1 OpenSSL EC private key"); |
890,995 | private BeanDeploymentArchive createNewBdaAndMakeWiring(Class<?> beanClass) {<NEW_LINE>try {<NEW_LINE>OnDemandArchive onDemandArchive = new OnDemandArchive(cdiRuntime, application, beanClass);<NEW_LINE>WebSphereBeanDeploymentArchive newBda = BDAFactory.createBDA(this, onDemandArchive, cdiRuntime);<NEW_LINE><MASK><NEW_L... | ClassLoader beanClassCL = onDemandArchive.getClassLoader(); |
277,554 | final CreateScheduledQueryResult executeCreateScheduledQuery(CreateScheduledQueryRequest createScheduledQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createScheduledQueryRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Creat... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
239,987 | protected String buildString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String ls = System.getProperty("line.separator");<NEW_LINE>sb.append("[IPv4 Header (").append(length()).append(" bytes)]").append(ls);<NEW_LINE>sb.append(" Version: ").append(version).append(ls);<NEW_LINE>sb.append(" IHL: ").ap... | (dstAddr).append(ls); |
593,419 | public int[] kWeakestRows(int[][] mat, int k) {<NEW_LINE>List<int[]> <MASK><NEW_LINE>for (int i = 0; i < mat.length; i++) {<NEW_LINE>int soldiers = 0;<NEW_LINE>for (int j = 0; j < mat[0].length; j++) {<NEW_LINE>if (mat[i][j] == 1) {<NEW_LINE>soldiers++;<NEW_LINE>} else {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>l... | list = new ArrayList<>(); |
140,986 | final DeregisterTaskDefinitionResult executeDeregisterTaskDefinition(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterTaskDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | invoke(request, responseHandler, executionContext); |
548,996 | public Operation.OperationResult executeFixedCostOperation(final MessageFrame frame, final EVM evm) {<NEW_LINE>final Bytes value0 = frame.popStackItem();<NEW_LINE>final Bytes value1 = frame.popStackItem();<NEW_LINE>if (value1.isZero()) {<NEW_LINE>frame.pushStackItem(UInt256.ZERO);<NEW_LINE>} else {<NEW_LINE>final BigIn... | size() - 32, 32); |
1,649,270 | public V1Span read(ReadBuffer buffer) {<NEW_LINE>if (builder == null) {<NEW_LINE>builder = V1Span.newBuilder();<NEW_LINE>} else {<NEW_LINE>builder.clear();<NEW_LINE>}<NEW_LINE>ThriftField thriftField;<NEW_LINE>while (true) {<NEW_LINE>thriftField = ThriftField.read(buffer);<NEW_LINE>if (thriftField.type == TYPE_STOP)<NE... | buffer.readByte() == 1); |
1,132,203 | private static void registerAESPlugins(InvocationPlugins plugins, GraalHotSpotVMConfig config, Replacements replacements) {<NEW_LINE>Registration r = new Registration(plugins, "com.sun.crypto.provider.AESCrypt", replacements);<NEW_LINE>r.registerConditional(config.useAESIntrinsics && config.aescryptEncryptBlockStub != ... | 0L, new ElectronicCodeBookCryptPlugin(ENCRYPT)); |
1,679,447 | public Map<String, Object> toJsonCompatibleSnapshot(RemoteVerboseResult<?> verboseResult, Version backwardCompatibilityVersion) throws IOException {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>result.put("version", v_7_0_0.getNumber());<NEW_LINE>result.<MASK><NEW_LINE>SerializationHandle<Object> val... | put("operationTimeNanos", verboseResult.operationTimeNanos); |
1,038,431 | private void refreshPoiFiltersOrder(@NonNull ApplicationMode appMode, List<PoiUIFilter> filters) {<NEW_LINE>Map<String, Integer> orders = getPoiFiltersOrder(appMode);<NEW_LINE>List<PoiUIFilter> existedFilters = new ArrayList<>();<NEW_LINE>List<PoiUIFilter> newFilters = new ArrayList<>();<NEW_LINE>if (orders != null) {<... | (i).setOrder(i); |
1,825,688 | public void invoke(Request request, Response response) throws IOException, ServletException {<NEW_LINE>if (getNext() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check if we already filtered/processed this request<NEW_LINE>if (request.getNote(ALREADY_FILTERED_NOTE) == null) {<NEW_LINE>request.<MASK><NEW_LINE>try ... | setNote(ALREADY_FILTERED_NOTE, Boolean.TRUE); |
1,533,816 | public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException {<NEW_LINE>this.context = context;<NEW_LINE>this.logger = logger;<NEW_LINE>TypeOracle oracle = context.getTypeOracle();<NEW_LINE>assert (oracle != null);<NEW_LINE>JClassType jType = oracle.findType(type... | getPropertyOracle().getConfigurationProperty("gdx.reflect.include"); |
344,638 | public net.osmand.binary.VectorTile.Tile.Layer buildPartial() {<NEW_LINE>net.osmand.binary.VectorTile.Tile.Layer result = new net.osmand.binary.VectorTile.Tile.Layer(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>... | .features_ = featuresBuilder_.build(); |
1,236,457 | private void addParametersToEachOperation(PathItem pathItem) {<NEW_LINE>if (settings.addParametersToEachOperation()) {<NEW_LINE>List<Parameter> parameters = pathItem.getParameters();<NEW_LINE>if (parameters != null) {<NEW_LINE>// add parameters to each operation<NEW_LINE>List<Operation<MASK><NEW_LINE>if (operations != ... | > operations = pathItem.readOperations(); |
1,242,118 | private static void remountHostToRootIfNeeded(ExtensionState<TransitionsExtensionState> extensionState, int index, MountItem mountItem) {<NEW_LINE>final Host rootHost = getMountTarget(extensionState).getRootItem().getHost();<NEW_LINE>final Host originalHost = mountItem.getHost();<NEW_LINE>if (originalHost == null) {<NE... | (Host) host.getParent(); |
274,373 | public void marshall(CreateStreamingSessionRequest createStreamingSessionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createStreamingSessionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha... | createStreamingSessionRequest.getTags(), TAGS_BINDING); |
958,822 | protected WorkflowEventLogEntity buildEventLog(WorkflowContext context) {<NEW_LINE>WorkflowProcessEntity workflowProcessEntity = context.getProcessEntity();<NEW_LINE>Element currentElement = context.getCurrentElement();<NEW_LINE>WorkflowEventLogEntity logEntity = new WorkflowEventLogEntity();<NEW_LINE>logEntity.setProc... | setProcessDisplayName(workflowProcessEntity.getDisplayName()); |
348,640 | private String format(JSError error, boolean warning) {<NEW_LINE>SourceExcerptProvider source = getSource();<NEW_LINE>String sourceName = error.getSourceName();<NEW_LINE>int lineNumber = error.getLineNumber();<NEW_LINE>int charno = error.getCharno();<NEW_LINE>// Format the non-reverse-mapped position.<NEW_LINE>StringBu... | (boldLine.toString())); |
1,625,621 | public synchronized Optional<VersionSet> insertAndGetVersionSet(final String versionSetMd5Hex, final String versionSetJsonString) throws ImageMgmtException {<NEW_LINE>final SQLTransaction<Integer> insertVersionSet = transOperator -> {<NEW_LINE>final VersionSetHandler versionSetHandler = new VersionSetHandler();<NEW_LIN... | throw new SQLException("Expected only one VersionSet for versionSetMd5Hex " + versionSetMd5Hex); |
1,203,594 | protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<NEW_LINE>int weight = soot.jbco.Main.getWeight(phaseName, b.getMethod().getSignature());<NEW_LINE>if (weight == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int i = 0;<NEW_LINE>Unit handler = null;<NEW_LINE>Chain<Trap> traps = b.getT... | (Unit) it.next(); |
1,590,981 | private void loadNode106() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerType_SetSubscriptionDurable_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0)... | String xml = sb.toString(); |
1,255,742 | public void createControl(Composite parent) {<NEW_LINE>Composite composite = new Composite(parent, SWT.NULL);<NEW_LINE>initializeDialogUnits(parent);<NEW_LINE>PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IIDEHelpContextIds.NEW_PROJECT_WIZARD_PAGE);<NEW_LINE>composite.setLayout(new GridLayout());<NEW_LIN... | ProjectContentsLocationArea(getErrorReporter(), composite); |
1,652,558 | public void annotate(Annotation annotation) {<NEW_LINE>if (verbose) {<NEW_LINE>log.info("Adding RegexNER annotations ... ");<NEW_LINE>}<NEW_LINE>if (!annotation.containsKey(CoreAnnotations.SentencesAnnotation.class))<NEW_LINE>throw new RuntimeException("Unable to find sentences in " + annotation);<NEW_LINE>List<CoreMap... | get(CoreAnnotations.AnswerAnnotation.class); |
1,726,733 | private static void signImpl(DOMSignContext dsc, String digestMethod, String signatureMethod, String referenceURI, String keyName, PublicKey publicKey, X509Certificate x509Certificate, String canonicalizationMethodType) throws GeneralSecurityException, MarshalException, XMLSignatureException {<NEW_LINE>dsc.setDefaultNa... | ("http://www.w3.org/2001/10/xml-exc-c14n#", (TransformParameterSpec) null); |
1,268,742 | static Constructor<? extends Logger> resolveLoggerConstructor(final String className, final Class<?> paramType, boolean allowNoSuchMethod) {<NEW_LINE>Constructor<? extends Logger> loggerCtor;<NEW_LINE>final Object param = paramType == String.class ? LoggerFactory.class.getSimpleName() : LoggerFactory.class;<NEW_LINE>tr... | log = loggerCtor.newInstance(param); |
1,773,736 | private void updateSubscribed() {<NEW_LINE>User user = currentUser;<NEW_LINE>subscribed.setToolTipText("");<NEW_LINE>if (user.getSubMonths() > 0) {<NEW_LINE>subscribed.setText(new String[] { String.format("Subscribed: %d %s", user.getSubMonths(), StringUtil.plural("month", user.getSubMonths())), String.format("Sub: %d ... | user.getSubMonths()) }); |
1,604,753 | final EnableEbsEncryptionByDefaultResult executeEnableEbsEncryptionByDefault(EnableEbsEncryptionByDefaultRequest enableEbsEncryptionByDefaultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableEbsEncryptionByDefaultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | EnableEbsEncryptionByDefaultResult>(new EnableEbsEncryptionByDefaultResultStaxUnmarshaller()); |
817,315 | public static byte[] toByteArray(TbMsg msg) {<NEW_LINE>MsgProtos.TbMsgProto.Builder builder = MsgProtos.TbMsgProto.newBuilder();<NEW_LINE>builder.setId(msg.getId().toString());<NEW_LINE>builder.setTs(msg.getTs());<NEW_LINE>builder.setType(msg.getType());<NEW_LINE>builder.setEntityType(msg.getOriginator().getEntityType(... | getId().getMostSignificantBits()); |
1,347,855 | private Type push_immediate(EObject value, Type stack_type) {<NEW_LINE>if (value == ERT.NIL) {<NEW_LINE>mv.visitFieldInsn(GETSTATIC, ERT_NAME, "NIL", ENIL_TYPE.getDescriptor());<NEW_LINE>return ENIL_TYPE;<NEW_LINE>}<NEW_LINE>if (value == ERT.TRUE) {<NEW_LINE>mv.visitFieldInsn(GETSTATIC, ERT_NAME, "TRUE", EATOM_DESC);<N... | getDescriptor(), null, null); |
519,911 | private static void ensureInjectMessageHandler(Object thread) {<NEW_LINE>try {<NEW_LINE>Field f = thread.getClass().getDeclaredField("mH");<NEW_LINE>f.setAccessible(true);<NEW_LINE>Handler ah = (Handler) f.get(thread);<NEW_LINE>f = Handler.class.getDeclaredField("mCallback");<NEW_LINE>f.setAccessible(true);<NEW_LINE>bo... | f.set(ah, sActivityThreadHandlerCallback); |
1,220,848 | private static String resolveRelativePath(IContributor contributor, String libPathAsString) {<NEW_LINE>String bundleName = contributor.getName();<NEW_LINE>Bundle bundle = Platform.getBundle(bundleName);<NEW_LINE>if (bundle == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>File bundleFile;<NEW_LINE>try {<NEW_LINE>bun... | ).logException(e, message); |
1,683,247 | public static MarkedString computeJavadoc(IJavaElement element) throws CoreException {<NEW_LINE>IMember member = null;<NEW_LINE>String result = null;<NEW_LINE>if (element instanceof ITypeParameter) {<NEW_LINE>member = ((ITypeParameter) element).getDeclaringMember();<NEW_LINE>} else if (element instanceof IMember) {<NEW... | result) + CompletionResolveHandler.DEFAULT + defaultValue; |
895,744 | public static Money computeBalance(String accountUID, List<Split> splitList) {<NEW_LINE><MASK><NEW_LINE>AccountType accountType = accountsDbAdapter.getAccountType(accountUID);<NEW_LINE>String accountCurrencyCode = accountsDbAdapter.getAccountCurrencyCode(accountUID);<NEW_LINE>boolean isDebitAccount = accountType.hasDeb... | AccountsDbAdapter accountsDbAdapter = AccountsDbAdapter.getInstance(); |
1,219,100 | private AttributedString formatTransfers(String projectId) {<NEW_LINE>Collection<TransferEvent> transfers = this.transfers.getOrDefault(projectId, Collections.emptyMap()).values();<NEW_LINE>if (transfers.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TransferEvent event = transfers.iterator().next();<NEW_LINE>S... | append(event.getRepositoryId()); |
1,736,167 | public static void main(String[] args) throws Exception {<NEW_LINE>Properties properties = <MASK><NEW_LINE>final String eventMeshIp = properties.getProperty(ExampleConstants.EVENTMESH_IP);<NEW_LINE>final int eventMeshTcpPort = Integer.parseInt(properties.getProperty(ExampleConstants.EVENTMESH_TCP_PORT));<NEW_LINE>UserA... | Utils.readPropertiesFile(ExampleConstants.CONFIG_FILE_NAME); |
915,161 | public void openLibrary(Song song, int type) {<NEW_LINE>Intent intent = new Intent(this, LibraryActivity.class);<NEW_LINE>intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);<NEW_LINE>if (song != null) {<NEW_LINE>long id = -1;<NEW_LINE>String folder = null;<NEW_LINE>switch(type) {<NEW_LINE>case MediaUtils.TYPE_ARTIST:<NEW_... | queryGenreForSong(this, song.id); |
1,014,925 | private void animate(final Widget from, final Widget to, boolean rightToLeft, final HasHistory fromFocus, final HasHistory toFocus, final boolean focus) {<NEW_LINE>assert from != to;<NEW_LINE>if (focus)<NEW_LINE>toFocus.getFocusTarget().addClassName(styles_.inboundFocus());<NEW_LINE>setVisible(to, toFocus.getFocusTarge... | PX, width, Unit.PX); |
123,993 | private static void pushValue(final V8 v8, final V8Array result, final Object value, final Map<Object, V8Value> cache) {<NEW_LINE>if (value == null) {<NEW_LINE>result.pushUndefined();<NEW_LINE>} else if (value instanceof Integer) {<NEW_LINE>result.push(value);<NEW_LINE>} else if (value instanceof Long) {<NEW_LINE>resul... | , (TypedArray) value, cache); |
956,991 | private static List<RelationshipInfo> reduceNodeTypes(final List<RelationshipInfo> sourceList, Map<String, TypeInfo> typeInfos) {<NEW_LINE>final List<RelationshipInfo> reducedList = new ArrayList<>();<NEW_LINE>final Set<String> startNodeTypes = new LinkedHashSet<>();<NEW_LINE>final Set<String> endNodeTypes = new Linked... | add(info.getEndNodeType()); |
1,195,440 | public static void vertical9(Kernel1D_S32 kernel, GrayU8 src, GrayI8 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final byte[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3... | [indexSrc] & 0xFF) * k5; |
1,058,612 | private Map<String, String> queryConfigParam(long apiId, String version) {<NEW_LINE>String key = String.join("-", apiId + "", version);<NEW_LINE>Map<String, String> collect = configParamCache.getIfPresent(key);<NEW_LINE>if (collect == null) {<NEW_LINE>synchronized (this) {<NEW_LINE>collect = configParamCache.getIfPrese... | apiVersionVoList = apiServiceVersionDao.queryApiVersionByApiServiceId(apiId); |
1,055,921 | public void init(GraphHopperConfig ghConfig) {<NEW_LINE>// throw explicit error for deprecated configs<NEW_LINE>if (ghConfig.has("prepare.lm.weightings")) {<NEW_LINE>throw new IllegalStateException("Use profiles_lm instead of prepare.lm.weightings, see #1922 and docs/core/profiles.md");<NEW_LINE>}<NEW_LINE>setPreparati... | collect(Collectors.toList()); |
1,347,061 | public AsyncFuture<Void> run(final ShellIO io, TaskParameters base) throws Exception {<NEW_LINE>final Parameters params = (Parameters) base;<NEW_LINE>final SuggestBackend s = suggest.useOptionalGroup(params.group);<NEW_LINE>final ObjectMapper mapper = new ObjectMapper(new YAMLFactory());<NEW_LINE>final List<Callable<Te... | tests = new ArrayList<>(); |
75,558 | public static void derivX_F32(GrayF32 orig, GrayF32 derivX) {<NEW_LINE>final float[] data = orig.data;<NEW_LINE>final <MASK><NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height = orig.getHeight();<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>int index = width * y + 1;<NEW_LINE>int endX = index... | float[] imgX = derivX.data; |
982,414 | private void queryTable(DataSource ds) throws Exception {<NEW_LINE>Connection con = ds.getConnection(DB_USER, DB_PWD);<NEW_LINE>System.out.println("queryTable: " + schemaName);<NEW_LINE>try {<NEW_LINE>Statement stmt = con.createStatement();<NEW_LINE><MASK><NEW_LINE>ResultSet rs = stmt.executeQuery(query);<NEW_LINE>// S... | String query = "select * from " + schemaName + ".OAUTH20CLIENTCONFIG"; |
1,149,228 | public Chunk read(ByteBuf input, ClientWorld world) throws Exception {<NEW_LINE>int chunkX = input.readInt();<NEW_LINE>int chunkZ = input.readInt();<NEW_LINE>boolean fullChunk = input.readBoolean();<NEW_LINE>int primaryBitmask = Type.VAR_INT.readPrimitive(input);<NEW_LINE>Type.VAR_INT.readPrimitive(input);<NEW_LINE>// ... | getLight().readBlockLight(input); |
29,862 | /*<NEW_LINE>* Displays a confirmation box asking if you want to delete the note type and then deletes it if confirmed<NEW_LINE>*/<NEW_LINE>private void deleteModelDialog() {<NEW_LINE>if (mModelIds.size() > 1) {<NEW_LINE>Runnable confirm = () -> {<NEW_LINE>mCol.modSchemaNoCheck();<NEW_LINE>deleteModel();<NEW_LINE>dismis... | (R.string.toast_last_model)); |
865,286 | public Object executeFunction() {<NEW_LINE>ReferenceConstant symb_str_buffer = this.getSymbReceiver();<NEW_LINE>StringBuffer conc_str_buffer = (StringBuffer) this.getConcReceiver();<NEW_LINE>StringValue leftExpr = this.env.heap.getField(Types.JAVA_LANG_STRING_BUFFER, SymbolicHeap.$STRING_BUFFER_CONTENTS, conc_str_buffe... | String) this.getConcArgument(0); |
1,552,452 | private int tcp_reply_data(byte[] ib, int start, int len) throws Pausable {<NEW_LINE>if (log.isLoggable(Level.FINER))<NEW_LINE><MASK><NEW_LINE>ByteBuffer out = ByteBuffer.wrap(ib, start, len);<NEW_LINE>Packet.get_body(htype, out);<NEW_LINE>start = out.position();<NEW_LINE>int bodylen = out.remaining();<NEW_LINE>scanbit... | log.finer("tcp_reply_data len=" + len); |
49,533 | private static void generatePyramid(int height, Position3D startPos, GameArea<Tile, Block<Tile>> gameArea) {<NEW_LINE>double percent = 1.0 / (height + 1);<NEW_LINE>Tile wall = Tile.newBuilder().withCharacter(Symbols.BLOCK_SOLID).build();<NEW_LINE>AtomicInteger currLevel = new AtomicInteger(startPos.getZ());<NEW_LINE>fi... | interpolator = PYRAMID_TOP_COLOR.interpolateTo(PYRAMID_BOTTOM_COLOR); |
85,468 | public Object call(Properties bindings, Object[] args) {<NEW_LINE>if (args.length == 1) {<NEW_LINE>Object v = args[0];<NEW_LINE>if (v != null) {<NEW_LINE>if (v.getClass().isArray()) {<NEW_LINE>Object[] a = (Object[]) v;<NEW_LINE>return a.length;<NEW_LINE>} else if (v instanceof Collection<?>) {<NEW_LINE>return ((Collec... | v : v.toString()); |
767,780 | public static void horizontal(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final ... | + width - (kernelWidth - 1); |
819,953 | public void marshall(LoadBalancer loadBalancer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (loadBalancer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(loadBalancer.getName(), NAME_BINDING);<NEW_LINE>... | loadBalancer.getDnsName(), DNSNAME_BINDING); |
756,434 | private Iterator<FormattedText> applyPrintSettings(List<ArgumentMatcher> matchers, PrintSettings printSettings) {<NEW_LINE>List<FormattedText> out = new LinkedList<>();<NEW_LINE>int i = 0;<NEW_LINE>for (final ArgumentMatcher matcher : matchers) {<NEW_LINE>if (matcher instanceof ContainsExtraTypeInfo) {<NEW_LINE>Contain... | MatcherToString.toString(matcher))); |
1,145,282 | protected Validator createClassicValidator() throws javax.servlet.jsp.JspException {<NEW_LINE><MASK><NEW_LINE>ELContext elContext = facesContext.getELContext();<NEW_LINE>if (null != _binding) {<NEW_LINE>Object validator;<NEW_LINE>try {<NEW_LINE>validator = _binding.getValue(elContext);<NEW_LINE>} catch (Exception e) {<... | FacesContext facesContext = FacesContext.getCurrentInstance(); |
183,860 | final RemoveTagsFromCertificateResult executeRemoveTagsFromCertificate(RemoveTagsFromCertificateRequest removeTagsFromCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeTagsFromCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,460,992 | private boolean checkWillPublish(@NotNull final ChannelHandlerContext ctx, @NotNull final CONNECT msg) {<NEW_LINE>if (msg.getWillPublish() != null) {<NEW_LINE>if (Topics.containsWildcard(msg.getWillPublish().getTopic())) {<NEW_LINE>mqttConnacker.connackError(ctx.channel(), "A client (IP: {}) sent a CONNECT with a wildc... | Mqtt5ConnAckReasonCode.TOPIC_NAME_INVALID, ReasonStrings.CONNACK_NOT_AUTHORIZED_WILL_WILDCARD); |
1,044,820 | static <B extends ParsedBucket> B parseTermsBucketXContent(final XContentParser parser, final Supplier<B> bucketSupplier, final CheckedBiConsumer<XContentParser, B, IOException> keyConsumer) throws IOException {<NEW_LINE>final B bucket = bucketSupplier.get();<NEW_LINE>final List<Aggregation> <MASK><NEW_LINE>XContentPar... | aggregations = new ArrayList<>(); |
1,432,655 | protected Proxy validateProxyConfigFields() {<NEW_LINE>boolean isConfigValid = true;<NEW_LINE>int proxyTypeId = ((RadioGroup) mProxyConfigDialog.findViewById(R.id.proxy_type)).getCheckedRadioButtonId();<NEW_LINE>if (proxyTypeId == -1) {<NEW_LINE>isConfigValid = false;<NEW_LINE>appendStatusMessage(R.string.proxy_type_in... | appendStatusMessage(R.string.proxy_host_invalid); |
351,122 | // Handle failover<NEW_LINE>private void checkFailover(String failedNodeID, JsonObject theHAInfo) {<NEW_LINE>try {<NEW_LINE>JsonArray deployments = theHAInfo.getJsonArray("verticles");<NEW_LINE>String <MASK><NEW_LINE>String chosen = chooseHashedNode(group, failedNodeID.hashCode());<NEW_LINE>if (chosen != null && chosen... | group = theHAInfo.getString("group"); |
193,266 | final DescribeVolumesResult executeDescribeVolumes(DescribeVolumesRequest describeVolumesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVolumesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,009,645 | private static void executePst(Sequence srcSeries, PreparedStatement pst, Expression[] params, byte[] types, Context ctx, DBSession dbs, String dbCharset, boolean tranSQL, int dbType, String name) {<NEW_LINE>if (srcSeries == null)<NEW_LINE>return;<NEW_LINE>int paramCount = params == null ? 0 : params.length;<NEW_LINE>i... | [p].calculate(ctx); |
1,478,850 | public boolean expandGroup(int groupPos, boolean animate) {<NEW_LINE>ExpandableListPosition elGroupPos = ExpandableListPosition.obtain(ExpandableListPosition.GROUP, groupPos, -1, -1);<NEW_LINE>PositionMetadata <MASK><NEW_LINE>elGroupPos.recycle();<NEW_LINE>boolean retValue = mConnector.expandGroup(pm);<NEW_LINE>if (mOn... | pm = mConnector.getFlattenedPos(elGroupPos); |
1,757,217 | protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>JLabel nameLabel = new JLabel(IdeBundle.message("label.todo.filter.name"));<NEW_LINE>panel.add(nameLabel, new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, ... | .message("group.todo.filter.patterns"), false); |
1,523,505 | EvaluationResult evaluate(ConfigElement config, RegistryEntry registryEntry, String flatPrefix, boolean ignoreWarnings) throws ConfigEvaluatorException {<NEW_LINE>Map<String, ExtendedAttributeDefinition> attributeMap;<NEW_LINE>List<AttributeDefinition> requiredAttributes;<NEW_LINE>if (registryEntry != null) {<NEW_LINE>... | attributeMap = metatypeRegistry.getHierarchyCompleteAttributeMap(pid); |
289,075 | protected boolean lt(final Object o1, final Object o2) {<NEW_LINE>if (o1 == null && o2 != null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if ((o1 != null && o2 == null) || (o1 == null && o2 == null)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (o1 instanceof Number && o2 instanceof Number) {<NEW_LINE>return compa... | compareDateString(o1, o2) < 0; |
509,099 | public CompareFacesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CompareFacesResult compareFacesResult = new CompareFacesResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String name = reader.nextNa... | ().unmarshall(context)); |
1,105,107 | public PutEventStreamResult putEventStream(PutEventStreamRequest putEventStreamRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putEventStreamRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,401,235 | public static void waitForStatefulSetLabelsChange(String namespaceName, String statefulSetName, Map<String, String> labels) {<NEW_LINE>for (Map.Entry<String, String> entry : labels.entrySet()) {<NEW_LINE>boolean isK8sTag = entry.getKey().equals("controller-revision-hash") || entry.getKey().equals("statefulset.kubernete... | ).startsWith(Labels.STRIMZI_DOMAIN); |
100,120 | private static void convertHeaders(HttpHeaders headers, MimeHeaders cHeaders) {<NEW_LINE>if (headers.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Entry<AsciiString, String> e : headers) {<NEW_LINE>final <MASK><NEW_LINE>final String v = e.getValue();<NEW_LINE>if (k.isEmpty()) {<NEW_LINE>continue;<NEW_LINE>}<NE... | AsciiString k = e.getKey(); |
1,772,772 | public void tag(int tagType2, boolean longTag3, byte[] contents2) throws IOException {<NEW_LINE>byte[] contents = contents2;<NEW_LINE>int length = (contents != null) ? contents.length : 0;<NEW_LINE>boolean longTag2 = (length > 62) || longTag3;<NEW_LINE>int hdr = (tagType2 << 6) <MASK><NEW_LINE>out.writeUI16(hdr);<NEW_L... | + (longTag2 ? 0x3f : length); |
909,566 | private void createButtonsPanel(JFileChooser fc) {<NEW_LINE>buttonPanel = new JPanel();<NEW_LINE>buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));<NEW_LINE>approveButton = new JButton(getApproveButtonText(fc)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Dimension getMaximumSize() {<NEW_LINE>return... | (Box.createRigidArea(verticalStrut2)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.