idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
354,756 | public Comic parseInfo(String html, Comic comic) {<NEW_LINE>Node body = new Node(html);<NEW_LINE>String title = body.text("#ct > div.detail_info > a._btnInfo > p.subj");<NEW_LINE>String cover = body.src("#_episodeList > li > a > div.row > div.pic > img");<NEW_LINE>String update = body.text("#_episodeList > li > a > div... | update, intro, author, status); |
1,614,138 | boolean onTouchEvent(MotionEvent event) {<NEW_LINE>final int x = (int) event.getX();<NEW_LINE>final int y = (int) event.getY();<NEW_LINE>final Rect delegateBounds = getDelegateBounds();<NEW_LINE>if (delegateBounds == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int slop = ViewConfiguration.get(mDelegateView... | delegateBounds.contains(x, y); |
1,167,975 | private void authorizeAuthenticationStatement(CQLStatement statement, AuthenticationSubject authenticationSubject, AuthorizationService authorization) {<NEW_LINE>AuthenticationStatement castStatement = (AuthenticationStatement) statement;<NEW_LINE>Scope scope = null;<NEW_LINE>String role = null;<NEW_LINE>if (statement ... | .getMessage()), e); |
339,328 | public void onContext(PseudoStateContext<S, E> context) {<NEW_LINE>PseudoState<S, E> pseudoState = context.getPseudoState();<NEW_LINE>State<S, E> toStateOrig = findStateWithPseudoState(pseudoState);<NEW_LINE>StateContext<S, E> stateContext = buildStateContext(Stage.STATE_EXIT, <MASK><NEW_LINE>Mono<State<S, E>> toState ... | null, null, getRelayStateMachine()); |
1,485,687 | public static QueryOrderInfoAfterSaleResponse unmarshall(QueryOrderInfoAfterSaleResponse queryOrderInfoAfterSaleResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOrderInfoAfterSaleResponse.setRequestId<MASK><NEW_LINE>queryOrderInfoAfterSaleResponse.setCode(_ctx.stringValue("QueryOrderInfoAfterSaleResponse.Code"));<NE... | (_ctx.stringValue("QueryOrderInfoAfterSaleResponse.RequestId")); |
542,050 | private void createDesignDocForAggregations() throws URISyntaxException, UnsupportedEncodingException, IOException, ClientProtocolException {<NEW_LINE>HttpResponse response = null;<NEW_LINE>URI uri = new URI(CouchDBConstants.PROTOCOL, null, httpHost.getHostName(), httpHost.getPort(), CouchDBConstants.URL_SEPARATOR + da... | designDocument.setLanguage(CouchDBConstants.LANGUAGE); |
697,800 | public boolean apply(Game game, Ability source) {<NEW_LINE>int tappedAmount = 0;<NEW_LINE>Player you = game.<MASK><NEW_LINE>TargetCreaturePermanent target = new TargetCreaturePermanent(0, Integer.MAX_VALUE, filter, true);<NEW_LINE>if (target.canChoose(source.getControllerId(), source, game) && target.choose(Outcome.Tap... | getPlayer(source.getControllerId()); |
333,440 | final DeleteAttributesResult executeDeleteAttributes(DeleteAttributesRequest deleteAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAttributesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteAttributesRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
331,346 | static Throwable wrapIfNecessary(final Throwable cause) {<NEW_LINE>if (cause instanceof io.netty.handler.codec.http2.Http2Exception) {<NEW_LINE>final int streamId = (cause instanceof StreamException) ? ((StreamException) <MASK><NEW_LINE>final io.netty.handler.codec.http2.Http2Exception h2Cause = (io.netty.handler.codec... | cause).streamId() : 0; |
1,216,649 | public ChangeInfo implement() throws Exception {<NEW_LINE>final FileObject file = handle.getFileObject();<NEW_LINE>final JTextComponent comp = EditorRegistry.lastFocusedComponent();<NEW_LINE>if (file != null && file == getFileObject(comp)) {<NEW_LINE>final int[] pos = <MASK><NEW_LINE>JavaSource.forFileObject(file).runU... | new int[] { -1 }; |
828,628 | public Container xor(final ArrayContainer value2) {<NEW_LINE>final ArrayContainer value1 = this;<NEW_LINE>final int totalCardinality = value1.getCardinality() + value2.getCardinality();<NEW_LINE>if (totalCardinality > DEFAULT_MAX_SIZE) {<NEW_LINE>// it could be a bitmap!<NEW_LINE>BitmapContainer bc = new BitmapContaine... | v = this.content[k]; |
1,627,660 | private void loadNode407() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList_LastUpdateTime, new QualifiedName(0, "LastUpdateTime"), new LocalizedText("en", "LastUpdateTime"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.v... | .expanded(), true)); |
32,403 | protected void updateTrackables() {<NEW_LINE>Collection<Plane> planes = surfar.frame.getUpdatedTrackables(Plane.class);<NEW_LINE>for (Plane plane : planes) {<NEW_LINE>if (plane.getSubsumedBy() != null)<NEW_LINE>continue;<NEW_LINE>float[] mat;<NEW_LINE>if (trackMatrices.containsKey(plane)) {<NEW_LINE>mat = trackMatrices... | Pose pose = plane.getCenterPose(); |
1,333,996 | public List<Feature> bind(StructType schema) {<NEW_LINE>List<Feature> features = new ArrayList<>();<NEW_LINE>for (Feature feature : x.bind(schema)) {<NEW_LINE>StructField xfield = feature.field();<NEW_LINE>DataType type = xfield.type;<NEW_LINE>if (!(type.isDouble() || type.isFloat() || type.isInt() || type.isLong() || ... | DataTypes.DoubleType, xfield.measure); |
1,489,667 | final UpdateParameterGroupResult executeUpdateParameterGroup(UpdateParameterGroupRequest updateParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
678,764 | private void calculate() throws UnknownHostException {<NEW_LINE>ByteBuffer maskBuffer;<NEW_LINE>int targetSize;<NEW_LINE>if (inetAddress.getAddress().length == 4) {<NEW_LINE>maskBuffer = ByteBuffer.allocate(4).putInt(-1);<NEW_LINE>targetSize = 4;<NEW_LINE>} else {<NEW_LINE>maskBuffer = ByteBuffer.allocate(16).putLong(-... | endIp.toByteArray(), targetSize); |
347,457 | public static Story from(Cursor cursor) {<NEW_LINE>Long internalId = cursor.getLong(HNewsContract.StoryEntry.COLUMN_ID);<NEW_LINE>Long id = cursor.getLong(HNewsContract.StoryEntry.COLUMN_ITEM_ID);<NEW_LINE>String type = cursor.getString(HNewsContract.StoryEntry.COLUMN_TYPE);<NEW_LINE>String by = cursor.getString(HNewsC... | getLong(HNewsContract.StoryEntry.COLUMN_TIME_AGO); |
98,031 | // ----------------------------------------------------------------<NEW_LINE>private static // returns line-counter<NEW_LINE>// returns line-counter<NEW_LINE>int handleStream(BufferedReader reader, String filename, MIH256<String> mihWithCenters, Map<Hash256, Integer> centersToIndices, int distanceThreshold, int lineCou... | <Hash256AndMetadata<String>>(); |
412,446 | public final void emit(AMD64Assembler asm, OperandSize size, Register dst, Register nds, Register src) {<NEW_LINE>assert verify(<MASK><NEW_LINE>int pre;<NEW_LINE>int opc;<NEW_LINE>boolean rexVexW = (size == QWORD) ? true : false;<NEW_LINE>AMD64InstructionAttr attributes = new AMD64InstructionAttr(AvxVectorLen.AVX_128bi... | asm, size, dst, src); |
1,731,513 | private static void insertAlignedRecords() throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>List<String> multiSeriesIds = new ArrayList<>();<NEW_LINE>List<List<String>> multiMeasurementComponentsList = new ArrayList<>();<NEW_LINE>List<List<TSDataType>> typeList = new ArrayList<>();<NEW_LINE>List<... | types.add(TSDataType.INT32); |
70,117 | void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException {<NEW_LINE>final <MASK><NEW_LINE>final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null;<NEW_LINE>final boolean parentIndent = parent != null && parent.shouldIndent(out);<NEW_LINE>final boolean ... | boolean prettyPrint = out.prettyPrint(); |
142,910 | static OrientDBInternal remote(String[] hosts, OrientDBConfig configuration) {<NEW_LINE>OrientDBInternal factory;<NEW_LINE>try {<NEW_LINE>String className = "com.orientechnologies.orient.core.db.OrientDBRemote";<NEW_LINE>ClassLoader loader;<NEW_LINE>if (configuration != null) {<NEW_LINE>loader = configuration.getClassL... | configuration, Orient.instance()); |
790,934 | public <T> InternalCompletableFuture<ReadResultSet<T>> readFromEventJournal(long startSequence, int minSize, int maxSize, int partitionId, java.util.function.Predicate<? super EventJournalMapEvent<K, V>> predicate, java.util.function.Function<? super EventJournalMapEvent<K, V>, ? extends T> projection) {<NEW_LINE>if (m... | , ss.toData(projection)); |
1,315,518 | private Collection<RemoteTransaction> attemptResumeTransactions(Collection<Long> versions) {<NEW_LINE>try {<NEW_LINE>Collection<RemoteTransaction> remoteTransactions = new ArrayList<>();<NEW_LINE>for (Long version : versions) {<NEW_LINE>File transactionFile = config.getTransactionFile(version);<NEW_LINE>// If a single ... | (config, transferManager, transactionTO)); |
1,413,801 | final DescribeWorkforceResult executeDescribeWorkforce(DescribeWorkforceRequest describeWorkforceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeWorkforceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,063,319 | public static void testStaticMethodNotFirst() {<NEW_LINE>// multiple arguments.<NEW_LINE>assertTrue(f1(10, 1, 2) == 30);<NEW_LINE>assertTrue(Main.f1(10<MASK><NEW_LINE>// no argument for varargs.<NEW_LINE>assertTrue(f1(10) == 0);<NEW_LINE>assertTrue(Main.f1(10) == 0);<NEW_LINE>// array literal for varargs.<NEW_LINE>asse... | , 1, 2) == 30); |
537,747 | public List<String> expendGroupRoleToGroup(List<String> groupList, List<String> roleList) throws Exception {<NEW_LINE>List<String> groupIds = new ArrayList<>();<NEW_LINE>List<String> expendGroupIds = new ArrayList<>();<NEW_LINE>if (ListTools.isNotEmpty(groupList)) {<NEW_LINE>for (String s : groupList) {<NEW_LINE>Group ... | trim(groupIds, true, true); |
1,245,447 | public Organization unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Organization organization = new Organization();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
247,773 | public ConcurrentMap<String, Object> deserializeAttributes(final byte[] in) {<NEW_LINE>ByteArrayInputStream bis = null;<NEW_LINE>ObjectInputStream ois = null;<NEW_LINE>try {<NEW_LINE>bis = new ByteArrayInputStream(in);<NEW_LINE>ois = createObjectInputStream(bis);<NEW_LINE>final ConcurrentMap<String, Object> attributes ... | in.length + " bytes of data", e); |
1,419,618 | final CreateCaseResult executeCreateCase(CreateCaseRequest createCaseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCaseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | invoke(request, responseHandler, executionContext); |
1,467,858 | private void addToServerContextBindingMap(String interfaceName) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "addToServerContextBindingMap : " + interfaceName + " (implicit)");<NEW_LINE>// Re-wrote method to only add short-form default (implicit). d457053.1<NEW_LI... | bdata = ivServerContextBindingMap.get(interfaceName); |
469,168 | // -------------------------------------<NEW_LINE>public static void register() {<NEW_LINE>// Check JEI recipes are enabled<NEW_LINE>if (!PersonalConfig.enableZombieGenJEIRecipes.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MachinesPlugin.iModRegistry.addRecipeCategories(new ZombieGeneratorRecipeCategory(MachinesPlugi... | new ZombieGeneratorRecipeWrapper()), UID); |
77,114 | public void processResult(int rc, String path, Object ctx) {<NEW_LINE>if (BKException.Code.OK != rc) {<NEW_LINE>if (skipUnrecoverableLedgers) {<NEW_LINE>LOG.warn("Failed to recover ledger: {} : {}, skip recover it.", lId, BKException.codeLogger(rc));<NEW_LINE>rc = BKException.Code.OK;<NEW_LINE>} else {<NEW_LINE>LOG.err... | processResult(rc, path, ctx); |
1,540,700 | public void toggleLovedItem(final Query query) {<NEW_LINE>boolean doSweetSweetLovin = !DatabaseHelper.get().isItemLoved(query);<NEW_LINE>Log.d(TAG, "Hatchet sync - " + (doSweetSweetLovin ? "loved" : "unloved") + " track " + query.getName() + " by " + query.getArtist().getName() + " on " + query.getAlbum().getName());<N... | getDefault().post(event); |
226,925 | protected void vertical(GrayF32 intensity) {<NEW_LINE>float[] hXX = horizXX.data;<NEW_LINE>float[] hXY = horizXY.data;<NEW_LINE>float[] hYY = horizYY.data;<NEW_LINE>final float[] inten = intensity.data;<NEW_LINE>final int imgHeight = horizXX.getHeight();<NEW_LINE>final int imgWidth = horizXX.getWidth();<NEW_LINE>final ... | float[] tempYY = work.zz; |
644,565 | private ObjectNode dumpInclude(Include include) {<NEW_LINE>ObjectNode includeNode = OBJECT_MAPPER.createObjectNode();<NEW_LINE>ArrayNode typesNode = OBJECT_MAPPER.createArrayNode();<NEW_LINE>if (include.hasTypes()) {<NEW_LINE>for (TypeDef type : include.getTypes()) {<NEW_LINE>ObjectNode typeDefNode = OBJECT_MAPPER.crea... | add(eClass.getName()); |
1,463,286 | public static void execute(ManagerService service, boolean isClear) {<NEW_LINE><MASK><NEW_LINE>// write header<NEW_LINE>buffer = HEADER.write(buffer, service, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : FIELDS) {<NEW_LINE>buffer = field.write(buffer, service, true);<NEW_LINE>}<NEW_LINE>// write eo... | ByteBuffer buffer = service.allocate(); |
415,288 | public Answer createVolumeFromSnapshot(final CopyCommand cmd) {<NEW_LINE>try {<NEW_LINE>final DataTO srcData = cmd.getSrcTO();<NEW_LINE>final SnapshotObjectTO snapshot = (SnapshotObjectTO) srcData;<NEW_LINE>final DataTO destData = cmd.getDestTO();<NEW_LINE>final PrimaryDataStoreTO pool = (PrimaryDataStoreTO) destData.g... | ().toUpperCase())); |
1,533,864 | public JUnitResult build(List<Pair<TestIdentifier, TestExecutionResult>> results) {<NEW_LINE>boolean wasSuccessful = results.stream().map(Pair::getRight).noneMatch(r -> r.getStatus() != TestExecutionResult.Status.SUCCESSFUL);<NEW_LINE>int failureCount = (int) results.stream().map(Pair::getRight).filter(r -> r.getStatus... | JUnitResult(wasSuccessful, failureCount, runCount); |
204,707 | private static Sld extractFromLayout(SldLayout sldLayout) {<NEW_LINE>Sld sld = Context.getpmlObjectFactory().createSld();<NEW_LINE>// Clone first<NEW_LINE>sld.setCSld(XmlUtils.deepCopy(sldLayout.getCSld(), Context.jcPML));<NEW_LINE>sld.setClrMapOvr(XmlUtils.deepCopy(sldLayout.getClrMapOvr(), Context.jcPML));<NEW_LINE>/... | .getCNvPr().getName(); |
462,134 | public void packetReceived(DHTUDPPacketReply packet, InetSocketAddress from_address, long elapsed_time) {<NEW_LINE>try {<NEW_LINE>if (packet.getConnectionId() != connection_id) {<NEW_LINE>throw (new Exception("connection id mismatch"));<NEW_LINE>}<NEW_LINE>contact.setInstanceIDAndVersion(packet.getTargetInstanceID(), p... | new DHTUDPPacketHandlerException("findValue failed", e)); |
692,622 | final GetHostedConfigurationVersionResult executeGetHostedConfigurationVersion(GetHostedConfigurationVersionRequest getHostedConfigurationVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getHostedConfigurationVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,238,982 | private boolean isLocationInExpandControl(TreePath path, Point location) {<NEW_LINE>if (tree.getModel().isLeaf(path.getLastPathComponent()))<NEW_LINE>return false;<NEW_LINE>Rectangle r = tree.getPathBounds(path);<NEW_LINE>int boxWidth = 8;<NEW_LINE>Insets i = tree.getInsets();<NEW_LINE>int indent = 0;<NEW_LINE>if (tree... | .x - positionX - indent - boxWidth; |
1,519,253 | public void run(WorkingCopy workingCopy) throws Exception {<NEW_LINE>workingCopy.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>Element elem = elementHandle.resolve(workingCopy);<NEW_LINE>if (elem != null) {<NEW_LINE>Tree tree = workingCopy.getTrees().getTree(elem);<NEW_LINE>TreeMaker make = workingCopy.getTreeMaker();<N... | annType = make.QualIdent(temporalAnnType); |
1,110,353 | protected String doSubmitAction(@ModelAttribute("command") GeneralSettingsCommand command, RedirectAttributes redirectAttributes) {<NEW_LINE>int themeIndex = Integer.parseInt(command.getThemeIndex());<NEW_LINE>Theme theme = settingsService.getAvailableThemes()[themeIndex];<NEW_LINE>int localeIndex = Integer.parseInt(co... | setVideoFileTypes(command.getVideoFileTypes()); |
259,286 | public Object visitMemberSelect(MemberSelectTree node, Object p) {<NEW_LINE>String exp = node.getExpression().toString();<NEW_LINE>// ClassName.this<NEW_LINE>if (exp.equals("this") || exp.endsWith(".this")) {<NEW_LINE>// NOI18N<NEW_LINE>addInstanceForType(findType(node.getExpression()));<NEW_LINE>} else if (exp.equals(... | getExpression()).getExpression(); |
1,373,818 | final UpdateWorkloadResult executeUpdateWorkload(UpdateWorkloadRequest updateWorkloadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWorkloadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateWorkl... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
304,380 | private HmilyParticipant buildParticipant(final HmilyTransactionContext context, final Invoker<?> invoker, final Invocation invocation) throws HmilyRuntimeException {<NEW_LINE>if (HmilyActionEnum.TRYING.getCode() != context.getAction()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>HmilyParticipant hmilyParticipant = new... | clazz, methodName, args, arguments); |
1,633,996 | public static NeighborQueue search(float[] query, int topK, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graph, Bits acceptOrds, int visitedLimit) throws IOException {<NEW_LINE>HnswGraphSearcher graphSearcher = new HnswGraphSearcher(similarityFunction, new NeighborQueue(topK,... | vectors, graph, acceptOrds, visitedLimit); |
1,331,435 | void initialize(TransactionUserWrapper tuWrapper, SipServletRequestImpl sipMessage, SipApplicationSessionImpl sipApp) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>if (sipMessage != null && sipApp != null) {<NEW_LINE>Object[] params = { tuWrapper, sipMessage.getMethod(), sipApp.getId() };<NEW_LINE>c_log... | traceEntry(this, "initialize", params); |
1,368,654 | public void onClick(View v) {<NEW_LINE>String accountType = mAccountList[pos][2];<NEW_LINE>if (TextUtils.equals(accountType, EXISTING_ACCOUNT)) {<NEW_LINE>// otherwise support the actual plugin-type<NEW_LINE>showSetupAccountForm(helper.getProviderNames().get(0), null, null, false, helper.getProviderNames()<MASK><NEW_LI... | .get(0), false); |
534,184 | public void renderByItem(ItemStack stack, TransformType transformType, PoseStack matrixStackIn, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) {<NEW_LINE>float partialTicks = mc().getFrameTime();<NEW_LINE>if (stack.getItem() instanceof IOBJModelCallback) {<NEW_LINE>IOBJModelCallback<ItemStack> ... | mc().player, partialTicks); |
481,290 | public void onChanged(Change<? extends E> c) {<NEW_LINE>while (c.next()) {<NEW_LINE>if (c.wasAdded() || c.wasRemoved()) {<NEW_LINE>final int removedSize = c.getRemovedSize();<NEW_LINE>final List<? extends E> removed = c.getRemoved();<NEW_LINE>for (int i = 0; i < removedSize; ++i) {<NEW_LINE>observer.detachListener(remo... | (decoratedList.get(i)); |
867,934 | public static <KK extends RecordTemplate, KP extends RecordTemplate, V extends RecordTemplate> BatchKVResponse<ComplexResourceKey<KK, KP>, V> createWithComplexKey(Class<V> valueClass, Class<KK> keyKeyClass, Class<KP> keyParamsClass, Map<ComplexResourceKey<KK, KP>, V> recordTemplates, Map<ComplexResourceKey<KK, KP>, Err... | buildDataMap(recordTemplates, errorResponses, version); |
1,687,497 | private void checkAliases(Class<?> parent, String classname, String[] parts) {<NEW_LINE>Class<?> c = ELKIServiceRegistry.findImplementation((Class<Object>) parent, classname);<NEW_LINE>if (c == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Alias ann = c.getAnnotation(Alias.class);<NEW_LINE>if (ann == null) {<NEW_LINE>if... | (' ').append(a); |
357,382 | public static ListScaleOutEcuResponse unmarshall(ListScaleOutEcuResponse listScaleOutEcuResponse, UnmarshallerContext _ctx) {<NEW_LINE>listScaleOutEcuResponse.setRequestId(_ctx.stringValue("ListScaleOutEcuResponse.RequestId"));<NEW_LINE>listScaleOutEcuResponse.setCode(_ctx.integerValue("ListScaleOutEcuResponse.Code"));... | ("ListScaleOutEcuResponse.EcuInfoList[" + i + "].DockerEnv")); |
96,934 | final ListReusableDelegationSetsResult executeListReusableDelegationSets(ListReusableDelegationSetsRequest listReusableDelegationSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReusableDelegationSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
826,454 | public void createWithByForField(AccessLevel level, EclipseNode fieldNode, EclipseNode sourceNode, boolean whineIfExists, List<Annotation> onMethod) {<NEW_LINE>ASTNode source = sourceNode.get();<NEW_LINE>if (fieldNode.getKind() != Kind.FIELD) {<NEW_LINE>sourceNode.addError("@WithBy is only supported on a class or a fie... | String.format(" (%s)", altName); |
1,826,205 | protected void calculateErrorCorrection(int dest) {<NEW_LINE>if (errorLevel < 0 || errorLevel > 8)<NEW_LINE>errorLevel = 0;<NEW_LINE>int[] A = ERROR_LEVEL[errorLevel];<NEW_LINE>int Alength = 2 << errorLevel;<NEW_LINE>for (int k = 0; k < Alength; ++k) codewords[dest + k] = 0;<NEW_LINE>int lastE = Alength - 1;<NEW_LINE>f... | 1]) + t3) % MOD; |
1,465,368 | public void CreateIndexes() {<NEW_LINE>try (Connection connection = GetConnection()) {<NEW_LINE>String[] tableNames = GetFileList();<NEW_LINE>try (Statement statement = connection.createStatement()) {<NEW_LINE>for (String tableName : tableNames) {<NEW_LINE>tableName = validateFname(tableName);<NEW_LINE>try {<NEW_LINE>s... | tableName + "_idx on phantombot_" + tableName + " (section, variable);"); |
31,453 | public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) {<NEW_LINE>int ox = clicked.getBlockX();<NEW_LINE>int oy = clicked.getBlockY();<NEW_LINE>int oz = clicked.getBlockZ();<NEW_LINE>BlockType initialType = clicked.getExtent... | ().distanceSq(pos)); |
888,852 | StaticObject doCached(@JavaType(internalName = "Ljava/lang/invoke/MemberName;") StaticObject self, @JavaType(value = Class.class) StaticObject caller, int lookupMode, boolean speculativeResolve, @Bind("getContext()") EspressoContext context, @Cached ResolveNode resolve) {<NEW_LINE>StaticObject result = StaticObject.NUL... | .java_lang_invoke_MemberName_flags.getInt(self)); |
1,607,118 | public String toDebugString(final Locale locale) {<NEW_LINE>if (values == null) {<NEW_LINE>return "No Email Item";<NEW_LINE>}<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>for (final Map.Entry<String, EmailItemBean> entry : values.entrySet()) {<NEW_LINE>final String localeKey = entry.getKey();<NEW_LIN... | ()).append('\n'); |
257,225 | private void updateTwinnedDeclaration(String alias, Name refName, Ref ref) {<NEW_LINE>checkNotNull(ref.getTwin());<NEW_LINE>// Don't handle declarations of an already flat name, just qualified names.<NEW_LINE>if (!ref.getNode().isGetProp()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node rvalue = ref<MASK><NEW_LINE>Node pa... | .getNode().getNext(); |
1,106,473 | public void recordProcessInstanceDeleted(String processInstanceId, String processDefinitionId, String processTenantId) {<NEW_LINE>if (isHistoryEnabled(processDefinitionId)) {<NEW_LINE>HistoricProcessInstanceEntity historicProcessInstance = getHistoricProcessInstanceEntityManager().findById(processInstanceId);<NEW_LINE>... | processDefinitionId, child.getTenantId()); |
1,477,481 | private void readFromFile() throws TextIndexMetadataException {<NEW_LINE>try {<NEW_LINE>DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();<NEW_LINE>Document doc = builder.parse(metadataFilePath.toFile());<NEW_LINE>doc.getDocumentElement().normalize();<NEW_LINE>Element rootElement = doc... | Element) coreElements.item(coreIndx); |
1,768,076 | /*<NEW_LINE>* Restore values when a playback ends<NEW_LINE>*/<NEW_LINE>private void completionMediaPlayer(long msgId) {<NEW_LINE>if (messages == null || messages.isEmpty() || messagesPlaying == null || messagesPlaying.isEmpty())<NEW_LINE>return;<NEW_LINE>for (MessageVoiceClip m : messagesPlaying) {<NEW_LINE>if (m.getId... | .getMediaPlayer().stop(); |
1,072,499 | public void init(final ServletConfig config) throws ServletException {<NEW_LINE>super.init(config);<NEW_LINE>final ServletContext context = config.getServletContext();<NEW_LINE>if (null == registry) {<NEW_LINE>final Object registryAttr = context.getAttribute(METRICS_REGISTRY);<NEW_LINE>if (registryAttr instanceof Metri... | jsonpParamName = context.getInitParameter(CALLBACK_PARAM); |
246,697 | public boolean isPreAuthorizedScope(OAuth20Provider provider, String clientId, String[] scopes) throws OAuth20Exception {<NEW_LINE>if (scopes == null || scopes.length == 0) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "Null or no scopes provided");<NEW_LINE>}<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if... | OAuth20InvalidClientException("security.oauth20.error.invalid.client", clientId, false); |
1,092,531 | public static void YUV420pToRGBH2H(byte yh, byte yl, byte uh, byte ul, byte vh, byte vl, int nlbi, byte[] data, byte[] lowBits, int nlbo, int off) {<NEW_LINE>int clipMax = ((1 << nlbo) << 8) - 1;<NEW_LINE>int round = (1 << nlbo) >> 1;<NEW_LINE>int c = ((yh + 128) << nlbi) + yl - 64;<NEW_LINE>int d = ((uh + 128) << nlbi... | >> 8, 0, clipMax); |
1,286,796 | public static JsonObject execute(ValidationAction action) {<NEW_LINE>JsonBuilder obj = new JsonBuilder();<NEW_LINE>obj.startObject();<NEW_LINE>final String queryString = getArg(action, paramQuery);<NEW_LINE>String querySyntax = getArgOrNull(action, paramSyntax);<NEW_LINE>if (querySyntax == null || querySyntax.equals(""... | value(ex.getMessage()); |
900,352 | private static void print(@Nonnull ConsoleView consoleView, @Nullable Notification notification, @Nonnull String text) {<NEW_LINE>String content = StringUtil.convertLineSeparators(text);<NEW_LINE>while (true) {<NEW_LINE>Matcher tagMatcher = TAG_PATTERN.matcher(content);<NEW_LINE>if (!tagMatcher.find()) {<NEW_LINE>conso... | href = aMatcher.group(2); |
1,287,504 | public void refresh(Object inventory, Object locator, Object product, Object aislex, Object lineFrom, Object lineTo, IStatusBar statusBar, Boolean isSecondCount) {<NEW_LINE>m_mTab.dataSave(true);<NEW_LINE>MQuery query = m_staticQuery.deepCopy();<NEW_LINE>// Physical Inventory<NEW_LINE>if (inventory == null || inventory... | "Line", MQuery.LESS_EQUAL, lineTo); |
1,173,682 | static Span generateSpan(SpanData spanData, Endpoint localEndpoint) {<NEW_LINE>SpanContext context = spanData.getContext();<NEW_LINE>long startTimestamp = toEpochMicros(spanData.getStartTimestamp());<NEW_LINE>// TODO(sebright): Fix the Checker Framework warning.<NEW_LINE>@SuppressWarnings("nullness")<NEW_LINE>long endT... | getParentSpanId().toLowerBase16()); |
860,905 | protected void ended(GENASubscription subscription, CancelReason reason, UpnpResponse response) {<NEW_LINE>final Service service = subscription.getService();<NEW_LINE>if (service != null) {<NEW_LINE>final ServiceId serviceId = service.getServiceId();<NEW_LINE>final Device device = service.getDevice();<NEW_LINE>if (devi... | DeviceIdentity deviceRootIdentity = deviceRoot.getIdentity(); |
474,294 | public void unboxVar(UnboxState state, Class reqdType, Map<Variable, TemporaryLocalVariable> unboxMap, Variable v, List<Instr> newInstrs) {<NEW_LINE>Variable unboxedV = getUnboxedVar(reqdType, unboxMap, v);<NEW_LINE>if (reqdType == java.lang.Boolean.class) {<NEW_LINE>newInstrs.add(new UnboxBooleanInstr(unboxedV, v));<N... | new UnboxFixnumInstr(unboxedV, v)); |
1,132,927 | private void extractEmbeddedOverlays(int frameIndex, BufferedImage bi) {<NEW_LINE>for (int gg0000 : embeddedOverlays) {<NEW_LINE>int ovlyRow = dataset.getInt(Tag.OverlayRows | gg0000, 0);<NEW_LINE>int ovlyColumns = dataset.getInt(Tag.OverlayColumns | gg0000, 0);<NEW_LINE>int ovlyBitPosition = dataset.getInt(Tag.Overlay... | gg0000, VR.OB, ovlyData); |
1,239,120 | public static ListInuseServicesResponse unmarshall(ListInuseServicesResponse listInuseServicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInuseServicesResponse.setRequestId(_ctx.stringValue("ListInuseServicesResponse.RequestId"));<NEW_LINE>listInuseServicesResponse.setNextToken(_ctx.stringValue("ListInuseService... | ("ListInuseServicesResponse.Services[" + i + "].Status")); |
1,017,488 | public CredentialValidationResult validate(Credential credential) {<NEW_LINE>if (!(credential instanceof YubikeyCredential)) {<NEW_LINE>return CredentialValidationResult.NOT_VALIDATED_RESULT;<NEW_LINE>}<NEW_LINE>YubikeyCredential yubikeyCredential = ((YubikeyCredential) credential);<NEW_LINE>try {<NEW_LINE><MASK><NEW_L... | String oneTimePassword = yubikeyCredential.getOneTimePasswordString(); |
1,110,308 | public static BatchGetEdgeInstanceChannelResponse unmarshall(BatchGetEdgeInstanceChannelResponse batchGetEdgeInstanceChannelResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchGetEdgeInstanceChannelResponse.setRequestId(_ctx.stringValue("BatchGetEdgeInstanceChannelResponse.RequestId"));<NEW_LINE>batchGetEdgeInstanceCha... | + "].ConfigList[" + j + "].Content")); |
1,855,040 | public Void visitFibForward(FibForward fibForward) {<NEW_LINE>assert !routeInfos.isEmpty();<NEW_LINE>RouteInfo primaryRouteInfo = routeInfos.get(0);<NEW_LINE>if (primaryRouteInfo.getNextHop() instanceof NextHopVtep) {<NEW_LINE>NextHopVtep nhVtep = (NextHopVtep) primaryRouteInfo.getNextHop();<NEW_LINE>routingStepDetailB... | setOutputInterface(fibForward.getInterfaceName()); |
1,746,347 | public static void register(String userName, String userPassword, String session) {<NEW_LINE><MASK><NEW_LINE>SharedPreferences userPrefs = context.getSharedPreferences(getSharedPrefName(context), 0);<NEW_LINE>if (userName != null && userName.length() != 0 && userPassword != null && userPassword.length() != 0) {<NEW_LIN... | Context context = ContextFactory.getContext(); |
1,063,785 | public Builder mergeFrom(voldemort.client.protocol.pb.VAdminProto.GetConfigResponse other) {<NEW_LINE>if (other == voldemort.client.protocol.pb.VAdminProto.GetConfigResponse.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.configMap_.isEmpty()) {<NEW_LINE>if (result.configMap_.isEmpty()) {<NEW_LINE>resul... | invalidConfigMap_.addAll(other.invalidConfigMap_); |
56,551 | final UpdateGeoMatchSetResult executeUpdateGeoMatchSet(UpdateGeoMatchSetRequest updateGeoMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGeoMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | endClientExecution(awsRequestMetrics, request, response); |
19,610 | private void createHeaderRow(Sheet sheet, DecisionTable table) throws AxelorException {<NEW_LINE>Row titleRow = sheet.createRow(sheet.getLastRowNum());<NEW_LINE>Cell titleCell = titleRow.createCell(0);<NEW_LINE>titleCell.setCellValue(table.getParentElement().getAttributeValue("name"));<NEW_LINE>sheet.autoSizeColumn(0);... | output.getId() + ")"); |
598,321 | public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("KeyFactory.SPHINCSPLUS", PREFIX + "SPHINCSPlusKeyFactorySpi");<NEW_LINE>provider.addAlgorithm("KeyPairGenerator.SPHINCSPLUS", PREFIX + "SPHINCSPlusKeyPairGeneratorSpi");<NEW_LINE>provider.addAlgorithm("Alg.Alias.KeyFactory.SPHINCS+",... | provider, BCObjectIdentifiers.sphincsPlus, "SPHINCSPLUS"); |
527,576 | public static void main(String[] args) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>char[][] board = { { '5', '3', '.', '.', '7', '.', '.', '.', '.' }, { '6', '.', '.', '1', '9', '5', '.', '.', '.' }, { '.', '9', '8', '.', '.', '.', '.', '6', '.' }, { '8', '.', '.', '.', '6', '.', '.', '.', '3' }, { '4', '.',... | System.out.println("--Suduko board---"); |
602,682 | public MergedWarpMessageProto convert2Proto(MergedWarpMessage mergedWarpMessage) {<NEW_LINE>final short typeCode = mergedWarpMessage.getTypeCode();<NEW_LINE>final AbstractMessageProto abstractMessage = AbstractMessageProto.newBuilder().setMessageType(MessageTypeProto.forNumber(typeCode)).build();<NEW_LINE>List<Any> lis... | getClass().getName()); |
404,771 | final EvaluateFeatureResult executeEvaluateFeature(EvaluateFeatureRequest evaluateFeatureRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(evaluateFeatureRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
944,388 | private T[] deleteRecursiveRoot() {<NEW_LINE>// Store the point to remove<NEW_LINE><MASK><NEW_LINE>// Set the root to null if it has no children<NEW_LINE>if (root.left == null && root.right == null) {<NEW_LINE>root = null;<NEW_LINE>return replacedPoint;<NEW_LINE>} else // If a right child exists, find a minimum to repl... | T[] replacedPoint = root.point; |
1,761,662 | private MetaDataContexts buildChangedMetaDataContextWithChangedDataSource(final ShardingSphereMetaData originalMetaData, final Map<String, DataSourceProperties> newDataSourceProps) throws SQLException {<NEW_LINE>Collection<String> deletedDataSources = getDeletedDataSources(originalMetaData, newDataSourceProps).keySet()... | .getProps().getProps(); |
599,244 | public void parseLoginAddressValue(String option) throws IllegalArgumentException {<NEW_LINE>// <user>:<password>@<host>:<port><NEW_LINE>int <MASK><NEW_LINE>if (uphpdelimiter >= 0) {<NEW_LINE>// @found<NEW_LINE>isLocal = false;<NEW_LINE>String userpass = inputAddress.substring(0, uphpdelimiter);<NEW_LINE>String hostpor... | uphpdelimiter = inputAddress.lastIndexOf("@"); |
1,415,808 | public ImmutableAttributes mapAttributesFor(ImmutableAttributes attributes, Iterable<? extends ComponentArtifactMetadata> artifacts) {<NEW_LINE>// Add attributes to be applied given the extension<NEW_LINE>if (artifactTypeDefinitions != null) {<NEW_LINE>String extension = null;<NEW_LINE>for (ComponentArtifactMetadata ar... | attributes = applyForExtension(attributes, extension); |
109,239 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registry_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>com.go... | writeString(output, 6, tenant_); |
1,450,783 | public void open() throws IOException {<NEW_LINE>boolean opened = false;<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < mDevice.getInterfaceCount(); i++) {<NEW_LINE>UsbInterface usbIface = mDevice.getInterface(i);<NEW_LINE>if (mConnection.claimInterface(usbIface, true)) {<NEW_LINE>Log.d(TAG, "claimInterface " + i + " SUCC... | TAG, "claimInterface " + i + " FAIL"); |
649,228 | public void aggregate(int length, AggregationResultHolder aggregationResultHolder, Map<ExpressionContext, BlockValSet> blockValSetMap) {<NEW_LINE>BlockValSet blockValSet = blockValSetMap.get(_expression);<NEW_LINE>BlockValSet <MASK><NEW_LINE>if (blockValSet.getValueType() != DataType.BYTES) {<NEW_LINE>aggregateResultWi... | blockTimeSet = blockValSetMap.get(_timeCol); |
4,076 | public static List<Object> createInputParams(ExpressionFactoryManager expressionFactoryManager, StateInstanceImpl stateInstance, AbstractTaskState serviceTaskState, Object variablesFrom) {<NEW_LINE>List<Object> inputAssignments = serviceTaskState.getInput();<NEW_LINE>if (CollectionUtils.isEmpty(inputAssignments)) {<NEW... | return new ArrayList<>(0); |
501,655 | public GetLabelsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetLabelsResult getLabelsResult = new GetLabelsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | int originalDepth = context.getCurrentDepth(); |
545,613 | public ClickHouseResponse deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {<NEW_LINE>ClickHouseResponse result = new ClickHouseResponse();<NEW_LINE>JsonObject jsonObject = json.getAsJsonObject();<NEW_LINE>JsonArray metaNode = jsonObject.getAsJsonArray("meta");<N... | extremesNode.get("min"))); |
70,995 | protected AbstractValidator loadValidatorWithoutAttributes(Element element, String messagePack) {<NEW_LINE>AbstractValidator validator;<NEW_LINE>switch(element.getName()) {<NEW_LINE>case "negativeOrZero":<NEW_LINE>validator = <MASK><NEW_LINE>break;<NEW_LINE>case "negative":<NEW_LINE>validator = beanLocator.getPrototype... | beanLocator.getPrototype(NegativeOrZeroValidator.NAME); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.