idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
153,216 | static If convertOspfRedistributionPolicy(RedistributionPolicy policy, Map<String, RouteMap> routeMaps) {<NEW_LINE>FrrRoutingProtocol protocol = policy.getCumulusRoutingProtocol();<NEW_LINE>// All redistribution must match the specified protocol.<NEW_LINE>Conjunction ospfExportConditions = new Conjunction();<NEW_LINE>o... | Statements.ExitAccept.toStaticStatement()); |
642,118 | public <T> Mono<T> insert(String containerName, Object objectToSave, PartitionKey partitionKey) {<NEW_LINE>Assert.hasText(containerName, "containerName should not be null, empty or only whitespaces");<NEW_LINE>Assert.notNull(objectToSave, "objectToSave should not be null");<NEW_LINE>final Class<T> domainType = (Class<T... | cosmosItemResponse.getDiagnostics(), null); |
1,617,551 | protected JComponent createLeftTop() {<NEW_LINE>TrickFileFilter simRunFileFilter = new TrickFileFilter(TrickFileFilter.SIM_RUN);<NEW_LINE>String <MASK><NEW_LINE>if (simDirList != null) {<NEW_LINE>String[] simDirs = simDirList.split(",");<NEW_LINE>// Arrays.sort( simdirs, Collections.reverseOrder() );<NEW_LINE>for (int ... | simDirList = trickProperties.getProperty("TRICK_DP_SIM_DIRS"); |
946,364 | public static long clCreateImage2D(@NativeType("cl_context") long context, @NativeType("cl_mem_flags") long flags, @NativeType("cl_image_format const *") CLImageFormat image_format, @NativeType("size_t") long image_width, @NativeType("size_t") long image_height, @NativeType("size_t") long image_row_pitch, @Nullable @Na... | (host_ptr), errcode_ret, __functionAddress); |
1,772,575 | public List<AbstractParameterHost> extract(ResultSet rs) throws SQLException {<NEW_LINE>List<AbstractParameterHost> parameters = new ArrayList<>();<NEW_LINE>while (rs.next()) {<NEW_LINE>int paramMode = rs.getShort("COLUMN_TYPE");<NEW_LINE>if (!DbUtils.validMode.contains(paramMode)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_L... | host.setDirection(ParameterDirection.InputOutput); |
270,226 | protected DataverseRole findRoleOrDie(String id) throws WrappedResponse {<NEW_LINE>DataverseRole role;<NEW_LINE>if (id.equals(ALIAS_KEY)) {<NEW_LINE>String alias = getRequestParameter(ALIAS_KEY.substring(1));<NEW_LINE>try {<NEW_LINE>return em.createNamedQuery("DataverseRole.findDataverseRoleByAlias", DataverseRole.clas... | (Long.parseLong(id)); |
109,154 | void handleElementOnClick(final View view) {<NEW_LINE>final int itemPosition = getRecyclerView().getChildAdapterPosition(view);<NEW_LINE>VideoOnDemand item = getElements().get(itemPosition);<NEW_LINE>if (activity instanceof VODActivity) {<NEW_LINE>((VODActivity) activity).startNewVOD(item);<NEW_LINE>} else {<NEW_LINE>I... | findViewById(R.id.image_stream_preview); |
1,455,362 | public static RubyValue newArray(RubyValue receiver, RubyArray args, RubyBlock block) {<NEW_LINE>RubyArray a;<NEW_LINE>if (null == args) {<NEW_LINE>a = new RubyArray();<NEW_LINE>} else if (null == block) {<NEW_LINE>if (args.get(0) instanceof RubyArray) {<NEW_LINE>a = (RubyArray) args.get(0).clone();<NEW_LINE>} else {<N... | RubyFixnum) args.get(0); |
19,057 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtTextCreateOne = namedWindow ? "@name('create') @public create window MyInfraDC#keepall as (f1 string, f2 int, f3 string, f4 string)" : "@name('create') @public create table MyInfraDC as (f1 string prima... | { "E1", -2 } }); |
399,014 | private Credential buildSigningCredential(Terminal terminal, OptionSet options, Environment env) throws Exception {<NEW_LINE>X509Certificate signingCertificate;<NEW_LINE>PrivateKey signingKey;<NEW_LINE>char[] password = getChars(keyPasswordSpec.value(options));<NEW_LINE>if (options.has(signingPkcs12PathSpec)) {<NEW_LIN... | return new BasicX509Credential(signingCertificate, signingKey); |
337,604 | public static void verticalInverse(WlCoef_F32 coefficients, GrayF32 input, GrayF32 output) {<NEW_LINE>final int offsetA = coefficients.offsetScaling;<NEW_LINE>final int offsetB = coefficients.offsetWavelet;<NEW_LINE>final float[] alpha = coefficients.scaling;<NEW_LINE>final float[] beta = coefficients.wavelet;<NEW_LINE... | ] += a * alpha[i]; |
231,167 | public PlanItemInstanceResponse createPlanItemInstanceResponse(PlanItemInstance planItemInstance) {<NEW_LINE>RestUrlBuilder urlBuilder = createUrlBuilder();<NEW_LINE>PlanItemInstanceResponse result = new PlanItemInstanceResponse();<NEW_LINE>result.setId(planItemInstance.getId());<NEW_LINE>result.setUrl(urlBuilder.build... | setOccurredTime(planItemInstance.getOccurredTime()); |
1,664,879 | public static SearchRequest<Amenity> buildSearchPoiRequest(List<Location> route, double radius, SearchPoiTypeFilter poiTypeFilter, ResultMatcher<Amenity> resultMatcher) {<NEW_LINE>SearchRequest<Amenity> request = new SearchRequest<Amenity>();<NEW_LINE>float coeff = (float) (radius / MapUtils.getTileDistanceWidth(Search... | << (31 - SearchRequest.ZOOM_TO_SEARCH_POI); |
627,779 | // put metadata into cluster metadata<NEW_LINE>private boolean putClusterMeta(ClusterMetaEntity entity) {<NEW_LINE>if (!raftInitialized()) {<NEW_LINE>LOG.error(this.getClass().toString() + "::Raft incomplete initialization!");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ClusterMetaType metaType = entity.getMetaType();<N... | String metaKey = entity.getKey(); |
1,264,486 | private void writeEnumerationBasedForEachLoop(ForStatement loop, Expression collectionExpression, ClassNode collectionType) {<NEW_LINE>CompileStack compileStack = controller.getCompileStack();<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>OperandStack operandStack = controller.getOperandStack();<N... | defineTemporaryVariable("$enum", ENUMERATION_CLASSNODE, true); |
807,573 | Predicate createPredicateNumeric(String theResourceName, String theParamName, From<?, ? extends BaseResourceIndexedSearchParam> theFrom, CriteriaBuilder builder, IQueryParameterType theParam, ParamPrefixEnum thePrefix, BigDecimal theValue, final Expression<BigDecimal> thePath, String invalidMessageName, RequestPartitio... | builder.ge(thePath, theValue); |
1,114,644 | private void buildEnum(StringBuilder resBuf, Enum type, int size) {<NEW_LINE>resBuf.append("<type");<NEW_LINE>appendNameIdAttributes(resBuf, type);<NEW_LINE>long[] keys = type.getValues();<NEW_LINE>String metatype = "uint";<NEW_LINE>for (long key : keys) {<NEW_LINE>if (key < 0) {<NEW_LINE>metatype = "int";<NEW_LINE>bre... | encodeSignedIntegerAttribute(resBuf, "value", key); |
988,079 | protected MessageListenerContainer createListenerContainer(KafkaListenerEndpoint endpoint, KafkaListenerContainerFactory<?> factory) {<NEW_LINE>if (endpoint instanceof MethodKafkaListenerEndpoint) {<NEW_LINE>MethodKafkaListenerEndpoint<?, ?> mkle = (MethodKafkaListenerEndpoint<?, ?>) endpoint;<NEW_LINE>Object bean = mk... | ), ehm.getMethodName()); |
1,330,449 | public void onEnable() {<NEW_LINE>WURST.getHax().followHack.setEnabled(false);<NEW_LINE>WURST.getHax().tunnellerHack.setEnabled(false);<NEW_LINE>// disable other killauras<NEW_LINE>WURST.getHax().clickAuraHack.setEnabled(false);<NEW_LINE>WURST.getHax().crystalAuraHack.setEnabled(false);<NEW_LINE>WURST.getHax().fightBot... | ).triggerBotHack.setEnabled(false); |
223,558 | private void computeAnnotationChanges(List<JApiAnnotation> annotations, Optional<? extends CtBehavior> oldBehavior, Optional<? extends CtBehavior> newBehavior, JarArchiveComparatorOptions options) {<NEW_LINE>if (oldBehavior.isPresent()) {<NEW_LINE>CtBehavior ctBehavior = oldBehavior.get();<NEW_LINE>if (ctBehavior insta... | <CtMethod>) newBehavior, options); |
118,016 | final ListWebhooksResult executeListWebhooks(ListWebhooksRequest listWebhooksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listWebhooksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
800,230 | // called *after* the change<NEW_LINE>@Override<NEW_LINE>public void remove(Context context) throws BadLocationException {<NEW_LINE>Document doc = context.getDocument();<NEW_LINE><MASK><NEW_LINE>char ch = context.getText().charAt(0);<NEW_LINE>if (ch == '\'' || ch == '"') {<NEW_LINE>// NOI18N<NEW_LINE>TokenSequence<HTML... | int dotPos = context.getOffset(); |
1,092,223 | public void prepare(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("iterate" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>exp = param.getLeafExpression();<NEW_LINE>} else {<NEW_LINE>if (param.getS... | sub1 = param.getSub(1); |
1,742,059 | public void save(final OutputStream os, final Object obj) {<NEW_LINE>final EncogWriteHelper out = new EncogWriteHelper(os);<NEW_LINE>final BasicNetwork net = (BasicNetwork) obj;<NEW_LINE>final FlatNetwork flat = net.getStructure().getFlat();<NEW_LINE>out.addSection("BASIC");<NEW_LINE>out.addSubSection("PARAMS");<NEW_LI... | TAG_CONNECTION_LIMIT, flat.getConnectionLimit()); |
1,730,056 | protected <BT extends BeanType<T>> Stream<BT> reduceByAnnotation(Class<T> beanType, Stream<BT> candidates, String annotationName, String qualifiedName) {<NEW_LINE>return candidates.filter(candidate -> {<NEW_LINE>if (candidate.isPrimary() && Primary.class.getSimpleName().equals(annotationName)) {<NEW_LINE>return true;<N... | getAnnotationMetadata().hasDeclaredAnnotation(qualifiedName); |
69,455 | public boolean checkAccounts() {<NEW_LINE>// no lines -> nothing to distribute<NEW_LINE>if (m_lines.size() == 0)<NEW_LINE>return true;<NEW_LINE>// For all fact lines<NEW_LINE>for (int i = 0; i < m_lines.size(); i++) {<NEW_LINE>FactLine line = (FactLine) m_lines.get(i);<NEW_LINE>MAccount account = line.getAccount();<NEW... | .p_Error = ev.toString(); |
1,282,080 | public Folder postFolders(FoldersBody body, List<String> fields) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/folders";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams <MASK><NEW_LINE>Map<String, String> localV... | = new ArrayList<Pair>(); |
1,318,640 | private List<Javadoc> convertMultiline(List<? extends DocTree> dts) {<NEW_LINE>List<Javadoc> js = new ArrayList<>(dts.size());<NEW_LINE>Javadoc.LineBreak lineBreak;<NEW_LINE>for (int i = 0; i < dts.size(); i++) {<NEW_LINE>DocTree dt = dts.get(i);<NEW_LINE>if (i > 0 && dt instanceof DCTree.DCText) {<NEW_LINE>// the whit... | dt).getBody())); |
1,417,588 | public void onQueryResult(QueryResult query) {<NEW_LINE>switch(query.getSqlType()) {<NEW_LINE>case ServerParse.SELECT:<NEW_LINE>case ServerParse.UPDATE:<NEW_LINE>case ServerParse.INSERT:<NEW_LINE>case ServerParse.DELETE:<NEW_LINE>case ServerParse.REPLACE:<NEW_LINE>String host = query.getHost();<NEW_LINE>if (host == nul... | String user = query.getUser(); |
1,301,936 | public void dump() {<NEW_LINE>try {<NEW_LINE>if (isEnabled()) {<NEW_LINE>if (isUsed() && LOGGER.isDebugEnabled()) {<NEW_LINE>String eol = StringUtil.lineSeparator();<NEW_LINE>String head = " " + tag;<NEW_LINE>StringBuilder log = new StringBuilder();<NEW_LINE>log.append(tag).append("dtls statistic:").append(eol);<NEW_... | (succeededHandshakes).append(eol); |
1,562,970 | public MemberAccount unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MemberAccount memberAccount = new MemberAccount();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | class).unmarshall(context)); |
611,885 | public void sendReliably() throws Rel100Exception {<NEW_LINE>if (!isLiveMessage("sendReliably")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isCommitted()) {<NEW_LINE>throw new IllegalStateException("Can not modify committed message");<NEW_LINE>}<NEW_LINE>if (getStatus() <= 100 || getStatus() >= 200) {<NEW_LINE>// it is... | e.getMessage() + this); |
1,438,320 | private void constructBBox(IsochroneMapCollection isoMaps, IsochronesRequest request) throws ParameterValueException {<NEW_LINE>List<BBox> bboxes = new ArrayList<>();<NEW_LINE>for (IsochroneMap isochroneMap : isoMaps.getIsochroneMaps()) {<NEW_LINE>Envelope isochroneMapEnvelope = isochroneMap.getEnvelope();<NEW_LINE>BBo... | ), isochroneMapEnvelope.getMaxY()); |
131,682 | private PlayerKnowledge load(File file, boolean isTemplate) {<NEW_LINE>if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER && file != null) {<NEW_LINE>try {<NEW_LINE>String jsonString = SerializationHelper.readJsonFile(file);<NEW_LINE>PlayerKnowledge playerKnowledge = SerializationHelper.GSON.fromJson(jso... | "Unable to find file '{}'", file.getAbsoluteFile()); |
1,783,679 | private String mockInterface(ClassInfo declaringClass, BuildProducer<GeneratedClassBuildItem> generatedClass, IndexView index) {<NEW_LINE>// we have an interface, we have to call a default method on it, we generate a (very simplistic) implementation:<NEW_LINE>return interfaceMocks.computeIfAbsent(declaringClass, classI... | returnValue(methodCreator.loadNull()); |
1,655,558 | private static void validateParentHosts(ApplicationId application, NodeList allNodes, NodeList potentialChildren) {<NEW_LINE>Set<String> parentHostnames = potentialChildren.stream().map(Node::parentHostname).flatMap(Optional::stream).collect(Collectors.toSet());<NEW_LINE>Set<String> nonActiveHosts = allNodes.not().stat... | () - nonActiveHosts.size(); |
1,624,989 | private PropertyFunction propertyGetterFunction(long getSetToken, int functionLine, boolean yield, boolean await, boolean allowPrivate) {<NEW_LINE>final boolean computed = type == LBRACKET;<NEW_LINE>final Expression propertyName = classElementName(yield, await, allowPrivate);<NEW_LINE>final IdentNode getterName = compu... | List.of(), 0); |
223,835 | public Context createContext(ContextID contextID) throws ErrorException {<NEW_LINE>ContextCreateAction contextCreateAction = new ContextCreateAction();<NEW_LINE>String contextIDStr = SerializeHelper.serializeContextID(contextID);<NEW_LINE>contextCreateAction.<MASK><NEW_LINE>contextCreateAction.getRequestPayloads().put(... | addHeader(ContextHTTPConstant.CONTEXT_ID_STR, contextIDStr); |
41,954 | public static GetWelcomePageURIResponse unmarshall(GetWelcomePageURIResponse getWelcomePageURIResponse, UnmarshallerContext context) {<NEW_LINE>getWelcomePageURIResponse.setRequestId(context.stringValue("GetWelcomePageURIResponse.RequestId"));<NEW_LINE>getWelcomePageURIResponse.setData(context.stringValue("GetWelcomePa... | = new ArrayList<ErrorMessage>(); |
950,689 | private void insertThrowable(IThrowableProxy tp, long eventId) throws SQLException {<NEW_LINE>SQLiteStatement stmt = db.compileStatement(insertExceptionSQL);<NEW_LINE>try {<NEW_LINE>short baseIndex = 0;<NEW_LINE>while (tp != null) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>ThrowableProxyUtil.subjoinFi... | (sb, stepArray[i]); |
1,483,861 | protected void addNewParameters(ASTRewrite rewrite, List<String> takenNames, List<SingleVariableDeclaration> params, ImportRewriteContext context) throws CoreException {<NEW_LINE>AST ast = rewrite.getAST();<NEW_LINE>List<Expression> arguments = fArguments;<NEW_LINE>for (int i = 0; i < arguments.size(); i++) {<NEW_LINE>... | ast, elem, argTypeKey, context); |
35,365 | public List<FieldChange> cleanup(BibEntry entry) {<NEW_LINE>List<FieldChange> <MASK><NEW_LINE>// If there are already links in the file field, keep those on top:<NEW_LINE>String oldFileContent = entry.getField(StandardField.FILE).orElse(null);<NEW_LINE>List<LinkedFile> fileList = new ArrayList<>(entry.getFiles());<NEW_... | changes = new ArrayList<>(); |
1,332,921 | public ListUserImportJobsResult listUserImportJobs(ListUserImportJobsRequest listUserImportJobsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUserImportJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g... | invoke(request, responseHandler, executionContext); |
381,262 | public ApiResponse<Void> accountSettingsUpdateInfoWithHttpInfo(UpdateAccountInfoRequest updateAccountInfo) throws ApiException {<NEW_LINE>Object localVarPostBody = updateAccountInfo;<NEW_LINE>// verify the required parameter 'updateAccountInfo' is set<NEW_LINE>if (updateAccountInfo == null) {<NEW_LINE>throw new ApiExce... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
1,006,897 | private void runScrapes() {<NEW_LINE>TRTrackerBTScraperResponseImpl nextResponseScraping = checkForNextScrape();<NEW_LINE>if (Logger.isEnabled() && nextResponseScraping != oldResponse && nextResponseScraping != null) {<NEW_LINE>Logger.log(new LogEvent(TorrentUtils.getDownloadManager(nextResponseScraping.getHash()), LOG... | ().getNumActiveScrapes())); |
1,791,943 | public void showParameterInfo(@NotNull ErlangArgumentList args, @NotNull CreateParameterInfoContext context) {<NEW_LINE>ErlangFunctionCallExpression erlFunctionCall = PsiTreeUtil.getParentOfType(args, ErlangFunctionCallExpression.class);<NEW_LINE>if (erlFunctionCall != null) {<NEW_LINE>PsiReference reference = erlFunct... | .getArgumentDefinitionList().size(); |
1,360,312 | public void valueChanged(ListSelectionEvent e) {<NEW_LINE>int selectedRow = pluginTable.getSelectedRow();<NEW_LINE>if (selectedRow == -1)<NEW_LINE>return;<NEW_LINE>Bundle selectedBundle = (Bundle) <MASK><NEW_LINE>if (PluginManagerActivator.isSystemBundle(selectedBundle)) {<NEW_LINE>buttonsPanel.enableUninstallButton(fa... | pluginTable.getValueAt(selectedRow, 0); |
1,340,369 | private static int parsePolygon(SvgContainer container, char[] ca, int start, int end) {<NEW_LINE>end = findClosingTag(ca, start, end);<NEW_LINE>if (end != -1) {<NEW_LINE>int endAttrs = closer(ca, start, end);<NEW_LINE>SvgShape element = new SvgShape(container, getAttrValue(ca, start, endAttrs, ATTR_ID));<NEW_LINE>floa... | , start, endAttrs, ATTR_TRANSFORM)); |
834,938 | public void publish(LogRecord record) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(CoreConstants.LINE_SEPARATOR);<NEW_LINE>sb.<MASK><NEW_LINE>sb.append(" | ");<NEW_LINE>sb.append(record.getSourceClassName());<NEW_LINE>sb.append(" | ");<NEW_LINE>sb.append(record.getSourceMethodName());<NEW_LINE>... | append(record.getInstant()); |
854,424 | final void sqlInline0(BindingSQLContext<U> ctx, OffsetDateTime value) {<NEW_LINE>SQLDialect family = ctx.family();<NEW_LINE>switch(family) {<NEW_LINE>// [#5895] HSQLDB derives the specific data type from the literal<NEW_LINE>case HSQLDB:<NEW_LINE>ctx.render().visit(K_TIMESTAMP).sql(" '").sql(escape(format(value, family... | ))).sql('\''); |
881,010 | public void validateSigAlg(Page endpointOutput, String sigAlg) throws Exception {<NEW_LINE>String thisMethod = "validateSigAlg";<NEW_LINE>loggingUtils.printMethodName(thisMethod, "Start of");<NEW_LINE>String jwtToken = WebResponseUtils.getResponseText(endpointOutput);<NEW_LINE>Log.info(<MASK><NEW_LINE>JsonObject val = ... | thisClass, thisMethod, "response value: " + jwtToken); |
1,616,896 | public static void alertUserOnFirstError(final ExecutableFlow flow, final AlerterHolder alerterHolder) {<NEW_LINE>final ExecutionOptions options = flow.getExecutionOptions();<NEW_LINE>if (options.getNotifyOnFirstFailure()) {<NEW_LINE>logger.info("Alert on first error of execution " + flow.getExecutionId());<NEW_LINE>fi... | mailAlerter = alerterHolder.get("email"); |
1,197,625 | protected void after(XParam param) throws Throwable {<NEW_LINE>switch(mMethod) {<NEW_LINE>case addGeofence:<NEW_LINE>case addNmeaListener:<NEW_LINE>case addGpsStatusListener:<NEW_LINE>case addProximityAlert:<NEW_LINE>case Srv_requestGeofence:<NEW_LINE>case Srv_addGpsStatusListener:<NEW_LINE>case Srv_addGpsMeasurementsL... | String) param.args[0]; |
361,580 | public static void upward(SceneBuilder scene, SceneBuildingUtil util) {<NEW_LINE>scene.title("chute_upward", "Transporting Items upward via Chutes");<NEW_LINE>scene.configureBasePlate(0, 0, 5);<NEW_LINE>scene.scaleSceneView(.9f);<NEW_LINE>scene.showBasePlate();<NEW_LINE>Selection chute = util.select.fromTo(1, 2, 2, 1, ... | , 2, 2), false); |
730,118 | public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put(CounterEngine.ATTR_NAME, type);<NEW_LINE>param.put(CounterEngine.ATTR_DISPLAY, displayName);<NEW_LINE>param.put(CounterEngine.ATTR_FAMILY, family);<NEW_LINE>param.put(Cou... | tcp = TcpProxy.getTcpProxy(serverId); |
912,913 | public void trimUnreferencedTranslogFiles() {<NEW_LINE>final Store store = this.engineConfig.getStore();<NEW_LINE>store.incRef();<NEW_LINE>try (ReleasableLock lock = readLock.acquire()) {<NEW_LINE>ensureOpen();<NEW_LINE>final List<IndexCommit> commits = DirectoryReader.listCommits(store.directory());<NEW_LINE>if (commi... | TranslogConfig translogConfig = engineConfig.getTranslogConfig(); |
368,281 | public void queueEvent(FacesEvent event) {<NEW_LINE>FacesContext context = getFacesContext();<NEW_LINE>if (ComponentUtils.isRequestSource(this, context) && (event instanceof AjaxBehaviorEvent)) {<NEW_LINE>Map<String, String> params = context.getExternalContext().getRequestParameterMap();<NEW_LINE>String eventName = par... | setPhaseId(behaviorEvent.getPhaseId()); |
1,227,763 | public void closeSourceWindow(String name) {<NEW_LINE>// hide the original source window<NEW_LINE>if (StringUtil.equals(name, SourceColumnManager.MAIN_SOURCE_NAME))<NEW_LINE>getSourceLogicalWindow().onWindowStateChange(new WindowStateChangeEvent(WindowState.HIDE));<NEW_LINE>else {<NEW_LINE>SourceColumn column = sourceC... | sourceColumnManager_.closeColumn(column, true); |
1,779,072 | private void loadNode258() {<NEW_LINE>SessionDiagnosticsObjectTypeNode node = new SessionDiagnosticsObjectTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder, new QualifiedName(0, "<ClientName>"), new LocalizedText("en", "<ClientName>"), LocalizedText.NULL_VALUE, UInteger.valueOf(0)... | , UByte.valueOf(0)); |
1,025,849 | public UserKeyPairContainer requestRoomRescueKeyPair(Long roomId, String xSdsDateFormat, String version, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'roomId' is set<NEW_LINE>if (roomId == null) {<NEW_LINE>throw new ApiException(400, "Mis... | , apiClient.parameterToString(xSdsDateFormat)); |
1,144,193 | private void processAuthenticationChallenge(ClientTransaction clientTransaction, Response response, SipProvider jainSipProvider) throws OperationFailedException {<NEW_LINE>try {<NEW_LINE>if (logger.isDebugEnabled())<NEW_LINE>logger.debug("Authenticating a message request.");<NEW_LINE>ClientTransaction retryTran = null;... | "a message request", OperationFailedException.INTERNAL_ERROR, exc); |
528,286 | protected void updateContent() {<NEW_LINE>ImageView icon = (ImageView) view.findViewById(R.id.warning_img);<NEW_LINE>TextView warningTitle = (TextView) view.findViewById(R.id.warning_title);<NEW_LINE>TextView warningLink = (TextView) view.findViewById(R.id.warning_link);<NEW_LINE>if (imageDrawable != null) {<NEW_LINE>i... | startLinkIndex, endLinkIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); |
328,117 | public void sendCloudEventsAsync() {<NEW_LINE>// BEGIN: com.azure.messaging.eventgrid.EventGridPublisherAsyncClient#CreateCloudEventClient<NEW_LINE>// Create a client to send events of CloudEvent schema (com.azure.core.models.CloudEvent)<NEW_LINE>EventGridPublisherAsyncClient<CloudEvent> cloudEventPublisherClient = // ... | "AZURE_EVENTGRID_CLOUDEVENT_KEY"))).buildCloudEventPublisherAsyncClient(); |
434,993 | public TestRunnerSpawn createTestRunnerSpawn(TestRunnerAction action, ActionExecutionContext actionExecutionContext) throws ExecException, InterruptedException {<NEW_LINE>if (action.getExecutionSettings().getInputManifest() == null) {<NEW_LINE>String errorMessage = "cannot run local tests with --nobuild_runfile_manifes... | ImmutableSet.of(), localResourcesSupplier); |
436,610 | protected SQLStatement parseImportTable() {<NEW_LINE>SQLImportTableStatement stmt = new SQLImportTableStatement();<NEW_LINE>if (lexer.identifierEquals(FnvHash.Constants.EXTERNAL)) {<NEW_LINE>lexer.nextToken();<NEW_LINE>stmt.setExtenal(true);<NEW_LINE>}<NEW_LINE>accept(Token.TABLE);<NEW_LINE>stmt.setTable(new SQLExprTab... | this.exprParser.integerExpr()); |
525,880 | private static MappedByteBuffer waitForFileMapping(final File file, final EpochClock clock, final long deadlineMs) {<NEW_LINE>while (true) {<NEW_LINE>while (!file.exists() || file.length() < CncFileDescriptor.META_DATA_LENGTH) {<NEW_LINE>if (clock.time() > deadlineMs) {<NEW_LINE>throw new DriverTimeoutException("CnC fi... | map(READ_WRITE, 0, fileSize); |
355,616 | final ListChannelModeratorsResult executeListChannelModerators(ListChannelModeratorsRequest listChannelModeratorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChannelModeratorsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
842,697 | private static List<UberData> extractAffordances(Links links) {<NEW_LINE>return //<NEW_LINE>//<NEW_LINE>links.stream().//<NEW_LINE>flatMap(//<NEW_LINE>it -> it.getAffordances().stream()).//<NEW_LINE>map(//<NEW_LINE>it -> it.getAffordanceModel(MediaTypes.UBER_JSON)).//<NEW_LINE>map(UberAffordanceModel.class::cast).map(i... | (Collectors.joining(",")); |
1,136,972 | public void marshall(Component component, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (component == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(component.getAppId(), APPID_BINDING);<NEW_LINE>protocolMa... | component.getProperties(), PROPERTIES_BINDING); |
307,545 | public static void openXlog() {<NEW_LINE>int pid = android.os.Process.myPid();<NEW_LINE>String processName = null;<NEW_LINE>ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);<NEW_LINE>for (ActivityManager.RunningAppProcessInfo appProcess : am.getRunningAppProcesses()) {<NEW_LINE>... | .getExternalStorageDirectory().getAbsolutePath(); |
1,672,306 | private static boolean checkErrorState() {<NEW_LINE>try {<NEW_LINE>MatrixLog.i(TAG, "[checkErrorState] start");<NEW_LINE>Application application = sApplication == null ? Matrix.with().getApplication() : sApplication;<NEW_LINE>ActivityManager am = (ActivityManager) application.getSystemService(Context.ACTIVITY_SERVICE);... | proc.processName, proc.condition); |
79,403 | private void convert(Path src, Path dest, boolean destIsDir) {<NEW_LINE>try (DicomInputStream dis = new DicomInputStream(src.toFile())) {<NEW_LINE>Attributes attributes = dis.readDataset();<NEW_LINE>String sopCUID = attributes.getString(Tag.SOPClassUID);<NEW_LINE>String ext = FileType.getFileExt(sopCUID);<NEW_LINE>if (... | , e.getMessage())); |
1,844,352 | public void save(String authFile) throws IOException {<NEW_LINE>File file = new File(authFile);<NEW_LINE>if (!file.isAbsolute()) {<NEW_LINE>file = new // $NON-NLS-1$<NEW_LINE>File(System.getProperty("user.dir"<MASK><NEW_LINE>}<NEW_LINE>try (PrintWriter writer = new PrintWriter(Files.newBufferedWriter(file.toPath()))) {... | ) + File.separator + authFile); |
1,402,993 | final DeleteServerResult executeDeleteServer(DeleteServerRequest deleteServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteServerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | invoke(request, responseHandler, executionContext); |
541,651 | // loads the order (if specified) in which blobs/supersets are to be processed<NEW_LINE>private String[] loadSpecNames() {<NEW_LINE>String path = opts.get("-c");<NEW_LINE>if ((null == path) || (path.length() == 0)) {<NEW_LINE>// path for properties file not specified so return an empty array<NEW_LINE>return new String[... | File file = new File(path); |
1,841,383 | public void write(Collection<RunResult> results) {<NEW_LINE>if (CollectionUtils.isEmpty(results)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StandardEnvironment env = new StandardEnvironment();<NEW_LINE>String projectVersion = env.getProperty("project.version", "unknown");<NEW_LINE>String gitBranch = env.getProperty("git.b... | connection.addRequestProperty("X-Git-Branch", gitBranch); |
1,186,714 | public Map<Integer, ParameterContext> buildParams() {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>(16);<NEW_LINE>int index = 0;<NEW_LINE>// MetaDbUtil.setParameter(++index, params, ParameterMethod.setLong, this.scheduleId);<NEW_LINE>// MetaDbUtil.setParameter(++index, params, ParameterMethod.setTimest... | ParameterMethod.setString, this.status); |
1,457,684 | final CreateRecommenderResult executeCreateRecommender(CreateRecommenderRequest createRecommenderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRecommenderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Personalize"); |
989,210 | Mono<Response<BlobProperties>> downloadToFileWithResponse(BlobDownloadToFileOptions options, Context context) {<NEW_LINE>StorageImplUtils.assertNotNull("options", options);<NEW_LINE>BlobRange finalRange = options.getRange() == null ? new BlobRange(0) : options.getRange();<NEW_LINE>final com.azure.storage.common.Paralle... | .getFilePath(), signalType)); |
596,993 | protected <T> T doOperation(RequestMessage request, ResponseParser<T> parser, String bucketName, String key, boolean keepResponseOpen, List<RequestHandler> requestHandlers, List<ResponseHandler> reponseHandlers) throws OSSException, ClientException {<NEW_LINE>final WebServiceRequest originalRequest = request.getOrigina... | .addRequestHandler(new RequestProgressHanlder()); |
38,084 | public static void computeTowerHanoiWrapper(TimedExecutor executor, int numRings) throws Exception {<NEW_LINE>List<Deque<Integer>> pegs = new ArrayList<>();<NEW_LINE>for (int i = 0; i < NUM_PEGS; i++) {<NEW_LINE>pegs.add(new LinkedList<>());<NEW_LINE>}<NEW_LINE>for (int i = numRings; i >= 1; --i) {<NEW_LINE>pegs.get(0)... | toPeg).getFirst())); |
1,518,094 | public void writeToXml(EwsServiceXmlWriter writer, GetUserAvailabilityRequest request) throws Exception {<NEW_LINE>if (request.isFreeBusyViewRequested()) {<NEW_LINE>writer.writeStartElement(XmlNamespace.Types, XmlElementNames.FreeBusyViewOptions);<NEW_LINE>request.getTimeWindow().writeToXmlUnscopedDatesOnly(writer, Xml... | XmlElementNames.GoodThreshold, this.goodSuggestionThreshold); |
1,429,411 | private ExtraKeyButton[][] initExtraKeysInfo(@NonNull String propertiesInfo, @NonNull ExtraKeysConstants.ExtraKeyDisplayMap extraKeyDisplayMap, @NonNull ExtraKeysConstants.ExtraKeyDisplayMap extraKeyAliasMap) throws JSONException {<NEW_LINE>// Convert String propertiesInfo to Array of Arrays<NEW_LINE>JSONArray arr = ne... | .get(ExtraKeyButton.KEY_POPUP)); |
212,825 | public void send(final String serverIp, Message msg) {<NEW_LINE>if (StringUtils.isEmpty(serverIp)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Map<String, String> params = new HashMap<String, String>(2);<NEW_LINE>params.put(FieldsConstants.SERVICE_STATUS, msg.getData());<NEW_LINE>String url = HTTP_PREFIX + serverIp + ... | () + UtilsAndCommons.NACOS_NAMING_CONTEXT + "/operator/server/status"; |
1,332,225 | public void addContext(Context c) {<NEW_LINE>boolean expandContextNode = contextPanels.isEmpty();<NEW_LINE>getSessionDialog().createUISharedContext(c);<NEW_LINE>String contextsNodeName = Constant.messages.getString("context.list");<NEW_LINE>ContextGeneralPanel contextGenPanel = new ContextGeneralPanel(c.getName(), c.ge... | addParamPanel(contextPanelPath, contextIncPanel, false); |
1,145,897 | public void createControls(Composite parent) {<NEW_LINE>Composite treeComposite = new Composite(parent, SWT.NONE);<NEW_LINE>GridDataFactory.fillDefaults().grab(true, true).applyTo(treeComposite);<NEW_LINE>GridLayoutFactory.fillDefaults().applyTo(treeComposite);<NEW_LINE>Tree tree = new Tree(treeComposite, getViewerConf... | ()).applyTo(tree); |
1,278,904 | static void drawTrapezoid(Graphics g, Bounds bds, Direction facing, int facingLean) {<NEW_LINE>int wid = bds.getWidth();<NEW_LINE>int ht = bds.getHeight();<NEW_LINE>int x0 = bds.getX();<NEW_LINE>int x1 = x0 + wid;<NEW_LINE><MASK><NEW_LINE>int y1 = y0 + ht;<NEW_LINE>int[] xp = { x0, x1, x1, x0 };<NEW_LINE>int[] yp = { y... | int y0 = bds.getY(); |
761,241 | private String readLayout() {<NEW_LINE>final ClassLoader loader = Thread.currentThread().getContextClassLoader();<NEW_LINE>final URL resourceURL = loader.getResource(LAYOUT_FILE_NAME);<NEW_LINE>try {<NEW_LINE>Logger.debug(this, () -> "Reading system template layout");<NEW_LINE>return IOUtils.toString(resourceURL, UtilM... | + " \"header\":true,\n" + " \"footer\":true,\n" + " \"sidebar\":null\n" + "}\n"; |
1,720,196 | public void reset() {<NEW_LINE>final FlutterSdk sdk = FlutterSdk.getFlutterSdk(myProject);<NEW_LINE>final String path = sdk != null ? sdk.getHomePath() : "";<NEW_LINE>// Set this after populating the combo box to display correctly when the Flutter SDK is unset.<NEW_LINE>// (This can happen if the user changed the Dart ... | setSelected(settings.isOrganizeImportsOnSave()); |
386,254 | public String putRecordingTextTrack(String recordId, String kind, String lang, File file, String label, String origFilename, String trackId, String contentType, String tempFilename) {<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE><MASK><NEW_LINE>logData.put("kind", kind);<NEW_LINE>logData.put("lang",... | logData.put("recordId", recordId); |
1,766,621 | private Mono<Response<AutomationAccountInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String automationAccountName, AutomationAccountCreateOrUpdateParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Param... | this.client.mergeContext(context); |
1,448,894 | default /*package*/<NEW_LINE>ClassLoader createClassLoader(ClassLoader pluginClassLoader, ClassLoader coreClassLoader) {<NEW_LINE>if (!(pluginClassLoader instanceof URLClassLoader)) {<NEW_LINE>throw new IllegalStateException(String.format("Incorrect ClassLoader type. Expected '%s' but got '%s'", URLClassLoader.class.ge... | ).getURLs(), coreClassLoader); |
453,601 | private List<TableDesc> fetchTables(String response) throws Exception {<NEW_LINE>List<TableDesc> tables = new ArrayList<>();<NEW_LINE>EsReponse esReponse = new Gson().fromJson(response, EsReponse.class);<NEW_LINE>if (esReponse.getError() != null) {<NEW_LINE>throw new Exception(esReponse.getError().getReason());<NEW_LIN... | .setName(row[0]); |
384,071 | final ListThemeVersionsResult executeListThemeVersions(ListThemeVersionsRequest listThemeVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThemeVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | invoke(request, responseHandler, executionContext); |
1,676,551 | static Object decodeValue(String value) throws IOException {<NEW_LINE>if ((value == null) || (value.length() == 0)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>byte[] bytes = new byte[value.length() / 2];<NEW_LINE>int tempI;<NEW_LINE>int count = 0;<NEW_LINE>for (int i = 0; i < value.length(); i += 2) {<NEW_LINE>try {<N... | , i + 2), 16); |
1,496,363 | public void onResponse(QueryPage<ModelSnapshot> searchResponse) {<NEW_LINE>long nextToKeepMs = deleteAllBeforeMs;<NEW_LINE>try {<NEW_LINE>List<ModelSnapshot> snapshots = new ArrayList<>();<NEW_LINE>for (ModelSnapshot snapshot : searchResponse.results()) {<NEW_LINE>// We don't want to delete the currently used snapshot ... | .getTimestamp().getTime(); |
1,352,741 | public INDArray computeGradient(INDArray labels, INDArray preOutput, IActivation activationFn, INDArray mask) {<NEW_LINE>if (!labels.equalShapes(preOutput)) {<NEW_LINE>Preconditions.throwEx("Labels and preOutput must have equal shapes: got shapes %s vs %s", labels.shape(), preOutput.shape());<NEW_LINE>}<NEW_LINE>// No-... | dLda = numerator.divi(denominator); |
307,384 | void log(SessionLogEntry entry, String formattedMessage) {<NEW_LINE>int level = entry.getLevel();<NEW_LINE>Throwable loggedException = entry.getException();<NEW_LINE>String msgParm;<NEW_LINE>if ((formattedMessage == null || formattedMessage.equals("")) && loggedException != null) {<NEW_LINE>msgParm = loggedException.to... | debug(_tc, "throwable", loggedException); |
1,440,385 | public void receive(long timestamp, Object[] data) {<NEW_LINE>List<ReturnEventHolder> returnEventHolderList = new ArrayList<>(eventSequence.length);<NEW_LINE>synchronized (patternSyncObject) {<NEW_LINE>try {<NEW_LINE>multiProcessReturn.set(new ReturnEventHolder());<NEW_LINE>stabilizeStates(timestamp);<NEW_LINE>for (int... | outputRateLimiter.sendToCallBacks(returnEventHolder.complexEventChunk); |
695,083 | public static void init(List<String> packages) {<NEW_LINE>if (_init) {<NEW_LINE>LOGGER.info("TableConfigTunerRegistry already initialized, skipping.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>List<URL> urls = new ArrayList<>();<NEW_LINE>for (String pack : packages) {<N... | (ClasspathHelper.forPackage(pack)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.