idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,801,148 | // if we match more than 1 citation based on name, then we leave only those citations that have author name first<NEW_LINE>private List<BibDataSet> postFilterMatches(String c, List<BibDataSet> matches) {<NEW_LINE>if (c.toLowerCase().contains("et al") || c.toLowerCase().contains(" and ")) {<NEW_LINE>String[] sp = c.<MAS... | trim().split(" "); |
1,557,403 | public static DruidCompareFunctionProcessor process(FunctionCall call) {<NEW_LINE>String functionName = call.getName();<NEW_LINE>LogicalExpression nameArg = call.<MASK><NEW_LINE>LogicalExpression valueArg = call.args().size() == 2 ? call.args().get(1) : null;<NEW_LINE>DruidCompareFunctionProcessor evaluator = new Druid... | args().get(0); |
87,866 | public void atBeforeInvoke(Class<?> clazz, String invokeInfo, Object target) {<NEW_LINE><MASK><NEW_LINE>String[] info = StringUtils.splitInvokeInfo(invokeInfo);<NEW_LINE>String owner = info[0];<NEW_LINE>String methodName = info[1];<NEW_LINE>String methodDesc = info[2];<NEW_LINE>List<AdviceListener> listeners = AdviceLi... | ClassLoader classLoader = clazz.getClassLoader(); |
778,040 | public void read(final InputStream inputStream) throws IOException {<NEW_LINE>LOGGER.trace("CommandMessage.read");<NEW_LINE>// version, unused<NEW_LINE>StreamUtil.checkEnd(inputStream.read());<NEW_LINE>command = StreamUtil.checkEnd(inputStream.read());<NEW_LINE>StreamUtil.checkEnd(inputStream.read());<NEW_LINE>final in... | checkEnd(inputStream.read()); |
978,497 | private void writeDecompilationSummary(StringEscapeUtils.Builder builder) {<NEW_LINE>builder.append("<h2>Decompilation</h2>");<NEW_LINE>JadxDecompiler jadx = mainWindow.getWrapper().getDecompiler();<NEW_LINE>List<ClassNode> classes = jadx.getRoot().getClasses(false);<NEW_LINE>int classesCount = classes.size();<NEW_LINE... | (generatedClasses, classesCount) + "</li>"); |
718,539 | private void onLoadFailed(GlideException e, int maxLogLevel) {<NEW_LINE>stateVerifier.throwIfRecycled();<NEW_LINE>synchronized (requestLock) {<NEW_LINE>e.setOrigin(requestOrigin);<NEW_LINE>int logLevel = glideContext.getLogLevel();<NEW_LINE>if (logLevel <= maxLogLevel) {<NEW_LINE>Log.w(GLIDE_TAG, "Load failed for " + m... | model, target, isFirstReadyResource()); |
85,087 | private TermAndBoost[] equalsTermsAndBoosts() {<NEW_LINE>if (equalTermsAndBoosts != null) {<NEW_LINE>return equalTermsAndBoosts;<NEW_LINE>}<NEW_LINE>if (terms.length == 1) {<NEW_LINE>float boost = (boosts != null ? boosts[0] : 1f);<NEW_LINE>equalTermsAndBoosts = new TermAndBoost[] { new TermAndBoost(<MASK><NEW_LINE>} e... | terms[0], boost) }; |
817,807 | public void render(PoseStack poseStack, float partialTick) {<NEW_LINE>this.screenWidth = this.minecraft.getWindow().getGuiScaledWidth();<NEW_LINE>this.screenHeight = this.minecraft.getWindow().getGuiScaledHeight();<NEW_LINE>eventParent = new RenderGameOverlayEvent(poseStack, partialTick, this.minecraft.getWindow());<NE... | IIngameOverlay overlay = entry.getOverlay(); |
165,480 | void implementMethod(TypeElement annotatedElement, CodeExecutableElement methodToImplement) {<NEW_LINE>CodeTreeBuilder builder = methodToImplement.createBuilder();<NEW_LINE>switch(methodToImplement.getSimpleName().toString()) {<NEW_LINE>case "create":<NEW_LINE>builder.startReturn().startNew(annotatedElement.asType()).e... | ProcessorContext context = ProcessorContext.getInstance(); |
924,536 | public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@JsonSchema(dynamic=true) @public @buseventtype create json schema JsonEvent(a int);\n" + "@name('s0') select * from JsonEvent#keepall").addListener("s0");<NEW_LINE>env.sendEventJson("{\"a\" : 1, \"b\": 2, \"c\": 3}\n", "JsonEvent");<NEW_LINE>Map... | -> compareMapWBean(expectedThree, event)); |
1,787,191 | public void startHA() throws Exception {<NEW_LINE><MASK><NEW_LINE>RaftHandle handle = new RaftHandle(ch, null);<NEW_LINE>if (raftMemberID != null)<NEW_LINE>handle.raftId(raftMemberID);<NEW_LINE>else<NEW_LINE>LOGGER.warn("--raft_member_id not specified, using values from " + jgroupsConf);<NEW_LINE>handle.addRoleListener... | JChannel ch = new JChannel(jgroupsConf); |
1,756,916 | // @see com.biglybt.pif.Plugin#initialize(com.biglybt.pif.PluginInterface)<NEW_LINE>@Override<NEW_LINE>public void initialize(PluginInterface pluginInterface) throws PluginException {<NEW_LINE>try {<NEW_LINE>PlatformManager platform = PlatformManagerFactory.getPlatformManager();<NEW_LINE>int platformType = platform.get... | pluginProperties.setProperty("plugin.version.info", "Not required for this platform"); |
113,797 | private void plotQueueLengths(CompilerThread thread, double y, double rowHeight) {<NEW_LINE>List<QueueCounter> counters = getQueueCounters(thread);<NEW_LINE>long lastTimestamp = -1;<NEW_LINE>plotThreadHeader(thread, y, rowHeight);<NEW_LINE>// long timeBlocked = 0;<NEW_LINE>List<Compilation> liveQueue = new LinkedList<>... | long timestamp = counter.getTimestamp(); |
1,505,154 | private static void putValue(VertexBuffer.Format format, Buffer buf1, Buffer buf2, int index) {<NEW_LINE>switch(format) {<NEW_LINE>case Byte:<NEW_LINE>case Half:<NEW_LINE>case UnsignedByte:<NEW_LINE>byte b = ((ByteBuffer) buf2).get(index);<NEW_LINE>((ByteBuffer) buf1).put(b);<NEW_LINE>break;<NEW_LINE>case Short:<NEW_LI... | ) buf1).put(f); |
710,766 | public T linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>checkOpSize(2, inputs);<NEW_LINE>try {<NEW_LINE>BroadcastVariableModelSource modelSource = new BroadcastVariableModelSource(BROADCAST_MODEL_TABLE_NAME);<NEW_LINE>RecommMapper mapper = new RecommMapper(this.recommKernelBuilder, this.recommType, inputs[0].getSchema... | TableSchema outputSchema = mapper.getOutputSchema(); |
1,747,206 | public List<Migration> resolve() {<NEW_LINE>File location = new File(migrationsLocation);<NEW_LINE>LOGGER.info("Trying migrations at: {} ", location.getAbsolutePath());<NEW_LINE>// assume flat directory of migrations<NEW_LINE>File[] files = location.listFiles();<NEW_LINE>if (files == null || files.length == 0)<NEW_LINE... | "No migrations are found at: " + location.getAbsolutePath()); |
904,129 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String scalingPlanName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
663,905 | public void onStyleLoaded(@NonNull final Style style) {<NEW_LINE>style.addSource(new GeoJsonSource("highlighted-shapes-source"));<NEW_LINE>// add a layer to the map that highlights the maps buildings inside the bounding box.<NEW_LINE>style.addLayer(new FillLayer("highlighted-shapes-layer", "highlighted-shapes-source").... | top + selectionBox.getHeight()); |
1,180,076 | private PlanNodeStatsEstimate computeInnerJoinStats(JoinNode node, PlanNodeStatsEstimate crossJoinStats, Session session, TypeProvider types) {<NEW_LINE>List<EquiJoinClause<MASK><NEW_LINE>if (equiJoinCriteria.isEmpty()) {<NEW_LINE>if (node.getFilter().isEmpty()) {<NEW_LINE>return crossJoinStats;<NEW_LINE>}<NEW_LINE>// ... | > equiJoinCriteria = node.getCriteria(); |
427,818 | public void readSnapshot(HollowBlobInput in, OptionalBlobPartInput optionalParts, TypeFilter filter) throws IOException {<NEW_LINE>validateMemoryMode(in.getMemoryMode());<NEW_LINE>Map<String, HollowBlobInput> optionalPartInputs = null;<NEW_LINE>if (optionalParts != null)<NEW_LINE>optionalPartInputs = optionalParts.getI... | typeName = readTypeStateSnapshot(in, filter); |
1,811,420 | final GetFirewallDomainListResult executeGetFirewallDomainList(GetFirewallDomainListRequest getFirewallDomainListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFirewallDomainListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | invoke(request, responseHandler, executionContext); |
1,165,502 | private void connectCloudAccount(final NewRSConnectAccountResult result, final ProgressIndicator indicator, final OperationWithInput<AccountConnectResult> onConnected) {<NEW_LINE>// get command and substitute rsconnect for shinyapps<NEW_LINE>final String cmd = result.getCloudSecret().replace("shinyapps::", "rsconnect::... | onConnected.execute(AccountConnectResult.Failed); |
1,073,834 | public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>String[] newArgs = null;<NEW_LINE>if (args.length < 1) {<NEW_LINE>out.println("The time command requires another command to run as an argument.");<NEW_LINE>return;<NEW_LINE>} else if (args.l... | String[args.length - 1]; |
912,130 | public IPSetReferenceStatement unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IPSetReferenceStatement iPSetReferenceStatement = new IPSetReferenceStatement();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
808,316 | private void sendConfiguration() {<NEW_LINE>Map<String, Object> settings = new HashMap<>();<NEW_LINE>Map<String, Object> bootJavaObj = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformation = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformationAutomaticTracking = new HashMap<>();<NEW_LINE>Map<String, Ob... | .getInt(Constants.PREF_LIVE_INFORMATION_FETCH_DATA_RETRY_MAX_NO)); |
1,674,760 | final GlobalCluster executeRemoveFromGlobalCluster(RemoveFromGlobalClusterRequest removeFromGlobalClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeFromGlobalClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsReq... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "RemoveFromGlobalCluster"); |
379,218 | boolean removeBond() {<NEW_LINE>final BluetoothDevice device = mGatt.getDevice();<NEW_LINE>if (device.getBondState() == BluetoothDevice.BOND_NONE)<NEW_LINE>return true;<NEW_LINE>mService.<MASK><NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>// noinspection JavaReflectionMemberAccess<NEW_LINE>final Method remo... | sendLogBroadcast(DfuBaseService.LOG_LEVEL_VERBOSE, "Removing bond information..."); |
1,245,687 | public URL toURL() throws MalformedURLException {<NEW_LINE>UrlBuilder url = new UrlBuilder().withScheme(this.scheme).withHost(this.host);<NEW_LINE>StringBuilder path = new StringBuilder();<NEW_LINE>if (this.containerName != null) {<NEW_LINE><MASK><NEW_LINE>if (this.blobName != null) {<NEW_LINE>path.append('/');<NEW_LIN... | path.append(this.containerName); |
1,511,770 | public static Memory version_compare(String version1, String version2, String operator) {<NEW_LINE>switch(operator) {<NEW_LINE>case "<":<NEW_LINE>case "lt":<NEW_LINE>return version_compare0(version1, version2) == -1 ? Memory.TRUE : Memory.FALSE;<NEW_LINE>case "<=":<NEW_LINE>case "le":<NEW_LINE>return version_compare0(v... | ? Memory.TRUE : Memory.FALSE; |
869,623 | public void execute(Task task) {<NEW_LINE>try {<NEW_LINE>Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder(<MASK><NEW_LINE>XPath xpath = XPathFactory.newInstance().newXPath();<NEW_LINE>NodeList comments = (NodeList) xpath.evaluate("//comment()", document, XPathConstants.NODESET);<NEW_LINE>for ... | ).parse(this.effectiveBom); |
1,322,242 | public static Instruction createDeclareWord(int w0, int w1, int w2, int w3, int w4, int w5, int w6) {<NEW_LINE>Instruction instruction = new Instruction();<NEW_LINE><MASK><NEW_LINE>instruction.setDeclareDataCount(7);<NEW_LINE>instruction.setDeclareWordValue(0, toShort(w0));<NEW_LINE>instruction.setDeclareWordValue(1, t... | instruction.setCode(Code.DECLAREWORD); |
1,623,499 | public void createContents(Composite page) {<NEW_LINE>Composite field = new Composite(page, SWT.NONE);<NEW_LINE>int cols = label == null ? 1 : 2;<NEW_LINE>GridLayout layout = GridLayoutFactory.fillDefaults().numColumns(cols).create();<NEW_LINE>field.setLayout(layout);<NEW_LINE>searchBox = new Text(field, SWT.SINGLE | S... | (filter = new ChoicesFilter()); |
593,736 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(MODEL_ID.getPreferredName(), modelId);<NEW_LINE>if (modelSizeStats != null) {<NEW_LINE>builder.field(MODEL_SIZE_STATS.getPreferredName(), modelSizeStats);<NEW_LINE>}<NEW_... | getPreferredName(), this.inferenceStats); |
416,372 | public void init(PinotConfiguration config) {<NEW_LINE>Preconditions.checkArgument(!isNullOrEmpty(config.<MASK><NEW_LINE>String region = config.getProperty(REGION);<NEW_LINE>_disableAcl = config.getProperty(DISABLE_ACL_CONFIG_KEY, DEFAULT_DISABLE_ACL);<NEW_LINE>String serverSideEncryption = config.getProperty(SERVER_SI... | getProperty(REGION)), "Region can't be null or empty"); |
1,230,604 | public static <T extends ImageBase<T>> T mean(T input, @Nullable T output, int radius, @Nullable ImageBase storage, @Nullable GrowArray workVert) {<NEW_LINE>if (input instanceof GrayU8) {<NEW_LINE>return (T) BlurImageOps.mean((GrayU8) input, (GrayU8) output, radius, (GrayU8) storage, (GrowArray<DogArray_I32>) workVert)... | (GrowArray<DogArray_F64>) workVert); |
1,387,802 | public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {<NEW_LINE>if (nums.length == 0 || k == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TreeMap<Integer, Integer> <MASK><NEW_LINE>for (int i = 0; i < nums.length; i++) {<NEW_LINE>int lowerEntry = nums[i] - t - 1;<NEW_LINE>int higherEntry = nums[i] +... | map = new TreeMap<>(); |
866,303 | private String showStatusJSON(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>response.setContentType("application/json");<NEW_LINE>if (addOnConfiguration.isServerInStandby()) {<NEW_LINE>Map<String, Object> dashboardContent = new HashMap<>();<NEW_LINE>UsernamePassword usernamePassword = extractBasi... | put("primaryServerDetails", primaryServerDetails()); |
1,014,994 | protected void parseMaterials(ModelData model, JsonValue json, String materialDir) {<NEW_LINE>JsonValue materials = json.get("materials");<NEW_LINE>if (materials == null) {<NEW_LINE>// we should probably create some default material in this case<NEW_LINE>} else {<NEW_LINE>model.materials.ensureCapacity(materials.size);... | ("uvTranslation"), 0f, 0f); |
624,324 | public void genTokenStrings() {<NEW_LINE>// Generate a string for each token. This creates a static<NEW_LINE>// array of Strings indexed by token type.<NEW_LINE>println("");<NEW_LINE>println("public static final tokenNames_ = (");<NEW_LINE>tabs++;<NEW_LINE>// Walk the token vocabulary and generate a Vector of strings<N... | = grammar.tokenManager.getVocabulary(); |
334,103 | public void importCounters(String[] counterNames, String[] counterKinds, long[] counterDeltas) {<NEW_LINE>final int length = counterNames.length;<NEW_LINE>if (counterKinds.length != length || counterDeltas.length != length) {<NEW_LINE>throw new AssertionError("array lengths do not match");<NEW_LINE>}<NEW_LINE>for (int ... | (counterPrefix + counterNames[i]); |
1,749,086 | public Mono<ServicePrincipal> createResourceAsync() {<NEW_LINE>Mono<ServicePrincipal> sp;<NEW_LINE>if (isInCreateMode()) {<NEW_LINE>innerModel().withAccountEnabled(true);<NEW_LINE>if (applicationCreatable != null) {<NEW_LINE>ActiveDirectoryApplication application = this.taskResult(applicationCreatable.key());<NEW_LINE>... | .exportAuthFile((ServicePrincipalImpl) servicePrincipal); |
624,058 | // GEN-LAST:event_editHTMLActionPerformed<NEW_LINE>private void syncWithUIActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_syncWithUIActionPerformed<NEW_LINE>Accessor.setResourceBundle(null);<NEW_LINE>final Map<String, String> allKeys = new HashMap<String, String>();<NEW_LINE>com.codename1.... | , allKeys.get(currentKey)); |
1,536,450 | final GetUserPolicyResult executeGetUserPolicy(GetUserPolicyRequest getUserPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUserPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,128,454 | public EList<Widget> renderWidget(Widget w, StringBuilder sb) throws RenderException {<NEW_LINE>Mapview mapview = (Mapview) w;<NEW_LINE>String snippet = getSnippet("mapview");<NEW_LINE>snippet = preprocessSnippet(snippet, mapview);<NEW_LINE>// Process the color tags<NEW_LINE>snippet = processColor(w, snippet);<NEW_LINE... | state = itemUIRegistry.getState(mapview); |
1,830,470 | // Wait for an Amazon Athena query to complete, fail or to be cancelled<NEW_LINE>public static void waitForQueryToComplete(AthenaClient athenaClient, String queryExecutionId) throws InterruptedException {<NEW_LINE>GetQueryExecutionRequest getQueryExecutionRequest = GetQueryExecutionRequest.builder().queryExecutionId(qu... | getQueryExecutionResponse = athenaClient.getQueryExecution(getQueryExecutionRequest); |
37,759 | public void repairDatabase(@ConsoleParameter(name = "options", description = "Options: [--fix-graph] [--force-embedded-ridbags] [--fix-links] [-v]] [--fix-ridbags] [--fix-bonsai]", optional = true) String iOptions) throws IOException {<NEW_LINE>checkForDatabase();<NEW_LINE>final boolean force_embedded = iOptions == nul... | repairer.repairDatabaseRidbags(currentDatabase, this); |
1,025,681 | public Concrete.Expression visitArgumentAppExpr(ArgumentAppExprContext ctx) {<NEW_LINE>Concrete.Expression expr = visitAtomFieldsAcc(ctx.atomFieldsAcc());<NEW_LINE>List<OnlyLevelAtomContext> onlyLevelAtoms = ctx.onlyLevelAtom();<NEW_LINE>if (!onlyLevelAtoms.isEmpty()) {<NEW_LINE>if (expr instanceof Concrete.ReferenceEx... | .add(visitArgument(argumentCtx)); |
1,595,542 | private static void printSections(PrintStream out) {<NEW_LINE>List<BaseConfigSection> configSections = ConsoleConfigSections.getInstance().getAllConfigSections(true);<NEW_LINE>out.print(String.format("%1$-" + COL_LEN_SECTION_KEY + "s", "ID"));<NEW_LINE>out.print(" \u2502 ");<NEW_LINE>out.print(String.format("%1$-" + CO... | out, '\u2500', COL_LEN_SECTION_KEY + 1); |
1,768,712 | public void preProcess(SearchContext context) {<NEW_LINE>if (context.aggregations() != null) {<NEW_LINE>List<Aggregator> collectors = new ArrayList<>();<NEW_LINE>Aggregator[] aggregators;<NEW_LINE>try {<NEW_LINE>AggregatorFactories factories = context<MASK><NEW_LINE>aggregators = factories.createTopLevelAggregators(con... | .aggregations().factories(); |
607,055 | private void renderWithComplexPaint(Shape shape, BasicStroke stroke, float bx, float by, float bw, float bh) {<NEW_LINE>// creating/updating the mask texture may unset the current<NEW_LINE>// texture used by pending vertices, so flush the vertex buffer first<NEW_LINE>context.flushVertexBuffer();<NEW_LINE>// The followi... | null, tex.getPixelFormat()); |
1,807,524 | static void c_4() throws Exception {<NEW_LINE>if (null != MYSQL_URL) {<NEW_LINE>MySqlCatalog mySql = new MySqlCatalog("mysql_catalog", null, MYSQL_VERSION, MYSQL_URL, MYSQL_PORT, MYSQL_USER_NAME, MYSQL_PASSWORD);<NEW_LINE>mySql.open();<NEW_LINE>mySql.createDatabase(DB_NAME, new CatalogDatabaseImpl(new HashMap<><MASK><N... | (), ""), true); |
916,721 | public TableDto updateAndReturn(final QualifiedName name, final TableDto tableDto) {<NEW_LINE>final MetacatRequestContext metacatRequestContext = MetacatContextManager.getContext();<NEW_LINE>eventBus.post(new MetacatUpdateMViewPreEvent(name, metacatRequestContext, this, tableDto));<NEW_LINE>final QualifiedName viewQNam... | tableService.update(viewQName, tableDto); |
496,025 | public static void shiftRightPackedDecimal(byte[] destination, int destinationOffset, int destinationPrecision, byte[] source, int sourceOffset, int sourcePrecision, int shiftAmount, boolean round, boolean checkOverflow) {<NEW_LINE>if ((destinationOffset + ((destinationPrecision / 2) + 1) > destination.length) || (dest... | .length - 1) + "."); |
57,509 | public static DescribeTablesResponse unmarshall(DescribeTablesResponse describeTablesResponse, UnmarshallerContext context) {<NEW_LINE>describeTablesResponse.setRequestId(context.stringValue("DescribeTablesResponse.RequestId"));<NEW_LINE>describeTablesResponse.setPageSize(context.integerValue("DescribeTablesResponse.Pa... | ("DescribeTablesResponse.Items[" + i + "].TotalCount")); |
1,662,346 | @Produces(MediaType.TEXT_PLAIN)<NEW_LINE>public Response turnon(@QueryParam("token") String token, @QueryParam("delay") String delay) throws IOException {<NEW_LINE>if (commandLineOptions.shutdownToken == null || token == null) {<NEW_LINE>return Response.status(Response.Status.FORBIDDEN).type(MediaType.TEXT_PLAIN_TYPE).... | entity("No Shutdown Token").build(); |
553,961 | final PurchaseReservedElasticsearchInstanceOfferingResult executePurchaseReservedElasticsearchInstanceOffering(PurchaseReservedElasticsearchInstanceOfferingRequest purchaseReservedElasticsearchInstanceOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purchaseReservedElasticsearchIns... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
23,360 | private ResponseSpec findPetsByTagsRequestCreation(Set<String> tags) throws WebClientResponseException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'tags' is set<NEW_LINE>if (tags == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'tags' when calling... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
1,523,995 | protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>GridLayout gridLayout = (GridLayout) composite.getLayout();<NEW_LINE>gridLayout.numColumns = 2;<NEW_LINE>gridLayout.horizontalSpacing = 10;<NEW_LINE>// Create the tree<NEW_LINE>Cont... | new GridData(GridData.FILL_BOTH)); |
1,243,163 | private void genCode() {<NEW_LINE>JbootApplication.setBootArg("jboot.datasource.url", dbUrl);<NEW_LINE>JbootApplication.setBootArg("jboot.datasource.user", dbUser);<NEW_LINE>JbootApplication.setBootArg("jboot.datasource.password", dbPassword);<NEW_LINE>String baseModelPackage = modelPackage + ".base";<NEW_LINE>String m... | .name.toLowerCase())); |
1,718,252 | public void main() {<NEW_LINE>startif(new Condition(uSegments, Operator.GREATER_THAN, 0f));<NEW_LINE>{<NEW_LINE>// translate from texture to orthagonal coordinates<NEW_LINE>RVec2 delta = new RVec2("delta");<NEW_LINE>delta.assign(vTextureCoord.multiply(2f).subtract(1f));<NEW_LINE>// multiply the mapping angle to compres... | ), sin(theta))); |
1,384,940 | public void showPreview(int keyIndex, PointerTracker tracker) {<NEW_LINE>// We should re-draw popup preview when 1) we need to hide the preview,<NEW_LINE>// 2) we will show<NEW_LINE>// the space key preview and 3) pointer moves off the space key to other<NEW_LINE>// letter key, we<NEW_LINE>// should hide the preview of... | label = tracker.getPreviewText(key); |
1,690,361 | public void run() {<NEW_LINE>// if the discovered href isn't an image link, just bail<NEW_LINE>if (!ImagePreviewer.isImageHref(href_))<NEW_LINE>return;<NEW_LINE>// set new src location (load handler will replace label as needed)<NEW_LINE>container.setWidget(new SimplePanel());<NEW_LINE>noImageLabel.setText(constants_.n... | )) imgEl.addClassName(className); |
1,431,434 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select irstream * from SupportEventWithLongArray#firstunique(coll)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendAssertLongArrayIStream(env, true, "E1", false, 1, 2);<NEW_LINE>sendAssertLongArrayIStream(env, true, "E2", ... | env, false, "E20", true); |
1,085,376 | private void loadNode139() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SubscriptionDiagnosticsArrayType_SubscriptionDiagnostics_TransferredToSameClientCount, new QualifiedName(0, "TransferredToSameClientCount"), new LocalizedText("en", "TransferredToSameClientCount"... | this.nodeManager.addNode(node); |
817,277 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String peeringName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be... | error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); |
1,550,477 | /* Convert an AS-path access list to a boolean formula represented as a BDD. */<NEW_LINE>private BDD matchAsPathAccessList(AsPathAccessList accessList, BDDRoute other) {<NEW_LINE>List<AsPathAccessListLine> lines = new ArrayList<>(accessList.getLines());<NEW_LINE>Collections.reverse(lines);<NEW_LINE>BDD acc = _factory.z... | .of(regex), other); |
560,308 | private void initializeMap(FacesContext facesContext, MapEntries mapEntries, Map<? super Object, ? super Object> map) {<NEW_LINE>Application application = facesContext.getApplication();<NEW_LINE>Class<?> keyClass = (mapEntries.getKeyClass() == null) ? String.class : ClassUtils.simpleJavaTypeToClass(mapEntries.getKeyCla... | String) key, Object.class); |
1,763,742 | private Optional<JasperEntry> computeJasperEntry(@NonNull final String jrxmlPath) {<NEW_LINE><MASK><NEW_LINE>//<NEW_LINE>// Get resource's input stream<NEW_LINE>String jrxmlPathNorm = jrxmlPath;<NEW_LINE>URL jrxmlUrl = getResource(jrxmlPathNorm);<NEW_LINE>// TODO: fix this fucked up<NEW_LINE>if (jrxmlUrl == null && jrx... | logger.trace("Computing jasper report for {}", jrxmlPath); |
596,900 | public static boolean isCopular(NLGElement element) {<NEW_LINE>boolean copular = false;<NEW_LINE>if (element instanceof InflectedWordElement) {<NEW_LINE>copular = // $NON-NLS-1$<NEW_LINE>"be".// $NON-NLS-1$<NEW_LINE>equalsIgnoreCase(((InflectedWordElement<MASK><NEW_LINE>} else if (element instanceof WordElement) {<NEW_... | ) element).getBaseForm()); |
762,911 | public void doInit(AppContext appContext) throws Throwable {<NEW_LINE>List<RenderDef> renderInfoList = appContext.findBindingBean(RenderDef.class);<NEW_LINE>for (RenderDef renderInfo : renderInfoList) {<NEW_LINE>String renderName = renderInfo.getRenderName();<NEW_LINE><MASK><NEW_LINE>this.engineMap.put(renderName.toUpp... | logger.info("web -> renderName {}.", renderName); |
3,030 | protected List<ListObject> initChildren() {<NEW_LINE>// Init the list<NEW_LINE>List<ListObject> mObjects = new ArrayList<ListObject>();<NEW_LINE>// Add an object to the list<NEW_LINE><MASK><NEW_LINE>s1.code = "ENI";<NEW_LINE>s1.value = 18.62f;<NEW_LINE>s1.delta = -0.24f;<NEW_LINE>s1.deltaPerc = -1.27f;<NEW_LINE>mObject... | StockObject s1 = new StockObject(this); |
560,151 | protected String createCompliantHttpDateString(long timestamp) {<NEW_LINE>SimpleDateFormat tmpDateFmt = dateFormat.get();<NEW_LINE>if (tmpDateFmt == null) {<NEW_LINE>// PM25931 Start<NEW_LINE>if (!localeDependentDateFormatter) {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Leve... | + tmpDateFmt.format(myDate)); |
1,796,167 | public void handleEvent(Event event) {<NEW_LINE>TableItem item = (TableItem) event.item;<NEW_LINE>int index = table.indexOf(item);<NEW_LINE>PluginInterface pluginIF = pluginIFs.get(index);<NEW_LINE>for (int i = 0; i < COLUMN_HEADERS.length; i++) {<NEW_LINE>if (i == FilterComparator.FIELD_NAME)<NEW_LINE>item.setImage(i,... | item.setText(i, sText); |
1,386,354 | private void submitToQueue(final ItemWrapper<W> itemWrapper) throws PwmOperationalException {<NEW_LINE>if (workerThread == null) {<NEW_LINE>final String errorMsg = this.getClass().getName() + " has been closed, unable to submit new item";<NEW_LINE>throw new PwmOperationalException(new ErrorInformation(PwmError.ERROR_IN... | (PwmError.ERROR_INTERNAL, errorMsg)); |
1,334,608 | protected final View makeContentView() {<NEW_LINE>LinearLayout rootLayout = new LinearLayout(activity);<NEW_LINE>rootLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));<NEW_LINE>rootLayout.setBackgroundColor(backgroundColor);<NEW_LINE>rootLayout.setOrientation(LinearLayout.VERTICAL);<NEW_... | ConvertUtils.toPx(activity, contentTopAndBottomPadding); |
1,785,889 | private void assignReadOps(Local l) {<NEW_LINE>if (stack.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Operand opr : stack) {<NEW_LINE>if (opr == DWORD_DUMMY || opr.stack != null || (l == null && opr.value instanceof Local)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (l != null && !opr.value.equivTo(l)) {<NEW... | setUnit(opr.insn, as); |
386,091 | protected void activate() {<NEW_LINE>setSendBtcGroupVisibleState(false);<NEW_LINE>bsqBalanceUtil.activate();<NEW_LINE>receiversAddressInputTextField.resetValidation();<NEW_LINE>amountInputTextField.resetValidation();<NEW_LINE>receiversBtcAddressInputTextField.resetValidation();<NEW_LINE>btcAmountInputTextField.resetVal... | focusedProperty().addListener(focusOutListener); |
439,086 | public com.amazonaws.services.sagemakerruntime.model.ValidationErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.sagemakerruntime.model.ValidationErrorException validationErrorException = new com.amazonaws.services.sagemakerruntime.model.ValidationE... | String currentParentElement = context.getCurrentParentElement(); |
1,540,085 | public void extendIDColumn(int row, ConcreteElement columnElement, a href, PrintDataElement dataElement, MPrintFormatItem pfi, int AD_PInstance_ID) {<NEW_LINE>href.addAttribute("onclick", "this.style.color='red'; showColumnMenu(event, '" + dataElement.getColumnName() + "', " + row + ")");<NEW_LINE>// menu div<NEW_LINE>... | getCtx()), "Window")); |
940,830 | public void removeElementAt(int index) {<NEW_LINE>if (isEmpty()) {<NEW_LINE>throw new // NOI18N<NEW_LINE>IllegalStateException("Cannot remove items from an empty model.");<NEW_LINE>}<NEW_LINE>final int size = getSize();<NEW_LINE>checkIndex(index, size - 1);<NEW_LINE>final Object removedItem = data[index];<NEW_LINE>if (... | = new Object[size - 1]; |
183,639 | private boolean resetVMSSHKeyInternal(Long vmId, String sshPublicKeys, String keypairnames) throws ResourceUnavailableException, InsufficientCapacityException {<NEW_LINE>Long userId = CallContext<MASK><NEW_LINE>VMInstanceVO vmInstance = _vmDao.findById(vmId);<NEW_LINE>VMTemplateVO template = _templateDao.findByIdInclud... | .current().getCallingUserId(); |
638,699 | public static void main(String[] args) throws IOException {<NEW_LINE>// Parse the arguments<NEW_LINE>Properties props = StringUtils.argsToProperties(args);<NEW_LINE>ArgumentParser.fillOptions(new Class[] { ArgumentParser.class, SplitTrainingSet.class }, props);<NEW_LINE>if (SPLIT_NAMES.length != SPLIT_WEIGHTS.length) {... | size() + " trees to " + filename); |
749,587 | final GetStagesResult executeGetStages(GetStagesRequest getStagesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStagesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | endClientExecution(awsRequestMetrics, request, response); |
758,245 | private static byte[] encodeUuidBytes(byte[] src) {<NEW_LINE>if (src.length != 16) {<NEW_LINE>throw new IllegalArgumentException("Invalid src byte array: " + BytesUtils.toString(src));<NEW_LINE>}<NEW_LINE>int srcPtr;<NEW_LINE>int dstPtr;<NEW_LINE>byte[] dst = new byte[22];<NEW_LINE>// first 15 bytes, in groups of 3<NEW... | currentBits >> 2) & BIT_MASK_6]; |
669,357 | TypeConstrainedMappingJackson2HttpMessageConverter halFormsJacksonHttpMessageConverter(LinkCollector linkCollector) {<NEW_LINE>LinkRelationProvider defaultedRelProvider = this.relProvider.getIfUnique(EvoInflectorLinkRelationProvider::new);<NEW_LINE>HalFormsConfiguration configuration = new HalFormsConfiguration(halConf... | , applicationContext.getAutowireCapableBeanFactory())); |
1,067,997 | private void loadNode224() {<NEW_LINE>SessionsDiagnosticsSummaryTypeNode node = new SessionsDiagnosticsSummaryTypeNode(this.context, Identifiers.ServerType_ServerDiagnostics_SessionsDiagnosticsSummary, new QualifiedName(0, "SessionsDiagnosticsSummary"), new LocalizedText("en", "SessionsDiagnosticsSummary"), LocalizedTe... | this.nodeManager.addNode(node); |
24,336 | private static void loadModuleInternal(final Window parent, final INaviModule module, final JTree projectTree) {<NEW_LINE>final CModuleLoaderOperation operation = new CModuleLoaderOperation(module);<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>if (projectTree != null) {<NEW_LINE>// Make sure the lazy UI co... | CNodeExpander.expandNode(projectTree, module); |
664,809 | protected Message<?> doConvert(Object payload, @Nullable Map<String, Object> headers, @Nullable MessagePostProcessor postProcessor) {<NEW_LINE>MessageHeaders messageHeaders = null;<NEW_LINE>Object conversionHint = (headers != null ? headers.get(CONVERSION_HINT_HEADER) : null);<NEW_LINE>Map<String, Object> headersToUse ... | .getClass().getName(); |
123,965 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.webcontainer.srt.SRTInputStream#read(byte[], int, int)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public int read(byte[] output, int offset, int length) throws IOException {<NEW_LINE>// Return -1 here because if we are closed or finished, we're at the end of the stream<NEW_LINE>... | isClosed + ", or finished : " + isFinished()); |
925,015 | public static void bitmapToPlanarRGB_U8(Bitmap input, Planar<GrayU8> output) {<NEW_LINE>final int h = output.height;<NEW_LINE>final int w = output.width;<NEW_LINE>GrayU8 R = output.getBand(0);<NEW_LINE>GrayU8 G = output.getBand(1);<NEW_LINE>GrayU8 B = output.getBand(2);<NEW_LINE>GrayU8 A = output.getBand(3);<NEW_LINE>/... | .startIndex + y * output.stride; |
1,370,472 | public void updateLocalisationSet(SIBUuid8 messagingEngineUuid, Set newQueuePointLocalisingMEUuids) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "updateLocalisationSet", new Object<MASK><NEW_LINE>// If the Queue points are not null, then synchronize (Queue destina... | [] { messagingEngineUuid, newQueuePointLocalisingMEUuids }); |
1,506,361 | // auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>public void visitCtIf(final spoon.reflect.code.CtIf ifElement) {<NEW_LINE>spoon.reflect.code.CtIf aCtIf = ifElement.getFactory().Core().createIf();<NEW_LINE>this.builder.copy(ifElement, aCtIf);<NEW_LINE>aCtIf.setAnnotations(this.cloneHelper.clone(if... | (ifElement.getCondition())); |
1,308,191 | private void createPdf(String mFilename, Uri uri) {<NEW_LINE>mPath = mSharedPreferences.getString(STORAGE_LOCATION, StringUtils.getInstance().getDefaultStorageLocation());<NEW_LINE>mPath = mPath + mFilename + mActivity.getString(R.string.pdf_ext);<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>int fontSize = mSharedPreference... | TextToPDFUtils fileUtil = new TextToPDFUtils(mActivity); |
1,510,007 | public void registerMap() {<NEW_LINE>// x<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>// y<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>// trust edges<NEW_LINE>map(Type.BOOLEAN);<NEW_LINE>handler(wrapper -> {<NEW_LINE>int skyLightMask = <MASK><NEW_LINE>int blockLightMask = wrapper.read(Type.VAR_INT);<NEW_LINE>// Now all written as a ... | wrapper.read(Type.VAR_INT); |
1,845,302 | public static void main(String[] args) {<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph = new EdgeWeightedDigraph(8);<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(4, 5, 0.35));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(5, 4, 0.35));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge<MASK><NEW_... | (4, 7, 0.37)); |
1,546,074 | public static Variable evaluate(JPDADebugger debugger, CurrentPCInfo currentPCInfo, String expression) throws InvalidExpressionException {<NEW_LINE>TruffleStackFrame selectedStackFrame = currentPCInfo.getSelectedStackFrame();<NEW_LINE>if (selectedStackFrame == null) {<NEW_LINE>throw new InvalidExpressionException(Bundl... | InvocationExceptionTranslated) targetException).resetInvocationMessage(); |
1,731,671 | public boolean doMonitor(ServiceEmitter emitter) {<NEW_LINE>final List<DataSourceOptimizerStats> stats = optimizer.getAndResetStats();<NEW_LINE>for (DataSourceOptimizerStats stat : stats) {<NEW_LINE>final ServiceMetricEvent.Builder builder = new ServiceMetricEvent.Builder();<NEW_LINE>builder.setDimension("dataSource", ... | fields).get())); |
446,407 | public void load() {<NEW_LINE>if (panel != null) {<NEW_LINE>this.remove(panel);<NEW_LINE>}<NEW_LINE>joystickService.setActivateActionDispatcher(false);<NEW_LINE>panel = new JPanel(new MigLayout("inset 5"));<NEW_LINE>activeCheckbox = new JCheckBox(Localization.getString("platform.plugin.joystick.activate"), Settings.isA... | getString(joystickControl.getLocalization()); |
156,958 | public Request<UpdateUserPhoneConfigRequest> marshall(UpdateUserPhoneConfigRequest updateUserPhoneConfigRequest) {<NEW_LINE>if (updateUserPhoneConfigRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateUserPhoneConfigRequest)");<NEW_LINE>}<NEW_LINE>Request<UpdateUserPho... | jsonWriter = JsonUtils.getJsonWriter(stringWriter); |
1,778,592 | public GuardedByExpression visitIdentifier(IdentifierTree node, BinderContext context) {<NEW_LINE>Symbol symbol = context.resolver.resolveIdentifier(node);<NEW_LINE>checkGuardedBy(symbol != null, "Could not resolve %s", node);<NEW_LINE>if (symbol instanceof Symbol.VarSymbol) {<NEW_LINE>Symbol.VarSymbol <MASK><NEW_LINE>... | varSymbol = (Symbol.VarSymbol) symbol; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.