idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
746,850 | void moveTo(File newFolder, String newStorageName, String newFolderPath, String newName) throws IOException {<NEW_LINE>synchronized (fileSystem) {<NEW_LINE>checkInUse();<NEW_LINE>File oldFolder = propertyFile.getFolder();<NEW_LINE>String oldStorageName = propertyFile.getStorageName();<NEW_LINE>String oldPath = property... | oldFolder, oldStorageName, oldPath, oldName); |
1,687,216 | private void loadNode1125() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditProgramTransitionEventType_TransitionNumber, new QualifiedName(0, "TransitionNumber"), new LocalizedText("en", "TransitionNumber"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new D... | .expanded(), false)); |
880,061 | public static <Strategy extends ColumnSelectorStrategy> ColumnSelectorPlus<Strategy>[] createColumnSelectorPluses(ColumnSelectorStrategyFactory<Strategy> strategyFactory, List<DimensionSpec> dimensionSpecs, ColumnSelectorFactory columnSelectorFactory) {<NEW_LINE>int dimCount = dimensionSpecs.size();<NEW_LINE>@SuppressW... | dimSpec = dimensionSpecs.get(i); |
338,588 | private Mono<PagedResponse<CustomHostnameSitesInner>> listCustomHostnameSitesNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() == null) ... | )).readOnly())); |
423,387 | public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>AsyncContext currentContext = ((AsyncContextAccessor) args[0])._$PINPOINT$_getAsyncContext();<NEW_LINE>if (currentContext != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (((... | recorder.recordServiceType(OpenwhiskConstants.OPENWHISK_INTERNAL); |
208,368 | private File[] chooseAndOpenProjects(File workingDir, boolean open) {<NEW_LINE>if (workingDir != null) {<NEW_LINE>ProjectChooser.setProjectsFolder(workingDir);<NEW_LINE>}<NEW_LINE>JFileChooser chooser = ProjectChooser.projectChooser();<NEW_LINE>if (workingDir != null) {<NEW_LINE>chooser.setCurrentDirectory(workingDir);... | (FileUtil.toFileObject(d)); |
1,568,953 | private void externalLoad(final Cache concreteCache, final long currentTime) throws Throwable {<NEW_LINE>byte[] newKey = ((AbstractExternalCache) concreteCache).buildKey(key);<NEW_LINE>byte[] lockKey = combine(newKey, "_#RL#".getBytes());<NEW_LINE>long loadTimeOut = RefreshCache.this.config.getRefreshPolicy().getRefres... | * refreshMillis), TimeUnit.MILLISECONDS); |
1,171,694 | /*<NEW_LINE>* Execute same test as above only make execution concurrent<NEW_LINE>*/<NEW_LINE>@Test<NEW_LINE>public void testConcurrentExecute() throws Exception {<NEW_LINE>Log.info(c, "Begin concurrent Persistent test", "affirm test begin");<NEW_LINE>ExecutorService executor = null;<NEW_LINE>try {<NEW_LINE>executor = E... | (++i) + " OUTPUT -----\r\n" + output; |
750,804 | public static String replace(String text, String repl, String with, int max) {<NEW_LINE>if (isEmpty(text) || isEmpty(repl) || with == null || max == 0) {<NEW_LINE>return text;<NEW_LINE>}<NEW_LINE>int start = 0;<NEW_LINE>int end = text.indexOf(repl, start);<NEW_LINE>if (end == -1) {<NEW_LINE>return text;<NEW_LINE>}<NEW_... | end)).append(with); |
343,247 | protected <T> T withClientResource(String realm, String client, RealmsResource realmsResource, BiFunction<ClientRepresentation, ClientResource, T> clientResourceConsumer, Supplier<T> notFoundProvider) {<NEW_LINE>ClientRepresentation clientRepresentation = null;<NEW_LINE>ClientResource clientResource = null;<NEW_LINE>tr... | clientRepresentations = clientsResource.findByClientId(client); |
714,779 | public void marshall(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getResourceConfigHistoryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.... | getResourceConfigHistoryRequest.getNextToken(), NEXTTOKEN_BINDING); |
1,468,286 | protected boolean beforeSave(boolean newRecord) {<NEW_LINE>if (newRecord && getParent().isComplete()) {<NEW_LINE>log.saveError("ParentComplete", Msg.translate(getCtx(), "C_BankStatementLine"));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (getChargeAmt().signum() != 0 && getC_Charge_ID() == 0) {<NEW_LINE>log.saveError... | , payment.getC_BPartner_ID())); |
478,342 | public static boolean isOfProjectType(FileObject projectFile, String projectType) {<NEW_LINE>try {<NEW_LINE>ClassLoader cl = Lookup.getDefault().lookup(ClassLoader.class);<NEW_LINE>// NOI18N<NEW_LINE>Class foqClz = cl.loadClass("org.netbeans.api.project.FileOwnerQuery");<NEW_LINE>// NOI18N<NEW_LINE>Class apClz = cl.loa... | getOwnerMethod.invoke(foqClz, projectFile); |
644,358 | // Meant to be called only from within the engine<NEW_LINE>static OpenElementTag asEngineOpenElementTag(final IOpenElementTag openElementTag) {<NEW_LINE>if (openElementTag instanceof OpenElementTag) {<NEW_LINE>return (OpenElementTag) openElementTag;<NEW_LINE>}<NEW_LINE>final IAttribute[] originalAttributeArray = openEl... | ), originalAttribute.getCol()); |
259,419 | public ListChannelsModeratedByAppInstanceUserResult listChannelsModeratedByAppInstanceUser(ListChannelsModeratedByAppInstanceUserRequest listChannelsModeratedByAppInstanceUserRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChannelsM... | ListChannelsModeratedByAppInstanceUserRequestMarshaller().marshall(listChannelsModeratedByAppInstanceUserRequest); |
1,016 | private static ImmutableList<Object> deduplicateModules(Binder binder, ImmutableList<Object> transitiveModules) {<NEW_LINE>ImmutableList.Builder<Object> deduplicatedModules = ImmutableList.builder();<NEW_LINE>// Group modules by their module class to detect duplicates<NEW_LINE>Multimaps.index(transitiveModules, DaggerA... | ).collect(toImmutableSet()); |
938,635 | // helper to map the charsets that various things send in the http Content-Type header<NEW_LINE>// into something that is actually supported by Java and the Stax parsers and such.<NEW_LINE>@FFDCIgnore({ IllegalCharsetNameException.class, UnsupportedCharsetException.class })<NEW_LINE>public static String mapCharset(Stri... | forName(enc).name(); |
1,191,763 | public Request<ListHostedZonesByVPCRequest> marshall(ListHostedZonesByVPCRequest listHostedZonesByVPCRequest) {<NEW_LINE>if (listHostedZonesByVPCRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListHostedZonesByVPCRequest> request = new De... | (listHostedZonesByVPCRequest.getNextToken())); |
774,840 | public static ListSlbResponse unmarshall(ListSlbResponse listSlbResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSlbResponse.setRequestId(_ctx.stringValue("ListSlbResponse.RequestId"));<NEW_LINE>listSlbResponse.setCode(_ctx.integerValue("ListSlbResponse.Code"));<NEW_LINE>listSlbResponse.setMessage(_ctx.stringValue("L... | ("ListSlbResponse.SlbList[" + i + "].AddressType")); |
1,465,819 | public static SessionId fromInboundMessage(Message message) {<NEW_LINE>SessionId sessionId = null;<NEW_LINE>String localTag = message.getToHeader().getTag();<NEW_LINE>String remoteTag = message.getFromHeader().getTag();<NEW_LINE>// old clients might send us requests with no To tag<NEW_LINE>if (null == localTag)<NEW_LIN... | .getCallIdHeader().getCallId(); |
1,683,644 | public DataHolder toEventDataHolder() {<NEW_LINE>DataHolder.Builder builder = DataHolder.builder(EVENT_DATA_HOLDER_FIELDS);<NEW_LINE>HashMap<String, Object> data = new HashMap<String, Object>();<NEW_LINE>data.put("path", dataItem.uri.toString());<NEW_LINE>if (deleted) {<NEW_LINE>data.put("event_type", 2);<NEW_LINE>buil... | HashMap<String, Object>(); |
1,248,168 | private List<Path> calcPaths(int from, int to, EdgeRestrictions edgeRestrictions, BidirRoutingAlgorithm algo) {<NEW_LINE>StopWatch sw = new StopWatch().start();<NEW_LINE>List<Path> paths;<NEW_LINE>if (edgeRestrictions.getSourceOutEdge() != ANY_EDGE || edgeRestrictions.getTargetInEdge() != ANY_EDGE) {<NEW_LINE>paths = C... | getInt(MAX_VISITED_NODES, Integer.MAX_VALUE); |
274,815 | public static boolean definitionMatches(Collection<String> definition, String databaseShortName, boolean returnValueIfEmptyList) {<NEW_LINE>if ((definition == null) || definition.isEmpty()) {<NEW_LINE>return returnValueIfEmptyList;<NEW_LINE>}<NEW_LINE>if (definition.contains("all")) {<NEW_LINE>return true;<NEW_LINE>}<N... | dbmsSupported = new HashSet<>(); |
1,439,434 | protected void init() {<NEW_LINE>// we do not care about our standard DDS handles<NEW_LINE>handlers = null;<NEW_LINE>registerElementHandler(new XMLElement(RuntimeTagNames.RESOURCE_REFERENCE), ResourceRefNode.class);<NEW_LINE>registerElementHandler(new XMLElement(RuntimeTagNames.EJB_REFERENCE), EjbRefNode.class);<NEW_LI... | .SERVICE_REF), ServiceRefNode.class); |
82,568 | private InputStream openInputStream(String blobName, long position, @Nullable Long length) throws IOException {<NEW_LINE>logger.trace("readBlob({}) from position [{}] with length [{}]", blobName, position, length != null ? length : "unlimited");<NEW_LINE>if (blobStore.getLocationMode() == LocationMode.SECONDARY_ONLY &&... | (blobName), position, length); |
757,791 | public okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".re... | localVarHeaderParams.put("Content-Type", localVarContentType); |
985,281 | private void parseBytes(byte[] weightBytes) {<NEW_LINE>float weight = Converters.fromUnsignedInt16Be(weightBytes, 4) / 10.0f;<NEW_LINE>float fat = Converters.fromUnsignedInt16Be(weightBytes, 6) / 10.0f;<NEW_LINE>float bone = (weightBytes[8] & 0xFF) / 10.0f;<NEW_LINE>float muscle = Converters.<MASK><NEW_LINE>float visce... | fromUnsignedInt16Be(weightBytes, 9) / 10.0f; |
1,152,421 | public void expectServerStartFailureWhenANonZipLibraryExistsInAppArchive() throws Exception {<NEW_LINE>// First stop the server so we can add a non zip library in the app archive<NEW_LINE>server.stopServer(false);<NEW_LINE>RemoteFile dropinsSpr = server.getFileFromLibertyServerRoot("dropins/" + SPRING_APP_TYPE);<NEW_LI... | createFile(tempFile.toPath()); |
446,017 | private void dfsAggregations(Terms terms, ESResultSet rs, List<Object> row) throws SQLException {<NEW_LINE>List<Object> currentRow = Utils.clone(row);<NEW_LINE><MASK><NEW_LINE>if (!rs.getHeading().hasLabel(columnName))<NEW_LINE>throw new SQLException("Unable to identify column for aggregation named " + columnName);<NEW... | String columnName = terms.getName(); |
915,078 | private VirtualFile findPresentableFileForMessage(@Nullable final String url) {<NEW_LINE>final VirtualFile file = findFileByUrl(url);<NEW_LINE>if (file == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>return ApplicationManager.getApplication().runReadAction(new Computable<VirtualFile>() {<NEW_LINE><NEW_LINE>@Overri... | return presentableFile != null ? presentableFile : file; |
225,799 | private void loadNode1127() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_RegisteredServer, new QualifiedName(0, "RegisteredServer"), new LocalizedText("en", "RegisteredServer"), LocalizedText.NULL_VALUE, UInte... | (1), 0.0, false); |
1,190,657 | public static String doesNotSpecifyCustomExecArgs(boolean exact, Map<? extends String, ? extends String> props) {<NEW_LINE>String <MASK><NEW_LINE>String replacedMainClass = props.get(RUN_MAIN_CLASS);<NEW_LINE>String template;<NEW_LINE>boolean secondTry = replacedMainClass != null && execArgs.contains(PACKAGE_CLASS_NAME... | execArgs = props.get(RUN_PARAMS); |
1,439,183 | public GoPluginBundleDescriptor build(BundleOrPluginFileDetails bundleOrPluginJarFile) {<NEW_LINE>if (!bundleOrPluginJarFile.exists()) {<NEW_LINE>throw new RuntimeException(format("Plugin or bundle jar does not exist: %s", bundleOrPluginJarFile.file()));<NEW_LINE>}<NEW_LINE>String defaultId = bundleOrPluginJarFile.file... | ), new RuntimeException("The plugin does not seem to contain plugin.xml or gocd-bundle.xml")); |
1,297,470 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setTitle("Points of Interest");<NEW_LINE>setContentView(R.layout.activity_search_poi);<NEW_LINE>txtResultsFound = (TextView) findViewById(R.id.txtResultsFound);<NEW_LINE>lvResultPois = (ListView) <MASK><NEW_LINE>lvRe... | findViewById(R.id.lvResultPois); |
1,590,744 | public void enable() {<NEW_LINE>if (tfConfig != null) {<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("contrast"))) {<NEW_LINE>Short contrast = tfConfig.getContrast();<NEW_LINE>logger.debug("contrast {}", contrast);<NEW_LINE>setContrast(contrast);<NEW_LINE>}<NEW_LINE>if (tfConfig.eIsSet(tfConfig.... | getUid(), getIpConnection()); |
334,181 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select window(id) as ids from SupportEventWithLongArray#rank(coll, 10, id)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendAssertLongArrayIdWindow(env, "E1", new long[] { 1, 2 }, "E1");<NEW_LINE>sendAssertLongArrayIdWindow... | long[] {}, "E1,E2,E3"); |
332,210 | public TransitionState unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TransitionState transitionState = new TransitionState();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | int originalDepth = context.getCurrentDepth(); |
1,064,448 | private static void enforceResourceLimits(Configuration tonyConf) {<NEW_LINE>Set<String> jobTypes = Utils.getAllJobTypes(tonyConf);<NEW_LINE>// Iterate over all max-total-X resource limits<NEW_LINE>for (Map.Entry<String, String> entry : tonyConf.getValByRegex(TonyConfigurationKeys.MAX_TOTAL_RESOURCES_REGEX).entrySet())... | (jobType, resource), null); |
531,255 | private void convertToJavaIteratorLoop(EnhancedForStatement node) {<NEW_LINE>Expression expression = node.getExpression();<NEW_LINE>TypeMirror expressionType = expression.getTypeMirror();<NEW_LINE>VariableElement loopVariable = node.getParameter().getVariableElement();<NEW_LINE>DeclaredType iterableType = typeUtil.find... | > stmts = block.getStatements(); |
58,536 | private ObjectNode updateGatewayResponse(Context<? extends Trait> context, CorsTrait trait, Map<CorsHeader, String> sharedHeaders, ObjectNode gatewayResponse) {<NEW_LINE>ObjectNode responseParameters = gatewayResponse.getObjectMember(RESPONSE_PARAMETERS_KEY).orElse(Node.objectNode());<NEW_LINE>// Track all CORS headers... | = new TreeMap<>(sharedHeaders); |
569,962 | protected boolean closure(CharStream input, LexerATNConfig config, ATNConfigSet configs, boolean currentAltReachedAcceptState, boolean speculative, boolean treatEofAsEpsilon) {<NEW_LINE>if (debug) {<NEW_LINE>System.out.println("closure(" + config.toString(recog, true) + ")");<NEW_LINE>}<NEW_LINE>if (config.state instan... | LexerATNConfig(config, returnState, newContext); |
793,847 | public Object runAlgorithms(Database database) {<NEW_LINE>if (LOG.isStatistics()) {<NEW_LINE>boolean first = true;<NEW_LINE>for (It<Index> it = Metadata.hierarchyOf(database).iterDescendants().filter(Index.class); it.valid(); it.advance()) {<NEW_LINE>if (first) {<NEW_LINE>LOG.statistics("Index statistics before running... | statistics(duration.end()); |
1,417,389 | private void resolveDependencies(DependencyResolution dependencyResolution) {<NEW_LINE>// Topologically sort packages in the package dependency graph.<NEW_LINE>// Iterate through the sorted package list<NEW_LINE>// Resolve each package<NEW_LINE>// Get the module dependency graph of the package.<NEW_LINE>// This graph s... | > sortedModuleIds = moduleDependencyGraph.toTopologicallySortedList(); |
1,032,477 | public void addDefinition(Block block) {<NEW_LINE>String procedureName = getProcedureNameOrFail(block);<NEW_LINE>String canonicalProcName = mProcedureNameManager.makeCanonical(procedureName);<NEW_LINE>if (mProcedureDefinitions.get(canonicalProcName) == block) {<NEW_LINE>throw new IllegalStateException("Tried to add the... | ).onProcedureBlockAdded(procedureName, block); |
1,757,871 | public void initSqlSessionFactory() {<NEW_LINE>if (sqlSessionFactory == null) {<NEW_LINE>InputStream inputStream = null;<NEW_LINE>try {<NEW_LINE>inputStream = getMyBatisXmlConfigurationStream();<NEW_LINE>Environment environment = new Environment("default", transactionFactory, dataSource);<NEW_LINE>Reader reader = new I... | properties.put("blobType", "BLOB"); |
1,833,562 | protected void startUp() throws Exception {<NEW_LINE>shell.execute(adbCommand("start-server")).orThrow();<NEW_LINE>String selector = nullToEmpty(config().options().get("selector"));<NEW_LINE>ImmutableList<String> getSerialNumber = adbCommand(Iterables.concat(Splitter.on(' ').omitEmptyStrings().split(selector), Immutabl... | ().toString())); |
1,123,571 | public static DescribeCdnDomainByCertificateResponse unmarshall(DescribeCdnDomainByCertificateResponse describeCdnDomainByCertificateResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCdnDomainByCertificateResponse.setRequestId(_ctx.stringValue("DescribeCdnDomainByCertificateResponse.RequestId"));<NEW_LINE>List<Cer... | ("DescribeCdnDomainByCertificateResponse.CertInfos[" + i + "].Issuer")); |
652,661 | /*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>public void testTemplate(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = "testTemplate";<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources =... | testBucketName + "." + testName + ": End"); |
1,989 | final DeleteEnvironmentResult executeDeleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEnvironment"); |
943,642 | public static float parseLength(String v, float def) {<NEW_LINE>float f = 0;<NEW_LINE>// 14'10" 14 - inches, 10 feet<NEW_LINE>int i = Algorithms.findFirstNumberEndIndex(v);<NEW_LINE>if (i > 0) {<NEW_LINE>f += Float.parseFloat(v.substring(0, i));<NEW_LINE>String pref = v.substring(i, v.<MASK><NEW_LINE>float add = 0;<NEW... | length()).trim(); |
1,542,648 | public static FindProjectStatisticalDataResponse unmarshall(FindProjectStatisticalDataResponse findProjectStatisticalDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>findProjectStatisticalDataResponse.setRequestId(_ctx.stringValue("FindProjectStatisticalDataResponse.RequestId"));<NEW_LINE>findProjectStatisticalDataRe... | (_ctx.longValue("FindProjectStatisticalDataResponse.Data.Total")); |
1,234,217 | public Object calculate(Context ctx) {<NEW_LINE>if (srcStr.length() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StrProperties sts = new StrProperties();<NEW_LINE>if (option != null) {<NEW_LINE>if (option.indexOf('c') != -1) {<NEW_LINE>sts.setSeperator(",");<NEW_LINE>}<NEW_LINE>if (option.indexOf('j') != -1) {<NEW... | getLeafExpression().calculate(ctx); |
1,580,865 | private void buildExceptionDashboard(Model model, Payload payload, long date) {<NEW_LINE>model.setReportStart(new Date(payload.getDate()));<NEW_LINE>model.setReportEnd(new Date(payload.getDate() + TimeHelper.ONE_HOUR - 1));<NEW_LINE>int minuteCount = payload.getMinuteCounts();<NEW_LINE>int minute = model.getMinute();<N... | (start).setEnd(end); |
1,346,404 | public void jacobian(double X, double Y, double Z, double[] inputX, double[] inputY, boolean computeIntrinsic, @Nullable double[] calibX, @Nullable double[] calibY) {<NEW_LINE>Z = -Z;<NEW_LINE>double normX = X / Z;<NEW_LINE>double normY = Y / Z;<NEW_LINE>double n2 = normX * normX + normY * normY;<NEW_LINE>double n2_X =... | * (r / Z - r_Z); |
587,856 | public void testAuthenticateMethodBA_ProtectedServlet2() throws Exception {<NEW_LINE>METHODS = "testMethod=login,logout,authenticate";<NEW_LINE>String url = "http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/basicauth/ProgrammaticAPIServlet?" + METHODS + "&user=" + managerUser + "&password=" + man... | , test1.contains("ServletException")); |
608,611 | public void testConnPoolStatsExceptionInDestroy() throws Exception {<NEW_LINE>UserTransaction tran = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction");<NEW_LINE>tran.begin();<NEW_LINE>DataSource ds2 = (DataSource) new InitialContext().lookup("eis/ds2");<NEW_LINE>Connection conn = null;<NEW_LINE... | numFreeConns = getMonitorData(objName, "FreeConnectionCount"); |
872,355 | private JPanel createTypePanel() {<NEW_LINE>JPanel panel = new JPanel();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("assertion_pattern_match_rules")));<NEW_LINE>ButtonGroup group = new ButtonGroup();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>containsBox = new JRadi... | (JMeterUtils.getResString("assertion_contains")); |
1,537,660 | public static String configureSharedNetwork(GenericContainer<?> container, String hostNamePrefix) {<NEW_LINE>// When a shared network is requested for the launched containers, we need to configure<NEW_LINE>// the container to use it. We also need to create a hostname that will be applied to the returned<NEW_LINE>// URL... | ("SHARED").get(null); |
1,830,996 | protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition condition, final Object left, final Object right, OCommandContext iContext) {<NEW_LINE>validate(right);<NEW_LINE>final Iterator<?> valueIterator = OMultiValue.getMultiValueIterator(right, false);<NEW_LINE>Object right1 = valueIt... | ) left).compareTo(right2c); |
977,465 | final RemoveTagsFromResourceResult executeRemoveTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeTagsFromResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
791,371 | public void regester_for_clipboard() {<NEW_LINE>if (EXPERIMENTAL) {<NEW_LINE>ClipboardManager clipBoard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);<NEW_LINE>try {<NEW_LINE>ClipData clipData = clipBoard.getPrimaryClip();<NEW_LINE>if (clipData != null && clipData.getItemCount() > 0) {<NEW_LINE>ClipData.Item... | op.toString() + "\""); |
1,405,125 | protected // 112102 - added method below to fill the cipher to bit size table<NEW_LINE>void loadCipherToBit() {<NEW_LINE>boolean keySizeFromCipherMap = Boolean.valueOf(WebContainer.getWebContainerProperties().getProperty("com.ibm.ws.webcontainer.keysizefromciphermap", "true")).booleanValue();<NEW_LINE>// 721610<NEW_LIN... | load(new FileInputStream(fileName)); |
1,032,230 | private static boolean checkLine(String str) throws Exception {<NEW_LINE>Logger.trace("checkLine: " + str);<NEW_LINE><MASK><NEW_LINE>int e = 0;<NEW_LINE>if (input_str.charAt(0) == '#') {<NEW_LINE>input_str = input_str.substring(1);<NEW_LINE>}<NEW_LINE>if (input_str == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>... | String input_str = str.toUpperCase(); |
1,140,537 | public <T> Mono<Void> singleRequestNoResponse(ClientRequestPayload<T> payload, RpcOptions options) {<NEW_LINE>try {<NEW_LINE>final String name = payload.getRequestRpcMetadata().getName();<NEW_LINE>final long start = System.nanoTime();<NEW_LINE>final InstrumentedClientRequestPayload<T> instrumentedClientRequestPayload =... | >(payload, name, thriftClientStats); |
1,847,853 | private static CoreLabel createDatum(CoreLabel cl, String token, String label, int startOffset, int endOffset) {<NEW_LINE>CoreLabel newTok = new CoreLabel();<NEW_LINE>newTok.set(CoreAnnotations.TextAnnotation.class, token);<NEW_LINE>newTok.set(CoreAnnotations.CharAnnotation.class, token);<NEW_LINE>newTok.set(CoreAnnota... | CoreAnnotations.GoldAnswerAnnotation.class, label); |
624,925 | private static TsMethodModel addCopyFnToJaxrsMethod(SymbolTable symbolTable, TsModel tsModel, TsMethodModel method) {<NEW_LINE>final TsType returnType = method.getReturnType();<NEW_LINE>if (!(returnType instanceof TsType.GenericReferenceType))<NEW_LINE>return null;<NEW_LINE>final TsType.GenericReferenceType genericRefe... | > body = method.getBody(); |
1,425,631 | public JadxArgs toJadxArgs() {<NEW_LINE>JadxArgs args = new JadxArgs();<NEW_LINE>args.setInputFiles(files.stream().map(FileUtils::toFile).collect(Collectors.toList()));<NEW_LINE>args.setOutDir(FileUtils.toFile(outDir));<NEW_LINE>args.setOutDirSrc(FileUtils.toFile(outDirSrc));<NEW_LINE>args.setOutDirRes(FileUtils.toFile... | args.setDecompilationMode(DecompilationMode.FALLBACK); |
276,809 | public int compare(Row r1, Row r2) {<NEW_LINE>if (r1 == null || r2 == null) {<NEW_LINE>GeneralUtil.nestedException("Memory is insufficient to execute this query");<NEW_LINE>}<NEW_LINE>for (int j = 0; j < aggOrderIndexList.size(); j++) {<NEW_LINE>Integer <MASK><NEW_LINE>int v = isAscList.get(j) ? 1 : -1;<NEW_LINE>if (r1... | i = aggOrderIndexList.get(j); |
598,233 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
838,821 | private Object constructObject(UserConfigurationDictionaryObjectType type, List<String> value, EwsServiceXmlReader reader) {<NEW_LINE>EwsUtilities.ewsAssert(value != null, "UserConfigurationDictionary.ConstructObject", "value is null");<NEW_LINE>EwsUtilities.ewsAssert((value.size() == 1 || type == UserConfigurationDict... | reader != null, "UserConfigurationDictionary.ConstructObject", "reader is null"); |
410,660 | public ListCoreDefinitionVersionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListCoreDefinitionVersionsResult listCoreDefinitionVersionsResult = new ListCoreDefinitionVersionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | int originalDepth = context.getCurrentDepth(); |
1,233,360 | private Component createParameterSection() {<NEW_LINE>JPanel ret = <MASK><NEW_LINE>addAt(ret, 0, 0, new JLabel("Source:"));<NEW_LINE>addAt(ret, 1, 0, GridBagConstraints.HORIZONTAL, 2, 0.0, createPathField());<NEW_LINE>addAt(ret, 3, 0, createBrowse());<NEW_LINE>addAt(ret, 0, 1, new JLabel("Target:"));<NEW_LINE>addAt(ret... | new JPanel(new GridBagLayout()); |
69,923 | private Map<String, Object> taskSearchParams(Optional<String> requestId, Optional<String> deployId, Optional<String> runId, Optional<String> host, Optional<ExtendedTaskState> lastTaskStatus, Optional<Long> startedBefore, Optional<Long> startedAfter, Optional<Long> updatedBefore, Optional<Long> updatedAfter, Optional<Or... | get().toString()); |
807,780 | public static void launchInTerminal(String execString, File workingDir) {<NEW_LINE>try {<NEW_LINE>if (Platform.WINDOWS) {<NEW_LINE>// generate a command file :-)<NEW_LINE>File batFile = File.createTempFile("launch", ".cmd");<NEW_LINE>batFile.deleteOnExit();<NEW_LINE>try (FileWriter writer = new FileWriter(batFile)) {<N... | Level.WARNING, "openTerminal.failed", e); |
281,746 | private JobRunner createJobRunner(final ExecutableNode node) {<NEW_LINE>// Load job file.<NEW_LINE>final File path = new File(this.execDir, node.getJobSource());<NEW_LINE>final JobRunner jobRunner = new JobRunner(node, path.getParentFile(), this.executorLoader, this.jobtypeManager, this.azkabanProps, this.flowRunnerPro... | jobRunner.addListener(this.listener); |
431,170 | final DescribeDetectorResult executeDescribeDetector(DescribeDetectorRequest describeDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | false), new DescribeDetectorResultJsonUnmarshaller()); |
1,738,023 | public void show(RootPaneContainer frame) {<NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>final File temporaryFile = <MASK><NEW_LINE>try (FileWriter writer = new FileWriter(temporaryFile)) {<NEW_LINE>writer.write(getText());<NEW_LINE>}<NEW_LINE>final String ht... | File.createTempFile("tmm", ".html"); |
1,657,277 | private void applyToWST_HTMLEditor(Theme theme, boolean revertToDefaults) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode("org.eclipse.wst.html.ui");<NEW_LINE>setGeneralEditorValues(theme, prefs, revertToDefaults);<NEW_LINE>// TODO Add SCRIPT_AREA and SCRIPT_AREA_BORDER<NEW... | theme, "punctuation.definition.tag.html", "tagBorder", revertToDefaults); |
1,418,473 | final ListCertificatesResult executeListCertificates(ListCertificatesRequest listCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCertificatesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListCertificatesRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
331,727 | public void marshall(CloneStackRequest cloneStackRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (cloneStackRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cloneStackRequest.getSourceStackI... | cloneStackRequest.getAttributes(), ATTRIBUTES_BINDING); |
1,845,340 | public void marshall(LaunchProfile launchProfile, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (launchProfile == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(launchProfile.getArn(), ARN_BINDING);<NEW_LIN... | launchProfile.getStatusCode(), STATUSCODE_BINDING); |
1,142,126 | protected void initNavigationRailDemoControls(View view) {<NEW_LINE>initAddNavItemButton(view.findViewById(R.id.add_button));<NEW_LINE>initRemoveNavItemButton(view.findViewById(R.id.remove_button));<NEW_LINE>initAddIncreaseBadgeNumberButton(view.findViewById(R.id.increment_badge_number_button));<NEW_LINE>Spinner badgeG... | badgeGravityValues.length - 1)]); |
1,349,523 | public void addProvidesList(Table table) {<NEW_LINE>SortedSet<TypeElement> implSet;<NEW_LINE>Content description;<NEW_LINE>for (Map.Entry<TypeElement, SortedSet<TypeElement>> entry : provides.entrySet()) {<NEW_LINE>TypeElement srv = entry.getKey();<NEW_LINE>if (!displayServiceDirective(srv, providesTrees)) {<NEW_LINE>c... | .Kind.PACKAGE, srv)); |
1,184,457 | public void build(Task<Void> task) throws CompileExceptionError, IOException {<NEW_LINE>TextureSetResult result = AtlasUtil.generateTextureSet(project, task.input(0));<NEW_LINE>int buildDirLen = project<MASK><NEW_LINE>String texturePath = task.output(1).getPath().substring(buildDirLen);<NEW_LINE>TextureSet textureSet =... | .getBuildDirectory().length(); |
1,411,058 | private static String readCode(String location) {<NEW_LINE>String javaFile = location;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>javaFile = javaFile.split("\\$")[0];<NEW_LINE>javaFile = javaFile.split("#")[0];<NEW_LINE>javaFile = javaFile.replaceAll("\\.", "/");<NEW_LINE>javaFile = "src/test/java/"... | split(":")[1]); |
57,488 | public void handleInsertion(ItemEntity entity, ConveyorDirection conDir, double distX, double distZ) {<NEW_LINE>if (!isPowered()) {<NEW_LINE>BlockPos posDown = getTile().getBlockPos().below();<NEW_LINE>BlockEntity inventoryTile = getTile().getLevel().getBlockEntity(posDown);<NEW_LINE>boolean contact = Math.abs(getFacin... | , (IConveyorTile) getTile()); |
1,630,214 | public static byte[] privKeyTweakMul(byte[] privkey, byte[] tweak) throws AssertFailException {<NEW_LINE>checkArgument(privkey.length == 32);<NEW_LINE><MASK><NEW_LINE>if (byteBuff == null || byteBuff.capacity() < privkey.length + tweak.length) {<NEW_LINE>byteBuff = ByteBuffer.allocateDirect(privkey.length + tweak.lengt... | ByteBuffer byteBuff = nativeByteBuffer.get(); |
24,659 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>folderPanel = new javax.swing.JPanel();<NEW_LINE>setBorder(javax.swing.BorderF... | new java.awt.GridBagConstraints(); |
67,691 | public List<Hit> search(final HttpServletRequest req, final List<String> projects, final int startDocIndex, final int maxResults) {<NEW_LINE>Set<Project> allProjects = PageConfig.get(req).getProjectHelper().getAllProjects();<NEW_LINE>if (projects == null || projects.isEmpty()) {<NEW_LINE>numResults = engine.search(new ... | (Collectors.toList())); |
1,781,957 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "key", "value" };<NEW_LINE>String epl = "@name('create') create window MyWindowUN#unique(key) as MySimpleKeyValueMap;\n" + "insert into MyWindowUN select theString as key, longBoxed as value from SupportBean;\n" + "@name('s0') select... | [] { "G2", 21L }); |
1,188,160 | public void reloadFromDisk(@Nonnull final Document document) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>final VirtualFile file = getFile(document);<NEW_LINE>assert file != null;<NEW_LINE>if (!fireBeforeFileContentReload(file, document)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final... | boolean wasWritable = document.isWritable(); |
270,933 | public static ModifyHichinaDomainDNSResponse unmarshall(ModifyHichinaDomainDNSResponse modifyHichinaDomainDNSResponse, UnmarshallerContext _ctx) {<NEW_LINE>modifyHichinaDomainDNSResponse.setRequestId(_ctx.stringValue("ModifyHichinaDomainDNSResponse.RequestId"));<NEW_LINE>List<String> originalDnsServers = new ArrayList<... | ("ModifyHichinaDomainDNSResponse.NewDnsServers[" + i + "]")); |
1,468,803 | public synchronized void createTable(String... tables) throws RocksDBException {<NEW_LINE>this.checkValid();<NEW_LINE>List<ColumnFamilyDescriptor> cfds = new ArrayList<>();<NEW_LINE>for (String table : tables) {<NEW_LINE>if (this.rocksdb.existCf(table)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>ColumnFamilyDescriptor cf... | new ColumnFamilyDescriptor(encode(table)); |
850,029 | public void testJMS1NegativeTimeToLive() throws JMSException, InterruptedException, TestException {<NEW_LINE>try (QueueSession session = queueConnection_.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE)) {<NEW_LINE>MessageProducer producer = session.createProducer(queueOne_);<NEW_LINE>MessageConsumer consu... | , 0, -100, completionListener); |
1,401,113 | public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CodeSigningSignature codeSigningSignature = new CodeSigningSignature();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | class).unmarshall(context)); |
1,418,406 | private void insert(QNm field, Sequence value, JsonNodeTrx trx) {<NEW_LINE>final var fieldName = field.getLocalName();<NEW_LINE>if (value instanceof Atomic) {<NEW_LINE>if (value instanceof Str) {<NEW_LINE>trx.insertObjectRecordAsLastChild(fieldName, new StringValue(((Str) value).stringValue()));<NEW_LINE>} else if (val... | item = ExprUtil.asItem(value); |
420,471 | public static DescribeSagStaticRouteListResponse unmarshall(DescribeSagStaticRouteListResponse describeSagStaticRouteListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSagStaticRouteListResponse.setRequestId(_ctx.stringValue("DescribeSagStaticRouteListResponse.RequestId"));<NEW_LINE>List<StaticRoute> staticRout... | ("DescribeSagStaticRouteListResponse.StaticRoutes[" + i + "].PortName")); |
776,937 | public Facet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Facet facet = new Facet();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | class).unmarshall(context)); |
33,801 | public void translate(GeyserSession session, ClientboundContainerSetContentPacket packet) {<NEW_LINE>Inventory inventory = InventoryUtils.getInventory(session, packet.getContainerId());<NEW_LINE>if (inventory == null)<NEW_LINE>return;<NEW_LINE>int inventorySize = inventory.getSize();<NEW_LINE>for (int i = 0; i < packet... | translator.updateInventory(session, inventory); |
1,143,525 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Spell spell = game.getStack().getSpell(source.getId());<NEW_LINE>if (spell != null) {<NEW_LINE>Card spellCard = spell.getCard();<NEW_LINE>if (spellCard ins... | game.addEffect(effect, source); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.