idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,283,290 | public void read(org.apache.thrift.protocol.TProtocol prot, PutRequestMessage struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.header = new AsyncMessageHeader();<NEW_LINE>struct.header.read(iprot);<... | struct.versionedValue = new VersionedValue(); |
92,132 | final GetTopicAttributesResult executeGetTopicAttributes(GetTopicAttributesRequest getTopicAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTopicAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetTopicAttributes"); |
159,726 | SimpleConfigObject withoutPath(Path path) {<NEW_LINE>String key = path.first();<NEW_LINE>Path next = path.remainder();<NEW_LINE>AbstractConfigValue v = this.value.get(key);<NEW_LINE>HashMap<String, AbstractConfigValue> smaller;<NEW_LINE>if (next != null && v instanceof AbstractConfigObject) {<NEW_LINE>v = ((AbstractCon... | smaller.put(key, v); |
432,053 | public void read(org.apache.thrift.protocol.TProtocol iprot, info_result 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.type == org.apa... | skip(iprot, schemeField.type); |
1,253,137 | protected void preLoad(BuildCraftJsonGui json) {<NEW_LINE>TypedKeyMap<String, Object> properties = json.properties;<NEW_LINE>FunctionContext context = json.context;<NEW_LINE>properties.put("filler.inventory", new InventorySlotHolder(container, container.tile.invResources));<NEW_LINE>properties.put("statement.container"... | put("controllable", container.tile); |
920,426 | private UaDataTypeNode newDataTypeNode(NodeId nodeId, List<DataValue> attributeValues) throws UaException {<NEW_LINE>DataValue nodeIdDataValue = attributeValues.get(0);<NEW_LINE>StatusCode nodeIdStatusCode = nodeIdDataValue.getStatusCode();<NEW_LINE>if (nodeIdStatusCode != null && nodeIdStatusCode.isBad()) {<NEW_LINE>t... | .getValue().getValue(); |
258,403 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_jButton1ActionPerformed<NEW_LINE>Document targetDoc = target.getDocument();<NEW_LINE>FileObject targetDocFO = NbEditorUtilities.getFileObject(targetDoc);<NEW_LINE>SourceG... | (targetDocFO.getParent())); |
246,842 | private byte[] compressImageToJpeg(InputStream image, int width, int height) {<NEW_LINE><MASK><NEW_LINE>int w = width;<NEW_LINE>int h = height;<NEW_LINE>boolean scale = false;<NEW_LINE>int divider = 1;<NEW_LINE>while (w > IMAGE_MAX_SIZE || h > IMAGE_MAX_SIZE) {<NEW_LINE>w /= 2;<NEW_LINE>h /= 2;<NEW_LINE>divider *= 2;<N... | BufferedInputStream bufferedInputStream = new BufferedInputStream(image); |
793,251 | // Double the size of the hash-table<NEW_LINE>protected void resizeTable() {<NEW_LINE>increaseCapacity();<NEW_LINE>adjustCapacity();<NEW_LINE>threshold = (int) (capacity * loadFactor);<NEW_LINE>K[] oldKeyTable = (K[]) new Object[capacity];<NEW_LINE>V[] oldValueTable = (V[]) new Object[capacity];<NEW_LINE>// Perform key... | i], oldValueTable[i]); |
363,052 | public <Req, Resp> StreamingClientCall<Req, Resp> newStreamingCall(final MethodDescriptor<Req, Resp> methodDescriptor, final BufferDecoderGroup decompressors) {<NEW_LINE>GrpcStreamingSerializer<Req> serializerIdentity = streamingSerializer(methodDescriptor);<NEW_LINE>GrpcStreamingDeserializer<Resp> deserializerIdentity... | ().bufferAllocator())); |
724,005 | public RestMethodResult doPost(final Map<String, Object> propertySet) throws FrameworkException {<NEW_LINE>// virtual type?<NEW_LINE>if (virtualType != null) {<NEW_LINE>virtualType.transformInput(securityContext, entityClass, propertySet);<NEW_LINE>}<NEW_LINE>if (isNode) {<NEW_LINE>final RestMethodResult result = new R... | FrameworkException(422, "Source node ID and target node ID of relationship must be set", errorBuffer); |
91,097 | public void initialize(URL url, ResourceBundle resourceBundle) {<NEW_LINE>this.resourceBundle = resourceBundle;<NEW_LINE>final AppPreferences preferences = AppPreferences.getInstance();<NEW_LINE>autoCheckForUpdatesCB.setSelected(preferences.getAutoCheckUpdates());<NEW_LINE>direcroriesChooserForRomsCB.setSelected(prefer... | setOnAction(e -> checkForUpdatesAction()); |
39,735 | public JRPrintImage createImageFromElement(JRGenericPrintElement element) throws JRException {<NEW_LINE>String htmlContent = (String) element.getParameterValue(HtmlPrintElement.PARAMETER_HTML_CONTENT);<NEW_LINE>String scaleType = (String) element.getParameterValue(HtmlPrintElement.PARAMETER_SCALE_TYPE);<NEW_LINE>String... | setX(element.getX()); |
1,322,222 | public Group createAdministrators(Context context, Community community) throws SQLException, AuthorizeException {<NEW_LINE>// Check authorisation - Must be an Admin to create more Admins<NEW_LINE>AuthorizeUtil.authorizeManageAdminGroup(context, community);<NEW_LINE>Group admins = community.getAdministrators();<NEW_LINE... | getIdentifiers(context, community))); |
861,959 | public void onPaletteChange(Palette palette) {<NEW_LINE>if (mThemeColor != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (palette == null) {<NEW_LINE>setProgressColor(Settings.get().getThemedDefaultProgressColor());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (palette.getDarkVibrantSwatch() != null) {<NEW_LINE>setProgres... | getVibrantSwatch().getRgb()); |
934,286 | public static DeleteVideoResponse unmarshall(DeleteVideoResponse deleteVideoResponse, UnmarshallerContext _ctx) {<NEW_LINE>deleteVideoResponse.setRequestId(_ctx.stringValue("DeleteVideoResponse.RequestId"));<NEW_LINE>List<String> nonExistVideoIds = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue(... | = new ArrayList<String>(); |
898,088 | public void actionPerformed(ActionEvent e) {<NEW_LINE>if (e.getActionCommand().equals(ValuePreference.NAME)) {<NEW_LINE>if (MRole.getDefault().isShowPreference())<NEW_LINE>ValuePreference.start(m_mField, getValue());<NEW_LINE>return;<NEW_LINE>} else if (e.getActionCommand().equals(RecordInfo.CHANGE_LOG_COMMAND)) {<NEW_... | m_text.isEditable(), m_fieldLength); |
993,167 | public boolean next() {<NEW_LINE>if (!m_started) {<NEW_LINE>pushLongestPathFrom(m_root);<NEW_LINE>m_started = true;<NEW_LINE>} else {<NEW_LINE>if (traversalStack.empty()) {<NEW_LINE>throw new RuntimeException("Internal Error: Traversal already finished");<NEW_LINE>}<NEW_LINE>final Pair<IZyTreeNode, Integer> justProcess... | .second() + 1)); |
194,206 | final DescribeGlobalClustersResult executeDescribeGlobalClusters(DescribeGlobalClustersRequest describeGlobalClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeGlobalClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | DescribeGlobalClustersResult>(new DescribeGlobalClustersResultStaxUnmarshaller()); |
200,632 | public static byte[] serObjByte(Object pk) throws IOException {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "serObjByte", pk == null ? null : pk.getClass());<NEW_LINE>byte[] b;<NEW_LINE>try {<NEW_LINE>ByteArrayOutputStream bos = n... | ObjectOutputStream out = new ObjectOutputStream(bos); |
319,430 | private void adjustFrameBufferMatrix(MapPosition mapPositionFrameBuffer, Dimension mapViewDimension, double scaleFactor, LatLong pivot) {<NEW_LINE>MapPosition mapViewPosition = this.model.mapViewPosition.getMapPosition();<NEW_LINE>long mapSize = MercatorProjection.getMapSize(mapPositionFrameBuffer.zoomLevel, model.disp... | getPixel(mapPositionFrameBuffer.latLong, mapSize); |
1,715,297 | public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>ExplainInfo explainInfo = buildExplainInfo(((RelDrdsWriter) pw).getParams(), (ExecutionContext) ((RelDrdsWriter) pw).getExecutionContext());<NEW_LINE>pw.item(RelDrdsWriter.REL_NAME, getExplainName());<NEW_LINE>String groupAndTableName = explainInfo.groupN... | ParameterContext) c).getValue(); |
389,933 | final GetPendingJobExecutionsResult executeGetPendingJobExecutions(GetPendingJobExecutionsRequest getPendingJobExecutionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPendingJobExecutionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
247,038 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>hasCameraPermission = Utils.hasOrRequestCameraAccess(this);<NEW_LINE>if (!hasCameraPermission) {<NEW_LINE>// finishError(R.string.no_camera_permission);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Intent intent = getIntent(... | ) intent.getSerializableExtra("request")); |
957,782 | public List<Map<String, Object>> read(String segmentId, String sqlTmpl, Object[] values) throws IOException {<NEW_LINE>String readUrl = readUrl(segmentId);<NEW_LINE>String[] sqlValues = new String[values.length];<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>sqlValues[i] = sqlValue(values[i]);<NEW_LINE>}<... | " from " + readUrl + " to query: " + sql); |
1,649,904 | public StringBuilder processPage(String id, String sitemap, String label, EList<Widget> children, boolean async) throws RenderException {<NEW_LINE>String snippet = getSnippet(async ? "layer" : "main");<NEW_LINE>snippet = snippet.replaceAll("%id%", id);<NEW_LINE>// if the label contains a value span, we remove this span... | processChildren(preChildren, postChildren, children); |
211,721 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void javadocBrowseActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_javadocBrowseActionPerformed<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE><MASK><NEW_LINE>chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTO... | FileUtil.preventFileChooserSymlinkTraversal(chooser, null); |
574,118 | private void initIntenseColors() {<NEW_LINE>if (fInvertColors) {<NEW_LINE>setColor(fColorMapIntense, WHITE, 127, 127, 127);<NEW_LINE>// only used when colors are inverse<NEW_LINE>setColor(fColorMapIntense, WHITE_FOREGROUND, 0, 0, 0);<NEW_LINE>setColor(fColorMapIntense, BLACK, 255, 255, 255);<NEW_LINE>} else {<NEW_LINE>... | GRAY, 255, 255, 255); |
723,190 | public void initializeComponent(RADComponent metaComp) {<NEW_LINE>metaComp.setAuxValue(RADComponent.AUX_VALUE_CLASS_DETAILS, initializerId);<NEW_LINE>if ("Box.Filler.Glue".equals(initializerId)) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>setProperty(metaComp, "maximumSize", new Dimension(Short.MAX_VALUE, Short.MA... | new Dimension(width, 0)); |
871,335 | private void renderTo(final N node, GraphRenderer graphRenderer, Collection<N> rendered, boolean lastChild) {<NEW_LINE>final boolean alreadySeen = !rendered.add(node);<NEW_LINE>graphRenderer.visit(new Action<StyledTextOutput>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(StyledTextOutput output) {<NEW_L... | child = children.get(i); |
773,377 | protected void initGoalState(ClusterModel clusterModel, OptimizationOptions optimizationOptions) throws OptimizationFailureException {<NEW_LINE>// While proposals exclude the excludedTopics, the existingUtilization still considers replicas of the excludedTopics.<NEW_LINE>for (Broker broker : clusterModel.aliveBrokers()... | , true, false), clusterModel); |
661,379 | public void visit(OWLAnnotationPropertyRangeAxiom ax) {<NEW_LINE>OWLProperty prop = dup(ax.getProperty());<NEW_LINE>IRI range = dup(ax.getRange());<NEW_LINE>if (prop.isObjectPropertyExpression()) {<NEW_LINE>// turn to object property domain<NEW_LINE>OWLClassExpression d = df.getOWLClass(range);<NEW_LINE>LOGGER.warn("An... | (ax.annotations())); |
1,288,385 | public PageResult<Object> query(TermQuery term) {<NEW_LINE>List<Object> list = new ArrayList<>();<NEW_LINE>ModelVO model = modelDal.getModelById(term.getModelId());<NEW_LINE>String dateField = model.getReferenceDate();<NEW_LINE>Calendar beginTime = null;<NEW_LINE>Calendar endTime = null;<NEW_LINE>try {<NEW_LINE>beginTi... | ), term.getPageSize()); |
456,533 | final DescribeWorldTemplateResult executeDescribeWorldTemplate(DescribeWorldTemplateRequest describeWorldTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeWorldTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | false), new DescribeWorldTemplateResultJsonUnmarshaller()); |
1,228,042 | public void marshall(NetworkTelemetry networkTelemetry, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (networkTelemetry == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(networkTelemetry.getRegisteredGatewa... | networkTelemetry.getAwsRegion(), AWSREGION_BINDING); |
1,156,428 | protected void addPathStyles(byte evaluation) throws JRException {<NEW_LINE>styles = new HashMap<>();<NEW_LINE>if (pathStyleList != null) {<NEW_LINE>for (FillItemData styleData : pathStyleList) {<NEW_LINE>List<Map<String, Object>> currentStyleList = styleData.getEvaluateItems(evaluation);<NEW_LINE>if (currentStyleList ... | styleMap = new HashMap<>(); |
1,447,637 | private void indentedXMLPrint(String indent, String pad, PrintWriter pw, boolean printScores) {<NEW_LINE>StringBuilder sb = new StringBuilder(indent);<NEW_LINE><MASK><NEW_LINE>Label label = label();<NEW_LINE>if (label != null) {<NEW_LINE>sb.append('<');<NEW_LINE>if (children.length > 0) {<NEW_LINE>sb.append("node value... | Tree[] children = children(); |
620,301 | private void commitToOriginalInner() {<NEW_LINE>final <MASK><NEW_LINE>final Map<PsiLanguageInjectionHost, Set<Trinity<RangeMarker, RangeMarker, SmartPsiElementPointer>>> map = ContainerUtil.classify(myMarkers.iterator(), new Convertor<Trinity<RangeMarker, RangeMarker, SmartPsiElementPointer>, PsiLanguageInjectionHost>(... | String text = myNewDocument.getText(); |
1,594,123 | private HttpResult handleClusterRequest(String clusterName, String fleetControllerPath) throws InterruptedException {<NEW_LINE>ContainerStatusPageServer statusServer = statusClusters.get(clusterName);<NEW_LINE>if (statusServer == null) {<NEW_LINE>return new HttpResult().setHttpCode(404, "No controller exists for cluste... | response = statusServer.getStatus(req); |
619,491 | public Transaction refund(boolean partial, MerchantStore store, Transaction transaction, Order order, BigDecimal amount, IntegrationConfiguration configuration, IntegrationModule module) throws IntegrationException {<NEW_LINE>try {<NEW_LINE>Validate.notNull(transaction, "Transaction cannot be null");<NEW_LINE>Validate.... | .getStringAmount(amount, store)); |
1,228,026 | protected void doSUICIDE() {<NEW_LINE>if (program.isStaticCall() && program.getActivations().isActive(RSKIP91)) {<NEW_LINE>throw <MASK><NEW_LINE>}<NEW_LINE>if (computeGas) {<NEW_LINE>gasCost = GasCost.SUICIDE;<NEW_LINE>DataWord suicideAddressWord = stack.get(stack.size() - 1);<NEW_LINE>if (!program.getStorage().isExist... | Program.ExceptionHelper.modificationException(program); |
446,365 | private static MPrintFormat copy(Properties ctx, int from_AD_PrintFormat_ID, int to_AD_PrintFormat_ID, int to_Client_ID) {<NEW_LINE>MClient company = MClient.get(ctx);<NEW_LINE>s_log.info("From AD_PrintFormat_ID=" + from_AD_PrintFormat_ID + <MASK><NEW_LINE>if (from_AD_PrintFormat_ID == 0)<NEW_LINE>throw new IllegalArgu... | ", To AD_PrintFormat_ID=" + to_AD_PrintFormat_ID + ", To Client_ID=" + to_Client_ID); |
398,350 | public static DescribeSQLLogFilesResponse unmarshall(DescribeSQLLogFilesResponse describeSQLLogFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSQLLogFilesResponse.setRequestId(_ctx.stringValue("DescribeSQLLogFilesResponse.RequestId"));<NEW_LINE>describeSQLLogFilesResponse.setTotalRecordCount(_ctx.integerVal... | = new ArrayList<LogFile>(); |
1,666,515 | public static void main(String[] args) {<NEW_LINE>Map mapBefore = new HashMap();<NEW_LINE>byte[] b = { 0, 1, 2 };<NEW_LINE>mapBefore.put("Hi", b);<NEW_LINE>String jsonByteArray = JSONUtils.encodeToJSON(mapBefore);<NEW_LINE>System.out.println(jsonByteArray);<NEW_LINE>Map mapAfter = JSONUtils.decodeJSON(jsonByteArray);<N... | map2.put("ListTest", list); |
620,462 | private Settings readSettings() {<NEW_LINE>Path settingsFilePath = this.ballerinaUserHomeDirPath.resolve(ProjectConstants.SETTINGS_FILE_NAME);<NEW_LINE>if (Files.notExists(settingsFilePath)) {<NEW_LINE>try {<NEW_LINE>Files.createFile(settingsFilePath);<NEW_LINE>} catch (AccessDeniedException ae) {<NEW_LINE>throw new Pr... | settingsBuilder = SettingsBuilder.from(settingsTomlDocument); |
1,172,329 | private void writeTable(PrintWriter out, EObject eObject) {<NEW_LINE>out.println("<h1>" + eObject.eClass().getName() + "</h1>");<NEW_LINE>out.println("<table>");<NEW_LINE>for (EStructuralFeature eStructuralFeature : eObject.eClass().getEAllStructuralFeatures()) {<NEW_LINE>if (eStructuralFeature.getEAnnotation("hidden")... | = (List<EObject>) eGet; |
1,151,375 | private void createDefaultRule(String sgUuid, int ipVersion) {<NEW_LINE>List<SecurityGroupRuleVO> vos = new ArrayList<>();<NEW_LINE>SecurityGroupRuleVO ingressRuleVo = new SecurityGroupRuleVO();<NEW_LINE>ingressRuleVo.setUuid(Platform.getUuid());<NEW_LINE>ingressRuleVo.setIpVersion(ipVersion);<NEW_LINE>if (ipVersion ==... | setUuid(Platform.getUuid()); |
1,571,119 | private void paintDefaultButton(Graphics g, ActionButton c) {<NEW_LINE>int state = c.getPopState();<NEW_LINE>paintBackground(c, g, <MASK><NEW_LINE>if (!c.isWithoutBorder()) {<NEW_LINE>paintBorder(c, g, c.getSize(), state);<NEW_LINE>}<NEW_LINE>paintIcon(g, c, TargetAWT.to(c.getIcon()));<NEW_LINE>if (c.shallPaintDownArro... | c.getSize(), state); |
923,439 | private Mono<Response<ProductInner>> updateWithResponseAsync(String billingAccountName, String productName, ProductInner parameters) {<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_LI... | error(new IllegalArgumentException("Parameter billingAccountName is required and cannot be null.")); |
418,856 | final DescribeSpotFleetRequestHistoryResult executeDescribeSpotFleetRequestHistory(DescribeSpotFleetRequestHistoryRequest describeSpotFleetRequestHistoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSpotFleetRequestHistoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
138,497 | public static ByteBuffer fromByteArray(byte[] array, int offset, int length) {<NEW_LINE>ByteBuffer byteBuffer = new ByteBuffer();<NEW_LINE>if (isAllZeroes(array, offset, length)) {<NEW_LINE>// Special case: for all zeroes, it's definitely not an ObjectInputStream, because it has a<NEW_LINE>// non-zero mandatory magic. ... | int sizeOf = ois.readInt(); |
1,437,905 | boolean mmapFile(final boolean create) {<NEW_LINE>if (this.buffer != null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final File file = new File(this.path);<NEW_LINE>if (file.exists()) {<NEW_LINE>this.size = <MASK><NEW_LINE>} else {<NEW_LINE>if (!create) {<NEW_LINE>LOG.error("File {} is not exists.", this.path);<NEW_L... | (int) file.length(); |
518,365 | public static void injectMethod(JavacNode typeNode, JCMethodDecl method) {<NEW_LINE>JCClassDecl type = (JCClassDecl) typeNode.get();<NEW_LINE>if (method.getName().contentEquals("<init>")) {<NEW_LINE>// Scan for default constructor, and remove it.<NEW_LINE>int idx = 0;<NEW_LINE>for (JCTree def : type.defs) {<NEW_LINE>if... | ), typeNode.getContext()); |
762,049 | private Cursor reorgLogicalColumnOrder(String schemaName, String tableName, Cursor cursor) {<NEW_LINE>ArrayResultCursor resultCursor = new ArrayResultCursor(tableName);<NEW_LINE>resultCursor.addColumn("Field", DataTypes.StringType);<NEW_LINE>resultCursor.addColumn("Type", DataTypes.StringType);<NEW_LINE>resultCursor.ad... | schemaName, tableName, rows, resultCursor); |
1,090,546 | public void run() {<NEW_LINE>boolean active = TimeHelper.sleepToNextMinute();<NEW_LINE>while (active) {<NEW_LINE>long current = System.currentTimeMillis();<NEW_LINE>Transaction t = Cat.newTransaction("AlertException", TimeHelper.getMinuteStr());<NEW_LINE>try {<NEW_LINE>TopMetric topMetric = buildTopMetric(new Date(curr... | .getResult().values(); |
337,905 | private void processJarFile(String filename) {<NEW_LINE>File f = findJarFile(filename);<NEW_LINE>if (f == null) {<NEW_LINE>ErrorUtil.error("No such file: " + filename);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Warn if source debugging is specified for a jar file, since native debuggers<NEW_LINE>// don't support Java-lik... | ErrorUtil.warning("source debugging of jar files is not supported: " + filename); |
1,291,567 | public Resource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Resource resource = new Resource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t... | class).unmarshall(context)); |
448,660 | private void addRadioOptionsToPopup(List<String> supported_options, final String title, final String preference_key, final String default_option, final String test_key, final RadioOptionsListener listener) {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "addOptionsToPopup: " + title);<NEW_LINE>if (supported_options != ... | rg.setOrientation(RadioGroup.VERTICAL); |
1,056,115 | private void writeWrappedOptions(boolean includeDefaultBindings, Element root) {<NEW_LINE>for (String optionName : valueMap.keySet()) {<NEW_LINE>Option option = valueMap.get(optionName);<NEW_LINE>if (includeDefaultBindings || !option.isDefault()) {<NEW_LINE>Object value = option.getCurrentValue();<NEW_LINE>if (isSuppor... | SaveState ss = new SaveState(WRAPPED_OPTION_NAME); |
1,234,601 | private IBaseConformance createCapabilityStatement(RequestDetails theRequest, Object[] theMethodParams) {<NEW_LINE>IBaseConformance conf = (IBaseConformance) invokeServerMethod(theRequest, theMethodParams);<NEW_LINE>// Interceptor hook: SERVER_CAPABILITY_STATEMENT_GENERATED<NEW_LINE>if (theRequest.getInterceptorBroadca... | add(IBaseConformance.class, conf); |
1,633,766 | public Map<String, Object> populate(Map<String, Object> json, Map<String, Object> context) {<NEW_LINE>Long bankOrderLineId = (Long) json.get("id");<NEW_LINE>BankOrderLine bankOrderLine = find(bankOrderLineId);<NEW_LINE>String pieceReferenceList = "";<NEW_LINE>String pieceDateList = "";<NEW_LINE>String pieceDueDateList ... | changeDateToString(bankOrderLineOrigin.getRelatedToSelectDueDate()); |
1,306,665 | private List<File> filterChildren(File file) {<NEW_LINE>File[] fileArray = file.listFiles();<NEW_LINE>List<File> files = new ArrayList<>();<NEW_LINE>if (fileArray != null) {<NEW_LINE>for (int i = 0; i < fileArray.length; i++) {<NEW_LINE>File f = fileArray[i];<NEW_LINE>boolean filtered;<NEW_LINE>if (f.isDirectory()) {<N... | = filters.size() > 0; |
604,357 | public int compare(byte[] left, byte[] right) {<NEW_LINE>int stride = 8;<NEW_LINE>int minLength = Math.min(left.length, right.length);<NEW_LINE>int strideLimit = minLength & ~(stride - 1);<NEW_LINE>int i;<NEW_LINE>for (i = 0; i < strideLimit; i += stride) {<NEW_LINE>long lw = theUnsafe.getLong(left, BYTE_ARRAY_BASE_OFF... | i], right[i]); |
1,102,295 | private void removeRemoteHardLink(RemoteTsFileResource resource) {<NEW_LINE><MASK><NEW_LINE>if (ClusterDescriptor.getInstance().getConfig().isUseAsyncServer()) {<NEW_LINE>AsyncDataClient client = (AsyncDataClient) dataGroupMember.getAsyncClient(sourceNode);<NEW_LINE>if (client != null) {<NEW_LINE>try {<NEW_LINE>client.... | Node sourceNode = resource.getSource(); |
1,636,618 | private void processInjectedAttributes(final int line, final int col) throws ParseException {<NEW_LINE>if (!this.parseSelection.isMatchingAny(INJECTION_LEVEL)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String[] selectors = <MASK><NEW_LINE>if (selectors == null || selectors.length == 0) {<NEW_LINE>return;<NEW_LINE>}<... | this.parseSelection.getCurrentSelection(INJECTION_LEVEL); |
1,834,556 | public ApiResponse<List<InvoiceInfo>> billingGetInvoiceHeadersWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/billing/invoices";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pa... | = new String[] { "oauth2" }; |
1,353,469 | public void gera(NoDeclaracaoMatriz matriz, PrintWriter saida, VisitanteASA visitor, int nivelEscopo, boolean podeInicializar) throws ExcecaoVisitaASA {<NEW_LINE>String nome = matriz.getNome();<NEW_LINE>String tipo = Utils.getNomeTipoJava(matriz.getTipoDado());<NEW_LINE>saida.format("%s %s[][]", tipo, nome);<NEW_LINE>i... | NoExpressao numeroColunas = matriz.getNumeroColunas(); |
623,893 | public void init(Properties properties, String topic, String groupId) {<NEW_LINE>this.nameServer = <MASK><NEW_LINE>this.vhost = PropertiesUtils.getProperty(properties, "rabbitmq.virtual.host");<NEW_LINE>this.queueName = topic;<NEW_LINE>this.accessKey = PropertiesUtils.getProperty(properties, CanalConstants.CANAL_ALIYUN... | PropertiesUtils.getProperty(properties, "rabbitmq.host"); |
1,749,907 | final StartPipelineExecutionResult executeStartPipelineExecution(StartPipelineExecutionRequest startPipelineExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startPipelineExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
96,405 | public synchronized void sendNotification(String title, String text) {<NEW_LINE>if (service == null || notificationManager == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>notificationManager.cancel(DEFAULT_NOTIFICATION_ID);<NEW_LINE>NotificationCompat.Builder builder = new NotificationCompat.Builder(service, ANDROID_CH... | service.startForeground(DEFAULT_NOTIFICATION_ID, notification); |
1,651,231 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>getWindow().setFlags(LayoutParams.FLAG_KEEP_SCREEN_ON, LayoutParams.FLAG_KEEP_SCREEN_ON);<NEW_LINE>// The first seekbar controls the blink frequency.<NEW_LINE>final SeekBar freqSeekBar = findViewById(... | setContentView(R.layout.main); |
1,365,661 | public Map<Integer, ParameterContext> buildParams() {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>(16);<NEW_LINE>int index = 0;<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setLong, this.planId);<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, this.tab... | ParameterMethod.setString, this.extras); |
1,582,203 | public static <T> T asType(Mat mat, Class<T> cls) {<NEW_LINE>if (Mat.class.isAssignableFrom(cls))<NEW_LINE>return (T) mat;<NEW_LINE>if (BufferedImage.class.isAssignableFrom(cls))<NEW_LINE>return (T) OpenCVTools.matToBufferedImage(mat);<NEW_LINE>if (ImageProcessor.class.isAssignableFrom(cls)) {<NEW_LINE>if (mat.channels... | OpenCVTools.matToBufferedImage(mat))); |
403,961 | // -------//<NEW_LINE>// visit //<NEW_LINE>// -------//<NEW_LINE>@Override<NEW_LINE>public void visit(AbstractChordInter chord) {<NEW_LINE>// Draw chord ID & voice if any<NEW_LINE>if (!viewParams.isChordIdsPainting()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// For readability, we need a sufficient zoom ratio<NEW_LINE>fi... | layout = basicLayout(str, at); |
1,121,897 | private void addMaps() {<NEW_LINE>addFactory(Map.class, map(HashMap::new));<NEW_LINE>addFactory(SortedMap.class, map(() -> new TreeMap<>(OBJECT_COMPARATOR)));<NEW_LINE>addFactory(NavigableMap.class, map(() -> new TreeMap<>(OBJECT_COMPARATOR)));<NEW_LINE>addFactory(ConcurrentNavigableMap.class, map(() -> new ConcurrentS... | , map(LinkedHashMap::new)); |
1,164,283 | public void execute(State state) throws WorkflowExecutionException {<NEW_LINE>TlsContext tlsContext = state.getTlsContext(getConnectionAlias());<NEW_LINE>LOGGER.info("Terminating Connection");<NEW_LINE>try {<NEW_LINE>tlsContext.getTransportHandler().closeClientConnection();<NEW_LINE>} catch (IOException ex) {<NEW_LINE>... | setLastClientVerifyData(new byte[0]); |
119,980 | public void renderForeground(PoseStack matrix, int mouseX, int mouseY) {<NEW_LINE>super.renderForeground(matrix, mouseX, mouseY);<NEW_LINE>FREQ frequency = frequencySelector.getFrequency();<NEW_LINE>if (frequency == null) {<NEW_LINE>MutableComponent noneComponent = MekanismLang.NONE.translateColored(EnumColor.DARK_RED)... | ), getGuiWidth() - 36); |
604,932 | private List<String> dynamicGroupSearch(DirContext ctx, String baseDN, String memberOfAttr, String filter, String target) {<NEW_LINE>List<String> groupList = new ArrayList<>();<NEW_LINE>String[] targets = new String[] { memberOfAttr };<NEW_LINE>try {<NEW_LINE>SearchControls searchControls = new SearchControls();<NEW_LI... | (String) values.nextElement(); |
907,886 | public byte[] decrypt(EncryptedData dataToDecrypt, KeyParameter key) {<NEW_LINE>checkNotNull(dataToDecrypt);<NEW_LINE>checkNotNull(key);<NEW_LINE>try {<NEW_LINE>ParametersWithIV keyWithIv = new ParametersWithIV(new KeyParameter(key.getKey()), dataToDecrypt.initialisationVector);<NEW_LINE>// Decrypt the message.<NEW_LIN... | .getOutputSize(cipherBytes.length)]; |
1,163,237 | public void replaceDataTypes(long oldDataTypeID, long newDataTypeID) {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>RecordIterator it = adapter.iterateFunctionRecords();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>DBRecord rec = it.next();<NEW_LINE>if (thunkAdapter.getThunkRecord(rec.getKey()) != null) {<NEW_LINE>// s... | this, cache, addrMap, rec); |
1,361,289 | public void beginConstruction() {<NEW_LINE>this.createFixedTextLabel("MinimizedWindow.all_transfers", false, true);<NEW_LINE>this.createGap(40);<NEW_LINE>// Download speed.<NEW_LINE>Label dlab = this.createFixedTextLabel("ConfigView.download.abbreviated", false, false);<NEW_LINE>this.down_speed = this.createSpeedLabel(... | createFixedTextLabel("ConfigView.upload.abbreviated", false, false); |
1,618,702 | private void notifyListeners(IJavaElementDelta deltaToNotify, int eventType, IElementChangedListener[] listeners, int[] listenerMask, int listenerCount) {<NEW_LINE>final ElementChangedEvent extraEvent = new ElementChangedEvent(deltaToNotify, eventType);<NEW_LINE>for (int i = 0; i < listenerCount; i++) {<NEW_LINE>if ((l... | final IElementChangedListener listener = listeners[i]; |
1,767,360 | public static Map<String, Converter<Object, ?>> createDefaultClaimTypeConverters() {<NEW_LINE>Converter<Object, ?> booleanConverter = getConverter(TypeDescriptor.valueOf(Boolean.class));<NEW_LINE>Converter<Object, ?> instantConverter = getConverter(TypeDescriptor.valueOf(Instant.class));<NEW_LINE>Converter<Object, ?> u... | put(StandardClaimNames.PHONE_NUMBER_VERIFIED, booleanConverter); |
798,160 | private void noteUnconditionallyDereferencedNullValue(Location thisLocation, Map<ValueNumber, SortedSet<Location>> bugLocations, Map<ValueNumber, NullValueUnconditionalDeref> nullValueGuaranteedDerefMap, UnconditionalValueDerefSet derefSet, IsNullValue isNullValue, ValueNumber valueNumber) {<NEW_LINE>if (DEBUG) {<NEW_L... | thisNullValueDeref.add(isNullValue, unconditionalDerefLocationSet); |
1,159,272 | public static void main(String[] args) throws Exception {<NEW_LINE>CIFARClassifier cf = new CIFARClassifier();<NEW_LINE>Cifar10DataSetIterator cifar = new Cifar10DataSetIterator(batchSize, new int[] { height, width }, DataSetType.TRAIN, null, seed);<NEW_LINE>Cifar10DataSetIterator cifarEval = new Cifar10DataSetIterator... | , 1, InvocationType.EPOCH_END)); |
1,480,604 | public void visitDeclaration(SDeclaration userDeclarationNode, SemanticScope semanticScope) {<NEW_LINE><MASK><NEW_LINE>String symbol = userDeclarationNode.getSymbol();<NEW_LINE>if (scriptScope.getPainlessLookup().isValidCanonicalClassName(symbol)) {<NEW_LINE>throw userDeclarationNode.createError(new IllegalArgumentExce... | ScriptScope scriptScope = semanticScope.getScriptScope(); |
767,966 | // hash code for a frozen node<NEW_LINE>private long hash(long node) throws IOException {<NEW_LINE>final int PRIME = 31;<NEW_LINE>// System.out.println("hash frozen node=" + node);<NEW_LINE>long h = 0;<NEW_LINE>fst.readFirstRealTargetArc(node, scratchArc, in);<NEW_LINE>while (true) {<NEW_LINE>// System.out.println(" l... | * h + scratchArc.label(); |
739,659 | protected void featuresCpCp2Cp3C(PaddedList<IN> cInfo, int loc, FeatureCollector out) {<NEW_LINE>out.setSuffix("CpCp2Cp3C");<NEW_LINE>CoreLabel p = cInfo.get(loc - 1);<NEW_LINE>if (flags.useTaggySequences) {<NEW_LINE>CoreLabel c = cInfo.get(loc);<NEW_LINE>CoreLabel p2 = cInfo.get(loc - 2);<NEW_LINE>CoreLabel p3 = cInfo... | append("-DISTSIM_TTTS1-CS").add(); |
1,750,371 | public void headerFound(Concrete.Definition definition) {<NEW_LINE>myCurrentDefinitions = Collections.singletonList(definition.getData());<NEW_LINE><MASK><NEW_LINE>CountingErrorReporter countingErrorReporter = new CountingErrorReporter(myErrorReporter);<NEW_LINE>CheckTypeVisitor visitor = new CheckTypeVisitor(new Local... | typecheckingHeaderStarted(definition.getData()); |
845,811 | protected void logConfig(EGLConfig config) {<NEW_LINE>EGL10 egl = (EGL10) EGLContext.getEGL();<NEW_LINE>EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);<NEW_LINE>int r = getAttrib(egl, display, config, EGL10.EGL_RED_SIZE, 0);<NEW_LINE>int g = getAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE, 0);<N... | b + ", " + a + ")"); |
818,677 | public void exitRoa_range(Roa_rangeContext ctx) {<NEW_LINE>Prefix prefix;<NEW_LINE>if (ctx.area_prefix != null) {<NEW_LINE>prefix = Prefix.parse(ctx.area_prefix.getText());<NEW_LINE>} else {<NEW_LINE>prefix = Prefix.create(toIp(ctx.area_ip), toIp(ctx.area_subnet));<NEW_LINE>}<NEW_LINE>boolean advertise = ctx.NOT_ADVERT... | null : toLong(ctx.cost); |
779,256 | protected void callFileGen() {<NEW_LINE>String replace = "";<NEW_LINE>String imports = "";<NEW_LINE>for (Map<String, String> types : allFunctionTypes) {<NEW_LINE>// Base method<NEW_LINE>String method = "\n\tpublic {$TypeArgs} NodeFunc{$Args}To{$ReturnOnly}{$TypeArgs} put_{$a}_{$r}(" + "String name, {$ObjectClassArgs}IF... | method = replaceAll(method, types); |
719,015 | public void execute() throws MojoExecutionException {<NEW_LINE>checkJibVersion();<NEW_LINE>if (MojoCommon.shouldSkipJibExecution(this)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// TODO: move these shared checks with SyncMapTask into plugins-common<NEW_LINE>// add check that means this is only for jars<NEW_LINE>if (!"jar"... | System.out.println(syncMapJson); |
934,989 | // field is an enum constant<NEW_LINE>public EnumConstantDeclaration convert(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration enumConstant) {<NEW_LINE>checkCanceled();<NEW_LINE>EnumConstantDeclaration enumConstantDeclaration = new EnumConstantDeclaration(this.ast);<NEW_LINE>final SimpleName typeName = new SimpleN... | declarationSourceStart, end - declarationSourceStart + 1); |
1,714,176 | public static GetContactWhiteListResponse unmarshall(GetContactWhiteListResponse getContactWhiteListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getContactWhiteListResponse.setRequestId(_ctx.stringValue("GetContactWhiteListResponse.RequestId"));<NEW_LINE>getContactWhiteListResponse.setSuccess(_ctx.booleanValue("GetCo... | (_ctx.integerValue("GetContactWhiteListResponse.ContactWhitelistList.TotalCount")); |
455,942 | protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle result = new Bundle(params[0]);<NEW_LINE>ArrayList<String> friendIds = new ArrayList<String>();<NEW_LINE>String response;<NEW_LINE>try {<NEW_LINE>response = mOdnoklassniki.request("friends.get", null, "get");<NEW_LINE>Object json = new JSONTokener(resp... | JSONArray jsonArray = new JSONArray(response); |
1,748,801 | private void validate(APIRemoveHostRouteFromL3NetworkMsg msg) {<NEW_LINE>if (!NetworkUtils.isCidr(msg.getPrefix())) {<NEW_LINE>throw new ApiMessageInterceptionException(argerr("prefix [%s] is not a IPv4 network cidr", msg.getL3NetworkUuid()));<NEW_LINE>}<NEW_LINE>SimpleQuery<L3NetworkHostRouteVO> q = dbf.createQuery(L3... | EQ, msg.getPrefix()); |
1,594,567 | // TODO: only generate that are overrideable (javaproxyclass)<NEW_LINE>protected void defineInstanceMethods(Set<String> instanceMethods) {<NEW_LINE>Set<String> defined = new HashSet<>();<NEW_LINE>for (Map.Entry<String, DynamicMethod> methodEntry : getMethods().entrySet()) {<NEW_LINE>// TODO: explicitly included but not... | callid, arity, position, sig); |
409,912 | public void applyCredentialsFilter(OkHttpClient.Builder clientBuilder) {<NEW_LINE>clientBuilder.addInterceptor(new Interceptor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Response intercept(Chain chain) throws IOException {<NEW_LINE>Request originalRequest = chain.request();<NEW_LINE>HttpUrl url = chain.request().... | .proceed(buildEmptyRequest(originalRequest)); |
400,706 | public void marshall(InfrastructureConfigurationSummary infrastructureConfigurationSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (infrastructureConfigurationSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMa... | infrastructureConfigurationSummary.getArn(), ARN_BINDING); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.