idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
37,561 | public static void connectUser(@NonNull Context context, @NonNull User user, @Nullable AlLoginHandler loginHandler) {<NEW_LINE>if (isConnected(context)) {<NEW_LINE>RegistrationResponse registrationResponse = new RegistrationResponse();<NEW_LINE>registrationResponse.setMessage("User already Logged in");<NEW_LINE>Contact... | loginHandler.onSuccess(registrationResponse, context); |
649,076 | private static void stopVideoCapture(boolean useCallbacks) {<NEW_LINE>// Do not continue if not started.<NEW_LINE>if (recorder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Determine if the activity is closing/closed.<NEW_LINE>boolean isFinishing = (cameraActivity != null) ? cameraActivity.isFinishing() : false;<N... | e(TAG, "Failed to close video file.", ex); |
89,242 | public void onRegisterDevice(int status, @Nullable String message, @Nullable BackupError error) {<NEW_LINE>FragmentActivity activity = getActivity();<NEW_LINE>if (AndroidUtils.isActivityNotDestroyed(activity)) {<NEW_LINE>int errorCode = error != null ? error.getCode() : -1;<NEW_LINE>if (dialogType == LoginDialogType.VE... | (buttonAuthorize, !promoCodeSupported()); |
1,808,465 | public static String dumpMRPRecordsToString(final String message) {<NEW_LINE>// services<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IMRPDAO mrpDAO = Services.get(IMRPDAO.class);<NEW_LINE>final IContextAware contextProvider = new PlainContextAware(Env.getCtx());<NEW_LINE>// String wri... | qtyDemand = qtyDemand.add(qty); |
588,152 | static final MethodHandle[] populateMHs(Class<?> type, ByteOrder byteOrder) {<NEW_LINE>Class<? extends ByteArrayViewVarHandleOperations> operationsClass = null;<NEW_LINE>boolean convertEndian = (byteOrder != ByteOrder.nativeOrder());<NEW_LINE>if (int.class == type) {<NEW_LINE>operationsClass = convertEndian <MASK><NEW_... | ? OpIntConvertEndian.class : OpInt.class; |
1,484,933 | public void customize(Connector connector, HttpConfiguration channelConfig, Request request) {<NEW_LINE>EndPoint endp = request.getHttpChannel().getEndPoint();<NEW_LINE>if (endp instanceof DecryptedEndPoint) {<NEW_LINE>SslConnection.DecryptedEndPoint sslEndp = (DecryptedEndPoint) endp;<NEW_LINE><MASK><NEW_LINE>SSLEngin... | SslConnection sslConnection = sslEndp.getSslConnection(); |
139,475 | @Authenticate(AccessType.CREATE)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Consumes(MediaType.MULTIPART_FORM_DATA)<NEW_LINE>public String segmentCommitEndWithMetadata(@QueryParam(SegmentCompletionProtocol.PARAM_INSTANCE_ID) String instanceId, @QueryParam(SegmentCompletionProtocol.PARAM_SEGMENT_NAME) Stri... | segmentMetadata = extractSegmentMetadataFromForm(metadataFiles, segmentName); |
1,619,760 | ImmutableMap<String, ImmutableSet<QueryTarget>> resolveTargetPatterns(Iterable<String> patterns) throws InterruptedException, BuildFileParseException, IOException {<NEW_LINE>ImmutableMap.Builder<String, ImmutableSet<QueryTarget>> resolved = ImmutableMap.builder();<NEW_LINE>Map<String, String> unresolved = new HashMap<>... | , Functions.forMap(unresolved)); |
1,726,390 | private void inlineArguments() {<NEW_LINE>int valueType = type.getValueType();<NEW_LINE>int l = args.length;<NEW_LINE>int count = l;<NEW_LINE>for (int i = 0; i < l; i++) {<NEW_LINE>Expression arg = args[i];<NEW_LINE>if (arg instanceof ConcatenationOperation && arg.getType().getValueType() == valueType) {<NEW_LINE>count... | ] newArguments = new Expression[count]; |
846,218 | public EnvironmentVariable unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnvironmentVariable environmentVariable = new EnvironmentVariable();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
182,689 | public okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy... | localVarHeaderParams.put("Accept", localVarAccept); |
597,246 | public static DescribeParameterGroupsResponse unmarshall(DescribeParameterGroupsResponse describeParameterGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeParameterGroupsResponse.setRequestId(_ctx.stringValue("DescribeParameterGroupsResponse.RequestId"));<NEW_LINE>describeParameterGroupsResponse.setSignalFo... | ("DescribeParameterGroupsResponse.ParameterGroups[" + i + "].ParameterGroupDesc")); |
1,536,906 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public List<KeyValueBean> windowedByKey(@PathParam("storeName") final String storeName, @PathParam("key") final String key, @PathParam("from") final Long from, @PathParam("to") final Long to) {<NEW_LINE>// Lookup the WindowStore with the provided storeName<NEW_LINE>final R... | , Instant.ofEpochMilli(to)); |
1,124,456 | public boolean canSync(@Nonnull IPermissionContainer targetChannel, @Nonnull IPermissionContainer syncSource) {<NEW_LINE>Checks.notNull(targetChannel, "Channel");<NEW_LINE>Checks.notNull(syncSource, "Channel");<NEW_LINE>Checks.check(targetChannel.getGuild().equals(getGuild()), "Channels must be from the same guild!");<... | >) targetChannel).getPermissionOverrideMap(); |
727,875 | public Object list(DataCommandsParam dataCommandsParam) {<NEW_LINE>jedis.select(dataCommandsParam.getDatabase());<NEW_LINE><MASK><NEW_LINE>String[] list = SignUtil.splitBySpace(command);<NEW_LINE>String cmd = command.toUpperCase();<NEW_LINE>String key = list[1];<NEW_LINE>String[] items = removeCommandAndKey(list);<NEW_... | String command = dataCommandsParam.getCommand(); |
1,696,312 | public Response safeHandle(HttpRequest request) throws JSONException {<NEW_LINE>SelendroidLogger.info("execute script command");<NEW_LINE>JSONObject payload = getPayload(request);<NEW_LINE>String script = payload.getString("script");<NEW_LINE>JSONArray args = payload.optJSONArray("args");<NEW_LINE>Object value = null;<... | (getSessionId(request), null); |
62,248 | public AlterTableGroupItemPreparedData createAlterTableGroupItemPreparedData(String tableName, List<GroupDetailInfoExRecord> groupDetailInfoExRecords) {<NEW_LINE>AlterTableGroupItemPreparedData alterTableGroupItemPreparedData = new AlterTableGroupItemPreparedData(preparedData.getSchemaName(), tableName);<NEW_LINE>Parti... | setInvisiblePartitionGroups(preparedData.getInvisiblePartitionGroups()); |
1,378,420 | public void CheckForInner(String fileName, int line, String script) {<NEW_LINE>String lower = script.toLowerCase(Locale.ROOT);<NEW_LINE>int column = lower.indexOf("innerhtml");<NEW_LINE>if (column >= 0) {<NEW_LINE>report.message(MessageId.SCP_007, EPUBLocation.create(fileName, line, column, trimContext(script, column))... | ScriptTagHandler.evalPattern.matcher(script); |
804,029 | public void onRegisterUser(int status, @Nullable String message, @Nullable BackupError error) {<NEW_LINE>FragmentActivity activity = getActivity();<NEW_LINE>if (AndroidUtils.isActivityNotDestroyed(activity)) {<NEW_LINE>progressBar.setVisibility(View.INVISIBLE);<NEW_LINE>if (status == BackupHelper.STATUS_SUCCESS) {<NEW_... | AndroidUiHelper.updateVisibility(errorText, true); |
827,364 | protected ItemStack run(ItemStack stack, LootContext context) {<NEW_LINE>if (TinkerTags.Items.MODIFIABLE.contains(stack.getItem())) {<NEW_LINE>ToolStack tool = ToolStack.from(stack);<NEW_LINE><MASK><NEW_LINE>if (definition.isMultipart() && !materials.isEmpty()) {<NEW_LINE>MaterialNBT.Builder builder = MaterialNBT.build... | ToolDefinition definition = tool.getDefinition(); |
763,693 | public void showForgotDialog() {<NEW_LINE>Resources res = getResources();<NEW_LINE>// Create the builder with required paramaters - Context, Title, Positive Text<NEW_LINE>CustomDialog.Builder builder = new CustomDialog.Builder(this, res.getString(R.string.activity_dialog_title), res.getString(R.string.activity_dialog_a... | buttonAlignment(BaseDialog.Alignment.CENTER); |
1,071,106 | public PointSensitivityBuilder presentValueSensitivityRatesStickyModel(IborCapletFloorletPeriod period, RatesProvider ratesProvider, SabrIborCapletFloorletVolatilities volatilities) {<NEW_LINE>Currency currency = period.getCurrency();<NEW_LINE>if (ratesProvider.getValuationDate().isAfter(period.getPaymentDate())) {<NEW... | relativeTime(period.getFixingDateTime()); |
575,307 | public static void clearSelectionCache(TileMap tileMap) {<NEW_LINE>if (tileMap.isSelectionInverted()) {<NEW_LINE>SelectionData selection = new SelectionData(tileMap.getMarkedChunks(<MASK><NEW_LINE>File[] cacheDirs = Config.getCacheDirs();<NEW_LINE>for (File cacheDir : cacheDirs) {<NEW_LINE>File[] cacheFiles = cacheDir.... | ), tileMap.isSelectionInverted()); |
1,451,026 | public Object proxyAround(ProceedingJoinPoint point) {<NEW_LINE>try {<NEW_LINE>MethodSignature ms = <MASK><NEW_LINE>Method method = ms.getMethod();<NEW_LINE>DePermissionProxy annotation = method.getAnnotation(DePermissionProxy.class);<NEW_LINE>Object[] args = point.getArgs();<NEW_LINE>if (null == args || args.length ==... | (MethodSignature) point.getSignature(); |
829,032 | public final boolean accept(EdgeIteratorState iter) {<NEW_LINE>if (env == null)<NEW_LINE>return true;<NEW_LINE>boolean inEnv = false;<NEW_LINE>// PointList pl = iter.fetchWayGeometry(2); // does not work<NEW_LINE>PointList pl = iter.fetchWayGeometry(3);<NEW_LINE><MASK><NEW_LINE>double eMinX = Double.MAX_VALUE;<NEW_LINE... | int size = pl.getSize(); |
1,440,571 | private String generateContents() {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>Document doc = XMLUtil.createDocument("project", null, null, null);<NEW_LINE>Element pel = doc.getDocumentElement();<NEW_LINE>String displayName = (String) getProperty(PROP_DISPLAY_NAME);<NEW_LINE>if (displayName != null && displayName.lengt... | write(doc, baos, "UTF-8"); |
1,643,920 | // End of variables declaration//GEN-END:variables<NEW_LINE>public static FileObject showDialog(SourceGroup[] folders) {<NEW_LINE>BrowseFolders bf = new BrowseFolders(folders);<NEW_LINE>JButton[] options = new JButton[] { // new JButton( NbBundle.getMessage( BrowseFolders.class, "LBL_BrowseFolders_Select_Option") ), //... | [0].addActionListener(optionsListener); |
1,120,244 | public AddressSet flowConstants(final Program program, Address flowStart, AddressSetView flowSet, final SymbolicPropogator symEval, final TaskMonitor monitor) throws CancelledException {<NEW_LINE>// follow all flows building up context<NEW_LINE>// use context to fill out addresses on certain instructions<NEW_LINE>Conte... | flowSet, eval, true, monitor); |
1,599,482 | void computePointsAndWeights(EllipseRotated_F64 ellipse) {<NEW_LINE>// use the semi-major axis to scale the input points for numerical stability<NEW_LINE>double localScale = ellipse.a;<NEW_LINE>samplePts.reset();<NEW_LINE>weights.reset();<NEW_LINE>int numSamples = radialSamples * 2 + 2;<NEW_LINE>int numPts = numSamples... | x + tanX, y + tanY); |
1,441,079 | final PutImageTagMutabilityResult executePutImageTagMutability(PutImageTagMutabilityRequest putImageTagMutabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putImageTagMutabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,409,400 | public static KeyTemplate createAesCtrHmacStreamingKeyTemplate(int mainKeySize, HashType hkdfHashType, int derivedKeySize, HashType macHashType, int tagSize, int ciphertextSegmentSize) {<NEW_LINE>HmacParams hmacParams = HmacParams.newBuilder().setHash(macHashType).setTagSize(tagSize).build();<NEW_LINE>AesCtrHmacStreami... | OutputPrefixType.RAW).build(); |
2,397 | private <T extends AbstractNode> void exportDataForType(final SecurityContext context, final Class<T> nodeType, final Path targetConfFile) throws FrameworkException {<NEW_LINE>final App app = StructrApp.getInstance(context);<NEW_LINE>try (final Tx tx = app.tx()) {<NEW_LINE>try (final Writer fos = new OutputStreamWriter... | , pc.getProperty(key)); |
1,778,671 | private void addSortingIndicatorsToHeaderRow(HeaderRow headerRow, FlyweightCell cell) {<NEW_LINE>Element cellElement = cell.getElement();<NEW_LINE>boolean sortedBefore = cellElement.hasClassName("sort-asc") || cellElement.hasClassName("sort-desc");<NEW_LINE>cleanup(cell);<NEW_LINE>if (!headerRow.isDefault()) {<NEW_LINE... | getVisibleColumn(cell.getColumn()); |
601,522 | public Model parseWithoutDocTypeCleanup(InputStream inputStream) throws PomParseException {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>final SAXParser saxParser = XmlUtils.buildSecureSaxParser();<NEW_LINE>final XMLReader xmlReader = saxParser.getXMLReader();<NEW_LINE>xmlReader.setContentHandler(handler);<NEW_LINE>final BO... | final PomHandler handler = new PomHandler(); |
665,524 | public void onLightningStrike(LightningStrikeEvent event) {<NEW_LINE>WorldConfiguration wcfg = getWorldConfig(event.getWorld());<NEW_LINE>if (!wcfg.disallowedLightningBlocks.isEmpty()) {<NEW_LINE>final Block target = event.getLightning().getLocation().getBlock();<NEW_LINE>Material targetId = target.getType();<NEW_LINE>... | BlockFace.DOWN).getType(); |
915,502 | public void storeSuperCells(IntObjectMap<IntHashSet> superCells) {<NEW_LINE>// Store the beginning of the supercells information<NEW_LINE>superCellIdToCellsMap = superCells;<NEW_LINE>cells.setHeader(8, (int) (cellContourPointer >> 32));<NEW_LINE>cells.setHeader(12, (int) cellContourPointer);<NEW_LINE>for (IntObjectCurs... | cellContourPointer = cellContourPointer + (long) byteCount; |
813,735 | public void onSuccess(HashMap<String, List<V2TIMGroupMemberFullInfo>> stringListHashMap) {<NEW_LINE>Iterator it = stringListHashMap.entrySet().iterator();<NEW_LINE>HashMap<String, LinkedList<HashMap<String, Object>>> res = new HashMap();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Map.Entry entry = (Map.Entry) it.next();<... | res.put(key, resItem); |
515,658 | protected InstallRequest buildInstallRequest(RaftMemberContext member, Snapshot snapshot) {<NEW_LINE>if (member.getNextSnapshotIndex() != snapshot.index()) {<NEW_LINE>member.setNextSnapshotIndex(snapshot.index());<NEW_LINE>member.setNextSnapshotOffset(0);<NEW_LINE>}<NEW_LINE>InstallRequest request;<NEW_LINE>synchronize... | DefaultRaftMember leader = raft.getLeader(); |
1,733,384 | public void verifyMacAndDecode(JwtVerifyRequest request, StreamObserver<JwtVerifyResponse> responseObserver) {<NEW_LINE>JwtVerifyResponse response;<NEW_LINE>try {<NEW_LINE>KeysetHandle keysetHandle = CleartextKeysetHandle.read(BinaryKeysetReader.withBytes(request.getKeyset<MASK><NEW_LINE>JwtValidator validator = conver... | ().toByteArray())); |
1,258,419 | private Conflict registerConflict(Collection<K> targets, K replacedBy) {<NEW_LINE>assert !targets.isEmpty();<NEW_LINE>// replacement candidates are the only important candidates<NEW_LINE>Collection<? extends T> candidates = elements.get(replacedBy);<NEW_LINE>assert candidates != null;<NEW_LINE>Set<K> participants = new... | c = conflictsByParticipant.get(participant); |
1,807,233 | MutationProto toMutationProto() {<NEW_LINE>final MutationProto.Builder del = MutationProto.newBuilder().setRow(Bytes.wrap(key)).setMutateType(MutationProto.MutationType.DELETE);<NEW_LINE>if (family != WHOLE_ROW) {<NEW_LINE>final MutationProto.ColumnValue.Builder // All columns ...<NEW_LINE>// All columns ...<NEW_LINE>c... | setDurability(MutationProto.Durability.SKIP_WAL); |
328,883 | private void addCharacter(MeshBuilder builder, FontCharacter character, Colorc color, float xOffset, float yOffset, float depth) {<NEW_LINE>float top = y <MASK><NEW_LINE>float bottom = top + character.getHeight() + yOffset;<NEW_LINE>float left = x + character.getxOffset() + xOffset;<NEW_LINE>float right = left + charac... | + character.getyOffset() + yOffset; |
1,706,116 | public SirixDeweyID deserializeDeweyID(DataInput source, SirixDeweyID previousDeweyID, ResourceConfiguration resourceConfig) throws IOException {<NEW_LINE>if (resourceConfig.areDeweyIDsStored) {<NEW_LINE>if (previousDeweyID != null) {<NEW_LINE>final byte[] previousDeweyIDBytes = previousDeweyID.toBytes();<NEW_LINE>fina... | int size = source.readByte(); |
216,199 | public void prepareData(CodeGenContext context) throws Exception {<NEW_LINE>List<String> exceptions = new ArrayList<>();<NEW_LINE>JavaCodeGenContext ctx = (JavaCodeGenContext) context;<NEW_LINE>try {<NEW_LINE>LoggerManager.getInstance().info(String.format("Begin to prepare java table data for project %s", ctx.getProjec... | , ctx.getProjectId())); |
485,748 | public IPSetUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IPSetUpdate iPSetUpdate = new IPSetUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ... | String currentParentElement = context.getCurrentParentElement(); |
1,087,331 | public static void testParameterTypes() {<NEW_LINE>ApplyFunction foo = new B<String>();<NEW_LINE>ApplyFunction bar = new A();<NEW_LINE>assertTrue(callGenericInterface(foo, "a", 1).equals("a"));<NEW_LINE>assertTrue(callGenericInterface(bar, 1.1, 1.1).equals(new Double(2.2)));<NEW_LINE>assertTrue(callParametricInterface(... | "").equals("")); |
1,496,452 | public Block readBlock(BlockEncodingSerde blockEncodingSerde, SliceInput sliceInput) {<NEW_LINE>int positionCount = sliceInput.readInt();<NEW_LINE>byte[] valueIsNullPacked = retrieveNullBits(sliceInput, positionCount);<NEW_LINE>int[] values = new int[positionCount];<NEW_LINE>if (valueIsNullPacked == null) {<NEW_LINE>sl... | 0, positionCount, valueIsNull, values); |
1,758,066 | public void explain(int p, ExplanationForSignedClause explanation) {<NEW_LINE>IntIterableRangeSet set;<NEW_LINE>int m;<NEW_LINE>if (explanation.readVar(p) == vars[0]) {<NEW_LINE>// case a. (see javadoc)<NEW_LINE>m = explanation.readDom(vars[1]).max();<NEW_LINE>set = explanation.complement(vars[1]);<NEW_LINE>set.retainB... | m + 1, IntIterableRangeSet.MAX); |
1,655,576 | public Id projectAddGraphs(Id id, Set<String> graphs) {<NEW_LINE>E.checkArgument(!CollectionUtils.isEmpty(graphs), "Failed to add graphs to project '%s', the graphs " + "parameter can't be empty", id);<NEW_LINE>LockUtil.Locks locks = new LockUtil.Locks(this.graph.name());<NEW_LINE>try {<NEW_LINE>locks.lockWrites(LockUt... | this.project.get(id); |
1,307,809 | public void onLogin(MagicConsoleSession session, String token, String clientId) {<NEW_LINE>session.setClientId(clientId);<NEW_LINE>MagicUser user = null;<NEW_LINE>try {<NEW_LINE>user = authorizationInterceptor.getUserByToken(token);<NEW_LINE>} catch (Exception e) {<NEW_LINE>if (!authorizationInterceptor.requireLogin())... | WEBSOCKET_ATTRIBUTE_USER_NAME, user.getUsername()); |
503,390 | private void createStringForGroupUse(StringBuilder insertString, String indentString, String usePrefix, List<UsePart> useParts) {<NEW_LINE>List<UsePart> groupedUseParts = new ArrayList<<MASK><NEW_LINE>List<UsePart> nonGroupedUseParts = new ArrayList<>(useParts.size());<NEW_LINE>List<String> prefixes = CodeUtils.getComm... | >(useParts.size()); |
500,326 | public void refresh(TableCell cell) {<NEW_LINE>TrackerPeerSource ps = (TrackerPeerSource) cell.getDataSource();<NEW_LINE>long[] stats = (ps == null) ? null : ps.getReportedStats();<NEW_LINE>long sort;<NEW_LINE>String str;<NEW_LINE>if (stats != null) {<NEW_LINE>long gu = stats[0];<NEW_LINE>long uu = stats[2];<NEW_LINE>l... | "" : ("/" + str)); |
372,234 | private void writeObjects(DataWriter out) throws IOException {<NEW_LINE>long ofsMin = Long.MAX_VALUE;<NEW_LINE>long ofsMax = Long.MIN_VALUE;<NEW_LINE>for (SerializedObjectData data : serialized.objectData()) {<NEW_LINE>ByteBuffer bb = data.buffer();<NEW_LINE>bb.rewind();<NEW_LINE>out.align(8);<NEW_LINE>ofsMin = Math.mi... | header().dataOffset()); |
1,764,648 | public boolean visit(IfStatement node) {<NEW_LINE>Statement elseNode = node.getElseStatement();<NEW_LINE>Statement thenNode = node.getThenStatement();<NEW_LINE>if (elseNode != null) {<NEW_LINE>if (this.options.insert_new_line_before_else_in_if_statement || !(thenNode instanceof Block))<NEW_LINE>this.tm.firstTokenBefore... | elseNode, TokenNameelse).breakBefore(); |
314,426 | public int writePrimitiveType(DebugContext context, PrimitiveTypeEntry primitiveTypeEntry, byte[] buffer, int p) {<NEW_LINE>assert primitiveTypeEntry.getBitCount() > 0;<NEW_LINE>int pos = p;<NEW_LINE>log(context, " [0x%08x] primitive type %s", <MASK><NEW_LINE>setIndirectTypeIndex(primitiveTypeEntry, pos);<NEW_LINE>int... | pos, primitiveTypeEntry.getTypeName()); |
1,128,433 | private void installPlugin(Terminal terminal, boolean isBatch, Path tmpRoot, Environment env, List<Path> deleteOnFailure) throws Exception {<NEW_LINE>final PluginInfo info = loadPluginInfo(terminal, tmpRoot, env);<NEW_LINE>// read optional security policy (extra permissions), if it exists, confirm or warn the user<NEW_... | "-> Installed " + info.getName()); |
1,845,507 | private void readServletMapping(Element servletMappingElem) {<NEW_LINE>String servletName = null;<NEW_LINE>String urlPattern = null;<NEW_LINE>NodeList nodeList = servletMappingElem.getChildNodes();<NEW_LINE>for (int i = 0, len = nodeList.getLength(); i < len; i++) {<NEW_LINE>Node n = nodeList.item(i);<NEW_LINE>if (n.ge... | "' of type " + n.getNodeType()); |
1,247,041 | private Optional<String> figureUsernameGrantParam(final PwmRequest pwmRequest, final UserIdentity userIdentity) throws PwmUnrecoverableException {<NEW_LINE>if (userIdentity == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final String macroText = settings.getUsernameSendValue();<NEW_LINE>if (StringUtil.... | data = resultBodyMap.get("data"); |
1,404,360 | static boolean startBootstrapServicesInParallel(PinotServiceManager pinotServiceManager, List<Entry<ServiceRole, Map<String, Object>>> parallelConfigs) {<NEW_LINE>if (parallelConfigs.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// True is when everything succeeded<NEW_LINE><MASK><NEW_LINE>List<Thread> threads... | AtomicBoolean failed = new AtomicBoolean(false); |
1,469,125 | public boolean add(ModuleLoadRequest moduleLoadRequest) {<NEW_LINE>if (this.contains(moduleLoadRequest)) {<NEW_LINE>Set<Location> locations = new HashSet<>();<NEW_LINE>ModuleLoadRequest finalModuleLoadRequest = moduleLoadRequest;<NEW_LINE>ModuleLoadRequest oldLoadRequest = this.stream().filter(oldRequest -> oldRequest.... | oldLoadRequest.dependencyResolvedType(), locations); |
453,758 | public int compareTo(BulkImportStatus other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetStartTime(), other.isSetStartTime());<NEW_L... | this.state, other.state); |
1,727,635 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void addSourceNameFilter(com.sun.jdi.request.ClassPrepareRequest a, java.lang.String b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (... | jpda.JDIExceptionReporter.report(ex); |
187,356 | public void addEntries(@Nonnull ItemStack itemstack, @Nonnull List<String> list, @Nullable String withGrindingMultiplier) {<NEW_LINE>IGrindingMultiplier ball = SagMillRecipeManager.getInstance().getGrindballFromStack(itemstack);<NEW_LINE>list.add(Lang.GRINDING_BALL_1.get(TextFormatting.BLUE));<NEW_LINE>if (withGrinding... | ball.getChanceMultiplier()))); |
1,659,608 | DbInfo.Builder doParse(String jdbcUrl, DbInfo.Builder builder) {<NEW_LINE>if (jdbcUrl.contains("@(description")) {<NEW_LINE>return ORACLE_AT_DESCRIPTION.doParse(jdbcUrl, builder);<NEW_LINE>}<NEW_LINE>String user;<NEW_LINE>String[] atSplit = <MASK><NEW_LINE>int userInfoLoc = atSplit[0].indexOf("/");<NEW_LINE>if (userInf... | jdbcUrl.split("@", 2); |
754,276 | public static void average(InterleavedS8 from, GrayS8 to) {<NEW_LINE>final int numBands = from.getNumBands();<NEW_LINE>if (numBands == 1) {<NEW_LINE>for (int y = 0; y < from.height; y++) {<NEW_LINE>int indexFrom = from.getIndex(0, y);<NEW_LINE>int indexTo = to.getIndex(0, y);<NEW_LINE>System.arraycopy(from.data, indexF... | = from.data[indexFrom++]; |
1,065,244 | private void addCommitParents(RepositoryCommit commit, LayoutInflater inflater) {<NEW_LINE>List<Commit<MASK><NEW_LINE>if (parents == null || parents.isEmpty())<NEW_LINE>return;<NEW_LINE>for (Commit parent : parents) {<NEW_LINE>View parentView = inflater.inflate(R.layout.commit_parent_item, null);<NEW_LINE>TextView pare... | > parents = commit.getParents(); |
618,090 | public //<NEW_LINE>void onSurfaceCreated(GL10 glUnused, EGLConfig config) {<NEW_LINE>String vShaderStr = "#version 300 es \n" + "layout(location = 0) in vec4 a_color; \n" + "layout(location = 1) in vec4 a_position; \n" + "out vec4 v_color; \n" + "void main() ... | + "void main() \n" + "{ \n" + " o_fragColor = v_color; \n" + "}"; |
242,428 | public void thresholdBlock(int blockX0, int blockY0, GrayU8 input, GrayU8 stats, GrayU8 output) {<NEW_LINE>int x0 = blockX0 * blockWidth;<NEW_LINE>int y0 = blockY0 * blockHeight;<NEW_LINE>int x1 = blockX0 == stats.width - 1 ? input.width : (blockX0 + 1) * blockWidth;<NEW_LINE>int y1 = blockY0 == stats.height - 1 ? inpu... | * (blockX1 - blockX0 + 1); |
839,540 | public boolean requestChildRectangleOnScreen(RecyclerViewBase parent, View child, Rect rect, boolean immediate) {<NEW_LINE>try {<NEW_LINE>final int parentLeft = getPaddingLeft();<NEW_LINE>final int parentTop = getPaddingTop();<NEW_LINE>final int parentRight = getWidth() - getPaddingRight();<NEW_LINE>final int parentBot... | min(0, childTop - parentTop); |
513,367 | public static QueryAliyunCorpNumberResponse unmarshall(QueryAliyunCorpNumberResponse queryAliyunCorpNumberResponse, UnmarshallerContext context) {<NEW_LINE>queryAliyunCorpNumberResponse.setRequestId(context.stringValue("QueryAliyunCorpNumberResponse.RequestId"));<NEW_LINE>queryAliyunCorpNumberResponse.setSuccess(contex... | ("QueryAliyunCorpNumberResponse.Numbers[" + i + "].taobaoUid")); |
1,715,653 | public AggregateResult queryAggData(AggConfig config) throws Exception {<NEW_LINE>String exec = sqlHelper.assembleAggDataSql(config);<NEW_LINE>List<String[]> list = new LinkedList<>();<NEW_LINE>LOG.info(exec);<NEW_LINE><MASK><NEW_LINE>Statement stat = connection.createStatement();<NEW_LINE>ResultSet rs = stat.executeQu... | try (Connection connection = getConnection(); |
826,142 | // private Throwable classSourceRecord;<NEW_LINE>//<NEW_LINE>// private synchronized void markClassSourceRecord(String i_className, String classSourceName) {<NEW_LINE>// classSourceRecord = new Throwable(<NEW_LINE>// "ClassTableMulti:" +<NEW_LINE>// " LastRecord [ " + Thread.currentThread().getName() + " ]" +<NEW_LINE>... | i_classNameClassSourceMap.put(i_className, childClassSourceName); |
758,680 | final RejectSharedDirectoryResult executeRejectSharedDirectory(RejectSharedDirectoryRequest rejectSharedDirectoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectSharedDirectoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
704,299 | public int executeUpdate(String sql, String[] columnNames) throws SQLException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "executeUpdate", sql, Arrays.toString(columnNames));<NEW_LINE>int numUpdates;<NEW_LINE>try ... | stmtImpl.executeUpdate(sql, columnNames); |
1,602,633 | public Collection<String> featuresCnC(PaddedList<IN> cInfo, int loc) {<NEW_LINE>Collection<String> features = new ArrayList<>();<NEW_LINE>CoreLabel c = cInfo.get(loc);<NEW_LINE>CoreLabel c1 = cInfo.get(loc + 1);<NEW_LINE>CoreLabel p = cInfo.get(loc - 1);<NEW_LINE>String charc = c.get(CoreAnnotations.CharAnnotation.clas... | get(CoreAnnotations.CharAnnotation.class); |
1,523,310 | final ListSourceLocationsResult executeListSourceLocations(ListSourceLocationsRequest listSourceLocationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSourceLocationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,639,275 | public static SchemaMapping create(String schemaName, ResultSetMetaData metadata, DatabaseDialect dialect) throws SQLException {<NEW_LINE>Map<ColumnId, ColumnDefinition> colDefns = dialect.describeColumns(metadata);<NEW_LINE>Map<String, ColumnConverter> colConvertersByFieldName = new LinkedHashMap<>();<NEW_LINE>SchemaB... | Schema schema = builder.build(); |
210,501 | protected void update() {<NEW_LINE>if (!isUpdateNeeded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(numGains) {<NEW_LINE>case 0:<NEW_LINE>assert (A == null);<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>A.put(0, colorParameters[0]);<NEW_LINE>A.put(4, colorParameters[0]);<NEW_LINE>A.put(8, colorParameters[0]);<NEW_LINE... | 0, colorParameters, 0, 9); |
1,761,545 | private static void parseArgs(Set<Integer> existLevelSet, List<PokerSell> pokerSells, Set<List<Poker>> pokersList, PokerSell pokerSell, int deep, SellType sellType, SellType targetSellType) {<NEW_LINE>if (deep == 0) {<NEW_LINE>List<Poker> allPokers = new ArrayList<<MASK><NEW_LINE>for (List<Poker> ps : pokersList) {<NEW... | >(pokerSell.getSellPokers()); |
1,418,203 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallIntMethod object=" + object + ", jmetho... | ret, context.getLRPointer()); |
175,150 | public String createMockjsDataAuto() throws UnsupportedEncodingException {<NEW_LINE>String callback = getCallback();<NEW_LINE>boolean isJSON = false;<NEW_LINE>updateProjectListMockNum(SystemVisitorLog.mock(__id__, "createMockjsData", pattern, getCurAccount()));<NEW_LINE>String _c = get_c();<NEW_LINE>Map<String, Object>... | options.put("loadRule", true); |
528,253 | public static void bakeCube(List<MutableQuad> quads, EntityResizableCuboid cuboid, boolean outsideFace, boolean insideFace) {<NEW_LINE>TextureAtlasSprite[] sprites = cuboid.textures;<NEW_LINE>if (sprites == null) {<NEW_LINE>sprites = new TextureAtlasSprite[6];<NEW_LINE>for (int i = 0; i < 6; i++) {<NEW_LINE><MASK><NEW_... | sprites[i] = cuboid.texture; |
1,290,527 | private void recalculateScoresFromVector(Vulnerability vuln) {<NEW_LINE>// Recalculate V2 score based on vector passed to resource and normalize vector<NEW_LINE>final Cvss v2 = Cvss.fromVector(vuln.getCvssV2Vector());<NEW_LINE>if (v2 != null) {<NEW_LINE>final Score score = v2.calculateScore();<NEW_LINE>vuln.setCvssV2Ba... | fromVector(vuln.getCvssV3Vector()); |
1,091,248 | public MdmLink createOrUpdateLinkEntity(IBaseResource theGoldenResource, IBaseResource theSourceResource, MdmMatchOutcome theMatchOutcome, MdmLinkSourceEnum theLinkSource, @Nullable MdmTransactionContext theMdmTransactionContext) {<NEW_LINE>Long goldenResourcePid = myJpaIdHelperService.getPidOrNull(theGoldenResource);<... | setMatchResult(theMatchOutcome.getMatchResultEnum()); |
1,316,563 | public static int trap(int[] height) {<NEW_LINE>int result = 0;<NEW_LINE>if (height == null || height.length <= 2)<NEW_LINE>return result;<NEW_LINE>int[] left <MASK><NEW_LINE>int[] right = new int[height.length];<NEW_LINE>// scan from left to right<NEW_LINE>int max = height[0];<NEW_LINE>left[0] = height[0];<NEW_LINE>fo... | = new int[height.length]; |
1,131,828 | public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventContext converters) {<NEW_LINE>BuildEventStreamProtos.TargetComplete.Builder builder = BuildEventStreamProtos.TargetComplete.newBuilder();<NEW_LINE>boolean failed = failed();<NEW_LINE>builder.setSuccess(!failed);<NEW_LINE>if (detailedExitCode != null) {<N... | (converters.artifactGroupNamer())); |
1,530,130 | protected Control createPreferenceContent(Composite parent) {<NEW_LINE>Composite composite = UIUtils.createPlaceholder(parent, 2, 5);<NEW_LINE>{<NEW_LINE>Group uiGroup = UIUtils.createControlGroup(composite, DataEditorsMessages.pref_page_database_resultsets_group_common, 1, SWT.NONE, 0);<NEW_LINE>((GridData) uiGroup.ge... | DataEditorsMessages.pref_page_database_resultsets_label_auto_completion_tip, true, 1); |
1,510,906 | public void handle(Map data) {<NEW_LINE>markSnapshotTreeCompleted(snapshot);<NEW_LINE>if (volumeNewInstallPath != null) {<NEW_LINE>vol.setInstallPath(volumeNewInstallPath);<NEW_LINE>dbf.update(vol);<NEW_LINE>}<NEW_LINE>VolumeSnapshotVO svo = dbf.findByUuid(snapshot.getUuid(), VolumeSnapshotVO.class);<NEW_LINE>svo.setTy... | setPrimaryStorageInstallPath(snapshot.getPrimaryStorageInstallPath()); |
93,150 | public static void main(String[] args) throws Exception {<NEW_LINE>CliArgs parsedArgs = new CliArgs();<NEW_LINE>CmdLineParser cmdLineParser = new CmdLineParser(parsedArgs);<NEW_LINE>cmdLineParser.parseArgument(args);<NEW_LINE>SoyTemplateSkylarkSignatureRenderer renderer = new SoyTemplateSkylarkSignatureRenderer();<NEW_... | tableOfContentsPath = destinationPath.resolve("__table_of_contents.soy"); |
1,500,109 | /*<NEW_LINE>* Application entry point.<NEW_LINE>*/<NEW_LINE>public static void main(String[] args) {<NEW_LINE>String version = StringUtil.CALIFORNIUM_VERSION == null ? "" : StringUtil.CALIFORNIUM_VERSION;<NEW_LINE>CommandLine cmd = new CommandLine(config);<NEW_LINE>try {<NEW_LINE>ParseResult result = cmd.parseArgs(args... | cmd.printVersionHelp(System.out); |
1,346,927 | public static Object convertRV(String sig, Object[] rp, Method m, AbstractConnection conn) throws DBusException {<NEW_LINE>Class<? extends Object> c = m.getReturnType();<NEW_LINE>if (null == rp) {<NEW_LINE>if (null == c || Void.TYPE.equals(c))<NEW_LINE>return null;<NEW_LINE>else<NEW_LINE>throw <MASK><NEW_LINE>} else {<... | new DBusExecutionException(getString("voidReturnType")); |
521,231 | private static void emitGenericHelp(OutErr outErr, BlazeRuntime runtime) {<NEW_LINE>outErr.printOut(String.format("Usage: %s <command> <options> ...\n\n", runtime.getProductName()));<NEW_LINE>outErr.printOut("Available commands:\n");<NEW_LINE>Map<String, BlazeCommand> commandsByName = runtime.getCommandMap();<NEW_LINE>... | , runtime.getProductName())); |
349,315 | public static IntList newInstance(final IntList delegateList, final int blockSize) {<NEW_LINE>if (blockSize < 1)<NEW_LINE>throw new IllegalArgumentException("Unsupported blockSize:" + blockSize);<NEW_LINE>if (delegateList.size() == 0)<NEW_LINE>return new FullIntList(new int[0]);<NEW_LINE>IntList intDeltaCompressor = Sm... | CompressedIntList(blockSize, strongValues, intDeltaCompressor); |
673,354 | private byte[] encodeBlock(ArrayList<Point> list) {<NEW_LINE>// Quantification<NEW_LINE>int m = list.size();<NEW_LINE>int[<MASK><NEW_LINE>long[] value = new long[m];<NEW_LINE>double eps = Math.pow(2, beta);<NEW_LINE>for (int i = 0; i < m; i++) {<NEW_LINE>Point p = list.get(i);<NEW_LINE>index[i] = p.getIndex();<NEW_LINE... | ] index = new int[m]; |
849,163 | private Savable readSavableFromCurrentElem(Savable defVal) throws InstantiationException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IOException, IllegalAccessException {<NEW_LINE>Savable ret = defVal;<NEW_LINE>Savable tmp = null;<NEW_LINE>if (currentElem == null || currentElem.getNodeNam... | refID = currentElem.getAttribute("id"); |
812,587 | public int handleTask(ConsoleWrapper stdin, PrintStream stdout, PrintStream stderr, String[] args) throws Exception {<NEW_LINE>setTaskIO(new TaskIO(stdin, stdout, stderr));<NEW_LINE>setTaskArgs(args);<NEW_LINE>JobInstance jobInstance;<NEW_LINE>JobExecution jobExecution;<NEW_LINE>long executionId = resolveJobExecutionId... | getJobInstanceForJobExecution(jobExecution.getExecutionId()); |
1,176,598 | public com.amazonaws.services.elasticfilesystem.model.PolicyNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.elasticfilesystem.model.PolicyNotFoundException policyNotFoundException = new com.amazonaws.services.elasticfilesystem.model.PolicyNotFo... | int originalDepth = context.getCurrentDepth(); |
1,716,583 | public void startImport() {<NEW_LINE>List<Path> fileList = checkedFileListProperty.stream().map(item -> item.getValue().getPath()).filter(path -> path.toFile().isFile()).collect(Collectors.toList());<NEW_LINE>if (fileList.isEmpty()) {<NEW_LINE>LOGGER.warn("There are no valid files checked");<NEW_LINE>return;<NEW_LINE>}... | bind(importFilesBackgroundTask.workDonePercentageProperty()); |
1,167,729 | public void onClick(View v) {<NEW_LINE>SimpleDialogFragment.createBuilder(c, getSupportFragmentManager()).setTitle("More Firefly quotes:").setMessage("Wash: \"Psychic, though? That sounds like something out of science fiction.\"\n\nZoe: \"We live" + " " + "in a space ship, dear.\"\nWash: \"Here lies my beloved Zoe, " +... | setNegativeButtonText("Close").show(); |
433,380 | public void validateModelSpecificInfo() throws InvalidDataTypeException {<NEW_LINE>Program program = getProgram();<NEW_LINE>Address startAddress = getAddress();<NEW_LINE>boolean validateReferredToData = validationOptions.shouldValidateReferredToData();<NEW_LINE>// Num1 is dword at SIGNATURE_OFFSET.<NEW_LINE>// No addit... | rtti0Address = getReferencedAddress(program, rtti0CompAddress); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.