idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
971,861 | public MatrixReport queryHourlyReport(String domain, Date start, Date end) {<NEW_LINE>MatrixReportMerger merger = new <MASK><NEW_LINE>long startTime = start.getTime();<NEW_LINE>long endTime = end.getTime();<NEW_LINE>String name = MatrixAnalyzer.ID;<NEW_LINE>for (; startTime < endTime; startTime = startTime + TimeHelper... | MatrixReportMerger(new MatrixReport(domain)); |
522,602 | public WhereClause toBoundWhereClause(DocTableInfo table, Row params, SubQueryResults subQueryResults, CoordinatorTxnCtx txnCtx, NodeContext nodeCtx) {<NEW_LINE>if (docKeys != null) {<NEW_LINE>throw new IllegalStateException(getClass().getSimpleName() + " must not be converted to a WhereClause if docKeys are present");... | (binder.apply(clusteredByValue)); |
1,373,067 | private GroupManager.GroupActionResult commitChangeWithConflictResolution(@NonNull GroupChange.Actions.Builder change, boolean allowWhenBlocked) throws GroupChangeFailedException, GroupNotAMemberException, GroupInsufficientRightsException, IOException {<NEW_LINE>change.setSourceUuid(UuidUtil.toByteString(selfAci.uuid()... | threads().getOrCreateThreadIdFor(groupRecipient); |
1,336,931 | @Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON_WITH_CHARSET)<NEW_LINE>public String post(@Context GraphManager manager, @PathParam("graph") String graph, Request request) {<NEW_LINE>E.checkArgumentNotNull(request, "The request body can't be null");<NEW_LINE>E.checkArgumentNotNull(request.sources, "The ... | request.limit, request.withVertex); |
593,092 | private void processExample(Example ex) {<NEW_LINE>File inPath = new File(opts.filtererInputDumpDirectory, ex.id + ".gz");<NEW_LINE>File outPath = new File(Execution.getFile("filtered"), ex.id + ".gz");<NEW_LINE>try {<NEW_LINE>BufferedReader reader = IOUtils.openInHard(inPath);<NEW_LINE>PrintWriter writer = IOUtils.ope... | int inLines = 0, outLines = 0; |
738,723 | private static void addValue(StringBuilder buf, Object value, boolean addLinks) throws URISyntaxException {<NEW_LINE>// Note: To be bug-compatible with Javadoc from Java 5/6/7, we currently don't escape HTML tags in String-valued annotations.<NEW_LINE>if (value instanceof ITypeBinding) {<NEW_LINE>ITypeBinding typeBindi... | IJavaElement type = typeBinding.getJavaElement(); |
1,308,363 | public static DescribeGWSInstancesResponse unmarshall(DescribeGWSInstancesResponse describeGWSInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGWSInstancesResponse.setRequestId(_ctx.stringValue("DescribeGWSInstancesResponse.RequestId"));<NEW_LINE>describeGWSInstancesResponse.setTotalCount<MASK><NEW_LINE>... | (_ctx.integerValue("DescribeGWSInstancesResponse.TotalCount")); |
297,133 | public List<SequenceRecord> loadSequenceFromMetaData(List<RecordMetaData> recordMetaDatas) throws IOException {<NEW_LINE>Set<Integer> toLoad = new LinkedHashSet<>();<NEW_LINE>for (RecordMetaData recordMetaData : recordMetaDatas) {<NEW_LINE>if (!(recordMetaData instanceof RecordMetaDataIndex)) {<NEW_LINE>throw new Illeg... | > iter = original.iterator(); |
386,507 | public static void horizontal(GrayU16 src, GrayF32 dst) {<NEW_LINE>if (src.width < dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must be >= dst width");<NEW_LINE>if (src.height != dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must equal dst height");<NEW_LINE>float scale = src.... | 1.0f - (srcX0 - isrcX0)); |
781,839 | public com.amazonaws.services.forecast.model.ResourceInUseException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.forecast.model.ResourceInUseException resourceInUseException = new com.amazonaws.services.forecast.model.ResourceInUseException(null);<NEW_LINE><M... | int originalDepth = context.getCurrentDepth(); |
496,996 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, NativeType.S... | TypeAlias.time_t, NativeType.SLONG); |
1,609,545 | final GetReplicationSetResult executeGetReplicationSet(GetReplicationSetRequest getReplicationSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getReplicationSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetReplicationSet"); |
642,408 | private boolean isSafeValue(Scope scope, Node argument) {<NEW_LINE>if (NodeUtil.isSomeCompileTimeConstStringValue(argument)) {<NEW_LINE>return true;<NEW_LINE>} else if (argument.isTemplateLit()) {<NEW_LINE>// Each templateLit child is either a TemplateLitString, or has children which are substituted<NEW_LINE>for (Node ... | String name = argument.getString(); |
698,543 | protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item) {<NEW_LINE>super.onBindRowViewHolder(holder, item);<NEW_LINE>MyDetailsOverviewRow row = (MyDetailsOverviewRow) item;<NEW_LINE>ViewHolder vh = (ViewHolder) holder;<NEW_LINE>setTitle(row.getItem().getName());<NEW_LINE>InfoLayoutHelper.addInfo... | vh.mProgress.setProgress(progress); |
1,144,376 | public void serialize(ErrorResource value, JsonGenerator gen, SerializerProvider serializers) throws IOException, JsonProcessingException {<NEW_LINE>Map<String, List<String>> <MASK><NEW_LINE>gen.writeStartObject();<NEW_LINE>gen.writeObjectFieldStart("errors");<NEW_LINE>for (FieldErrorResource fieldErrorResource : value... | json = new HashMap<>(); |
968,088 | public void marshall(Workload workload, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workload == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(workload.getWorkloadId(), WORKLOADID_BINDING);<NEW_LINE>prot... | workload.getNotes(), NOTES_BINDING); |
727,327 | private <T> void genCreateObject(MethodWriter mw, String classNameType, String TYPE_OBJECT, int FEATURES, boolean fieldBased) {<NEW_LINE>final int JSON_READER = 1;<NEW_LINE>if (fieldBased) {<NEW_LINE>mw.visitVarInsn(Opcodes.ALOAD, THIS);<NEW_LINE>mw.<MASK><NEW_LINE>mw.visitVarInsn(Opcodes.LLOAD, FEATURES);<NEW_LINE>mw.... | visitVarInsn(Opcodes.ALOAD, JSON_READER); |
1,336,762 | protected boolean compileRulesGroovy(Ruleset ruleset, Assets assetsFacade, Users usersFacade, Notifications notificationFacade, HistoricDatapoints historicDatapointsFacade, PredictedDatapoints predictedDatapointsFacade) {<NEW_LINE>try {<NEW_LINE>// TODO Implement sandbox<NEW_LINE>// new DenyAll().register();<NEW_LINE>S... | binding.setVariable("notifications", notificationFacade); |
605,227 | final ListPoliciesGrantingServiceAccessResult executeListPoliciesGrantingServiceAccess(ListPoliciesGrantingServiceAccessRequest listPoliciesGrantingServiceAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPoliciesGrantingServiceAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
169,670 | private com.squareup.okhttp.Call policiesMediationMediationPolicyIdPutValidateBeforeCall(String mediationPolicyId, Mediation body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequest... | ifMatch, ifUnmodifiedSince, progressListener, progressRequestListener); |
1,177,084 | public com.amazonaws.services.timestreamquery.model.InvalidEndpointException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.timestreamquery.model.InvalidEndpointException invalidEndpointException = new com.amazonaws.services.timestreamquery.model.InvalidEndpoin... | JsonToken token = context.getCurrentToken(); |
835,039 | private static float[] deriveRotationAnchorOffsets(Graphics2D g2, AttributedString text, TextAnchor anchor) {<NEW_LINE>float[] result = new float[2];<NEW_LINE>TextLayout layout = new TextLayout(text.getIterator(), g2.getFontRenderContext());<NEW_LINE>Rectangle2D bounds = layout.getBounds();<NEW_LINE>float ascent = layo... | ) bounds.getWidth() / 2.0f; |
574,159 | final ListMeetingsResult executeListMeetings(ListMeetingsRequest listMeetingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMeetingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,246,361 | private ImmutableMap<String, Object> createEnvironment(ModuleSet moduleSet, Supplier<ImmutableMap<String, ConfigFile>> configFilesSupplier) {<NEW_LINE>Map<String, Object> env = Maps.newHashMap();<NEW_LINE>for (Entry<String, Object> module : moduleSet.getModules().entrySet()) {<NEW_LINE>logger.atInfo().log("Creating var... | "Creating variable for %s", module.getName()); |
978,341 | private void deleteQueries() {<NEW_LINE>TreePath[] selection = savedTree.getSelectionPaths();<NEW_LINE>if (supportsDelete(selection)) {<NEW_LINE>DefaultMutableTreeNode otherNode = node(savedTree.getLeadSelectionPath()).getPreviousSibling();<NEW_LINE>if (otherNode == null)<NEW_LINE>otherNode = node(savedTree.getAnchorSe... | .removeNodeFromParent(node(path)); |
752,723 | public ActionNotificationExportEntity postActionNotificationExports(ActionNotificationExportsBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/action_notification_exports";<NEW_LINE>// query params<NEW_LINE>List<Pair> loc... | localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
72,419 | private ArrayList<Object> toArrayList(ReadableArray readableArray) {<NEW_LINE>ArrayList<Object> arrayList = new ArrayList<>();<NEW_LINE>for (int i = 0; i < readableArray.size(); i++) {<NEW_LINE>switch(readableArray.getType(i)) {<NEW_LINE>case Null:<NEW_LINE>arrayList.add(null);<NEW_LINE>break;<NEW_LINE>case Boolean:<NE... | IllegalArgumentException("Could not convert object at index: " + i + "."); |
573,686 | final void updateNodes(List<IssueImpl> tasks) {<NEW_LINE>synchronized (LOCK) {<NEW_LINE><MASK><NEW_LINE>AppliedFilters<TaskNode> appliedFilters = dashboard.getAppliedTaskFilters();<NEW_LINE>removeTaskListeners();<NEW_LINE>if (taskListener == null) {<NEW_LINE>taskListener = new TaskListener();<NEW_LINE>}<NEW_LINE>if (ta... | DashboardViewer dashboard = DashboardViewer.getInstance(); |
1,441,510 | public Order placeOrder(Order body) 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 placeOrder");<NEW_LINE>}<NEW_LINE>// create pat... | localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); |
522,245 | public void onSessionResumed(Session session, boolean wasSuspended) {<NEW_LINE>mCastSession = CastContext.getSharedInstance(BaseActivity.this).getSessionManager().getCurrentCastSession();<NEW_LINE>Runnable r = () -> {<NEW_LINE>if (mCastSession.getRemoteMediaClient().getPlayerState() != MediaStatus.PLAYER_STATE_IDLE) {<... | != MediaStatus.PLAYER_STATE_IDLE ? 0 : 500; |
367,465 | public DescribeDatasetResult describeDataset(DescribeDatasetRequest describeDatasetRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDatasetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
790,244 | public Optional<ColumnProjectionSegment> convertToSQLSegment(final SqlNode sqlNode) {<NEW_LINE>if (sqlNode instanceof SqlBasicCall) {<NEW_LINE>List<SqlNode> operands = ((<MASK><NEW_LINE>Optional<ColumnSegment> columnSegment = new ColumnConverter().convertToSQLSegment((SqlIdentifier) operands.get(0));<NEW_LINE>if (!colu... | SqlBasicCall) sqlNode).getOperandList(); |
547,011 | void scan() {<NEW_LINE>List<VirtualFile> workQueue = myWorkQueue;<NEW_LINE>myWorkQueue = new ArrayList<>();<NEW_LINE>// shallow sync refresh (e.g. project config files on open)<NEW_LINE>boolean forceRefresh = !myIsRecursive && !myIsAsync;<NEW_LINE>if (!workQueue.isEmpty()) {<NEW_LINE>LocalFileSystem fs = LocalFileSyste... | ) fs).markSuspiciousFilesDirty(workQueue); |
1,185,236 | private void writeEmbeddedMap(BytesContainer bytes, Map<Object, Object> map) {<NEW_LINE><MASK><NEW_LINE>OVarIntSerializer.write(bytes, map.size());<NEW_LINE>for (Object f : fieldNames) {<NEW_LINE>if (!(f instanceof String)) {<NEW_LINE>throw new OSerializationException("Invalid key type for map: " + f + " (only Strings ... | Set fieldNames = map.keySet(); |
227,050 | public void onAttach() {<NEW_LINE>fileExplorerSearchEt = findViewById(R.id.fileExplorerSearchEt);<NEW_LINE>fileExplorerRv = findViewById(R.id.fileExplorerRv);<NEW_LINE>if (FileItem.isEmptyItems(mSrcItems)) {<NEW_LINE>fileExplorerSearchEt.setVisibility(GONE);<NEW_LINE>}<NEW_LINE>mAdapter = new BaseItemAdapter<>();<NEW_L... | , R.drawable.du_shape_file_divider)); |
1,658,548 | public static XSourcePositionImpl createByElement(@Nullable PsiElement element) {<NEW_LINE>if (element == null)<NEW_LINE>return null;<NEW_LINE>PsiFile psiFile = element.getContainingFile();<NEW_LINE>if (psiFile == null)<NEW_LINE>return null;<NEW_LINE>final VirtualFile file = psiFile.getVirtualFile();<NEW_LINE>if (file ... | getValue().createNavigatable(project); |
804,744 | public void registerModuleFunctions(final LicenseManager licenseManager) {<NEW_LINE>Functions.put(licenseManager, new MailBeginFunction(this));<NEW_LINE>Functions.put(licenseManager, new MailSetFromFunction(this));<NEW_LINE>Functions.put(licenseManager, new MailSetSubjectFunction(this));<NEW_LINE>Functions.put(licenseM... | licenseManager, new MailClearToFunction(this)); |
1,150,105 | public void encodeColumnFooter(FacesContext context, DataTable table, UIColumn column) throws IOException {<NEW_LINE>if (!column.isRendered()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ColumnMeta columnMeta = table.getColumnMeta().get(column.getColumnKey());<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NE... | String style = column.getStyle(); |
145,482 | private Mono<Response<Flux<ByteBuffer>>> assessPatchesWithResponseAsync(String resourceGroupName, String vmName, 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 null."));<NEW_LINE>... | getSubscriptionId(), accept, context); |
227,705 | public static ListClusterMembersResponse unmarshall(ListClusterMembersResponse listClusterMembersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClusterMembersResponse.setRequestId(_ctx.stringValue("ListClusterMembersResponse.RequestId"));<NEW_LINE>listClusterMembersResponse.setCode(_ctx.integerValue("ListClusterMem... | ("ListClusterMembersResponse.ClusterMemberPage.ClusterMemberList[" + i + "].UpdateTime")); |
1,689,922 | public List<Assignment> rebalance(List<Assignment> currentAssignments, Set<String> workers) {<NEW_LINE>Map<String, List<Instance>> workerToAssignmentMap = new HashMap<>();<NEW_LINE>workers.forEach(workerId -> workerToAssignmentMap.put(workerId, new LinkedList<>()));<NEW_LINE>currentAssignments.forEach(assignment -> wor... | Instance instance = src.poll(); |
230,004 | private void init(EditorPatternButton imgBtn, JLabel msgApplied) {<NEW_LINE>_imgBtn = imgBtn;<NEW_LINE>JLabel lblPath = new JLabel(_I("lblPath"));<NEW_LINE>JLabel lblFilename = new JLabel(_I("lblFilename"));<NEW_LINE>String filename = _imgBtn.getFilename();<NEW_LINE>File f = new File(filename);<NEW_LINE>String fullpath... | 0, 10, 20, 10); |
879,939 | public okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace... | localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
1,764,317 | public void marshall(Fragment fragment, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (fragment.getFragmentNumber() != null) {<NEW_LINE>String fragmentNumber = fragment.getFragmentNumber();<NEW_LINE>jsonWriter.name("FragmentNumber");<NEW_LINE>jsonWriter.value(fragmentNumber... | Date serverTimestamp = fragment.getServerTimestamp(); |
430,841 | private static Vector apply(CompLongDoubleVector v1, LongLongVector v2, Binary op) {<NEW_LINE>LongDoubleVector[<MASK><NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getStorage() instanceof Lon... | ] parts = v1.getPartitions(); |
1,608,956 | public RedisFuture<List<KeyValue<K, V>>> mget(Iterable<K> keys) {<NEW_LINE>Map<Integer, List<K>> partitioned = SlotHash.partition(codec, keys);<NEW_LINE>if (partitioned.size() < 2) {<NEW_LINE>return super.mget(keys);<NEW_LINE>}<NEW_LINE>// For a given partition, maps the key to its index within the List<K> in partition... | (slot).get(opKey); |
1,559,324 | public static List<Interval> toIntervals(final RangeSet<Long> rangeSet) {<NEW_LINE>final List<Interval> retVal = new ArrayList<>();<NEW_LINE>for (Range<Long> range : rangeSet.asRanges()) {<NEW_LINE>final long start;<NEW_LINE>final long end;<NEW_LINE>if (range.hasLowerBound()) {<NEW_LINE>final long millis = range.lowerE... | BoundType.OPEN ? 1 : 0); |
1,424,125 | private int hashValue(int ordinal, int fieldIdx) {<NEW_LINE>int lastFieldPath = fieldPathIndexes[fieldIdx].length - 1;<NEW_LINE>for (int i = 0; i < lastFieldPath; i++) {<NEW_LINE>int fieldPosition = fieldPathIndexes[fieldIdx][i];<NEW_LINE>ByteArrayOrdinalMap ordinalMap = typeStates[fieldIdx][i].ordinalMap;<NEW_LINE>lon... | ), fieldPosition, recordDataArray, offset); |
1,046,496 | /*<NEW_LINE>* Get possible tags for a given prefix.<NEW_LINE>*/<NEW_LINE>private char[][][] possibleTags(char[] prefix, boolean newLine) {<NEW_LINE>char[][][] possibleTags = new <MASK><NEW_LINE>if (newLine) {<NEW_LINE>System.arraycopy(this.levelTags[BLOCK_IDX], 0, possibleTags[BLOCK_IDX] = new char[this.levelTagsLength... | char[2][][]; |
622,979 | private void addAccessor(ThreadContext context, RubySymbol identifier, Visibility visibility, boolean readable, boolean writeable) {<NEW_LINE><MASK><NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>if (visibility == MODULE_FUNCTION) {<NEW_LINE>runtime.getWarnings().warn(ID.ACCESSOR_MODULE_FUNCTION, "attribute ac... | String internedIdentifier = identifier.idString(); |
604,988 | final UpdateTrainingJobResult executeUpdateTrainingJob(UpdateTrainingJobRequest updateTrainingJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTrainingJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
469,923 | public void applyChanges() {<NEW_LINE>trace.setName(nameText.getText());<NEW_LINE>trace.setXAxis(xyGraph.getXAxisList().get(xAxisCombo.getSelectionIndex()));<NEW_LINE>trace.setYAxis(xyGraph.getYAxisList().get(yAxisCombo.getSelectionIndex()));<NEW_LINE>trace.setTraceColor(XYGraphMediaFactory.getInstance().getColor(trace... | [xErrorBarTypeCombo.getSelectionIndex()]); |
1,374,250 | static boolean matches(final String val, final String pattern, final Optional<Character> escape) {<NEW_LINE>final StringBuilder regex = new StringBuilder();<NEW_LINE>final char[] chars = pattern.toCharArray();<NEW_LINE>boolean escaped = false;<NEW_LINE>// start of a plain-text portion of the pattern<NEW_LINE>int start ... | pattern, start, i, regex); |
1,055,082 | private void loadNode250() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.NetworkGroupDataType_Encoding_DefaultXml, new QualifiedName(0, "Default XML"), new LocalizedText("en", "Default XML"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0)<MASK><NEW... | , UByte.valueOf(0)); |
146,682 | private // region Search<NEW_LINE>void initSearch(final SettingsLayoutBinding settingsLayoutBinding, final boolean restored) {<NEW_LINE>searchContainer = settingsLayoutBinding.settingsToolbarLayout.toolbar.findViewById(R.id.toolbar_search_container);<NEW_LINE>// Configure input field for search<NEW_LINE>searchEditText ... | -> runOnUiThread(this::onSearchChanged)); |
1,691,436 | private void createPreference(String Attribute, String Value, int AD_Window_ID) {<NEW_LINE>int AD_Preference_ID = <MASK><NEW_LINE>StringBuffer sqlCmd = new StringBuffer("INSERT INTO AD_Preference ");<NEW_LINE>sqlCmd.append("(AD_Preference_ID,").append(m_stdColumns).append(",");<NEW_LINE>sqlCmd.append("Attribute,Value,A... | getNextID(getAD_Client_ID(), "AD_Preference"); |
1,391,467 | public static void average(Planar<GrayU16> from, GrayU16 to) {<NEW_LINE>int numBands = from.getNumBands();<NEW_LINE>if (numBands == 1) {<NEW_LINE>to.setTo(from.getBand(0));<NEW_LINE>} else if (numBands == 3) {<NEW_LINE>GrayU16 band0 = from.getBand(0);<NEW_LINE>GrayU16 <MASK><NEW_LINE>GrayU16 band2 = from.getBand(2);<NE... | band1 = from.getBand(1); |
1,354,019 | public LambdaEndpointSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LambdaEndpointSummary lambdaEndpointSummary = new LambdaEndpointSummary();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | int originalDepth = context.getCurrentDepth(); |
992,481 | public synchronized void shortReportLineTo(PrintWriter writer) {<NEW_LINE>// queue name<NEW_LINE>writer.print(classKey);<NEW_LINE>writer.print(" ");<NEW_LINE>// precedence<NEW_LINE>writer.print(getPrecedence());<NEW_LINE>writer.print(" ");<NEW_LINE>// count of items<NEW_LINE>writer.print(Long.toString(count));<NEW_LINE... | - System.currentTimeMillis())); |
849,585 | public DoubleDBIDList reverseKNNQuery(DBIDRef id, int k) {<NEW_LINE>if (k > this.getKmax()) {<NEW_LINE>throw new IllegalArgumentException("Parameter k has to be equal or less than " + "parameter k of the MkMax-Tree!");<NEW_LINE>}<NEW_LINE>// get the candidates<NEW_LINE>ModifiableDoubleDBIDList candidates = DBIDUtil.new... | iter2.doubleValue(), cid); |
1,633,607 | public void drawU(UGraphic ug) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final FtileGeometry geo = getFtile1().calculateDimension(stringBounder);<NEW_LINE>if (geo.hasPointOut() == false)<NEW_LINE>return;<NEW_LINE>final Point2D p1 = getP1(stringBounder);<NEW_LINE>final double x1 = p1... | double y1 = p1.getY(); |
860,866 | public void write(OChannelDataOutput channel, int protocolVersion, ORecordSerializer serializer) throws IOException {<NEW_LINE>if (asynch) {<NEW_LINE>if (params == null)<NEW_LINE>result = database.command(command).execute();<NEW_LINE>else<NEW_LINE>result = database.command(command).execute(params);<NEW_LINE>// FETCHPLA... | .writeByte((byte) 0); |
372,575 | public void animateToCamera(ReadableMap camera, int duration) {<NEW_LINE>if (map == null)<NEW_LINE>return;<NEW_LINE>CameraPosition.Builder builder = new CameraPosition.<MASK><NEW_LINE>if (camera.hasKey("zoom")) {<NEW_LINE>builder.zoom((float) camera.getDouble("zoom"));<NEW_LINE>}<NEW_LINE>if (camera.hasKey("heading")) ... | Builder(map.getCameraPosition()); |
1,484,055 | public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver unused, ValueNode object) {<NEW_LINE>ValueNode objectNonNull = b.nullCheckedValue(object);<NEW_LINE>LogicNode isArray = b.add(ObjectIsArrayNode.create(objectNonNull));<NEW_LINE>GuardingNode isArrayGuard;<NEW_LINE>if (b.needsExplicitEx... | .DEFAULT)).asAlwaysArray(); |
1,326,341 | protected void buildCoordinate(GraphPayload payload, XmlBuilder b) {<NEW_LINE>int width = payload.getWidth();<NEW_LINE>int height = payload.getHeight();<NEW_LINE>int top = payload.getMarginTop();<NEW_LINE><MASK><NEW_LINE>int bottom = payload.getMarginBottom();<NEW_LINE>int right = payload.getMarginRight();<NEW_LINE>int... | int left = payload.getMarginLeft(); |
1,603,064 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String xml = (String) msg;<NEW_LINE>String id = getAttribute(xml, "id");<NEW_LINE>String data = getAttribute(xml, "data");<NEW_LINE>if (id != null && data != null) {<NEW_LINE>DeviceSession deviceSession = getDe... | , parser.nextInt(0)); |
559,583 | public void validate(final Processor<FullData, FullData> processor, final ProcessingReport report, final MessageBundle bundle, final FullData data) throws ProcessingException {<NEW_LINE>final JsonNode instance = data.getInstance().getNode();<NEW_LINE>final NodeType type = NodeType.getNodeType(instance);<NEW_LINE>final ... | (tree.setPointer(ptr)); |
214,691 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {<NEW_LINE>switch(featureID) {<NEW_LINE>case IArchimatePackage.ARCHIMATE_MODEL__FOLDERS:<NEW_LINE>return ((InternalEList<?>) getFolders()<MASK><NEW_LINE>case IArchimatePackage.ARCHIMATE_MODEL__FEATURES:<NEW_LINE>ret... | ).basicRemove(otherEnd, msgs); |
67,703 | public static void main(String[] args) throws Exception {<NEW_LINE>// download and extract a tensorflow frozen model file (usually a .pb file)<NEW_LINE>File modelFile = downloadModel();<NEW_LINE>// new tensorflow import api<NEW_LINE>TensorflowFrameworkImporter tensorflowFrameworkImporter = new TensorflowFrameworkImport... | ImageNetLabels().decodePredictions(out); |
1,398,018 | private void plotExpansions(Compilation compilation, double y, double rowHeight, Color fillColour, boolean isCompilationOfSelectedMember) {<NEW_LINE>long stampCompilationStart = compilation.getStampTaskCompilationStart();<NEW_LINE>long stampNMethodEmitted = compilation.getStampNMethodEmitted();<NEW_LINE>int nativeSize ... | Math.max(maxBytecodeSize, maxNativeSize); |
1,040,141 | public static KeyStroke derive(final KeyStroke ks, final Character keyChar) {<NEW_LINE>if (ks == null) {<NEW_LINE>return ks;<NEW_LINE>}<NEW_LINE>final int modifiers = ks.getModifiers();<NEW_LINE>if (ks.getKeyChar() == KeyEvent.CHAR_UNDEFINED) {<NEW_LINE>if (0 != (modifiers & KEY_MODIFIERS)) {<NEW_LINE>switch(keyChar) {... | KEY_MODIFIERS, ks.isOnKeyRelease()); |
1,742,040 | protected void positionAndShowDialog(Command onCompleted) {<NEW_LINE>super.center();<NEW_LINE>onCompleted.execute();<NEW_LINE>// Force the contents of the modal to be vertically scrollable<NEW_LINE>// if the height of the modal is larger than the app window<NEW_LINE>Element e = this.getElement();<NEW_LINE>Element child... | ).setProperty("overflowY", "auto"); |
1,035,235 | private void initializeView(View convertView) {<NEW_LINE>ViewHolder viewHolder = (ViewHolder) convertView.getTag();<NEW_LINE>AddOn item = viewHolder.item;<NEW_LINE>viewHolder.icon.setImageBitmap(item.getIcon());<NEW_LINE>viewHolder.title.setText(item.getTitle());<NEW_LINE>viewHolder.description.setText(item.getDescript... | market.setVisibility(View.GONE); |
1,415,784 | public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.<MASK><NEW_LINE>provider.addAlgorithm("Alg.Alias.MessageDigest." + MiscObjectIdentifiers.id_blake2s256, "BLAKE2S-256");<NEW_LINE>provider.addAlgorithm("MessageDigest.BLAKE2S-224", PREFIX + "$Blake2s224");<NEW_LINE>provider.addAlgorithm("Alg.Alias.... | addAlgorithm("MessageDigest.BLAKE2S-256", PREFIX + "$Blake2s256"); |
1,267,437 | public Subscription createSubscription(final SubscriptionBase subscriptionBase) throws InconsistentStateException, DuplicatedSubscriptionException, RepositoryProblemException {<NEW_LINE>try {<NEW_LINE>final String newId = uuidGenerator.randomUUID().toString();<NEW_LINE>final String keyFieldsHash = hashGenerator.generat... | throw new RepositoryProblemException("Error occurred when running database request", e); |
1,207,644 | private void createClasspathArgument(Commandline cmd, Path classpath) {<NEW_LINE>Argument arg = cmd.createArgument();<NEW_LINE>final String[] pathElements = classpath.list();<NEW_LINE>// empty path return empty string<NEW_LINE>if (pathElements.length == 0) {<NEW_LINE>arg.setValue(Util.EMPTY_STRING);<NEW_LINE>return;<NE... | int ruleLength = rule.length(); |
1,242,780 | public void postFrame(FrameBuffer out) {<NEW_LINE>if (capture) {<NEW_LINE>capture = false;<NEW_LINE>Camera curCamera = rm.getCurrentCamera();<NEW_LINE>int viewX = (int) (curCamera.getViewPortLeft() * curCamera.getWidth());<NEW_LINE>int viewY = (int) (curCamera.getViewPortBottom() * curCamera.getHeight());<NEW_LINE>int ... | ) * curCamera.getHeight()); |
1,417,555 | protected void performAction(Node[] activatedNodes) {<NEW_LINE>DockerTag tag = activatedNodes[0].getLookup(<MASK><NEW_LINE>if (tag != null) {<NEW_LINE>JButton tagButton = new JButton();<NEW_LINE>Mnemonics.setLocalizedText(tagButton, Bundle.LBL_Tag());<NEW_LINE>TagPanel panel = new TagPanel(tag.getImage().getInstance(),... | ).lookup(DockerTag.class); |
635,749 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>logger.debug(effectivePerson.getDistinguishedName());<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<List<Wo>... | id_FIELDNAME, View.query_FIELDNAME, "viewList"); |
1,335,018 | public List<LogEntry> deleteEntriesFrom(long entryIndex) {<NEW_LINE>if (entryIndex <= snapshotIndex()) {<NEW_LINE>throw new IllegalArgumentException(String.format("Illegal index %,d, snapshot index is %,d", entryIndex, snapshotIndex()));<NEW_LINE>}<NEW_LINE>if (entryIndex > lastLogOrSnapshotIndex()) {<NEW_LINE>throw ne... | , entryIndex, lastLogOrSnapshotIndex())); |
859,216 | public Liquibase createLiquibase() {<NEW_LINE>try (ClassLoaderResourceAccessor resourceAccessor = new ClassLoaderResourceAccessor(Thread.currentThread().getContextClassLoader())) {<NEW_LINE>String connectionString = this.<MASK><NEW_LINE>if (!HAS_DB.matcher(connectionString).matches()) {<NEW_LINE>connectionString += "/"... | mongoClientConfig.connectionString.orElse("mongodb://localhost:27017"); |
204,166 | public void init(Shell parentShell) {<NEW_LINE>shell = ShellFactory.createShell(parentShell, SWT.BORDER | SWT.TITLE | SWT.CLOSE | SWT.RESIZE);<NEW_LINE>Utils.setShellIcon(shell);<NEW_LINE>if (Constants.isOSX)<NEW_LINE>monospace = new Font(shell.getDisplay(), "Courier", 12, SWT.NORMAL);<NEW_LINE>else<NEW_LINE>monospace ... | shell.setSize(750, 500); |
36,565 | final GetTopicRuleResult executeGetTopicRule(GetTopicRuleRequest getTopicRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTopicRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
119,107 | public static PinpointZookeeperException resolve(Exception exception) {<NEW_LINE>if (exception instanceof KeeperException) {<NEW_LINE>KeeperException keeperException = (KeeperException) exception;<NEW_LINE>switch(keeperException.code()) {<NEW_LINE>case CONNECTIONLOSS:<NEW_LINE>case SESSIONEXPIRED:<NEW_LINE>return new C... | keeperException.getMessage(), keeperException); |
220,675 | private static void tryAssertionDocSampleCarEvent(RegressionEnvironment env, AtomicInteger milestone) {<NEW_LINE>String[] fields = new String[] { "name", "place", "sum(count)", "grouping(name)", "grouping(place)", "gid" };<NEW_LINE>env.sendEventBean(new SupportCarEvent("skoda", "france", 100));<NEW_LINE>env.assertProps... | ("skoda", "germany", 75)); |
1,707,013 | /*<NEW_LINE>* Load the filters contributions.<NEW_LINE>*/<NEW_LINE>private void loadFilters() {<NEW_LINE>filters = new HashMap<String, IConfigurationElement>();<NEW_LINE>EclipseUtil.processConfigurationElements(DebugCorePlugin.PLUGIN_ID, EXTENSION_POINT_ID, new IConfigurationElementProcessor() {<NEW_LINE><NEW_LINE>publ... | className = element.getAttribute(ATTR_CLASS); |
203,369 | private Map<PackageIdentifier, Collection<Target>> bulkGetTargetsInPackage(String originalPattern, Iterable<PackageIdentifier> pkgIds, FilteringPolicy policy) throws InterruptedException {<NEW_LINE>try {<NEW_LINE>Map<PackageIdentifier, Package> pkgs = bulkGetPackages(pkgIds);<NEW_LINE>if (pkgs.size() != Iterables.size(... | pkg = pkgs.get(pkgId); |
551,142 | ClusterState computeUpdatedState() {<NEW_LINE>final SnapshotsInProgress existing = currentState.custom(SnapshotsInProgress.TYPE, SnapshotsInProgress.EMPTY);<NEW_LINE>SnapshotsInProgress updated = existing;<NEW_LINE>for (Map.Entry<String, List<ShardSnapshotUpdate>> updates : updatesByRepo.entrySet()) {<NEW_LINE>final <M... | String repoName = updates.getKey(); |
999,257 | private int expandReference(final String text, final int pos, final String prefix, final StringBuilder sb) {<NEW_LINE>final int prefixLength = prefix.length();<NEW_LINE>final int end = searchTextNameEnd(text, pos + prefixLength);<NEW_LINE>final String name = text.<MASK><NEW_LINE>if (prefix.equals(PREFIX_TEXT)) {<NEW_LI... | substring(pos + prefixLength, end); |
1,244,980 | private void load(Context context, Uri uri) {<NEW_LINE>try (InputStream in = context.getContentResolver().openInputStream(uri)) {<NEW_LINE>if (in == null)<NEW_LINE>return;<NEW_LINE>Metadata metadata = ImageMetadataReader.readMetadata(in);<NEW_LINE>handleDirectoryBase(metadata.getFirstDirectoryOfType(ExifIFD0Directory.c... | e(TAG, "loadMetadata -> file type not supported", e); |
1,160,444 | public static GetDiagnosisKneeResultResponse unmarshall(GetDiagnosisKneeResultResponse getDiagnosisKneeResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDiagnosisKneeResultResponse.setRequestId(_ctx.stringValue("GetDiagnosisKneeResultResponse.RequestId"));<NEW_LINE>getDiagnosisKneeResultResponse.setCode(_ctx.stri... | = new ArrayList<String>(); |
475,068 | private boolean initFetcher(InLongTopicFetcher fetcher, InLongTopic inLongTopic) {<NEW_LINE>if (InlongTopicTypeEnum.PULSAR.getName().equalsIgnoreCase(inLongTopic.getTopicType())) {<NEW_LINE>logger.info("create fetcher topic is pulsar {}", inLongTopic);<NEW_LINE>return fetcher.init(pulsarClients.get(inLongTopic.getInLon... | logger.info("create fetcher topic is kafka {}", inLongTopic); |
736,479 | private Object createRangeWithThreeGivenArguments(Object[] args) {<NEW_LINE>Object firstArg = args[0];<NEW_LINE>Object secondArg = args[1];<NEW_LINE>Object thirdArg = args[2];<NEW_LINE>// Deal with negative integers first<NEW_LINE>if (firstArg != null && firstArg instanceof Double && (Double) firstArg % 1 == 0) {<NEW_L... | Double) thirdArg).intValue(); |
393,036 | public static void main(String... strings) {<NEW_LINE>_318 test = new _318();<NEW_LINE>String[] words = new String[] { "abcw", "baz", "foo", "bar", "xtfn", "abcdef" };<NEW_LINE>// The following is to understand what does left shift by 1 mean:<NEW_LINE>// the tricky part is to understand how it's written for me:<NEW_LIN... | + Integer.toBinaryString(bits)); |
1,602,443 | public void testSLRemoteEnvEntry_Integer_InvalidValue() throws Exception {<NEW_LINE>try {<NEW_LINE>// The test case looks for a environment variable named "envIntegerInvalid".<NEW_LINE>Integer <MASK><NEW_LINE>fail("Get environment invalid int lookup should have failed, instead got " + tempInt);<NEW_LINE>} catch (Naming... | tempInt = fejb1.getIntegerEnvVar("envIntegerBlankValue"); |
529,289 | @NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>public Response addExecutionFlow(@PathParam("flowAlias") String flowAlias, Map<String, String> data) {<NEW_LINE>auth.realm().requireManageRealm();<NEW_LINE>AuthenticationFlowModel parentFlow = realm.getFlowByAlias(flowAlias);<NEW_LINE>if (parentFlow == nu... | setParentFlow(parentFlow.getId()); |
321,778 | private HiveStorageFormat extractHiveStorageFormat(final Table table) throws MetaException {<NEW_LINE>final StorageDescriptor descriptor = table.getSd();<NEW_LINE>if (descriptor == null) {<NEW_LINE>throw new MetaException("Table is missing storage descriptor");<NEW_LINE>}<NEW_LINE>final SerDeInfo serdeInfo = descriptor... | String serializationLib = serdeInfo.getSerializationLib(); |
1,589,926 | private String buildFullInsertSQL(Long dbId, Long tableId, List<String> columnNames) {<NEW_LINE>StringBuilder builder = new StringBuilder(INSERT_STATISTIC_TEMPLATE).append(" ");<NEW_LINE>Database db = Catalog.getCurrentCatalog().getDb(dbId);<NEW_LINE>OlapTable table = (OlapTable) db.getTable(tableId);<NEW_LINE>for (Str... | context.put("tableId", tableId); |
766,550 | public void writeTestClass(TestClass testClass) {<NEW_LINE>String testSuiteFileName = testClass.qualifiedName().replace('.', '/');<NEW_LINE>testSummary.add(testSuiteFileName + ".js");<NEW_LINE>String jsSuite = "com/google/j2cl/junit/apt/JsSuite.vm";<NEW_LINE>String jsUnitAdapter = "com/google/j2cl/junit/apt/JsUnitAdapt... | writeResource(testSuiteFileName + ".testsuite", mergedJsTemplate); |
699,415 | public void mapPartition(Iterable<Tuple3<Double, Object, Vector>> values, Collector<Tuple3<Double, Double, Vector>> out) {<NEW_LINE>for (Tuple3<Double, Object, Vector> value : values) {<NEW_LINE>Vector aVector = value.f2;<NEW_LINE>if (value.f0 > 0) {<NEW_LINE>Double label = isRegProc ? Double.parseDouble(value.f1.toStr... | 1].get(i)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.