idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
826,855 | public void testSessionInfoCache(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String sessionId = request.getParameter("sessionId");<NEW_LINE>String expectedAttributes = request.getParameter("attributes");<NEW_LINE>boolean allowOtherAttributes = Boolean.parseBoolean(request.getPa... | values = cache.get(sessionId); |
113,435 | private Modifier[] checkModifiers(Modifier[] modifiers, String... allowedKeywords) throws CompileException {<NEW_LINE>// Check for duplicate annotations is not possible at parse-time because the annotations' types must be<NEW_LINE>// *resolved* before we can check for duplicates. See "UnitCompiler.compileAnnotations()"... | = new HashSet<>(keywords); |
149,895 | public void draw(Canvas canvas) {<NEW_LINE>super.draw(canvas);<NEW_LINE>if (mEdgeGlowTop != null) {<NEW_LINE>final int scrollY = getScrollY();<NEW_LINE>final int scrollX = getScrollX();<NEW_LINE>if (!mEdgeGlowTop.isFinished() && isVerticalScrollBarEnabled()) {<NEW_LINE>final int restoreCount = canvas.save();<NEW_LINE>f... | mEdgeGlowTop.setSize(width, height); |
1,357,715 | private ConnectionConfig promptAndChangePassword(ConnectionConfig connectionConfig, String message) throws Exception {<NEW_LINE>if (message != null) {<NEW_LINE>terminal.write().println(message);<NEW_LINE>}<NEW_LINE>if (connectionConfig.username().isEmpty()) {<NEW_LINE>String username = isOutputInteractive ? promptForNo... | ) : promptForText("new password", '*'); |
1,192,765 | public void listSecretsCodeSnippets() {<NEW_LINE>SecretClient secretClient = getSecretClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.secretclient.listSecrets<NEW_LINE>for (SecretProperties secret : secretClient.listPropertiesOfSecrets()) {<NEW_LINE>KeyVaultSecret secretWithValue = secretClient.getSecret(secre... | ), secretWithValue.getValue()); |
319,479 | private Concrete.Expression simplifyLetClause(Expression expr) {<NEW_LINE>List<Object> list = new ArrayList<>();<NEW_LINE>while (true) {<NEW_LINE>expr = expr.getUnderlyingExpression();<NEW_LINE>if (expr instanceof ProjExpression) {<NEW_LINE>list.add(((ProjExpression) expr).getField());<NEW_LINE>expr = ((ProjExpression)... | int) list.get(i); |
898,322 | public WorkspaceItem createWorkspaceItem(Context context, Request request) throws SQLException, AuthorizeException {<NEW_LINE>WorkspaceItem wsi = null;<NEW_LINE>Collection collection = null;<NEW_LINE>String collectionUUID = request.getHttpServletRequest().getParameter("owningCollection");<NEW_LINE>if (StringUtils.isBla... | create(context, collection, true); |
1,368,743 | private Mono<Response<Void>> resendEmailWithResponseAsync(String resourceGroupName, String certificateOrderName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
201,907 | public DruidExpression toDruidExpression(final PlannerContext plannerContext, final RowSignature rowSignature, final RexNode rexNode) {<NEW_LINE>return OperatorConversions.convertCall(plannerContext, rowSignature, rexNode, inputExpressions -> {<NEW_LINE>final DruidExpression arg = inputExpressions.get(1);<NEW_LINE>fina... | (String) truncTypeExpr.getLiteralValue(); |
751,707 | public static void customizePrefernces() {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>final Border insetBorder = BorderFactory.createEmptyBorder(2, 2, 2, 0);<NEW_LINE>final FlowLayout flowLayout = new FlowLayout(FlowLayout.LEFT);<NEW_LINE>final CPanel dlmPanel = new CPanel();<NEW_LINE>dlmPanel.s... | , ValueNamePair> values = getValues(); |
895,386 | public static MxNDArray[] cachedOpInvoke(MxNDManager manager, Pointer cachedOpHandle, MxNDArray[] inputs) {<NEW_LINE>IntBuffer buf = IntBuffer.allocate(1);<NEW_LINE>PointerArray array = toPointerArray(inputs);<NEW_LINE>PointerByReference ref = REFS.acquire();<NEW_LINE>PointerByReference outSTypeRef = REFS.acquire();<NE... | .create(ptrArray[i]); |
209,780 | protected void writeMimeFile(CrawlURI curi) throws IOException {<NEW_LINE>ReplayInputStream ris = null;<NEW_LINE>OutputStream out = null;<NEW_LINE>try {<NEW_LINE>String boundary = BOUNDARY_START + stringToMD5(curi.toString());<NEW_LINE>ris = curi.getRecorder().getRecordedInput().getReplayInputStream();<NEW_LINE>out = i... | boundary, curi, ris, out); |
890,609 | public // : 2368K->319K(2368K), 0.0063634 secs]5.353: [Tenured: 5443K->5196K(5504K), 0.0830293 secs] 7325K->5196K(7872K), [Perm : 10606K->10606K(21248K)], 0.0895957 secs]<NEW_LINE>void parNewDetailsWithConcurrentModeFailure(GCLogTrace trace, String line) {<NEW_LINE>ParNewPromotionFailed collection = new ParNewPromotion... | add(young, tenured, heap); |
1,212,208 | public com.amazonaws.services.kinesisanalytics.model.UnableToDetectSchemaException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisanalytics.model.UnableToDetectSchemaException unableToDetectSchemaException = new com.amazonaws.services.<MASK><NEW_LINE>int... | kinesisanalytics.model.UnableToDetectSchemaException(null); |
1,531,585 | public final DayPartContext dayPart() throws RecognitionException {<NEW_LINE>DayPartContext _localctx = new DayPartContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 490, RULE_dayPart);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(3269);<NEW_LINE>_errHandler.... | _la = _input.LA(1); |
1,493,064 | public CompletableFuture<Void> subscribed(Subscribed subscribed) {<NEW_LINE>return CompletableFuture.runAsync(() -> callWithStateLock(() -> {<NEW_LINE>MasterInfo newMasterInfo = subscribed.getMasterInfo();<NEW_LINE>masterInfo.set(newMasterInfo);<NEW_LINE>Preconditions.checkState(state.getMesosSchedulerState() != MesosS... | "Asked to startup - but in invalid state: %s", state.getMesosSchedulerState()); |
181,630 | public ListenerResult listen(WorkflowContext context) throws WorkflowListenerException {<NEW_LINE>GroupResourceProcessForm form = (GroupResourceProcessForm) context.getProcessForm();<NEW_LINE>String groupId = form.getInlongGroupId();<NEW_LINE>log.info("try to create consumer group for groupId {}", groupId);<NEW_LINE>In... | setCreateUser(groupInfo.getCreator()); |
312,651 | public Process start() throws Exception {<NEW_LINE>ProcessBuilder processBuilder = new ProcessBuilder();<NEW_LINE>processBuilder.command(getBallerinaCommand(null));<NEW_LINE>processBuilder.directory(Paths.get<MASK><NEW_LINE>Map<String, String> env = processBuilder.environment();<NEW_LINE>// Need to ignore the "BAL_JAVA... | (projectRoot).toFile()); |
107,740 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>final ComponentContext componentContext = new ComponentContext(this);<NEW_LINE>final LinearLayout container = new LinearLayout(this);<NEW_LINE>container.setOrientation(LinearLayout.VERTICAL);<NEW_LINE>final Extern... | Button button2 = new Button(this); |
1,673,744 | private static void runAssertion(RegressionEnvironment env, String eventTypeName, RegressionPath path) {<NEW_LINE>String stmtText = "@name('s0') select type?,dyn[1]?,nested.nes2?,map('a')? from " + eventTypeName;<NEW_LINE>env.compileDeploy(stmtText, path).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement ... | ("map('a')?", Node.class)); |
829,739 | protected ActionResult<List<Wo>> execute(HttpServletRequest request, EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<List<Wo>>();<NEW_LINE>List<Wo> wrapOutSubjectAttachmentList = null;<NEW_LINE>List<BBSSubjectAttachment> fileInfoList = null;<NEW_L... | subjectInfo = subjectInfoServiceAdv.get(id); |
1,075,130 | private void updateMovedFolderAssets(Folder oldFolder, Folder newFolder, List<Link> links) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>User systemUser;<NEW_LINE>try {<NEW_LINE>systemUser = APILocator.getUserAPI().getSystemUser();<NEW_LINE>} catch (DotDataException e) {<NEW_LINE>Logger.er... | e.getMessage(), e); |
765,512 | // Verify that connections are/are not castable to OracleConnection based on whether enableConnectionCasting=true/false.<NEW_LINE>@Test<NEW_LINE>public void testConnectionCasting() throws Exception {<NEW_LINE>OracleConnection ocon = <MASK><NEW_LINE>try {<NEW_LINE>assertTrue(ocon.isUsable());<NEW_LINE>Connection con = o... | (OracleConnection) ds_casting.getConnection(); |
329,351 | private SoundChain play(final Sound sound, boolean repeatedly, final SoundChain chain) {<NEW_LINE>stop(sound);<NEW_LINE>if (sound.disabled()) {<NEW_LINE>chain.takeOver();<NEW_LINE>return chain;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>InputStream stream = sound.inputStream();<NEW_LINE>// wrap the stream in another one that s... | error("Error while playing sound: " + sound, e); |
1,123,574 | public static void copyProperties(Object fromObj, Object toObj) {<NEW_LINE>Class<? extends Object> fromClass = fromObj.getClass();<NEW_LINE>Class<? extends Object> toClass = toObj.getClass();<NEW_LINE>try {<NEW_LINE>BeanInfo <MASK><NEW_LINE>BeanInfo toBean = Introspector.getBeanInfo(toClass);<NEW_LINE>PropertyDescripto... | fromBean = Introspector.getBeanInfo(fromClass); |
1,484,918 | final DeleteProfileKeyResult executeDeleteProfileKey(DeleteProfileKeyRequest deleteProfileKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProfileKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
70,434 | public boolean checkFile(String fileName) {<NEW_LINE>boolean ret = false;<NEW_LINE>if (this.ftpInfo != null) {<NEW_LINE>try {<NEW_LINE>FtpClientService ftpClientService = new FtpClientService();<NEW_LINE>ftpClientService.connect(this.ftpInfo.getHost(), this.ftpInfo.getPort(), this.ftpInfo.getUserName(), <MASK><NEW_LINE... | this.ftpInfo.getPassWord()); |
414,147 | final SubscribeResult executeSubscribe(SubscribeRequest subscribeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(subscribeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | (super.beforeMarshalling(subscribeRequest)); |
1,792,226 | private Operand buildAttrAssign(Variable result, AttrAssignNode attrAssignNode) {<NEW_LINE>boolean containsAssignment = attrAssignNode.containsVariableAssignment();<NEW_LINE>Operand obj = buildWithOrder(attrAssignNode.getReceiverNode(), containsAssignment);<NEW_LINE>Label lazyLabel = null;<NEW_LINE>Label endLabel = nul... | , scope.maybeUsingRefinements())); |
836,954 | public void startSelectMode(int pos) {<NEW_LINE>if (inActionMode()) {<NEW_LINE>endSelectMode();<NEW_LINE>}<NEW_LINE>if (onSelectModeListener != null) {<NEW_LINE>onSelectModeListener.onStartSelectMode();<NEW_LINE>}<NEW_LINE>selectedIds.clear();<NEW_LINE>selectedIds.add(getItemId(pos));<NEW_LINE>notifyDataSetChanged();<N... | MenuInflater inflater = mode.getMenuInflater(); |
1,088,027 | public static DescribeSystemLogResponse unmarshall(DescribeSystemLogResponse describeSystemLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSystemLogResponse.setRequestId(_ctx.stringValue("DescribeSystemLogResponse.RequestId"));<NEW_LINE>describeSystemLogResponse.setTotal(_ctx.longValue("DescribeSystemLogRespo... | ("DescribeSystemLogResponse.SystemLog[" + i + "].OpDesc")); |
418,145 | public void draw(GLAutoDrawable drawable, boolean idle, Position machineCoord, Position workCoord, Position objectMin, Position objectMax, double scaleFactor, Position mouseWorldCoordinates, Position rotation) {<NEW_LINE>if (this.probeDepth == null || this.probeOffset == null)<NEW_LINE>return;<NEW_LINE>final int slices... | 0, 0, zAbs - 1); |
100,930 | public <U1, U2, U3, U4, U5, U6, U7> Tuple7<U1, U2, U3, U4, U5, U6, U7> map(Function<? super T1, ? extends U1> f1, Function<? super T2, ? extends U2> f2, Function<? super T3, ? extends U3> f3, Function<? super T4, ? extends U4> f4, Function<? super T5, ? extends U5> f5, Function<? super T6, ? extends U6> f6, Function<? ... | Objects.requireNonNull(f3, "f3 is null"); |
1,723,741 | public static <T> Managed<T> of(IO<T> acquire, Consumer<T> cleanup) {<NEW_LINE>return new Managed<T>() {<NEW_LINE><NEW_LINE>public <R> IO<R> apply(Function<? super T, ? extends IO<R>> fn) {<NEW_LINE>IO<R> y = IO.Comprehensions.forEach(acquire, t1 -> {<NEW_LINE>IO<? extends Try<? extends IO<R>, Throwable>> res1 = IO.Rea... | accept(t2._1()); |
1,135,848 | private String extractBodyAndScriptsFromTemplate(String html) {<NEW_LINE>// Replace UID:s<NEW_LINE>html = html.replaceAll("_UID_", pid + "__");<NEW_LINE>// Exctract script-tags<NEW_LINE>scripts = "";<NEW_LINE>int endOfPrevScript = 0;<NEW_LINE>int nextPosToCheck = 0;<NEW_LINE>String lc = html.toLowerCase(Locale.ROOT);<N... | = j + "</script>".length(); |
873,809 | public void marshall(PutScalingPolicyRequest putScalingPolicyRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (putScalingPolicyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(putScalingPolic... | putScalingPolicyRequest.getMetricName(), METRICNAME_BINDING); |
1,329,147 | // Override SqlCall, to introduce a sub-query frame.<NEW_LINE>@Override<NEW_LINE>public void unparse(SqlWriter writer, int leftPrec, int rightPrec) {<NEW_LINE>if (!writer.inQuery()) {<NEW_LINE>// If this SELECT is the topmost item in a sub-query, introduce a new<NEW_LINE>// frame. (The topmost item in the sub-query mig... | writer, this, 0, 0); |
1,743,533 | protected void buildBodyDeclarations(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration enumDeclaration2, EnumDeclaration enumDeclaration) {<NEW_LINE>// add body declaration in the lexical order<NEW_LINE>org.eclipse.jdt.internal.compiler.ast.TypeDeclaration[] members = enumDeclaration2.memberTypes;<NEW_LINE>org.ecli... | == null ? 0 : members.length; |
1,621,410 | private void buildRow(Table table, boolean fullId, boolean detailed, DiscoveryNodes discoveryNodes, TaskInfo taskInfo) {<NEW_LINE>table.startRow();<NEW_LINE>String nodeId = taskInfo.getTaskId().getNodeId();<NEW_LINE>DiscoveryNode node = discoveryNodes.get(nodeId);<NEW_LINE>table.addCell(taskInfo.getId());<NEW_LINE>tabl... | ()).toString()); |
261,873 | public Clustering<MedoidModel> run(Relation<O> relation) {<NEW_LINE>ArrayDBIDs ids = DBIDUtil.ensureArray(relation.getDBIDs());<NEW_LINE>final int size = ids.size();<NEW_LINE>int[<MASK><NEW_LINE>double[][] s = initialization.getSimilarityMatrix(relation, ids);<NEW_LINE>double[][] r = new double[size][size], a = new dou... | ] assignment = new int[size]; |
1,556,001 | private static boolean useExistingParentCastProposal(ICompilationUnit cu, CastExpression expression, Expression accessExpression, SimpleName accessSelector, ITypeBinding[] paramTypes, Collection<ChangeCorrectionProposal> proposals) {<NEW_LINE>ITypeBinding castType = expression.getType().resolveBinding();<NEW_LINE>if (c... | cu, rewrite, IProposalRelevance.ADD_PARENTHESES_AROUND_CAST); |
1,535,625 | public void resetParams(@NonNull OsmandApplication app, @NonNull GPXFile gpxFile) {<NEW_LINE>if (currentRecording) {<NEW_LINE>OsmandSettings settings = app.getSettings();<NEW_LINE>settings.CURRENT_TRACK_COLOR.resetToDefault();<NEW_LINE>settings.CURRENT_TRACK_WIDTH.resetToDefault();<NEW_LINE>settings.CURRENT_TRACK_COLOR... | getNonNullTrackColoringTypeByName(gpxFile.getColoringType()); |
423,468 | private void customizeRemoteIpValve(ConfigurableTomcatWebServerFactory factory) {<NEW_LINE>Remoteip remoteIpProperties = this.serverProperties.getTomcat().getRemoteip();<NEW_LINE>String protocolHeader = remoteIpProperties.getProtocolHeader();<NEW_LINE>String remoteIpHeader = remoteIpProperties.getRemoteIpHeader();<NEW_... | setHostHeader(remoteIpProperties.getHostHeader()); |
1,246,778 | protected void configureGeneratedSourcesAndJavadoc(Project project) {<NEW_LINE>_generateJavadocTask = project.getTasks().create("generateJavadoc", Javadoc.class);<NEW_LINE>if (_generateSourcesJarTask == null) {<NEW_LINE>//<NEW_LINE>// configuration for publishing jars containing sources for generated classes<NEW_LINE>/... | testGeneratedJavadoc = configurations.maybeCreate("testGeneratedJavadoc"); |
283,508 | public Expression buildFilterExpression() {<NEW_LINE>if (_identifier == null) {<NEW_LINE>throw new Pql2CompilationException("Between predicate has no identifier");<NEW_LINE>}<NEW_LINE>if (getChildren().size() == 2) {<NEW_LINE>try {<NEW_LINE>LiteralAstNode left = (LiteralAstNode) getChildren().get(0);<NEW_LINE>LiteralAs... | getChildren().get(1); |
437,469 | private static TopComponent ui(TracerModel model, TracerController controller, FileObject snapshotFo) {<NEW_LINE>String npssFileName = snapshotFo.getName();<NEW_LINE>TopComponent tc = new IdeSnapshotComponent(npssFileName, FileUtil.toFile(snapshotFo));<NEW_LINE>final JComponent tracer = new TracerView(model, controller... | add(tracer, BorderLayout.CENTER); |
198,355 | public String reopenIt() {<NEW_LINE><MASK><NEW_LINE>if (!MOrder.DOCSTATUS_Closed.equals(getDocStatus())) {<NEW_LINE>return "Not closed - can't reopen";<NEW_LINE>}<NEW_LINE>//<NEW_LINE>MOrderLine[] lines = getLines(true, MOrderLine.COLUMNNAME_M_Product_ID);<NEW_LINE>for (int i = 0; i < lines.length; i++) {<NEW_LINE>MOrd... | log.info(toString()); |
49,022 | final ListDataSourcesResult executeListDataSources(ListDataSourcesRequest listDataSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDataSourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | endClientExecution(awsRequestMetrics, request, response); |
771,625 | public Map<String, Object> toMap() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("active", this.getActive());<NEW_LINE>map.put("actualCompanyId", this.getActualCompanyId());<NEW_LINE>map.put("birthday", this.g... | "lastLoginIP", this.getLastLoginIP()); |
437,374 | public Double apply(ClutchConfiguration config, Long currentScale, Double delta) {<NEW_LINE>double scaleUpPct = rpsConfig.getScaleUpAbovePct() / 100.0;<NEW_LINE>double scaleDownPct = rpsConfig.getScaleDownBelowPct() / 100.0;<NEW_LINE>if (delta > -scaleDownPct && delta < scaleUpPct) {<NEW_LINE>return (double) currentSca... | .getMinSize(), scale)); |
987,786 | public void publish(LogRecord record) {<NEW_LINE>if (!isLoggable(record) || m_writer == null)<NEW_LINE>return;<NEW_LINE>rotateLog(record.getMillis());<NEW_LINE>// Format<NEW_LINE>String msg = null;<NEW_LINE>try {<NEW_LINE>msg = getFormatter().format(record);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>reportError("forma... | ().getHead(this)); |
87,820 | private Notification.Builder createNotification() {<NEW_LINE>String name = "net.minetest.minetest";<NEW_LINE>String channelId = "Minetest channel";<NEW_LINE>String description = "notifications from Minetest";<NEW_LINE>Notification.Builder builder;<NEW_LINE>if (mNotifyManager == null)<NEW_LINE>mNotifyManager = (Notifica... | mChannel = mNotifyManager.getNotificationChannel(channelId); |
631,738 | public LogicalPlan pruneOutputsExcept(TableStats tableStats, Collection<Symbol> outputsToKeep) {<NEW_LINE>LinkedHashSet<Symbol> lhsToKeep = new LinkedHashSet<>();<NEW_LINE>LinkedHashSet<Symbol> rhsToKeep = new LinkedHashSet<>();<NEW_LINE>for (Symbol outputToKeep : outputsToKeep) {<NEW_LINE>SymbolVisitors.intersection(o... | lhs.pruneOutputsExcept(tableStats, lhsToKeep); |
501,910 | protected void displayOctantInfo(GL2 gl, GLU glu) {<NEW_LINE>GLUT glut = new GLUT();<NEW_LINE>float quantum = size / 2;<NEW_LINE>float height = 15;<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glTranslatef(posX - quantum, posY + quantum - height, posZ + quantum);<NEW_LINE>gl.glScalef(0.1f, 0.1f, 0.1f);<NEW_LINE>gl.glColor4f... | glScalef(0.1f, 0.1f, 0.1f); |
519,207 | private void loadNode1214() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_ClientConnectionTime, new QualifiedName(0, "ClientConnectionTime"), new LocalizedText("en", "ClientConnectionTime"), Loca... | .expanded(), false)); |
134,333 | public static String propertyName(Method method) {<NEW_LINE>Optional<JsonGetter> jsonGetterAnnotation = getterAnnotation(method);<NEW_LINE>if (jsonGetterAnnotation.isPresent() && !isEmpty(jsonGetterAnnotation.get().value())) {<NEW_LINE>return jsonGetterAnnotation.get().value();<NEW_LINE>}<NEW_LINE>Optional<JsonSetter> ... | (matcher.group(1)); |
601,203 | public Set<String> list(boolean global) throws CoreException {<NEW_LINE>IStatus status;<NEW_LINE>if (global) {<NEW_LINE>status = runInBackground(GLOBAL_ARG, PARSEABLE_ARG, LIST);<NEW_LINE>} else {<NEW_LINE>status = runInBackground(PARSEABLE_ARG, LIST);<NEW_LINE>}<NEW_LINE>String output;<NEW_LINE>if (!status.isOK()) {<N... | add(path.lastSegment()); |
1,548,180 | public static TimexProperty timexTimeAdd(TimexProperty start, TimexProperty duration) {<NEW_LINE>TimexProperty result = start.clone();<NEW_LINE>if (duration.getMinutes() != null) {<NEW_LINE>result.setMinute(result.getMinute() + (int) Math.round(duration.getMinutes().doubleValue()));<NEW_LINE>if (result.getMinute() > 59... | result.getMinute() % 60); |
1,194,089 | private void processUserData() {<NEW_LINE>List<UserImportData> userImportData = getUserImportData();<NEW_LINE>if (userImportData == null || userImportData.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BukkitUserImportRefiner userImportRefiner = new BukkitUserImportRefiner(userImportData);<NEW_LINE>userImportData = ... | (LargeStoreQueries.storeAllGeoInformation(geoInfo)); |
1,543,936 | protected Object computeValueAt(int row, int col) {<NEW_LINE>long value;<NEW_LINE>switch(col) {<NEW_LINE>case 0:<NEW_LINE>return flatProfileContainer.getMethodNameAtRow(row);<NEW_LINE>case 1:<NEW_LINE>return new Float<MASK><NEW_LINE>case 2:<NEW_LINE>value = flatProfileContainer.getTimeInMcs0AtRow(row);<NEW_LINE>// NOI1... | (flatProfileContainer.getTimeInMcs0AtRow(row)); |
160,468 | private void applyLayoutToChildComponents() {<NEW_LINE>JComponent content = view.getContent();<NEW_LINE>int spaceAround = view.getSpaceAround();<NEW_LINE>final int contentX = Math.max(spaceAround, -this.left);<NEW_LINE>int cloudHeight = CloudHeightCalculator.INSTANCE.getAdditionalCloudHeigth(view);<NEW_LINE>int content... | setVisible(view.isContentVisible()); |
1,230,528 | private HttpRequest.Builder testGroupParametersRequestBuilder(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {<NEW_LINE>// verify the required parameter 'requiredStringGroup' is set<NEW_LINE>if (required... | .parameterToPairs("int64_group", int64Group)); |
1,302,560 | PartitionReplica[][] checkSnapshots() {<NEW_LINE>Set<UUID> shutdownRequestedReplicas = new HashSet<>();<NEW_LINE>Set<UUID> currentReplicas = new HashSet<>();<NEW_LINE>Map<UUID, Address> currentAddressMapping = new HashMap<>();<NEW_LINE>shutdownRequestedMembers.forEach(member -> shutdownRequestedReplicas.add<MASK><NEW_L... | (member.getUuid())); |
596,630 | private Map<ParameterServerId, PSMatricesSaveContext> split(int requestId, ModelSaveContext saveContext) {<NEW_LINE>List<MatrixSaveContext> matricesContext = saveContext.getMatricesContext();<NEW_LINE>Map<ParameterServerId, List<PSMatrixSaveContext>> psIdToContextsMap = new HashMap<>();<NEW_LINE>int size = matricesCont... | (matricesContext.get(i)); |
1,130,330 | public PCollection<Void> expand(PCollection<KV<ShardedKey<DestinationT>, Iterable<byte[]>>> input) {<NEW_LINE>String operationName = input.getName() + "/" + getName();<NEW_LINE>// Append records to the Storage API streams.<NEW_LINE>PCollection<KV<String, Operation>> written = input.apply("Write Records", ParDo.of(new W... | .getFromRowFunction(Operation.class)); |
818,671 | public ClassificationPoliciesConfig requestClassificationPoliciesConfig(String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/system/config/policies/classifications";<NEW_LINE>// query params<NEW_LINE>List<Pair>... | String[] localVarAccepts = { "application/json" }; |
993,479 | public void testNotSupportedXAOptionA() throws Exception {<NEW_LINE>String deliveryID = "MD_test5a";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTJMSNotSupported", 51);<NEW_LINE>// Add a FVTXAResourceImpl for this delivery.<... | add("CMTJMSNotSupported", "message2", 51); |
275,238 | public SendVoiceMessageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SendVoiceMessageResult sendVoiceMessageResult = new SendVoiceMessageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
1,803,332 | public void marshall(AssistantSummary assistantSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (assistantSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(assistantSummary.getAssistantArn(), ... | assistantSummary.getName(), NAME_BINDING); |
493,135 | boolean yolov4(String model_config_path, String filename) {<NEW_LINE>// https://deeplearning4j.konduit.ai/<NEW_LINE>int height = 608;<NEW_LINE>int width = 608;<NEW_LINE>int channels = 3;<NEW_LINE>NativeImageLoader loader = new NativeImageLoader(height, width, channels);<NEW_LINE>INDArray BGRimage = null;<NEW_LINE>try {... | create(BGRimage.shape()); |
1,326,688 | public static void main(String[] args) throws Exception {<NEW_LINE>// Need the source doc as a DOM for later, and also<NEW_LINE>// as XSLT input<NEW_LINE>Document doc = XmlUtils.getNewDocumentBuilder().parse(new File(System.getProperty("user.dir") + "/sample-docs/glox/extracted/data-sample.xml"));<NEW_LINE>GloxPackage ... | System.out.println("Done!"); |
1,275,858 | public void createPartControl(Composite parent) {<NEW_LINE>Composite composite = new Composite(parent, SWT.NONE);<NEW_LINE>composite.setLayout(new GridLayout(1, true));<NEW_LINE>text = new StyledText(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);<NEW_LINE>text.setLayoutData(new GridData(GridData.FILL... | .getActionBars().getToolBarManager(); |
469,309 | private void copyFileToDestination(Path exportPath) {<NEW_LINE>Optional<Path> fileToExport = linkedFile.findIn(databaseContext, filePreferences);<NEW_LINE>Optional<Path> newPath = OptionalUtil.combine(Optional.of<MASK><NEW_LINE>if (newPath.isPresent()) {<NEW_LINE>Path newFile = newPath.get();<NEW_LINE>boolean success =... | (exportPath), fileToExport, resolvePathFilename); |
1,819,291 | public StringBuffer printHeader(int indent, StringBuffer output) {<NEW_LINE>printModifiers(this.modifiers, output);<NEW_LINE>if (this.annotations != null) {<NEW_LINE>printAnnotations(this.annotations, output);<NEW_LINE>output.append(' ');<NEW_LINE>}<NEW_LINE>switch(kind(this.modifiers)) {<NEW_LINE>case TypeDeclaration.... | .getTypeName()[0]); |
1,058,723 | protected void drawGrad(BufferBuilder renderer, int x, int y, double width, double height, Vector4i colorL, Vector4i colorR) {<NEW_LINE>renderer.pos(x + 0, y + 0, 0.0D).color(colorL.x, colorL.y, colorL.z, <MASK><NEW_LINE>renderer.pos(x + 0, y + height, 0.0D).color(colorL.x, colorL.y, colorL.z, colorL.w).endVertex();<NE... | colorL.w).endVertex(); |
723,145 | public static GetClusterVolumesResponse unmarshall(GetClusterVolumesResponse getClusterVolumesResponse, UnmarshallerContext _ctx) {<NEW_LINE>getClusterVolumesResponse.setRequestId(_ctx.stringValue("GetClusterVolumesResponse.RequestId"));<NEW_LINE>getClusterVolumesResponse.setRegionId(_ctx.stringValue("GetClusterVolumes... | ("GetClusterVolumesResponse.Volumes[" + i + "].JobQueue")); |
907,367 | protected void addPseudoClassArguments(String pseudoClassName, List<ICompletionProposal> proposals, int offset) {<NEW_LINE>if (pseudoClassName == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<PseudoClassElement> classes = this._queryHelper.getPseudoClasses();<NEW_LINE>if (classes != null) {<NEW_LINE>for (PseudoClas... | > userAgentIdList = pseudoClass.getUserAgentNames(); |
1,044,551 | public Mono<Void> disposeLater(Duration quietPeriod, Duration timeout) {<NEW_LINE>return Mono.defer(() -> {<NEW_LINE>long quietPeriodMillis = quietPeriod.toMillis();<NEW_LINE>long timeoutMillis = timeout.toMillis();<NEW_LINE>EventLoopGroup serverLoopsGroup = serverLoops.get();<NEW_LINE>EventLoopGroup clientLoopsGroup =... | slMono, cnclMono, cnslMono, cnsrvlMono); |
63,267 | default ToDoubleNullable<T> mapToDoubleIfPresent(FloatToDoubleFunction mapper) {<NEW_LINE>final ToFloatNullable<T> delegate = this;<NEW_LINE>return new ToDoubleNullable<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Double apply(T object) {<NEW_LINE>return delegate.isNull(object) ? null : mapper.applyAsDouble<MASK... | (delegate.applyAsFloat(object)); |
163,070 | private CompletableFuture<Void> copyBytes(ChunkHandle writeHandle, ConcatArgument arg) {<NEW_LINE>return Futures.loop(() -> bytesToRead.get() > 0, () -> {<NEW_LINE>val buffer = new byte[Math.toIntExact(Math.min(chunkedSegmentStorage.getConfig().getMaxBufferSizeForChunkDataTransfer(), bytesToRead.get()))];<NEW_LINE>retu... | }, chunkedSegmentStorage.getExecutor()); |
1,136,156 | public AutogenEnvironmentVariablesDiff generate(SourceOfRandomness r, GenerationStatus status) {<NEW_LINE>// if (r.nextBoolean())<NEW_LINE>// return null;<NEW_LINE>AutogenEnvironmentVariablesDiff obj = new AutogenEnvironmentVariablesDiff();<NEW_LINE>if (r.nextBoolean()) {<NEW_LINE>obj.setA(Utils.removeEmpty(gen().type(... | generate(r, status))); |
892,792 | public int run(final String[] strings) throws Exception {<NEW_LINE>LOGGER.info(<MASK><NEW_LINE>TableUtils.ensureTableExists(store);<NEW_LINE>// Hadoop configuration<NEW_LINE>final Configuration conf = getConf();<NEW_LINE>final FileSystem fs = FileSystem.get(conf);<NEW_LINE>checkHdfsDirectories(failurePath, fs);<NEW_LIN... | "Ensuring table {} exists", store.getTableName()); |
443,471 | static // O(V^3)<NEW_LINE>// O(V^3)<NEW_LINE>int pushRelabel() {<NEW_LINE>int[] h = new int[V], e = new int[V], f[] = new int[V][V];<NEW_LINE>h[s] = V - 1;<NEW_LINE>Queue<Integer> q = new LinkedList<Integer>();<NEW_LINE>q.add(t);<NEW_LINE>while (!q.isEmpty()) {<NEW_LINE>int u = q.remove();<NEW_LINE>for (int v = 0; v < ... | int u = q.peek(); |
1,711,439 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "To run this example, supply:\n" + "* a rule name\n" + "* lambda function arn\n" + "* target id\n\n" + "Ex: PutTargets <rule-name> <lambda-function-arn> <target-id>\n";<NEW_LINE>if (args.length != 3) {<NEW_LINE>System.out.println(USAGE);<NEW_LINE>Sy... | out.printf("Successfully created CloudWatch events target for rule %s", rule_name); |
241,832 | public PersistenceResponse updateEntity(EntityForm entityForm, String[] customCriteria, List<SectionCrumb> sectionCrumb) throws ServiceException {<NEW_LINE>PersistencePackageRequest ppr = getRequestForEntityForm(entityForm, customCriteria, sectionCrumb);<NEW_LINE>ppr.setRequestingEntityName(entityForm.getMainEntityName... | getValue(), customCriteria, sectionCrumb); |
1,531,572 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>BigImageViewer.initialize(FrescoImageLoader<MASK><NEW_LINE>setContentView(R.layout.activity_custom_ssiv);<NEW_LINE>findViewById(R.id.mBtnLoad).setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Ov... | .with(getApplicationContext())); |
1,205,088 | public void render(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context) throws IOException {<NEW_LINE>final Object iterableEvaluation = this.iterableExpression.evaluate(self, context);<NEW_LINE>Iterable<?> iterable;<NEW_LINE>if (iterableEvaluation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>iterab... | scopeChain.put("loop", loop); |
1,748,616 | protected final Trigger loadCode(SectionNode sectionNode, String name, Class<? extends Event>... events) {<NEW_LINE>ParserInstance parser = getParser();<NEW_LINE><MASK><NEW_LINE>Class<? extends Event>[] previousEvents = parser.getCurrentEvents();<NEW_LINE>SkriptEvent previousSkriptEvent = parser.getCurrentSkriptEvent()... | String previousName = parser.getCurrentEventName(); |
509,050 | void ensureColumnCanBeUpdated(ColumnIdent ci) {<NEW_LINE>if (ci.isSystemColumn()) {<NEW_LINE>throw new ColumnValidationException(ci.toString(), tableInfo.ident(), "Updating a system column is not supported");<NEW_LINE>}<NEW_LINE>for (ColumnIdent pkIdent : tableInfo.primaryKey()) {<NEW_LINE>ensureNotUpdated(ci, pkIdent,... | reference.column(), "Updating a column which is referenced in a partitioned by generated column expression is not supported"); |
1,099,691 | public MultRegisterCenter initMultConsul(MultRegisterCenterService multRegisterCenterService, MultRegisterCenterServerMgmtConfig mgmtConfig) {<NEW_LINE>Map<String, String> URL_MAP;<NEW_LINE>MultRegisterCenter multRegisterCenter;<NEW_LINE>log.info("start init MultRegisterCenter");<NEW_LINE>URL_MAP = multRegisterCenterSe... | = new MultRegisterCenter(multConsulMap, multHeartbeatMonitorMap); |
252,430 | public Optional<Path> documentPath(DocumentId documentId) {<NEW_LINE>for (ModuleId moduleId : currentPackage().moduleIds()) {<NEW_LINE>Module module = currentPackage().module(moduleId);<NEW_LINE>Optional<Path> modulePath = modulePath(moduleId);<NEW_LINE>if (module.documentIds().contains(documentId)) {<NEW_LINE>if (modu... | + "/")[1])); |
806,051 | public synchronized void loadTextureFile(File file) throws IOException, ParseResourceException {<NEW_LINE>textureList.clear();<NEW_LINE>textureMap.clear();<NEW_LINE>try (FileReader fileReader = new FileReader(file)) {<NEW_LINE>JsonStreamParser jsonFile = new JsonStreamParser(fileReader);<NEW_LINE>JsonArray textures = j... | i + " from texture file " + file + "!"); |
1,797,241 | public void defaultFeedPtsRoutines() {<NEW_LINE>switch(Parameters.seedPts) {<NEW_LINE>case Constants.seedPts_allUser:<NEW_LINE>setAllUserCodeVariablesUseful();<NEW_LINE>break;<NEW_LINE>case Constants.seedPts_all:<NEW_LINE>// All pointers will be processed<NEW_LINE>for (int i = 0; i < n_var; ++i) {<NEW_LINE>IVarAbstract... | findLocalVarNode(iie.getBase()); |
966,282 | protected void addCompletions(@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) {<NEW_LINE>PsiElement position = parameters.getPosition();<NEW_LINE>ErlangFile file = (ErlangFile) position.getContainingFile();<NEW_LINE>ErlangQVar originalVar = PsiTreeUtil.... | initial(), module, module); |
1,346,791 | private void updateContext(Map<String, Object> value) {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object values = value.get("values");<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>if (values instanceof ContextEntity) {<NEW_LINE>map = ((ContextEntity) values).getContextMap();<NEW... | , attrs.get("value")); |
1,637,041 | final void connectionErrorOccurred(final Exception exception, boolean callJCAListener) {<NEW_LINE>final String methodName = "connectionErrorOccurred";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, new Object[] { exception, Boolean.valueOf(ca... | Object object = iterator.next(); |
151,394 | private void initOrUpdateSink() {<NEW_LINE>Map<String, SinkRequest> sinkRequests = streamContext.getSinkRequests();<NEW_LINE>InlongStreamInfo streamInfo = streamContext.getStreamInfo();<NEW_LINE>final String groupId = streamInfo.getInlongGroupId();<NEW_LINE>final String streamId = streamInfo.getInlongStreamId();<NEW_LI... | , updateState.getValue())); |
113,000 | public PyObject __call__(PyObject[] args, String[] keywords) {<NEW_LINE>int nargs = args.length;<NEW_LINE>if (nargs < 1 || nargs == keywords.length) {<NEW_LINE>throw Py.TypeError(for_type.fastGetName() + ".__new__(): not enough arguments");<NEW_LINE>}<NEW_LINE>PyObject arg0 = args[0];<NEW_LINE>if (!(arg0 instanceof PyT... | subtype.fastGetName() + ".__new__()"); |
287,449 | public static ListDevicesResponse unmarshall(ListDevicesResponse listDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDevicesResponse.setRequestId(_ctx.stringValue("ListDevicesResponse.RequestId"));<NEW_LINE>listDevicesResponse.setMessage(_ctx.stringValue("ListDevicesResponse.Message"));<NEW_LINE>listDevicesRe... | (_ctx.integerValue("ListDevicesResponse.Data.TotalPage")); |
651,130 | public static <T1, T2, T3> double conditionalMI(WeightedTripleDistribution<T1, T2, T3> tripleRV) {<NEW_LINE>Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount = tripleRV.getJointCount();<NEW_LINE>Map<CachedPair<T1, T3>, WeightCountTuple> acCount = tripleRV.getACCount();<NEW_LINE>Map<CachedPair<T2, T3>, WeightCo... | [] { cmi, stateRatio }); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.