idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
970,360 | public byte[] transform(ClassLoader loader, String classFile, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classFileBuffer) throws IllegalClassFormatException {<NEW_LINE>try {<NEW_LINE>// Lambda has no class file, no need to transform, just return.<NEW_LINE>if (classFile == null) {<NEW_LINE>r... | throw new IllegalStateException(msg, t); |
761,929 | protected Directory createLuceneDirectory(JasperPrint jasperPrint) throws IOException, JRException {<NEW_LINE>Long start = System.currentTimeMillis();<NEW_LINE>Directory dir = new RAMDirectory();<NEW_LINE>Analyzer analyzer = getConfiguredAnalyzer();<NEW_LINE>IndexWriterConfig iwc = new IndexWriterConfig(analyzer);<NEW_... | = new IndexWriter(dir, iwc); |
308,664 | private Map.Entry<String, String> parseOneItem() {<NEW_LINE>while (nextToRead < lines.size() && !lines.get(nextToRead).startsWith("#")) {<NEW_LINE>nextToRead++;<NEW_LINE>}<NEW_LINE>if (nextToRead >= lines.size()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String key = lines.get(nextToRead++);<NEW_LINE>headLevel = 0;<N... | .replaceAll("\\s+$", "\n")); |
721,227 | final DeleteChangeSetResult executeDeleteChangeSet(DeleteChangeSetRequest deleteChangeSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteChangeSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Delete... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
476,495 | protected void determineScrollingStart(MotionEvent ev) {<NEW_LINE>if (!isFinishedSwitchingState())<NEW_LINE>return;<NEW_LINE>float deltaX = ev.getX() - mXDown;<NEW_LINE>float absDeltaX = Math.abs(deltaX);<NEW_LINE>float absDeltaY = Math.abs(<MASK><NEW_LINE>if (Float.compare(absDeltaX, 0f) == 0)<NEW_LINE>return;<NEW_LIN... | ev.getY() - mYDown); |
1,736,407 | public void process(JanusGraphVertex vertex, ScanMetrics metrics) {<NEW_LINE>PreloadedVertex v = (PreloadedVertex) vertex;<NEW_LINE>long vertexId = v.longId();<NEW_LINE>VertexMemoryHandler<M> vh = new VertexMemoryHandler(vertexMemory, v);<NEW_LINE>vh.setInExecute(true);<NEW_LINE>v.setAccessCheck(PreloadedVertex.OPENSTA... | execute(v, vh, memory); |
1,071,465 | public Action findGlobalAction(Object key, boolean surviveFocusChange) {<NEW_LINE>// search action in all action maps from global context<NEW_LINE>Action a = null;<NEW_LINE>for (Reference<ActionMap> ref : actionMaps) {<NEW_LINE>ActionMap am = ref.get();<NEW_LINE>a = am == null ? null : am.get(key);<NEW_LINE>if (a != nu... | "No action for key: " + key + " using delegate: " + a); |
449,506 | private void runAssertion_A_Bstar(RegressionEnvironment env, AtomicInteger milestone, boolean allMatches) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String[] fields = "a,b0,b1,b2".split(",");<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#keepall " + "match_recognize (" + " measures A.theString as a, B[... | + " define" + " A as A.theString like \"A%\"," + " B as B.theString like \"B%\"" + ")"; |
362,499 | private static int floatTo16Bits(final float floatValue) {<NEW_LINE>int fbits = Float.floatToIntBits(floatValue);<NEW_LINE>// sign only<NEW_LINE>int sign = fbits >>> 16 & 0x8000;<NEW_LINE>// rounded value<NEW_LINE>int val = (fbits & 0x7fffffff) + 0x1000;<NEW_LINE>if (val >= 0x47800000) {<NEW_LINE>// might be or become ... | fbits & 0x7fffffff) >>> 23; |
1,253,120 | public static void main(String[] args) throws Exception {<NEW_LINE>E.checkArgument(args.length == 1, "HugeGraph init-store need to pass the config file " + "of RestServer, like: conf/rest-server.properties");<NEW_LINE>E.checkArgument(args[0].endsWith(".properties"), "Expect the parameter is properties config file.");<N... | graphs = ConfigUtil.scanGraphsDir(graphsDir); |
365,205 | protected TopHitsAggregatorFactory doBuild(SearchContext context, AggregatorFactory<?> parent, Builder subfactoriesBuilder) throws IOException {<NEW_LINE>long innerResultWindow = from() + size();<NEW_LINE>int maxInnerResultWindow = context.mapperService().getIndexSettings().getMaxInnerResultWindow();<NEW_LINE>if (inner... | sorts, context.getQueryShardContext()); |
1,698,077 | private void make(File baseFeatureApk, File apkFile, File bundleFile, CoreSigningConfig signingConfig) throws IOException, SigningException {<NEW_LINE>ZipFile zipFile = new ZipFile(apkFile);<NEW_LINE>Enumeration entries = zipFile.entries();<NEW_LINE>ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputSt... | (zipFile.getInputStream(zipEntry)); |
346,172 | public void execute() {<NEW_LINE>EntityPlayerSP player = Minecraft.getMinecraft().player;<NEW_LINE>ActiveMagnet activeMagnet = MagnetController.getMagnet(player, false);<NEW_LINE>if (activeMagnet != null) {<NEW_LINE>boolean isActive = !ItemMagnet.isActive(activeMagnet.getItem());<NEW_LINE>PacketHandler.INSTANCE.sendToS... | stack = baubles.getStackInSlot(i); |
2,835 | private <E> MetaResultSet createResultSet(Enumerable<E> enumerable, Class clazz, String... names) {<NEW_LINE>final List<ColumnMetaData> <MASK><NEW_LINE>final List<Field> fields = new ArrayList<>();<NEW_LINE>final List<String> fieldNames = new ArrayList<>();<NEW_LINE>for (String name : names) {<NEW_LINE>final int index ... | columns = new ArrayList<>(); |
153,177 | @RequestMapping(value = "/alarm/{alarmId}/clear", method = RequestMethod.POST)<NEW_LINE>@ResponseStatus(value = HttpStatus.OK)<NEW_LINE>public void clearAlarm(@ApiParam(value = ALARM_ID_PARAM_DESCRIPTION) @PathVariable(ALARM_ID) String strAlarmId) throws ThingsboardException {<NEW_LINE>checkParameter(ALARM_ID, strAlarm... | ), alarmId, EdgeEventActionType.ALARM_CLEAR); |
1,076,719 | public RunCommandTarget unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RunCommandTarget runCommandTarget = new RunCommandTarget();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | )).unmarshall(context)); |
1,707,011 | byte[] areRepositoryAndMarkerFileConsistent(RepositoryFunction handler, Environment env) throws RepositoryFunctionException, InterruptedException {<NEW_LINE>if (!markerPath.exists()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, String> <MASK><NEW_LINE>String content;<NEW_LINE>try {<NEW_LINE>content = FileSys... | markerData = new TreeMap<>(); |
762,171 | public static Query<Set<UUID>> uuidsOfPlayersWithJoinAddresses(List<String> joinAddresses) {<NEW_LINE>String selectLowercaseJoinAddresses = SELECT + UserInfoTable.USER_UUID + ',' + "LOWER(COALESCE(" + UserInfoTable.JOIN_ADDRESS <MASK><NEW_LINE>String sql = // Don't append addresses directly, SQL injection hazard<NEW_LI... | + ", ?)) as address" + FROM + UserInfoTable.TABLE_NAME; |
251,338 | final AddProfileKeyResult executeAddProfileKey(AddProfileKeyRequest addProfileKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addProfileKeyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<AddProfileKeyRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,186,563 | public static ListProjectsResponse unmarshall(ListProjectsResponse listProjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProjectsResponse.setRequestId(_ctx.stringValue("ListProjectsResponse.RequestId"));<NEW_LINE>listProjectsResponse.setTotalCount(_ctx.integerValue("ListProjectsResponse.TotalCount"));<NEW_LINE... | ("ListProjectsResponse.Projects[" + i + "].DataStatus")); |
449,051 | public static GetNodeGroupResponse unmarshall(GetNodeGroupResponse getNodeGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>getNodeGroupResponse.setRequestId(_ctx.stringValue("GetNodeGroupResponse.RequestId"));<NEW_LINE>getNodeGroupResponse.setSuccess(_ctx.booleanValue("GetNodeGroupResponse.Success"));<NEW_LINE>Data ... | (_ctx.booleanValue("GetNodeGroupResponse.Data.JoinPermissionEnabled")); |
490,015 | public static void rename(File fileNow, File fileToBe) {<NEW_LINE>if (fileNow.renameTo(fileToBe)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!fileNow.exists()) {<NEW_LINE>throw new HazelcastException(format("Failed to rename %s to %s because %s doesn't exist.", fileNow, fileToBe, fileNow));<NEW_LINE>}<NEW_LINE>if (!fil... | , fileNow, fileToBe, fileToBe)); |
565,958 | private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String routeFilterName, PatchRouteFilter routeFilterParameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is ... | ), routeFilterParameters, accept, context); |
414,762 | static BeanDefinitionBuilder configure(Element element, boolean expectReply, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(FileWritingMessageHandlerFactoryBean.class);<NEW_LINE>String <MASK><NEW_LINE>String directoryExpression = element.getAttribute(... | directory = element.getAttribute("directory"); |
1,595,915 | protected BarChart<String, Number> createChart() {<NEW_LINE>final String[] years = { "2007", "2008", "2009" };<NEW_LINE>final CategoryAxis xAxis = new CategoryAxis();<NEW_LINE>final NumberAxis yAxis = new NumberAxis();<NEW_LINE>yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis, "$", null));<NEW_LINE>fin... | years[2], 2450)); |
1,342,338 | public GetDocumentVersionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDocumentVersionResult getDocumentVersionResult = new GetDocumentVersionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | )).unmarshall(context)); |
190,429 | protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) {<NEW_LINE>if (tabPlacement == LEFT || tabPlacement == RIGHT) {<NEW_LINE>Rectangle tabRect2 = new Rectangle(0, 0, tabRect.height, tabRec... | = tabRect.x + textRect2.y; |
310,282 | public Object evaluate(DeferredObject[] arg0) throws HiveException {<NEW_LINE>Set<InspectableObject> objects <MASK><NEW_LINE>for (int i = 0; i < arg0.length; ++i) {<NEW_LINE>Object undeferred = arg0[i].get();<NEW_LINE>for (int j = 0; j < listInspectorArr[i].getListLength(undeferred); ++j) {<NEW_LINE>Object nonStd = lis... | = new TreeSet<InspectableObject>(); |
1,434,461 | private boolean accept(Visitor visitor, boolean visitNestedDatasets, int start, int end) throws Exception {<NEW_LINE>for (int i = start; i < end; i++) {<NEW_LINE>if (!visitor.visit(this, tags[i], vrs[i], values[i]))<NEW_LINE>return false;<NEW_LINE>if (visitNestedDatasets && (values[i] instanceof Sequence)) {<NEW_LINE>i... | (tags[i], itemIndex); |
1,334,719 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(CLUSTER_NAME, getClusterName());<NEW_LINE>builder.field(STATUS, getStatus().name().toLowerCase(Locale.ROOT));<NEW_LINE>builder.field(TIMED_OUT, isTimedOut());<NEW_LINE>bu... | params.param("level", "cluster"); |
291,191 | static ValueSource wrap(Object value, ScriptService scriptService) {<NEW_LINE>if (value instanceof Map) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<Object, Object> mapValue = (Map) value;<NEW_LINE>Map<ValueSource, ValueSource> valueTypeMap = new HashMap<<MASK><NEW_LINE>for (Map.Entry<Object, Object> entry : ... | >(mapValue.size()); |
1,300,466 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "maddu");<NEW_LINE>final String sourceRegister1 =... | 32L), qw, hiShifted)); |
1,806,628 | public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>tileFileSystemMaxQueueSize.setText(Configuration.getInstance().getTileFileSystemMaxQueueSize() + "");<NEW_LINE>tileFileSystemThreads.setText(Configuration.getInstance().getTileFileSystemThreads() + "");<NEW_LINE>tileDownloadMaxQueueSize.setText(Configuration.... | getInstance().isDebugTileProviders()); |
1,688,122 | // Reference to org.apache.inlong.manager.common.enums.GroupState code<NEW_LINE>public static InlongGroupState parseByBizStatus(int bizCode) {<NEW_LINE>GroupState <MASK><NEW_LINE>switch(groupState) {<NEW_LINE>case DRAFT:<NEW_LINE>case TO_BE_SUBMIT:<NEW_LINE>return CREATE;<NEW_LINE>case DELETING:<NEW_LINE>case SUSPENDI... | groupState = GroupState.forCode(bizCode); |
1,623,530 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>if (controller.chooseUse(Outcome.PutCreatureInPlay, choiceText, source, game)) {<NEW_LINE>FilterCard filter = new FilterCreatureCard();<NEW_LINE>filter.add... | new FixedTarget(permanent, game)); |
134,349 | private String doEncryption(String path, String password) throws IOException, DocumentException {<NEW_LINE>String masterpwd = mSharedPrefs.getString(MASTER_PWD_STRING, appName);<NEW_LINE>String finalOutputFile = mFileUtils.getUniqueFileName(path.replace(mContext.getString(R.string.pdf_ext), mContext.getString(<MASK><NE... | R.string.encrypted_file))); |
927,805 | public static String signature(Properties props) {<NEW_LINE>StringBuilder os = new StringBuilder();<NEW_LINE>os.append(HybridCorefProperties.DEMONYM_PROP + ":" + props.getProperty(HybridCorefProperties.DEMONYM_PROP, DefaultPaths.DEFAULT_DCOREF_DEMONYM));<NEW_LINE>os.append(HybridCorefProperties.ANIMATE_PROP + ":" + pro... | .getProperty(HybridCorefProperties.PLURAL_PROP)); |
345,940 | protected void testRepeating(boolean completeBefore, boolean fromCompletion, RRule rrule, Frequency frequency, String title) {<NEW_LINE>Task t = new Task();<NEW_LINE>t.setValue(Task.TITLE, title);<NEW_LINE>long dueDate = DateUtilities.now() + ((completeBefore ? -1 : 1<MASK><NEW_LINE>// Strip milliseconds<NEW_LINE>dueDa... | ) * DateUtilities.ONE_DAY * 3); |
980,794 | public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(SubordInKeywordSingleTableLookupStrategyFactory.EPTYPE, <MASK><NEW_LINE>String[] expressions = new String[exprNodes.length];<NEW_LINE>method.getBlock()... | this.getClass(), classScope); |
1,574,811 | public boolean isPossibleType(Type abstractType, Type possibleType) {<NEW_LINE>if (!isInterfaceOrUnion(abstractType)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!isObjectTypeOrInterface(possibleType)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TypeDefinition targetObjectTypeDef = getType(possibleType).get();<NE... | UnionTypeDefinition) abstractTypeDef).getMemberTypes(); |
1,435,609 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | responseHandler, executionContext, cachedEndpoint, null); |
265,983 | final ListThingGroupsResult executeListThingGroups(ListThingGroupsRequest listThingGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThingGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | false), new ListThingGroupsResultJsonUnmarshaller()); |
490,326 | public void onViewCreated(@NonNull View rootView, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(rootView, savedInstanceState);<NEW_LINE>if (rootView instanceof ViewGroup)<NEW_LINE>this.rootView = (ViewGroup) rootView;<NEW_LINE>dao = new ObjectBoxDAO(requireContext());<NEW_LINE>long nbLibraryBooks ... | rootView, R.id.export_run_btn); |
305,362 | private void populateDatastructuresForAnalysisTraversal(ReferenceMap referenceMap) {<NEW_LINE>// Merge the prop and name references into a single multimap since only the name matters.<NEW_LINE>ArrayListMultimap<String, Node> referencesByName = ArrayListMultimap.create();<NEW_LINE>for (Map.Entry<String, ? extends List<N... | !referencesByName.containsKey(PROP_NAME_PREFIX)); |
682,973 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>ActivityPhotoPlayerBinding binding = ActivityPhotoPlayerBinding.inflate(getLayoutInflater());<NEW_LINE>setContentView(binding.getRoot());<NEW_LINE><MASK><NEW_LINE>mainImages[1] = binding.mainImage2;<NEW_LINE>nextImag... | mainImages[0] = binding.mainImage; |
1,120,476 | public com.amazonaws.services.kms.model.KMSInvalidStateException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kms.model.KMSInvalidStateException kMSInvalidStateException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth(... | kms.model.KMSInvalidStateException(null); |
1,553,139 | protected Serializable doCreate(Session session) {<NEW_LINE>final Serializable id = generateSessionId(session);<NEW_LINE>assignSessionId(session, id);<NEW_LINE>Map<String, Object> fields = Maps.newHashMap();<NEW_LINE>fields.put("session_id", id);<NEW_LINE>fields.put("host", session.getHost());<NEW_LINE>fields.put(<MASK... | "start_timestamp", session.getStartTimestamp()); |
1,728,227 | private void doCopy(URL sourceUrl, InputStream is, File temp, int contentLength) throws IOException {<NEW_LINE>OutputStream os = null;<NEW_LINE>int read = 0;<NEW_LINE>int totalRead = 0;<NEW_LINE>try {<NEW_LINE>os = new BufferedOutputStream(new FileOutputStream(temp));<NEW_LINE>byte[] bytes = new byte[1024];<NEW_LINE>wh... | "Writing content of URL " + sourceUrl + " failed.", ex); |
897,645 | public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {<NEW_LINE>// add new socket channel in channel container, used to manage sockets.<NEW_LINE>if (childGroups != null) {<NEW_LINE>childGroups.add(ctx.getChannel());<NEW_LINE>}<NEW_LINE>final byte[] seed = org.apache.commons.lang3.Ran... | ClientAuthenticationHandler.class.getName()); |
974,604 | void print() {<NEW_LINE>FragmentActivity activity = getActivity();<NEW_LINE>if (activity != null) {<NEW_LINE>OsmandApplication app = <MASK><NEW_LINE>RoutingHelper routingHelper = app.getRoutingHelper();<NEW_LINE>File file = generateRouteInfoHtml(routingHelper.getRouteDirections(), routingHelper.getGeneralRouteInformati... | (OsmandApplication) activity.getApplication(); |
249,786 | public void configure(Binder binder) {<NEW_LINE>MapBinder.newMapBinder(binder, String.class, SearchableVersionedDataFinder.class).addBinding(SCHEME).to(OssTimestampVersionedDataFinder.class).in(LazySingleton.class);<NEW_LINE>Binders.dataSegmentKillerBinder(binder).addBinding(SCHEME_ZIP).to(OssDataSegmentKiller.class).i... | binder, "druid.indexer.logs.oss", OssTaskLogsConfig.class); |
339,835 | public boolean apply(Game game, Ability source) {<NEW_LINE>Card card = game.getCard(getTargetPointer()<MASK><NEW_LINE>if (card != null) {<NEW_LINE>CreateTokenCopyTargetEffect effect = new CreateTokenCopyTargetEffect(source.getControllerId(), CardType.ARTIFACT, true);<NEW_LINE>effect.setTargetPointer(new FixedTarget(car... | .getFirst(game, source)); |
1,816,228 | public List<List<Mention>> findMentions(Annotation doc, Dictionaries dict, Properties props) {<NEW_LINE>List<List<Mention>> <MASK><NEW_LINE>Set<String> neStrings = Generics.newHashSet();<NEW_LINE>List<Set<IntPair>> mentionSpanSetList = Generics.newArrayList();<NEW_LINE>List<CoreMap> sentences = doc.get(CoreAnnotations.... | predictedMentions = new ArrayList<>(); |
1,853,298 | void permitVerify() {<NEW_LINE>logDebug("permitVerify");<NEW_LINE>if (firstPin.length() == 1 && secondPin.length() == 1 && thirdPin.length() == 1 && fourthPin.length() == 1 && fifthPin.length() == 1 && sixthPin.length() == 1) {<NEW_LINE>hideKeyboard(this, 0);<NEW_LINE>if (sb.length() > 0) {<NEW_LINE>sb.delete(0, sb.len... | append(fifthPin.getText()); |
1,801,580 | private String makeDescription(@Nonnull Collection<? extends VcsRootError> unregisteredRoots, @Nonnull Collection<? extends VcsRootError> invalidRoots) {<NEW_LINE>@Nls<NEW_LINE>StringBuilder description = new StringBuilder();<NEW_LINE>if (!invalidRoots.isEmpty()) {<NEW_LINE>if (invalidRoots.size() == 1) {<NEW_LINE>VcsR... | (ROOT_TO_PRESENTABLE.fun(unregisteredRoot)); |
1,528,810 | LuaValue[] addRect(LuaValue[] values) {<NEW_LINE>int left = values.length > 0 ? DimenUtil.dpiToPx(values[0].toInt()) : 0;<NEW_LINE>int top = values.length > 1 ? DimenUtil.dpiToPx(values[1].toInt()) : 0;<NEW_LINE>int right = values.length > 2 ? DimenUtil.dpiToPx(values[2].toInt()) : 0;<NEW_LINE>int bottom = values.lengt... | values[4].toBoolean(); |
31,502 | // Suppress high Cognitive Complexity warning<NEW_LINE>@SuppressWarnings("squid:S3776")<NEW_LINE>public QueryDataSet execute(QueryContext context, LastQueryPlan lastQueryPlan) throws StorageEngineException, IOException, QueryProcessException {<NEW_LINE>ListDataSet dataSet = new ListDataSet(Arrays.asList(new PartialPath... | = new Field(TSDataType.TEXT); |
1,569,342 | private void buildPluginMenuItems(Map<Object, Object> tmp, JMenu tools) {<NEW_LINE>String name, tool;<NEW_LINE>JMenu current = null;<NEW_LINE>JMenuItem item;<NEW_LINE>for (Map.Entry<Object, Object> entry : tmp.entrySet()) {<NEW_LINE>name = (String) entry.getKey();<NEW_LINE>if (current == null || !name.startsWith(curren... | println("Plugin " + name + " was not found in your CLASSPATH."); |
944,819 | public void sortPins(HashMap<String, List<Widget>> pinsCategories) {<NEW_LINE>List<Widget> previousPins = getPinWidgets();<NEW_LINE>ArrayList<Widget> unresolvedPins = new ArrayList<Widget>(previousPins);<NEW_LINE>for (Iterator<Widget> iterator = unresolvedPins.iterator(); iterator.hasNext(); ) {<NEW_LINE>Widget widget ... | >(pinCategoryWidgets.keySet()); |
63,030 | private void _publishHTMLPages(ActionRequest req, User user) throws Exception {<NEW_LINE>String[] publishInode = req.getParameterValues("publishInode");<NEW_LINE>if (publishInode == null)<NEW_LINE>return;<NEW_LINE>ActionRequestImpl reqImpl = (ActionRequestImpl) req;<NEW_LINE>for (String pageInode : publishInode) {<NEW_... | find(pageInode, user, false); |
1,617,127 | public Assignments<E> split(AbstractMTree<?, N, E, ?> tree, N node) {<NEW_LINE>final int n = node.getNumEntries();<NEW_LINE>// choose first and second routing object<NEW_LINE>int b1 = 0, b2 = 0;<NEW_LINE>double dist1 = node.getEntry(0).getParentDistance(), dist2 = dist1;<NEW_LINE>if (Double.isNaN(dist1)) {<NEW_LINE>// ... | e2 = node.getEntry(b2); |
241,938 | private static String determineNodeText(final NaviNode node) {<NEW_LINE>if (node.getRawNode() instanceof INaviCodeNode) {<NEW_LINE>final INaviCodeNode cnode = (INaviCodeNode) node.getRawNode();<NEW_LINE>return String.format("Basic Block: %s", cnode.getAddress().toHexString());<NEW_LINE>} else if (node.getRawNode() inst... | getAddress().toHexString()); |
1,467,182 | RoutingPolicy toRouteMap() {<NEW_LINE>String routeMapName = _routeMap.getName();<NEW_LINE><MASK><NEW_LINE>ImmutableList.Builder<Statement> currentRoutingPolicyStatements = ImmutableList.builder();<NEW_LINE>currentRoutingPolicyStatements.add(Statements.SetReadIntermediateBgpAttributes.toStaticStatement(), Statements.Set... | String currentRoutingPolicyName = _routeMap.getName(); |
1,282,050 | public ECPoint twicePlus(ECPoint b) {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>if (b.isInfinity()) {<NEW_LINE>return twice();<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own a... | ECFieldElement Z1Sq = Z1.square(); |
722,111 | private void doDispense(GlowBlock block, ItemStack items, int power, BlockFace facing, Vector target) {<NEW_LINE>double x = target.getX();<NEW_LINE>double y = target.getY();<NEW_LINE>double z = target.getZ();<NEW_LINE>if (facing.getModY() != 0) {<NEW_LINE>y -= 0.125;<NEW_LINE>} else {<NEW_LINE>y -= 0.15625;<NEW_LINE>}<... | (velocityX, velocityY, velocityZ)); |
1,022,832 | protected CommonAppListFilterAdapter onCreateCommonAppListFilterAdapter() {<NEW_LINE>adapter = new CommonAppListFilterAdapter((appInfo, itemView) -> {<NEW_LINE>if (packageSet == null || packageSet.isPrebuilt()) {<NEW_LINE>AppDetailsActivity.start(thisActivity(), appInfo);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>QuickDropd... | getString(R.string.title_package_delete_set); |
999,206 | private void initializeAudioTrack() throws InitializationException {<NEW_LINE>// If we're asynchronously releasing a previous audio track then we block until it has been<NEW_LINE>// released. This guarantees that we cannot end up in a state where we have multiple audio<NEW_LINE>// track instances. Without this guarante... | configuration.outputPcmFrameSize, configuration.bufferSize); |
1,393,017 | private Mono<Response<LoadTestResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String loadTestName, LoadTestResourceInner loadTestResource, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndp... | error(new IllegalArgumentException("Parameter loadTestResource is required and cannot be null.")); |
512,020 | public CompositeEnumeration<URL> findResources(String name) throws IOException {<NEW_LINE>// start by collecting any from super, which checks parent, if any.<NEW_LINE>CompositeEnumeration<URL> enumerations = new CompositeEnumeration<URL>(super.findResources(name));<NEW_LINE>Collection<URL> urls = smartClassPath.getReso... | stripTrailingSlash(enumerations.nextElement()); |
1,802,970 | public void propagateTtl(InstanceState state) {<NEW_LINE>var data = (TtlRegisterData) state.getData();<NEW_LINE>if (data == null) {<NEW_LINE>// changed = true;<NEW_LINE>data = new TtlRegisterData(BitWidth.create(4));<NEW_LINE>state.setData(data);<NEW_LINE>}<NEW_LINE>var triggered = data.updateClock(state.getPortValue(7... | ).not(), 8); |
1,082,728 | public static List<OpenSSLX509Certificate> fromPkcs7DerInputStream(InputStream is) throws ParsingException {<NEW_LINE>@SuppressWarnings("resource")<NEW_LINE>OpenSSLBIOInputStream bis = new OpenSSLBIOInputStream(is, true);<NEW_LINE>final long[] certRefs;<NEW_LINE>try {<NEW_LINE>certRefs = NativeCrypto.d2i_PKCS7_bio(bis.... | getBioContext(), NativeCrypto.PKCS7_CERTS); |
750,583 | // @formatter:on<NEW_LINE>@Inject(method = "createOrExtendRaid", cancellable = true, locals = LocalCapture.CAPTURE_FAILHARD, at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/raid/Raid;absorbBadOmen(Lnet/minecraft/world/entity/player/Player;)V"))<NEW_LINE>public void arclight$raidTrigger(ServerPlayer pla... | raid.getId(), raid); |
1,618,956 | public void mouseClicked(MouseEvent e) {<NEW_LINE>GeoLL_F32 geo = new GeoLL_F32();<NEW_LINE>double scale = panelEqui.scale;<NEW_LINE>int x = (int) (e.getX() / scale);<NEW_LINE>int y = (int) (e.getY() / scale);<NEW_LINE>if (!equi.isInBounds(x, y))<NEW_LINE>return;<NEW_LINE>panelPinhole.grabFocus();<NEW_LINE>synchronized... | .getRotation().copy(); |
1,595,533 | public void drawGuiContainerBackgroundLayer(float f, int mx, int my) {<NEW_LINE>GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);<NEW_LINE>bindGuiTexture();<NEW_LINE>int sx <MASK><NEW_LINE>int sy = (height - ySize) / 2;<NEW_LINE>drawTexturedModalRect(sx, sy, 0, 0, this.xSize, this.ySize);<NEW_LINE>int sw = getFontRenderer(... | = (width - xSize) / 2; |
1,149,283 | public void workspaceSwitching(Workspace workspace) {<NEW_LINE>switchingWorkspace = true;<NEW_LINE>recentEditorsMenu.removeAll();<NEW_LINE>if (recentEditorsMenu.getItemCount() == 0) {<NEW_LINE>recentEditorsMenu.add(EMPTYMARKER).setEnabled(false);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>DefaultActionMapping<WorkspaceImpl> m... | String filePath = workspace.getPath(); |
130,803 | public static boolean isCTVerificationRequired(String hostname) {<NEW_LINE>if (hostname == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// TODO: Use the platform version on platforms that support it<NEW_LINE>String property = Security.getProperty("conscrypt.ct.enable");<NEW_LINE>if (property == null || !Boolean.v... | (hostname.split("\\.")); |
946,433 | final DeleteReportResult executeDeleteReport(DeleteReportRequest deleteReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | endClientExecution(awsRequestMetrics, request, response); |
1,309,532 | private StringSubject doFactValue(String key, @Nullable Integer index) {<NEW_LINE>checkNotNull(key);<NEW_LINE>if (!(actual instanceof ErrorWithFacts)) {<NEW_LINE>failWithActual(simpleFact("expected a failure thrown by Truth's new failure API"));<NEW_LINE>return ignoreCheck().that("");<NEW_LINE>}<NEW_LINE>ErrorWithFacts... | factsWithName = factsWithName(error, key); |
1,600,079 | public void render(TileEntityMBE21 tileEntityMBE21, float partialTicks, MatrixStack matrixStack, IRenderTypeBuffer renderBuffers, int combinedLight, int combinedOverlay) {<NEW_LINE>TileEntityMBE21.EnumRenderStyle objectRenderStyle = tileEntityMBE21.getArtifactRenderStyle();<NEW_LINE>switch(objectRenderStyle) {<NEW_LINE... | matrixStack, renderBuffers, combinedLight, combinedOverlay); |
1,035,701 | public Object calculate(Context ctx) {<NEW_LINE>TableMetaData tmd = (TableMetaData) table;<NEW_LINE>ICursor cursor = CreateCursor.createCursor(tmd, param, option, ctx);<NEW_LINE>Sequence seq = cursor.fetch();<NEW_LINE>Table table;<NEW_LINE>if (seq instanceof Table) {<NEW_LINE>table = (Table) seq;<NEW_LINE>} else if (se... | ] sortedFieldNames = tmd.getAllSortedColNames(); |
1,485,936 | private String mpr011cParticipant(String url) {<NEW_LINE>boolean result1 = false, result2 = false, result3 = false;<NEW_LINE>final ExtendedTransactionManager TM = TransactionManagerFactory.getTransactionManager();<NEW_LINE>try {<NEW_LINE>final Serializable <MASK><NEW_LINE>XAResourceImpl xaRes1 = XAResourceFactoryImpl.i... | xaResInfo1 = XAResourceInfoFactory.getXAResourceInfo(0); |
603,722 | public void marshall(ReactiveAnomalySummary reactiveAnomalySummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reactiveAnomalySummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(reactiveAnomalySum... | reactiveAnomalySummary.getAnomalyResources(), ANOMALYRESOURCES_BINDING); |
75,132 | final DecisionTask executePollForDecisionTask(PollForDecisionTaskRequest pollForDecisionTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(pollForDecisionTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.start... | false), new DecisionTaskJsonUnmarshaller()); |
866,124 | public int compareTo(@NonNull Object o) {<NEW_LINE>NDArrayWritable other = (NDArrayWritable) o;<NEW_LINE>// Conventions used here for ordering NDArrays: x.compareTo(y): -ve if x < y, 0 if x == y, +ve if x > y<NEW_LINE>// Null first<NEW_LINE>// Then smallest rank first<NEW_LINE>// Then smallest length first<NEW_LINE>// ... | 'c', array.shape()); |
313,392 | public boolean remove(Object key, Object value) {<NEW_LINE>requireNonNull(key);<NEW_LINE>if (value == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>K castedKey = (K) key;<NEW_LINE>boolean[] done = { false };<NEW_LINE>boolean[] removed = { false };<NEW_LINE>CompletableFuture<... | ] = value.equals(oldValue); |
299,090 | private static ColumnCapabilities computeDimensionSpecCapabilities(final DimensionSpec dimensionSpec, @Nullable final ColumnCapabilities columnCapabilities) {<NEW_LINE>if (dimensionSpec.mustDecorate()) {<NEW_LINE>// Decorating DimensionSpecs could do anything. We can't pass along any useful info other than the type.<NE... | .areDictionaryValuesSorted().isTrue(); |
969,416 | public void checkNamespaceBundleSplit() {<NEW_LINE>if (!conf.isLoadBalancerAutoBundleSplitEnabled() || pulsar.getLeaderElectionService() == null || !pulsar.getLeaderElectionService().isLeader()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final boolean unloadSplitBundles = pulsar.getConfiguration().isLoadBalancerAutoUnloadS... | (NamespaceName.get(namespaceName)); |
972,301 | public boolean onGenericMotion(View v, MotionEvent event) {<NEW_LINE>if (activity.joystickActive == false) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int id = event.getDeviceId();<NEW_LINE>int index = activity.indexOfJoystick(id);<NEW_LINE>if (index >= 0) {<NEW_LINE>float ax = event.getAxisValue(MotionEvent.AXIS_X, 0... | getAxisValue(MotionEvent.AXIS_HAT_Y, 0); |
511,501 | protected void prepareChartView() {<NEW_LINE>super.prepareChartView();<NEW_LINE>chart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onValueSelected(Entry e, Highlight h) {<NEW_LINE>highlight = h;<NEW_LINE>for (ExternalValueSelectedListener listene... | chart.highlightValue(h, true); |
1,300,548 | protected ProductsProposalRowsLoader createRowsLoaderFromRecord(TableRecordReference recordRef) {<NEW_LINE>final IBPartnerDAO bpartnersRepo = Services.get(IBPartnerDAO.class);<NEW_LINE>final IPriceListDAO priceListsRepo = Services.get(IPriceListDAO.class);<NEW_LINE>recordRef.assertTableName(I_C_BPartner.Table_Name);<NE... | ofRepoIdOrNull(bpartnerRecord.getPO_PricingSystem_ID()); |
959,479 | public AuthenticationResult loginWithUserName(HttpServletRequest req, HttpServletResponse res, String userName, Subject subj, Hashtable<String, Object> customProperties, boolean mapIdentityToRegistryUser) {<NEW_LINE>Subject tempSubject = subj;<NEW_LINE>if (tempSubject == null)<NEW_LINE>tempSubject = new Subject();<NEW_... | AuthenticationService authenticationService = securityService.getAuthenticationService(); |
1,639,704 | private void drawVerticalDecorations(Canvas canvas, RecyclerView parent) {<NEW_LINE>if (!needsVerticalDecoration()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FlexboxLayoutManager layoutManager = (FlexboxLayoutManager) parent.getLayoutManager();<NEW_LINE>int parentTop = parent.getTop() - parent.getPaddingTop();<NEW_LINE>in... | .bottomMargin + mDrawable.getIntrinsicHeight(); |
1,133,627 | public void saveAsSession() {<NEW_LINE>if (!informStopActiveActions()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Session session = model.getSession();<NEW_LINE>JFileChooser chooser = new SessionFileChooser(model.getOptionsParam().getUserDirectory(), session);<NEW_LINE>// ZAP: set session name as file name proposal<NEW_LIN... | e.getMessage(), e); |
475,493 | public void deactivate() {<NEW_LINE>root.widthProperty().removeListener(widthListener);<NEW_LINE>xAxis.getChildrenUnmodifiable().removeListener(nodeListChangeListener);<NEW_LINE>yAxis.widthProperty().removeListener(yAxisWidthListener);<NEW_LINE>timeIntervalToggleGroup.selectedToggleProperty().removeListener(timeInterva... | -> e.setSelected(false)); |
621,190 | public void run(RegressionEnvironment env) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String[] fields = "theString,intPrimitive".split(",");<NEW_LINE>String epl = "@name('s0') select * from SupportBean\n" + " group by theString\n" + " output first every 10 seconds";<NEW_LINE>env.compileDeploy(epl).addListener("s0")... | [] { "E1", 1 }); |
1,170,198 | private void processOptionalFeatures(@Nullable XmlDocument document, @NonNull MergingReport.Builder mergingReport) {<NEW_LINE>if (document == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// perform tools: annotations removal if requested.<NEW_LINE>if (mOptionalFeatures.contains(Invoker.Feature.REMOVE_TOOLS_DECLARATIONS... | , mergingReport.blame(document)); |
228,190 | public static ST_Agedge_s agsubedge(ST_Agraph_s g, ST_Agedge_s e, boolean cflag) {<NEW_LINE>ENTERING("30v8z3tlda81fbqbkzx6m9fkn", "agsubedge");<NEW_LINE>try {<NEW_LINE>ST_Agnode_s t, h;<NEW_LINE>ST_Agedge_s rv;<NEW_LINE>rv = null;<NEW_LINE>t = agsubnode(g, AGTAIL(e), cflag);<NEW_LINE>h = agsubnode(g, AGHEAD(e), cflag);... | , h, AGTAG(e)); |
925,958 | private void addThemesStyle(String customStyle, String urlStyle, boolean removeBodyStyle) {<NEW_LINE>if (getWindow() != null && getWindow().getDocument() != null) {<NEW_LINE>Document document = getWindow().getDocument();<NEW_LINE>if (!isEligibleForCustomStyles(document))<NEW_LINE>return;<NEW_LINE>if (customStyle == nul... | document, document.getBody()); |
328,960 | private void lowerInvoke(Invoke invoke, LoweringTool tool, StructuredGraph graph) {<NEW_LINE>if (invoke.callTarget() instanceof MethodCallTargetNode) {<NEW_LINE>MethodCallTargetNode callTarget = (MethodCallTargetNode) invoke.callTarget();<NEW_LINE>NodeInputList<ValueNode> parameters = callTarget.arguments();<NEW_LINE>V... | parameters.set(0, nonNullReceiver); |
1,378,387 | private void initializeScrapeMenu() {<NEW_LINE>JMenu scrapeMenu = new JMenu("Scrape");<NEW_LINE>scrapeMenu.setMnemonic(KeyEvent.VK_S);<NEW_LINE>JMenuItem scrapeAdultDVDAmalgamated = new JMenuItem(new ScrapeAmalgamatedAction(guiMain, guiMain.getAllAmalgamationOrderingPreferences().getScraperGroupAmalgamationPreference(S... | (GUIMainButtonPanel.initializeImageIcon("Japan")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.