idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,684,995 | public int literalIndexForModule(final char[] moduleName) {<NEW_LINE>int index;<NEW_LINE>if ((index = this.moduleCache.putIfAbsent(moduleName, this.currentIndex)) < 0) {<NEW_LINE>// The entry doesn't exit yet<NEW_LINE>this.currentIndex++;<NEW_LINE>if ((index = -index) > 0xFFFF) {<NEW_LINE>this.classFile.referenceBindin... | referenceBinding.scope.referenceType()); |
783,593 | protected JFreeChart createXyLineChart() throws JRException {<NEW_LINE>JFreeChart jfreeChart = super.createXyLineChart();<NEW_LINE>XYPlot xyPlot = (XYPlot) jfreeChart.getPlot();<NEW_LINE>XYLineAndShapeRenderer lineRenderer = (XYLineAndShapeRenderer) jfreeChart.getXYPlot().getRenderer();<NEW_LINE>XYLine3DRenderer line3D... | setURLGenerator(lineRenderer.getURLGenerator()); |
1,224,404 | public static ArrayList<Integer> a(byte[] buf, byte[] target) {<NEW_LINE>ArrayList<Integer> rets = new ArrayList<>();<NEW_LINE>int[] ret = new int[1];<NEW_LINE>ret[0] = DexFlow.arrayIndexOf(buf, target, 0, buf.length);<NEW_LINE>ret[0] = DexFlow.arrayIndexOf(buf, DexFlow.int2u4le(ret[0]), 0, buf.length);<NEW_LINE>int st... | (buf, 0x3c)) / 4; |
829,321 | protected void deleteAllCacheEntry(Set<Data> keys) {<NEW_LINE>if (isWriteThrough() && keys != null && !keys.isEmpty()) {<NEW_LINE>try (TenantControl.Closeable ctx = cacheWriter.getTenantControl().setTenant()) {<NEW_LINE>if (cacheWriter.exists()) {<NEW_LINE>Map<Object, Data> keysToDelete = createHashMap(keys.size());<NE... | throw new CacheWriterException("Exception in CacheWriter during deleteAll", e); |
281,269 | public synchronized void beep(Map<String, Integer> propertyMap, IMethodResult result) {<NEW_LINE>if (audioTrack != null) {<NEW_LINE>try {<NEW_LINE>audioTrack.stop();<NEW_LINE>} catch (IllegalStateException e) {<NEW_LINE>Logger.D(TAG, "AudioTrack did not need to be stopped here");<NEW_LINE>} finally {<NEW_LINE>audioTrac... | userDuration = propertyMap.get(HK_DURATION); |
1,628,895 | private Label iconLabel(String img, Supplier<Tag<?>> tagSupplier, NBTTreeView nbtTreeView, BorderPane treeViewHolder, Consumer<CompoundTag> consumer) {<NEW_LINE>ImageView icon = new ImageView(FileHelper.getIconFromResources(img));<NEW_LINE>Label label <MASK><NEW_LINE>icon.setPreserveRatio(true);<NEW_LINE>label.setOnMou... | = new Label("", icon); |
388,070 | public static ResolvedVariant toResolvedVariant(VariantResolveMetadata variant, ModuleVersionIdentifier ownerId, ModuleSources moduleSources, ExcludeSpec exclusions, ArtifactResolver artifactResolver, Map<ComponentArtifactIdentifier, ResolvableArtifact> allResolvedArtifacts, ImmutableAttributes variantAttributes, Calcu... | , artifactResolver, allResolvedArtifacts, calculatedValueContainerFactory)); |
1,352,537 | public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>if (args.length == 0) {<NEW_LINE>printUsage(out);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>J9JavaVMPointer vm = J9RASHelper.getVM(DataType.getJ9RASPointer());<NEW_LINE>ClassSegmen... | (J9ClassPointer) iterator.next(); |
1,096,097 | void init(ServletContext context) {<NEW_LINE>String serializedConfig = context.getInitParameter(ConfigUtils.class.getName() + ".serialized");<NEW_LINE>Objects.requireNonNull(serializedConfig);<NEW_LINE>this.config = ConfigUtils.deserialize(serializedConfig);<NEW_LINE>this.updateTopic = config.getString("oryx.update-top... | updateTopicBroker = config.getString("oryx.update-topic.broker"); |
1,712,439 | protected long freePhysTake(int size, boolean ensureAvail, boolean recursive) {<NEW_LINE>assert (structuralLock.isHeldByCurrentThread());<NEW_LINE>assert (size > 0);<NEW_LINE>// check free space<NEW_LINE>if (spaceReclaimReuse) {<NEW_LINE>long ret = longStackTake(size2ListIoRecid(size), recursive);<NEW_LINE>if (ret != 0... | physSize = roundTo16(physSize + size); |
163,420 | public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<ModelMap> allModels) {<NEW_LINE>Map<String, Object> operations = (Map<String, Object>) objs.get("operations");<NEW_LINE>List<CodegenOperation> os = (List<CodegenOperation>) operations.get("operation");<NEW_LINE>List<ExtendedCodege... | ExtendedCodegenOperation eco = new ExtendedCodegenOperation(o); |
787,705 | public void execute(JobExecutionContext arg0) {<NEW_LINE>returnValue = new ArrayList<Map>();<NEW_LINE>List<Class<?>> runOnce;<NEW_LINE>Comparator<Class<?>> comparator = new Comparator<Class<?>>() {<NEW_LINE><NEW_LINE>public int compare(Class<?> o1, Class<?> o2) {<NEW_LINE>String name = o1.getName();<NEW_LINE>String nam... | taskId = Integer.parseInt(id); |
919,698 | public void refresh(TableCell cell) {<NEW_LINE>DownloadManager dm = <MASK><NEW_LINE>if (cell.isValid() && map.containsKey(dm)) {<NEW_LINE>long lNextUpdate = map.get(dm);<NEW_LINE>if (SystemTime.getMonotonousTime() < lNextUpdate) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>long value = (dm == null) ? 0 : dm.getTra... | (DownloadManager) cell.getDataSource(); |
760,465 | final DescribeTransitGatewaysResult executeDescribeTransitGateways(DescribeTransitGatewaysRequest describeTransitGatewaysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTransitGatewaysRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,209,440 | public static void drawLine(double x1, double y1, double z1, double x2, double y2, double z2) {<NEW_LINE>double vpX = renderManager.viewerPosX;<NEW_LINE>double vpY = renderManager.viewerPosY;<NEW_LINE>double vpZ = renderManager.viewerPosZ;<NEW_LINE>boolean renderPathAsFrickinThingy = !settings.renderPathAsLine.value;<N... | 0.5D - vpZ).endVertex(); |
1,016,940 | protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException {<NEW_LINE>super.prepareFileTypeAnalyzer(engine);<NEW_LINE>if (!isEnabled()) {<NEW_LINE>LOGGER.debug("{} Analyzer is disabled skipping yarn executable check", getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final List<String> args = n... | Process process = builder.start(); |
1,280,507 | public void restoreInstanceState(@NonNull Bundle state) {<NEW_LINE>int checkedItem = state.getInt(STATE_CHECKED_ITEM, 0);<NEW_LINE>if (checkedItem != 0) {<NEW_LINE>updateSuspended = true;<NEW_LINE>for (int i = 0, size = items.size(); i < size; i++) {<NEW_LINE>NavigationMenuItem item = items.get(i);<NEW_LINE>if (item in... | NavigationMenuTextItem) navigationMenuItem).getMenuItem(); |
1,181,123 | private void putPlaceOrPublisherOrDate(Map<Field, String> fields, String elementName, Object object) {<NEW_LINE>Optional<IssuanceDefinition> issuanceDefinition = getElement(object, IssuanceDefinition.class);<NEW_LINE>Optional<PlaceDefinition> placeDefinition = getElement(object, PlaceDefinition.class);<NEW_LINE>Optiona... | places = new ArrayList<>(); |
797,359 | private static void logStats(Collection<? extends IndexResult> result, boolean hit, String... fieldsToLoad) {<NEW_LINE>if (!LOG.isLoggable(Level.FINEST)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int size = 0;<NEW_LINE>for (String field : fieldsToLoad) {<NEW_LINE>for (IndexResult r : result) {<NEW_LINE>String val = r.getV... | ": " + entry.getValue()); |
1,569,879 | /* This method implements the cyclic sort recursive version<NEW_LINE>* @param array The array to be sorted<NEW_LINE>* @param the left boundary of the part currently being sorted<NEW_LINE>* @param the right boundary of the part currently being sorted<NEW_LINE>*/<NEW_LINE>private <T extends Comparable<T>> Boolean doSort(... | doSort(array, left, mid); |
881,591 | void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_vvvv + Register.ZMM0);<NEW_LINE>int sss = decoder.getSss();<NEW_LINE>if (decoder.state_mod == 3) {<NEW_LINE>instruction.setOp1Register(decoder.state_rm + decoder.state_extraBaseR... | setMvexRegMemConv(MvexRegMemConv.MEM_CONV_NONE + sss); |
863,368 | public WorkflowGraph unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WorkflowGraph workflowGraph = new WorkflowGraph();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
1,466,170 | public Expression expression(TableSchema<?> tableSchema, String indexName) {<NEW_LINE>QueryConditionalKeyValues queryConditionalKeyValues1 = QueryConditionalKeyValues.from(key1, tableSchema, indexName);<NEW_LINE>QueryConditionalKeyValues queryConditionalKeyValues2 = QueryConditionalKeyValues.from(key2, tableSchema, ind... | sortKeyValueToken1, queryConditionalKeyValues1.sortValue()); |
1,737,109 | private void writeConfigureMethod(ClassVisitor visitor, Type generatedType, ModelProperty<?> property, boolean writable) {<NEW_LINE>if (!writable && property.getSchema() instanceof CompositeSchema) {<NEW_LINE>// Adds a void $propName(Closure<?> cl) method that delegates to model state<NEW_LINE>MethodVisitor methodVisit... | ANEWARRAY, OBJECT_TYPE.getInternalName()); |
188,532 | public Dialog createView(@NonNull AlertDialog fragment, @NonNull Bundle args) {<NEW_LINE>AppCompatDialog appCompatDialog = new AppCompatDialog(fragment.getContext());<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(fragment.getContext());<NEW_LINE>View root = inflater.inflate(fragment.getLayoutId(), null, false)... | findViewById(R.id.title); |
1,261,413 | // search related extensions<NEW_LINE>private void buildSearchIndex() {<NEW_LINE>synchronized (searchIndex) {<NEW_LINE>if (searchIndex.size() > 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final ArrayList<BasePreferenceFragment> fragments = new ArrayList<>();<NEW_LINE>fragments.add(new PreferenceServicesFragmen... | (R.drawable.settings_map)); |
497,104 | public static void verifyOptionsEqualsHashcode(ParserOptions options1, ParserOptions options2, ParserOptions options3, ParserOptions options4) {<NEW_LINE>// Objects should be different<NEW_LINE>Assert.assertNotSame(options1, options2);<NEW_LINE>Assert.assertNotSame(options1, options2);<NEW_LINE>Assert.assertNotSame(opt... | Assert.assertNotSame(options2, options4); |
965,055 | public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {<NEW_LINE>if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE && viewHolder instanceof MapMarkerItemViewHolder) {<NEW_LINE>OsmandApplication app = mapActivi... | dX, dY, actionState, isCurrentlyActive); |
115,440 | public void main() {<NEW_LINE>RVec4 color = (RVec4) getGlobal(DefaultShaderVar.G_COLOR);<NEW_LINE>RVec3 eyeDir = (RVec3) getGlobal(DefaultShaderVar.V_EYE_DIR);<NEW_LINE>RVec3 normal = (RVec3) getGlobal(DefaultShaderVar.G_NORMAL);<NEW_LINE>RFloat k = (RFloat) getGlobal(SpecularShaderVar.U_EXTINCTION_COEFFICIENT);<NEW_LI... | PI + " * NdotL" + i + " * nDotV)"); |
1,179,798 | public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Rbac.ClusterRoleBindingList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Rbac.ClusterRoleBindingList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_... | .alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; |
1,000,945 | public void initialize() {<NEW_LINE>listener = (viewPath, data) -> {<NEW_LINE>if (viewPath.size() != 4 || viewPath.indexOf(bisq.desktop.main.dao.bonding.BondingView.class) != 2)<NEW_LINE>return;<NEW_LINE>selectedViewClass = viewPath.tip();<NEW_LINE>loadView(selectedViewClass, data);<NEW_LINE>};<NEW_LINE>toggleGroup = n... | ), BondsView.class, baseNavPath); |
384,076 | void peerComponentShowing() {<NEW_LINE>MultiViewElement el = model.getActiveElement();<NEW_LINE>el.componentShowing();<NEW_LINE>delegatingMap.setDelegateMap(el.getVisualRepresentation().getActionMap());<NEW_LINE>assignLookup(el);<NEW_LINE>JComponent jc = el.getToolbarRepresentation();<NEW_LINE>// NOI18N<NEW_LINE>assert... | tabs.setToolbarBarVisible(isToolbarVisible()); |
340,295 | private ListMultimap<String, TextHit> query(Node subj, StrMatch match, ExecutionContext execCxt) {<NEW_LINE>String graphURI = chooseGraphURI(execCxt);<NEW_LINE><MASK><NEW_LINE>int limit = match.getQueryLimit();<NEW_LINE>String lang = match.getLang();<NEW_LINE>String highlight = match.getHighlight();<NEW_LINE>explainQue... | String qs = match.getQueryString(); |
1,730,538 | public Description matchNewClass(NewClassTree tree, VisitorState state) {<NEW_LINE>ClassTree body = tree.getClassBody();<NEW_LINE>if (body == null) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>ImmutableList<? extends Tree> members = body.getMembers().stream().filter(m -> !(m instanceof MethodTree && ASTHelpers.isGen... | ).ifPresent(description::addFix); |
1,112,461 | public static void execListAddOperation(BNewArray array, long index, BRefType refType) {<NEW_LINE>if (array.getType().getTag() != TypeTags.ARRAY_TAG) {<NEW_LINE>BValueArray bRefValueArray = (BValueArray) array;<NEW_LINE>bRefValueArray.add(index, refType);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BValueArray bValueArray = (... | double) refType.value()); |
132,302 | private // This is based heavily on the Apple sample code for dealing with this issue<NEW_LINE>void macOSXRegistration() {<NEW_LINE>if (isMacOSX()) {<NEW_LINE>try {<NEW_LINE>Class<?> osxAdapter = ClassLoader.getSystemClassLoader().loadClass("edu.stanford.nlp.trees.tregex.gui.OSXAdapter");<NEW_LINE>Class<?>[] defArgs = ... | info("This version of Mac OS X does not support the Apple EAWT. Application Menu handling has been disabled (" + e + ")"); |
258,216 | public List<GeoRadiusResponse> build(Object data) {<NEW_LINE>if (data == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<Object> objectList <MASK><NEW_LINE>List<GeoRadiusResponse> responses = new ArrayList<>(objectList.size());<NEW_LINE>if (objectList.isEmpty()) {<NEW_LINE>return responses;<NEW_LINE>}<NEW_LINE>i... | = (List<Object>) data; |
1,827,968 | protected void deserializeData(TypeSpec<K> keyType, Map<String, CompoundKey.TypeInfo> keyParts, ComplexKeySpec<?, ?> complexKeyType, ProtocolVersion version) {<NEW_LINE>DataMap dataMap = data();<NEW_LINE>final DataMap convertedData = new DataMap();<NEW_LINE>final DataMap mergedResults = new DataMap();<NEW_LINE>final Da... | entityData = inputResults.get(key); |
1,536,356 | public static void showTable(SqlShowTables sqlNode) throws SQLException {<NEW_LINE>String tableName = sqlNode.getLikePattern() != null ? sqlNode.getLikePattern().toString().replaceAll("\'", "") : "";<NEW_LINE>MetadataClient metadataClient = new MetadataClient();<NEW_LINE>List<TableValue> tableSchemas = metadataClient.g... | String[] columnNames = { "name" }; |
1,555,352 | public static int chooseAListenPort(Configuration conf) throws IOException {<NEW_LINE>String portRangeStr = conf.get(AngelConf.ANGEL_LISTEN_PORT_RANGE, AngelConf.DEFAULT_ANGEL_LISTEN_PORT_RANGE);<NEW_LINE>String[] portRangeArray = null;<NEW_LINE>int startPort = -1;<NEW_LINE>int endPort = -1;<NEW_LINE>try {<NEW_LINE>por... | AngelConf.DEFAULT_ANGEL_LISTEN_PORT_RANGE.split(","); |
190,442 | private static void extractRecordKeyPk(final String tableName, final List<String> configuredPkFields, final Schema keySchema, final Map<String, SinkRecordField> allFields, final Set<String> keyFieldNames) {<NEW_LINE>{<NEW_LINE>if (keySchema == null) {<NEW_LINE>throw new ConnectException(String.format("PK mode for table... | ("Need exactly one PK column defined since the key schema for records is a " + "primitive type, defined columns are: %s", configuredPkFields)); |
138,479 | public void processSearchCall(String query) {<NEW_LINE>final ProgressDialog dialog = new ProgressDialog(this);<NEW_LINE>dialog.setCancelable(false);<NEW_LINE>dialog.setMessage(getResources().getString<MASK><NEW_LINE>dialog.show();<NEW_LINE>AlTask.execute(new AlUserSearchTask(this, query, new AlUserSearchTask.AlUserSear... | (R.string.applozic_contacts_loading_info)); |
1,373,834 | protected void paintBackground(Graphics g) {<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE><MASK><NEW_LINE>int h = displayer.getHeight();<NEW_LINE>javax.swing.Painter painter = null;<NEW_LINE>if (displayer.isActive()) {<NEW_LINE>painter = (javax.swing.Painter) UIManager.get("TabbedPane:TabbedPaneTabArea[Enabled+Mo... | int w = displayer.getWidth(); |
1,495,099 | private void handleReportEvent(Object[] args) {<NEW_LINE>XLog.d("UsageStatsManagerInternalHooks handleReportEvent %s"<MASK><NEW_LINE>try {<NEW_LINE>int type = (int) args[2];<NEW_LINE>ComponentName component = (ComponentName) args[0];<NEW_LINE>if (type == UsageEvents.Event.MOVE_TO_BACKGROUND) {<NEW_LINE>XLog.d("UsageSta... | , Arrays.toString(args)); |
86,376 | final GetRouteResult executeGetRoute(GetRouteRequest getRouteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRouteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | invoke(request, responseHandler, executionContext); |
933,893 | // {4}, {T}: Roll a d20. Each opponent exiles cards from the top of their library until<NEW_LINE>// they exile an instant or sorcery card, then shuffles the rest into their library.<NEW_LINE>// You may cast up to X instant and/or sorcery spells from among cards exiled this way without paying their mana costs.<NEW_LINE>... | Zone.EXILED, source, game); |
393,772 | public void loadLocalMediaMessageBackward(String chatId, boolean isGroup, TUIMessageBean locateMessageInfo, IUIKitCallback<List<TUIMessageBean>> callBack) {<NEW_LINE>loadLocalMediaMessageList(chatId, isGroup, SCAN_MESSAGE_REQUEST_NUM, locateMessageInfo, TUIChatConstants.GET_MESSAGE_BACKWARD, new IUIKitCallback<List<TUI... | callBack, TAG, errCode, errMsg); |
290,050 | protected StringBuilder promptTo(String header, StringBuilder sb) {<NEW_LINE>sb.append(header).append(StringUtils.LINE_SEPARATOR).append(" calledAET: ").append(calledAET).append(StringUtils.LINE_SEPARATOR).append(" callingAET: ").append(callingAET).append(StringUtils.LINE_SEPARATOR).append(" applicationContext: ");<... | ).append(StringUtils.LINE_SEPARATOR); |
1,588,174 | private void gwFieldValueInt64V(MethodWriterContext mwc, FieldWriter fieldWriter, int OBJECT, int i, boolean jsonb) {<NEW_LINE>MethodWriter mw = mwc.mw;<NEW_LINE>String format = fieldWriter.getFormat();<NEW_LINE>String classNameType = mwc.classNameType;<NEW_LINE>int FIELD_VALUE = mwc.var(long.class);<NEW_LINE>int WRITE... | mw.visitInsn(Opcodes.DUP2); |
1,804,702 | final ListInferenceRecommendationsJobsResult executeListInferenceRecommendationsJobs(ListInferenceRecommendationsJobsRequest listInferenceRecommendationsJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInferenceRecommendationsJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
628,275 | public NfaFragment visitNumber(NumberExpression numberExpression, GrammarRule rule) {<NEW_LINE>int exprId = nextExprId();<NEW_LINE>int minNum = numberExpression.min;<NEW_LINE>int maxNum = numberExpression.max;<NEW_LINE>if (minNum < 0 || maxNum < minNum)<NEW_LINE>throw new IllegalArgumentException("Max loop number can't... | , minNum, maxNum, null)); |
381,937 | protected int runWithJob(final Namespace options, final HeliosClient client, final PrintStream out, final boolean json, final Job job, final BufferedReader stdin) throws IOException, ExecutionException, InterruptedException {<NEW_LINE>final boolean yes = options.getBoolean(yesArg.getDest());<NEW_LINE>final JobId jobId ... | getString(tokenArg.getDest()); |
105,511 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca... | error(new IllegalArgumentException("Parameter managedInstanceName is required and cannot be null.")); |
226,571 | private List<Node> toNodeSequence(String output) {<NEW_LINE>// First of all, get rid of all XML markup that HeidelTime inserts.<NEW_LINE>output = timeMLOpen.matcher(output).replaceAll("").trim();<NEW_LINE>output = timeMLClose.matcher(output).replaceAll("").trim();<NEW_LINE>// Now go through and chunk sequence into <TIM... | openMatcher = timexTagOpen.matcher(output); |
323,243 | public void read(org.apache.thrift.protocol.TProtocol iprot, BuckCacheDeleteResponse struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.typ... | skip(iprot, schemeField.type); |
1,637,907 | private static MultiHandlerDefinition findDelegates(ClassLoader classLoader) {<NEW_LINE>Iterator<HandlerDefinition> iterator = load(HandlerDefinition.class, classLoader == null ? Thread.currentThread().getContextClassLoader() : classLoader).iterator();<NEW_LINE>// noinspection WhileLoopReplaceableByForEach<NEW_LINE>fin... | definitions = new ArrayList<>(); |
367,321 | public static int HSLtoRGB(int hue, int saturation, int lightness) {<NEW_LINE>int red = 0;<NEW_LINE>int green = 0;<NEW_LINE>int blue = 0;<NEW_LINE>float hueRatio = hue / 360f;<NEW_LINE>float saturationRatio = saturation / 100f;<NEW_LINE>float lightnessRatio = lightness / 100f;<NEW_LINE>if (saturationRatio == 0) {<NEW_L... | : lightnessRatio + saturationRatio - lightnessRatio * saturationRatio; |
1,036,672 | final GetInvitationsCountResult executeGetInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInvitationsCountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
19,139 | public EGLConfig chooseConfig(final EGL10 egl, final EGLDisplay display, final EGLConfig[] configs) {<NEW_LINE>EGLConfig bestConfig = null;<NEW_LINE>int bestDepth = 0;<NEW_LINE>int bestStencil = 0;<NEW_LINE>for (final EGLConfig config : configs) {<NEW_LINE>final int d = findConfigAttrib(egl, display, config, EGL10.EGL_... | display, config, EGL10.EGL_RED_SIZE); |
1,257,997 | public static Query<List<String>> topWeaponsOfServer(long after, long before, ServerUUID serverUUID, int limit) {<NEW_LINE>String innerSQL = SELECT + KillsTable.WEAPON + ", COUNT(1) as kills" + FROM + KillsTable.TABLE_NAME + WHERE + KillsTable.SERVER_UUID + "=?" + AND + KillsTable.DATE + ">=?" + AND + KillsTable.DATE +... | statement.setLong(2, after); |
1,474,936 | public static GuidePartFactory loadGroup(XmlTag tag, Profiler prof) {<NEW_LINE>String domain = tag.get("domain");<NEW_LINE>String group = tag.get("group");<NEW_LINE>if (domain == null) {<NEW_LINE>BCLog.logger.warn("[lib.guide.loader.xml] Missing domain tag in " + tag);<NEW_LINE>}<NEW_LINE>if (group == null) {<NEW_LINE>... | GuideGroupManager.get(domain, group); |
889,831 | public okhttp3.Call call123testSpecialTagsCall(Client client, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>b... | HashMap<String, String>(); |
646,882 | // GEN-LAST:event_btnSaveActionPerformed<NEW_LINE>// GEN-FIRST:event_btnPrintActionPerformed<NEW_LINE>// GEN-FIRST:event_btnPrintActionPerformed<NEW_LINE>void // GEN-FIRST:event_btnPrintActionPerformed<NEW_LINE>btnPrintActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-HEADEREND:event_btnPrintActionPerfo... | log.error("Print error.", ex); |
735,870 | private void handleDcmp(int opcode) {<NEW_LINE>Item it = pop();<NEW_LINE>Item it2 = pop();<NEW_LINE>if ((it.getConstant() != null) && it2.getConstant() != null) {<NEW_LINE>double d = constantToDouble(it);<NEW_LINE>double d2 = constantToDouble(it2);<NEW_LINE>if (Double.isNaN(d) || Double.isNaN(d2)) {<NEW_LINE>if (opcode... | Integer.valueOf(0))); |
52,913 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("systemName"), conv... | , convLabelName("System Name"), 64); |
901,007 | public Object decode(Channel channel, String remoteIp, byte[] data) throws IOException {<NEW_LINE>if (data.length <= RpcProtocolVersion.VERSION_1.getHeaderLength()) {<NEW_LINE>throw new MotanFrameworkException("decode error: format problem", MotanErrorMsgConstant.FRAMEWORK_DECODE_ERROR);<NEW_LINE>}<NEW_LINE>short type ... | ByteUtil.bytes2short(data, 0); |
468,485 | public static void installApk(Context context, DownloadsUtil.DownloadInfo info) {<NEW_LINE>Intent installIntent = new Intent(Intent.ACTION_INSTALL_PACKAGE);<NEW_LINE>installIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_LINE>Uri uri;<NEW_LINE>if (Build.VERSION.SDK_INT >= 24) {<NEW_LINE>uri = FileProvider.getUriFor... | setDataAndType(uri, DownloadsUtil.MIME_TYPE_APK); |
658,169 | public void init(FilterConfig config) throws ServletException {<NEW_LINE>String associatePeriod = config.getInitParameter("associatePeriod");<NEW_LINE>if (associatePeriod != null)<NEW_LINE>_associatePeriod = Long.parseLong(associatePeriod);<NEW_LINE>String maxAssociations = config.getInitParameter("maxAssociations");<N... | config.getFilterName(), this); |
260,479 | public Page<Article> search(String keyword, int pageNum, int pageSize) {<NEW_LINE>BoolQueryBuilder boolQueryBuilder = new BoolQueryBuilder();<NEW_LINE>boolQueryBuilder.should(new MatchQueryBuilder("title", keyword));<NEW_LINE>boolQueryBuilder.should(new MatchQueryBuilder("content", keyword));<NEW_LINE>SearchSourceBuild... | e.toString(), e); |
205,380 | public static void fitToScreen(Rectangle r) {<NEW_LINE>Rectangle screen = getScreenRectangle(<MASK><NEW_LINE>int xOverdraft = r.x + r.width - screen.x - screen.width;<NEW_LINE>if (xOverdraft > 0) {<NEW_LINE>int shift = Math.min(xOverdraft, r.x - screen.x);<NEW_LINE>xOverdraft -= shift;<NEW_LINE>r.x -= shift;<NEW_LINE>i... | r.x, r.y); |
358,685 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>sourcePanel = new javax.swing.JPanel();<NEW_LINE>sourceInfoPanel = new javax.swing.JPanel();<NEW_LINE>sourceNamePanel = <MASK><NEW_LINE>sourceNameLabel = new javax.swing.JLabel();<... | new javax.swing.JPanel(); |
1,215,284 | protected ProcessInstanceBatchMigrationPartResult convertFromBatchPart(BatchPart batchPart, ObjectMapper objectMapper) {<NEW_LINE>ProcessInstanceBatchMigrationPartResult partResult = new ProcessInstanceBatchMigrationPartResult();<NEW_LINE>partResult.setBatchId(batchPart.getId());<NEW_LINE>partResult.setProcessInstanceI... | (processEngineConfiguration.getEngineCfgKey())); |
1,819,669 | public Set<String> parse(String s) {<NEW_LINE>Set<String> result = new HashSet<>();<NEW_LINE>StringBuilder currentToken = new StringBuilder();<NEW_LINE>boolean inEscapeMode = false;<NEW_LINE>for (int i = 0; i < s.length(); i++) {<NEW_LINE>if (inEscapeMode) {<NEW_LINE>inEscapeMode = false;<NEW_LINE>currentToken.append(s... | add(currentToken.toString()); |
1,340,248 | public static void grayToBuffered(GrayF32 src, DataBufferByte buffer, WritableRaster dst) {<NEW_LINE>final float[] srcData = src.data;<NEW_LINE>final byte[] dstData = buffer.getData();<NEW_LINE>final int numBands = dst.getNumBands();<NEW_LINE>if (numBands == 3) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, ... | = (byte) srcData[indexSrc]; |
1,517,742 | public static String utf8SubString_old(String str, int len) {<NEW_LINE>if (len < 0 || StringUtils.isEmpty(str) || utf8Length(str) <= len) {<NEW_LINE>return str;<NEW_LINE>}<NEW_LINE>byte[] bs = ArrayUtils.subarray(str.getBytes(Charset.forName("UTF-8")), 0, len);<NEW_LINE>String cut = new String(bs, Charset.forName("UTF-... | cut.length() - 1); |
537,231 | private void init(Map<String, String> requestMap, CompiledQueryProfile queryProfile, Map<String, Embedder> embedders, ZoneInfo zoneInfo) {<NEW_LINE>startTime = httpRequest.getJDiscRequest().creationTime(TimeUnit.MILLISECONDS);<NEW_LINE>if (queryProfile != null) {<NEW_LINE>// Move all request parameters to the query pro... | .chain(new DefaultProperties()); |
373,319 | public ObjectMatrix3D assign(Object[][][] values) {<NEW_LINE>if (values.length != slices)<NEW_LINE>throw new IllegalArgumentException("Must have same number of slices: slices=" + values.length + "slices()=" + slices());<NEW_LINE>for (int slice = slices; --slice >= 0; ) {<NEW_LINE>Object[][] currentSlice = values[slice]... | length + "rows()=" + rows()); |
938,674 | public AssociationStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociationStatus associationStatus = new AssociationStatus();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
1,682,335 | public static void checkForDirectoryAndTryToDownloadToTmpDirAndUnzip(String directoryName) {<NEW_LINE>String outputDirectoryPath = tmpDirPath + "/" + directoryName;<NEW_LINE>File directory = new File(outputDirectoryPath);<NEW_LINE>if (!directory.exists() || directoryIsEmpty(directory)) {<NEW_LINE>String lastName = dire... | err.println("Could not create " + directory); |
758,411 | public static BufferedImage regionsColor(GrayS32 pixelToRegion, DogArray<float[]> segmentColor, @Nullable BufferedImage output) {<NEW_LINE>if (output == null)<NEW_LINE>output = new BufferedImage(pixelToRegion.width, pixelToRegion.height, BufferedImage.TYPE_INT_RGB);<NEW_LINE>for (int y = 0; y < pixelToRegion.height; y+... | = (int) cv[1]; |
218,453 | private void addDisallowedConstructors(TypeDeclaration node) {<NEW_LINE>TypeElement typeElement = node.getTypeElement();<NEW_LINE>TypeElement <MASK><NEW_LINE>if (// If we're not emitting constructors we don't need to disallow anything unless our<NEW_LINE>ElementUtil.isPrivateInnerType(typeElement) || superClass == null... | superClass = ElementUtil.getSuperclass(typeElement); |
1,562,577 | static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Seq<Tuple11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> crossApply(Iterable<? extends T1> iterable, Function<? super T1, ? extends Iterable<? extends T2>> function2, Function<? super T2, ? ext... | function11.apply(t))); |
355,801 | public void processUserInfo(TLRPC.User user, TLRPC.UserFull info, boolean fromCache, boolean force, int classGuid, ArrayList<Integer> pinnedMessages, HashMap<Integer, MessageObject> pinnedMessagesMap, int totalPinnedCount, boolean pinnedEndReached) {<NEW_LINE>AndroidUtilities.runOnUIThread(() -> {<NEW_LINE>if (fromCach... | put(user.id, info); |
331,812 | public final void allReduce(Object sendbuf, Object recvbuf, int count, Datatype type, Op op) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE>op.setDatatype(type);<NEW_LINE>int sendoff = 0, recvoff = 0;<NEW_LINE>boolean sdb = false, rdb = false;<NEW_LINE>if (sendbuf instanceof Buffer && !(sdb = ((Buffer) sendbuf).i... | recvoff = type.getOffset(recvbuf); |
530,357 | private String generateForOneCommand(String message) {<NEW_LINE>if (!extensionLoader.hasExtension(message)) {<NEW_LINE>return "No such command " + message;<NEW_LINE>}<NEW_LINE>TelnetHandler <MASK><NEW_LINE>Help help = handler.getClass().getAnnotation(Help.class);<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LI... | handler = extensionLoader.getExtension(message); |
1,537,200 | // Handle show resources<NEW_LINE>private void handleShowResources() {<NEW_LINE>ShowResourcesStmt showStmt = (ShowResourcesStmt) stmt;<NEW_LINE>List<List<Comparable>> resourcesInfos = Env.getCurrentEnv().getResourceMgr().getResourcesInfo(showStmt.getNameValue(), showStmt.isAccurateMatch(), showStmt.getTypeSet());<NEW_L... | List<Comparable>>(0); |
1,124,218 | // XXX should be moved into the GeneratorUtils:<NEW_LINE>private static BlockTree createDefaultMethodBody(WorkingCopy wc, TreePath targetTree, TypeMirror returnType, String name) {<NEW_LINE>TreeUtilities tu = wc.getTreeUtilities();<NEW_LINE>TypeElement targetClazz = (TypeElement) wc.getTrees().getElement(targetTree);<N... | members.get(0))); |
1,510,366 | public void map(InfoMap infoMap) {<NEW_LINE>infoMap.put(new Info("std::set<std::string>").pointerTypes("StringSet").define());<NEW_LINE>infoMap.put(new Info("std::list<std::string>").pointerTypes("StringList").define());<NEW_LINE>infoMap.put(new Info("std::list<modsecurity::RuleMessage>").pointerTypes<MASK><NEW_LINE>in... | ("RuleMessageList").define()); |
1,238,727 | protected RemoteOperationResult run(OwnCloudClient client) {<NEW_LINE>RemoteOperationResult result = null;<NEW_LINE>RemoteOperation operation;<NEW_LINE>if (MimeTypeUtil.isImage(fileToRemove.getMimeType())) {<NEW_LINE>// store resized image<NEW_LINE>ThumbnailsCacheManager.generateResizedImage(fileToRemove);<NEW_LINE>}<N... | (fileToRemove, true, true)); |
199,720 | public void verify(Component component, JRVerifier verifier) {<NEW_LINE>ListComponent listComponent = (ListComponent) component;<NEW_LINE>JRDatasetRun datasetRun = listComponent.getDatasetRun();<NEW_LINE>if (datasetRun == null) {<NEW_LINE>verifier.addBrokenRule("No list subdataset run set", listComponent);<NEW_LINE>} e... | Boolean listIgnoreWidth = listComponent.getIgnoreWidth(); |
583,710 | private List<Work> listWork(EntityManagerContainer emc, Date threshold, String sequence) throws Exception {<NEW_LINE>EntityManager em = emc.get(Work.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root<Work> root = cq.from(Work.clas... | list = new ArrayList<>(); |
1,515,367 | /*<NEW_LINE>* Generate artificial tangent for un-textured face<NEW_LINE>*/<NEW_LINE>static void generateTB(Vec3f v0, Vec3f v1, Vec3f v2, Vec3f[] ntb) {<NEW_LINE>MeshTempState instance = MeshTempState.getInstance();<NEW_LINE>Vec3f a = instance.vec3f1;<NEW_LINE><MASK><NEW_LINE>Vec3f b = instance.vec3f2;<NEW_LINE>b.sub(v2... | a.sub(v1, v0); |
824,491 | private void initEntityClass() {<NEW_LINE>if (from == null) {<NEW_LINE>throw new JPQLParseException("Bad query format FROM clause is mandatory for SELECT queries");<NEW_LINE>}<NEW_LINE>String[] fromArray = from.split(" ");<NEW_LINE>if (!this.isDeleteUpdate) {<NEW_LINE>if (fromArray.length == 3 && fromArray[1].equalsIgn... | this.entityName = fromArray[0]; |
1,714,174 | private void updateView(NeededMapsVH holder) {<NEW_LINE>boolean paidVersion = Version.isPaidVersion(app);<NEW_LINE>for (int i = 0; i < items.size(); i++) {<NEW_LINE>IndexItem item = items.get(i);<NEW_LINE>boolean downloading = downloadThread.isDownloading(item);<NEW_LINE>boolean currentDownloading = downloading && down... | View.GONE : View.VISIBLE); |
1,616,211 | public AuthConfig updateAuthConfig(AuthConfig body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling updateAut... | HashMap<String, String>(); |
510,702 | private static void processCommandOutput(Process process, Processor<String> processor, boolean skipFirstLine, boolean throwOnError) throws IOException {<NEW_LINE>BufferedReader stdOutput = new BufferedReader(new InputStreamReader(process.getInputStream()));<NEW_LINE>try {<NEW_LINE>BufferedReader stdError = new Buffered... | (process.getErrorStream())); |
401,353 | public void handle(AnnotationValues<NoArgsConstructor> annotation, JCAnnotation ast, JavacNode annotationNode) {<NEW_LINE>handleFlagUsage(annotationNode, ConfigurationKeys.NO_ARGS_CONSTRUCTOR_FLAG_USAGE, "@NoArgsConstructor", ConfigurationKeys.ANY_CONSTRUCTOR_FLAG_USAGE, "any @xArgsConstructor");<NEW_LINE>deleteAnnotat... | ast, "onConstructor", "@NoArgsConstructor(onConstructor", annotationNode); |
762,283 | public void addExtensionFactory(ExtensionFactory factory) {<NEW_LINE>List l = factory.getPatternList();<NEW_LINE>Iterator it = l.iterator();<NEW_LINE>StringBuilder mapStr = new StringBuilder(' ');<NEW_LINE>while (it.hasNext()) {<NEW_LINE>String mapping = (String) it.next();<NEW_LINE>mapStr.append(mapping);<NEW_LINE>map... | .DynamicVirtualHost) vhosts.next(); |
1,624,343 | private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>plafName = new javax.swing.JLabel();<NEW_LINE>plafNameValue = new javax.swing.JTextField();<NEW_LINE>filler = new javax.s... | 0, 0, 0, 12); |
637,493 | void createFromTemplate(boolean iconBlock) {<NEW_LINE>// NOI18N ;<NEW_LINE>FileObject foTemplates = FileUtil.getConfigFile("Templates");<NEW_LINE>if (foTemplates == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>FileObject foClassTemplates = foTemplates.getFileObject("Beans");<NEW_LINE>if (foClassTempl... | foClassTemplates.getFileObject("BeanInfo", "java"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.