idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
526,410 | public static DescribeDtsServiceLogResponse unmarshall(DescribeDtsServiceLogResponse describeDtsServiceLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDtsServiceLogResponse.setRequestId(_ctx.stringValue("DescribeDtsServiceLogResponse.RequestId"));<NEW_LINE>describeDtsServiceLogResponse.setHttpStatusCode(_ctx.... | (_ctx.integerValue("DescribeDtsServiceLogResponse.PageNumber")); |
499,276 | public ParcelFileDescriptor openFileDescriptor(@NonNull String mode, @NonNull HandlerThread callbackThread) throws FileNotFoundException {<NEW_LINE>if (mDocumentFile instanceof ProxyDocumentFile) {<NEW_LINE>File file = Objects.requireNonNull(getFile());<NEW_LINE>int modeBits = ParcelFileDescriptor.parseMode(mode);<NEW_... | ), mode), callbackThread)); |
1,442,100 | public ApiScenarioWithBLOBs buildSaveScenario(SaveApiScenarioRequest request) {<NEW_LINE>ApiScenarioWithBLOBs scenario = new ApiScenarioWithBLOBs();<NEW_LINE>scenario.setId(request.getId());<NEW_LINE>scenario.setName(request.getName());<NEW_LINE>scenario.setProjectId(request.getProjectId());<NEW_LINE>scenario.setCustom... | setStatus(request.getStatus()); |
656,146 | public void configurarCores() {<NEW_LINE>setBackground(ColorController.FUNDO_MEDIO);<NEW_LINE>setForeground(ColorController.COR_LETRA);<NEW_LINE>labelEditor.setForeground(ColorController.COR_LETRA);<NEW_LINE><MASK><NEW_LINE>listaTemas.setBackground(ColorController.FUNDO_ESCURO);<NEW_LINE>listaTemas.setSelectionBackgrou... | labelPS.setForeground(ColorController.COR_LETRA); |
1,313,902 | void resolve() throws InjectionException {<NEW_LINE>Map<String, Object> props = new HashMap<String, Object>();<NEW_LINE>if (properties != null) {<NEW_LINE>props.putAll(properties);<NEW_LINE>}<NEW_LINE>addOrRemoveProperty(props, KEY_NAME, name);<NEW_LINE>addOrRemoveProperty(props, KEY_INTERFACE_NAME, (interfaceName == n... | addOrRemoveProperty(props, KEY_CLASS_NAME, className); |
1,753,453 | public AnnotatedProxy configure(AtmosphereConfig config, Object c) {<NEW_LINE>this.proxiedInstance = c;<NEW_LINE>this.onRuntimeMethod = populateMessage(c);<NEW_LINE>this.onHeartbeatMethod = populate(c, Heartbeat.class);<NEW_LINE>this.onDisconnectMethod = populate(c, Disconnect.class);<NEW_LINE>this.onTimeoutMethod = po... | populate(c, Get.class); |
1,205,503 | public void selectVoiceGuidance(final MapActivity mapActivity, final CallbackWithObject<String> callback, ApplicationMode applicationMode) {<NEW_LINE>final ContextMenuAdapter adapter = new ContextMenuAdapter(app);<NEW_LINE>String[] entries;<NEW_LINE>final String[] entrieValues;<NEW_LINE>Set<String> voiceFiles = getVoic... | selectedModeColor = selectedAppMode.getProfileColor(nightMode); |
1,831,123 | public SRevision convertToSObject(Revision input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SRevision result = new SRevision();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LINE>result.setId(input.getId());<... | Bounds boundsVal = input.getBounds(); |
1,231,808 | private void renderAxes(GLAutoDrawable drawable) {<NEW_LINE>final GL2 gl = drawable.getGL().getGL2();<NEW_LINE>gl.glBegin(GL_LINES);<NEW_LINE>// X-Axis<NEW_LINE>gl.glColor3f(1, 0, 0);<NEW_LINE>gl.glVertex3f(0, 0, 0);<NEW_LINE>gl.<MASK><NEW_LINE>// Y-Axis<NEW_LINE>gl.glColor3f(0, 1, 0);<NEW_LINE>gl.glVertex3f(0, 0, 0);<... | glVertex3f(50, 0, 0); |
1,600,609 | private MJournalBatch createJournalBatch(MAcctSchema accountingSchema, String trxName) {<NEW_LINE>if (journalBatches.containsKey(accountingSchema.get_ID()))<NEW_LINE>return journalBatches.get(accountingSchema.get_ID());<NEW_LINE>Timestamp today = new Timestamp(System.currentTimeMillis());<NEW_LINE>MJournalBatch journal... | journalBatch.setDateAcct(getDateReval()); |
1,586,925 | public ConstructorDeclaration createDefaultConstructorForRecord(boolean needExplicitConstructorCall, boolean needToInsert) {<NEW_LINE>// Add to method'set, the default constuctor that just recall the<NEW_LINE>// super constructor with no arguments<NEW_LINE>// The arguments' type will be positionned by the TC so just us... | toArray(new Statement[0]); |
506,341 | private StoredJSON readStoredJSON(File from) {<NEW_LINE>Matcher timestampMatch = timestampRegex.matcher(from.getName());<NEW_LINE>if (timestampMatch.find()) {<NEW_LINE>try (Stream<String> lines = Files.lines(from.toPath())) {<NEW_LINE>long timestamp = Long.parseLong(timestampMatch.group(1));<NEW_LINE>StringBuilder json... | json.toString(), timestamp); |
1,523,009 | private void handle(TreePath path) {<NEW_LINE>MemberSelectTree tree = (MemberSelectTree) path.getLeaf();<NEW_LINE>if (!isFullyQualified(tree)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (BadImport.BAD_NESTED_CLASSES.contains(tree.getIdentifier().toString())) {<NEW_LINE>if (tree.getExpression() instanceof MemberSelectTre... | treePaths = new ArrayList<>(); |
1,854,559 | void findEntityResources(CombinedIndexBuildItem index, BuildProducer<GeneratedBeanBuildItem> implementationsProducer, BuildProducer<RestDataResourceBuildItem> restDataResourceProducer) {<NEW_LINE>ResourceImplementor resourceImplementor = new ResourceImplementor(new EntityClassHelper(index.getIndex()));<NEW_LINE>ClassOu... | resourceInterface, entityType, idType))); |
1,338,381 | private void generatePreviewValue() {<NEW_LINE><MASK><NEW_LINE>if (viewer == null) {<NEW_LINE>try {<NEW_LINE>DBVUtils.parseExpression(expression);<NEW_LINE>previewText.setText(ResultSetMessages.virtual_edit_attribute_preview_message_editor);<NEW_LINE>} catch (Exception e) {<NEW_LINE>previewText.setText(GeneralUtils.get... | String expression = expressionText.getText(); |
241,616 | public void insertUpdate(DocumentEvent evt) {<NEW_LINE>clearIncomingEvent(evt);<NEW_LINE>if (docView.lock()) {<NEW_LINE>docView.checkDocumentLockedIfLogging();<NEW_LINE>try {<NEW_LINE>// No return prior this "try" to properly unset incomingModification<NEW_LINE>if (!docView.op.isUpdatable()) {<NEW_LINE>return;<NEW_LINE... | evt.getDocument()) : "Invalid document"; |
438,857 | private BufferedImage printToImage(int dpi, final MapView view, final Rectangle innerBounds) {<NEW_LINE>double scaleFactor = (double) dpi / (double) (UITools.FONT_SCALE_FACTOR * 72);<NEW_LINE>int imageWidth = (int) Math.ceil(innerBounds.width * scaleFactor);<NEW_LINE>int imageHeight = (int) Math.ceil(innerBounds.height... | (Graphics2D) myImage.getGraphics(); |
147,601 | // adjustable date, defaulting business day convention and holiday calendar<NEW_LINE>private static Optional<AdjustableDate> parseAdjustableDate(CsvRow row, String leg, String dateField, String cnvField, String calField) {<NEW_LINE>Optional<LocalDate> dateOpt = findValue(row, leg, dateField).map(s -> LoaderUtils.parseD... | ).orElse(HolidayCalendarIds.NO_HOLIDAYS); |
1,604,462 | public static PostResult copyThreatDescriptor(DescriptorPostParameters overrideParams, boolean verbose, boolean showURLs, boolean dryRun) {<NEW_LINE>String validationErrorMessage = overrideParams.validateForCopyWithReport();<NEW_LINE>if (validationErrorMessage != null) {<NEW_LINE>return new PostResult(false, null, vali... | postParams.setIndicatorText(sourceDescriptor.td_raw_indicator); |
390,657 | public DruidExpression toDruidExpression(final PlannerContext plannerContext, final RowSignature rowSignature, final RexNode rexNode) {<NEW_LINE>return OperatorConversions.convertDirectCallWithExtraction(plannerContext, rowSignature, rexNode, StringUtils.toLowerCase(calciteOperator().getName()), inputExpressions -> {<N... | (), true, null)); |
8,192 | public com.amazonaws.services.appstream.model.ResourceNotAvailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.appstream.model.ResourceNotAvailableException resourceNotAvailableException = new com.amazonaws.services.appstream.model.ResourceNotAvaila... | int originalDepth = context.getCurrentDepth(); |
1,099,565 | public static void openBrowser(HttpRootPathBuildItem rp, NonApplicationRootPathBuildItem np, String path, String host, String port) {<NEW_LINE>if (path.startsWith("/q")) {<NEW_LINE>path = np.resolvePath(path.substring(3));<NEW_LINE>} else {<NEW_LINE>path = rp.resolvePath(path.substring(1));<NEW_LINE>}<NEW_LINE>StringBu... | String[] { "open", url }; |
718,655 | void processChildNode(WatchedEvent event) throws KeeperException, InterruptedException {<NEW_LINE>final String path = event.getPath();<NEW_LINE>switch(event.getType()) {<NEW_LINE>case NodeDeleted:<NEW_LINE>// Key expired<NEW_LINE>if (path == null) {<NEW_LINE>log.error("Got null path for NodeDeleted event");<NEW_LINE>re... | baseNode.length() + 1); |
454,165 | public static void stopBuzzerSound(Component comp, CircuitState circState) {<NEW_LINE>// static method, have to check if the comp parameter is a Buzzer or contains it<NEW_LINE>final var compFact = comp.getFactory();<NEW_LINE>// if it is a buzzer, stop its sound thread<NEW_LINE>if (compFact instanceof Buzzer) {<NEW_LINE... | .getSubstate(circState, comp)); |
465,820 | private SegmentCompletionProtocol.Response commitSegment(SegmentCompletionProtocol.Request.Params reqParams, boolean isSplitCommit, CommittingSegmentDescriptor committingSegmentDescriptor) {<NEW_LINE>String instanceId = reqParams.getInstanceId();<NEW_LINE>StreamPartitionMsgOffset offset = _streamPartitionMsgOffsetFacto... | _segmentName.getSegmentName(), e); |
924,367 | public VectorTypeInformation<?> fromByteBuffer(ByteBuffer buffer) throws IOException {<NEW_LINE>try {<NEW_LINE>// Factory type!<NEW_LINE>String typename = <MASK><NEW_LINE>NumberVector.Factory<NumberVector> factory = (NumberVector.Factory<NumberVector>) ELKIServiceRegistry.findImplementation(NumberVector.Factory.class, ... | ByteArrayUtil.STRING_SERIALIZER.fromByteBuffer(buffer); |
1,484,586 | public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>// If the previous icon was an AnimatedIcon, stop the animation<NEW_LINE>if (c instanceof JAnimatedButton) {<NEW_LINE>if (((JAnimatedButton) c).getCurrentIcon() != this) {<NEW_LINE>if (((JAnimatedButton) c).getCurrentIcon() != null) {<NEW_LINE>((JA... | icon.getIconWidth(), alignmentX); |
1,825,413 | private static Map<String, Object> list2map_string(List<Object> valueList, String key, Udf convert, Hints hints) throws Throwable {<NEW_LINE>return list2map_udf(valueList, (readOnly, params) -> {<NEW_LINE>int rowNumber = (int) params[0];<NEW_LINE>if (params[1] == null) {<NEW_LINE>throw new NullPointerException("element... | NullPointerException("element " + rowNumber + " type is not Object"); |
790,461 | public final void visit(NodeTraversal t, Node n, Node parent) {<NEW_LINE>if (n.isScript()) {<NEW_LINE>checkCanonical(t);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node callNode = null;<NEW_LINE>if (n.isExprResult()) {<NEW_LINE>callNode = n.getFirstChild();<NEW_LINE>} else if (NodeUtil.isNameDeclaration(n)) {<NEW_LINE>callNo... | .getFirstChild().getLastChild(); |
1,800,109 | public com.amazonaws.services.codecommit.model.FileDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.FileDoesNotExistException fileDoesNotExistException = new com.amazonaws.services.codecommit.model.FileDoesNotExistException(... | String currentParentElement = context.getCurrentParentElement(); |
1,372,027 | public boolean addConstraintMapping(HttpContext httpContext, WebContainer service, Object cm) {<NEW_LINE>if (cm instanceof PaxWebSecurityConstraintMapping) {<NEW_LINE>PaxWebSecurityConstraintMapping constraintMapping = (PaxWebSecurityConstraintMapping) cm;<NEW_LINE>String name = constraintMapping.getConstraintName();<N... | ).nextInt(Integer.MAX_VALUE); |
1,200,355 | final CreateLicenseManagerReportGeneratorResult executeCreateLicenseManagerReportGenerator(CreateLicenseManagerReportGeneratorRequest createLicenseManagerReportGeneratorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLicenseManagerReportGeneratorRequest);<NEW_LINE>AWSRequestMetrics ... | addHandlerContext(HandlerContextKey.SERVICE_ID, "License Manager"); |
1,131,493 | private boolean equalConstants(Constant c1, Constant c2) {<NEW_LINE><MASK><NEW_LINE>if (t != c2.getType()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (t instanceof IntType) {<NEW_LINE>return ((IntConstant) c1).value == ((IntConstant) c2).value;<NEW_LINE>}<NEW_LINE>if (t instanceof FloatType) {<NEW_LINE>return ((Fl... | Type t = c1.getType(); |
103,156 | public static DescribeClusterDetailResponse unmarshall(DescribeClusterDetailResponse describeClusterDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClusterDetailResponse.setResource_group_id(_ctx.stringValue("DescribeClusterDetailResponse.resource_group_id"));<NEW_LINE>describeClusterDetailResponse.setVpc_... | ("DescribeClusterDetailResponse.tags[" + i + "].value")); |
1,648,013 | final DescribeUserResult executeDescribeUser(DescribeUserRequest describeUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | invoke(request, responseHandler, executionContext); |
806,407 | public void handle(GlowSession session, TabCompleteMessage message) {<NEW_LINE>GlowPlayer sender = session.getPlayer();<NEW_LINE><MASK><NEW_LINE>List<String> completions = new ArrayList<>();<NEW_LINE>// complete command or username<NEW_LINE>if (!buffer.isEmpty() && buffer.charAt(0) == '/') {<NEW_LINE>List<String> items... | String buffer = message.getText(); |
521,011 | private Uri createOutputUri(@NonNull Uri outputUri, @NonNull String contentType, @NonNull String fileName) throws IOException {<NEW_LINE>String[] fileParts = getFileNameParts(fileName);<NEW_LINE>String base = fileParts[0];<NEW_LINE>String extension = fileParts[1];<NEW_LINE>String mimeType = MimeTypeMap.getSingleton().g... | .US, "Path for type: %s was not available", contentType)); |
414,551 | final GetDeploymentsResult executeGetDeployments(GetDeploymentsRequest getDeploymentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeploymentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
712,654 | public void testPersistTaskWithNonSerializableResult(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String taskName = "TaskWithNonSerializableResult-" + VNEXT;<NEW_LINE>NonSerializableResultTask task = new NonSerializableResultTask();<NEW_LINE>TaskStatus<ThreadGroup> status = exec... | throw new Exception("Unexpected failure. See cause.", x); |
1,133,122 | private void writeCFG(RecordArray mapping) throws IOException {<NEW_LINE>if (mapping == null) {<NEW_LINE>writeUnsignedNumber(0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writeUnsignedNumber(mapping.size());<NEW_LINE>writeRle(mapping.cut(0));<NEW_LINE>IntegerArray sizes = new IntegerArray(1);<NEW_LINE>IntegerArray files = n... | (convertToSigned(line - lastLine)); |
571,408 | public void onClick(View v) {<NEW_LINE>if (v.getTag() instanceof Boolean && (Boolean) v.getTag()) {<NEW_LINE>onColorSelected(ColorPickerDialog.this.color);<NEW_LINE>dismiss();<NEW_LINE>// already selected<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ColorPickerDialog.this.color = colorPanelView.getColor();<NEW_LINE>adapter.sel... | findViewById(R.id.cpv_color_panel_view); |
201,415 | public StringAggState removeFromAggregatedState(RamAccounting ramAccounting, StringAggState previousAggState, Input[] stateToRemove) {<NEW_LINE>String expression = (String) stateToRemove[0].value();<NEW_LINE>if (expression == null) {<NEW_LINE>return previousAggState;<NEW_LINE>}<NEW_LINE>String delimiter = (String) stat... | values.get(indexOfExpression + 1); |
934,075 | private void fillMinusHitsFromOneField(String fieldName, Set<Object> fieldValues, SearchHit someHit) {<NEW_LINE>List<SearchHit> minusHitsList = new ArrayList<>();<NEW_LINE>int currentId = 1;<NEW_LINE>for (Object result : fieldValues) {<NEW_LINE>Map<String, DocumentField> fields = new HashMap<>();<NEW_LINE>ArrayList<Obj... | new DocumentField(fieldName, values)); |
707,342 | public DataRecord deserialize(final DataInput source, @NonNegative final long recordID, final SirixDeweyID deweyID, final PageReadOnlyTrx pageReadTrx) throws IOException {<NEW_LINE>final byte valueType = source.readByte();<NEW_LINE>final Number number;<NEW_LINE>switch(valueType) {<NEW_LINE>case 0:<NEW_LINE>number = sou... | source, recordID, deweyID, pageReadTrx); |
1,098,552 | public static void allowNetworkPolicySettingsForEntityOperator(ExtensionContext extensionContext, String clusterName, String namespace) {<NEW_LINE>LabelSelector labelSelector = new LabelSelectorBuilder().addToMatchLabels(Constants.KAFKA_CLIENTS_LABEL_KEY, Constants.KAFKA_CLIENTS_LABEL_VALUE).build();<NEW_LINE>String eo... | ).createResource(extensionContext, networkPolicy); |
137,372 | private void send_to_port(ByteBuffer[] ev, EHandle sender) throws Pausable {<NEW_LINE>// Either send to port, or enqueue...:<NEW_LINE>EInternalPort port;<NEW_LINE>synchronized (this) {<NEW_LINE>// get port; enqueue if necessary<NEW_LINE>port = this.port;<NEW_LINE>if (port == null) {<NEW_LINE>// In queueing mode<NEW_LIN... | EDriverTask task = port.task(); |
230,262 | private static Pair<ExprNode, ExprTableAccessNode> handleTableSubchain(List<ExprNode> tableKeys, List<Chainable> chain, TableMetaData table, Function<List<Chainable>, ExprDotNodeImpl> dotNodeFunction) {<NEW_LINE>if (chain.isEmpty()) {<NEW_LINE>ExprTableAccessNodeTopLevel node = new <MASK><NEW_LINE>node.addChildNodes(ta... | ExprTableAccessNodeTopLevel(table.getTableName()); |
1,092,838 | private void printErrorText(VirtualFrame frame, Object out, SyntaxErrData syntaxErrData) {<NEW_LINE>String text = castToString(objectStr(frame, syntaxErrData.text));<NEW_LINE>int offset = syntaxErrData.offset;<NEW_LINE>if (offset >= 0) {<NEW_LINE>if (offset > 0 && offset == text.length() && text.charAt(offset - 1) == '... | fileWriteString(frame, out, " "); |
1,321,022 | public static DescribeDcdnHttpsDomainListResponse unmarshall(DescribeDcdnHttpsDomainListResponse describeDcdnHttpsDomainListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnHttpsDomainListResponse.setRequestId(_ctx.stringValue("DescribeDcdnHttpsDomainListResponse.RequestId"));<NEW_LINE>describeDcdnHttpsDomain... | ("DescribeDcdnHttpsDomainListResponse.CertInfos[" + i + "].CertStatus")); |
1,524,504 | private void propagateRelationships(HeadChordInter... pair) {<NEW_LINE>Set<AbstractChordInter> stdChords = measure.getStandardChords();<NEW_LINE>stdChords.removeAll(Arrays.asList(pair));<NEW_LINE>for (AbstractChordInter ch : stdChords) {<NEW_LINE>for (int i = 0; i < 2; i++) {<NEW_LINE>HeadChordInter one = pair[i];<NEW_... | setRel(ch, two, rel); |
595,294 | public void initialize() {<NEW_LINE>keyEventEventHandler = event -> {<NEW_LINE>if (Utilities.isCtrlShiftPressed(KeyCode.L, event)) {<NEW_LINE>accountAgeWitnessService.getAccountAgeWitnessUtils().logSignedWitnesses();<NEW_LINE>} else if (Utilities.isCtrlShiftPressed(KeyCode.S, event)) {<NEW_LINE>accountAgeWitnessService... | .getAccountAgeWitnessUtils().logUnsignedSignerPubKeys(); |
587,166 | protected void updateBeforeRender() {<NEW_LINE>super.updateBeforeRender();<NEW_LINE>// Update the dialog title with an ETA if possible<NEW_LINE>Component title = this.getGuiDisplayName(<MASK><NEW_LINE>if (status != null) {<NEW_LINE>final long elapsedTime = status.getElapsedTime();<NEW_LINE>final double remainingItems =... | GuiText.CraftingStatus.text()); |
849,899 | private LexerAction createLexerAction(GrammarAST ID, GrammarAST arg) {<NEW_LINE><MASK><NEW_LINE>checkCommands(command, ID.getToken());<NEW_LINE>if ("skip".equals(command) && arg == null) {<NEW_LINE>return LexerSkipAction.INSTANCE;<NEW_LINE>} else if ("more".equals(command) && arg == null) {<NEW_LINE>return LexerMoreAct... | String command = ID.getText(); |
571,491 | public void run(ApplicationArguments args) throws Exception {<NEW_LINE>if (args.containsOption("import")) {<NEW_LINE>if (!args.containsOption("collection"))<NEW_LINE>throw new IllegalArgumentException("required option: --collection with collection name when using --import");<NEW_LINE>String collection = args.getOptionV... | log.warn(source + " - no input to import"); |
462,867 | protected Object peekAtInfo(IJavaElement element) {<NEW_LINE>switch(element.getElementType()) {<NEW_LINE>case IJavaElement.JAVA_MODEL:<NEW_LINE>return this.modelInfo;<NEW_LINE>case IJavaElement.JAVA_PROJECT:<NEW_LINE>return this.projectCache.get(element);<NEW_LINE>case IJavaElement.PACKAGE_FRAGMENT_ROOT:<NEW_LINE>retur... | this.childrenCache.get(element); |
1,117,322 | public Object calculate(Context ctx) {<NEW_LINE>if (left == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("\"\\=\"" + mm.getMessage("operator.missingLeftOperation"));<NEW_LINE>}<NEW_LINE>if (right == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new ... | + mm.getMessage("function.paramTypeError")); |
245,751 | private void generateSimpleSetterMethodForBuilder(BuilderJob job, boolean deprecate, EclipseNode fieldNode, char[] paramName, char[] nameOfSetFlag, TypeReference returnType, Statement returnStatement, Annotation[] annosOnParam, EclipseNode originalFieldNode, String setterPrefix) {<NEW_LINE>TypeDeclaration td = (TypeDec... | existingName = existing[i].selector; |
1,453,359 | private void processOpenFileQueue() {<NEW_LINE>// no work to do<NEW_LINE>if (openFileQueue_.isEmpty())<NEW_LINE>return;<NEW_LINE>// find the first work unit<NEW_LINE>final OpenFileEntry entry = openFileQueue_.peek();<NEW_LINE>// define command to advance queue<NEW_LINE>final Command processNextEntry = new Command() {<N... | entry.executeOnSuccess.execute(target); |
555,050 | public static void loadNativeLibrary(@NonNull Context context, @NonNull String library, @NonNull String libraryVersion) {<NEW_LINE>try {<NEW_LINE>ReLinker.loadLibrary(context, library, libraryVersion);<NEW_LINE>} catch (MissingLibraryException e) {<NEW_LINE>Log.e(TAG, "******** Failed relink native library " + library ... | "******** Failed relink native library " + library + " ********", e); |
267,042 | private static String createIdFieldInitialization(String idPropertyType, String valueVar) {<NEW_LINE>String idField;<NEW_LINE>// PENDING cannot assume that key type is Integer, Long, String, int or long<NEW_LINE>if ("char".equals(idPropertyType)) {<NEW_LINE>idField = valueVar + ".charAt(0);";<NEW_LINE>} else if (PRIMIT... | + methodName + "(" + valueVar + ")"; |
1,771,650 | public Map<String, String> tableOptions() {<NEW_LINE>Map<String, String> map = super.tableOptions();<NEW_LINE>map.put("connector", "hive");<NEW_LINE>map.put("default-database", database);<NEW_LINE>if (null != hiveVersion) {<NEW_LINE>map.put("hive-version", hiveVersion);<NEW_LINE>}<NEW_LINE>if (null != hadoopConfDir) {<... | map.put("hive-conf-dir", hiveConfDir); |
1,671,832 | // Must already have started a transaction<NEW_LINE>protected void writeDown(Trace trace, long snap, TraceThread thread, int frame) {<NEW_LINE>if (space.isUniqueSpace()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>byte[] data = new byte[4096];<NEW_LINE>ByteBuffer <MASK><NEW_LINE>TraceMemorySpace mem = TraceSleighUtils.getSp... | buf = ByteBuffer.wrap(data); |
55,286 | public void runTask() throws RocksDBException {<NEW_LINE>if (numEntries_ != DbBenchmark.this.num_) {<NEW_LINE>stats_.message_.append(String.format(" (%d ops)", numEntries_));<NEW_LINE>}<NEW_LINE>byte[] key = new byte[keySize_];<NEW_LINE>byte[] value = new byte[valueSize_];<NEW_LINE>try {<NEW_LINE>if (entriesPerBatch_ =... | this.gen_.generate(value); |
58,630 | protected Map<KafkaTopicPartition, Long> fetchOffsetsWithTimestamp(Collection<KafkaTopicPartition> partitions, long timestamp) {<NEW_LINE>Map<TopicPartition, Long> partitionOffsetsRequest = new HashMap<>(partitions.size());<NEW_LINE>for (KafkaTopicPartition partition : partitions) {<NEW_LINE>partitionOffsetsRequest.put... | >(partitions.size()); |
1,177,631 | public void marshall(DataRepositoryTask dataRepositoryTask, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataRepositoryTask == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dataRepositoryTask.getTaskId()... | dataRepositoryTask.getCreationTime(), CREATIONTIME_BINDING); |
1,636,443 | protected void onFinishInflate() {<NEW_LINE>super.onFinishInflate();<NEW_LINE>inflate(getContext(), R.layout.message_request_bottom_bar, this);<NEW_LINE>question = findViewById(R.id.message_request_question);<NEW_LINE>accept = findViewById(R.id.message_request_accept);<NEW_LINE>block = findViewById(R.id.message_request... | findViewById(R.id.message_request_blocked_buttons); |
1,524,173 | private static List<Path> searchJavaHomeInDir(Path dir) throws IOException {<NEW_LINE>final List<Path> <MASK><NEW_LINE>final boolean jdk = isJDK(dir);<NEW_LINE>if (isJavaHome(dir))<NEW_LINE>homes.add(dir.toAbsolutePath());<NEW_LINE>try (DirectoryStream<Path> fs = Files.newDirectoryStream(dir)) {<NEW_LINE>for (Path f : ... | homes = new ArrayList<>(); |
902,076 | protected void doWork() {<NEW_LINE>if (isProcessRunning) {<NEW_LINE>// process is already started successfully!<NEW_LINE>} else {<NEW_LINE>// process is not started!<NEW_LINE>m_summary = new StringBuffer();<NEW_LINE>String trxName = mImportProcessor.get_TrxName();<NEW_LINE>if (trxName == null || "".equals(trxName)) {<N... | int no = mImportProcessor.deleteLog(); |
406,085 | public Pair<Boolean, byte[]> execute(byte[] data) {<NEW_LINE>if (data == null) {<NEW_LINE>return Pair.of(true, DataWord.ZERO().getData());<NEW_LINE>}<NEW_LINE>if (data.length != SIZE) {<NEW_LINE>return Pair.of(true, DataWord.ZERO().getData());<NEW_LINE>}<NEW_LINE>boolean result;<NEW_LINE>long ctx = JLibrustzcash.librus... | 0, nullifier, 0, 32); |
882,127 | public boolean compress() {<NEW_LINE>if (!palette.compress()) {<NEW_LINE>if (blockLight != null) {<NEW_LINE>byte[] arr1 = blockLight;<NEW_LINE>hasBlockLight <MASK><NEW_LINE>byte[] arr2;<NEW_LINE>if (skyLight != null) {<NEW_LINE>arr2 = skyLight;<NEW_LINE>hasSkyLight = !Utils.isByteArrayEmpty(skyLight);<NEW_LINE>} else {... | = !Utils.isByteArrayEmpty(arr1); |
932,643 | public static byte[] computeSharedSecret(NamedGroup group, BigInteger privateKey, byte[] publicKey) {<NEW_LINE>switch(group) {<NEW_LINE>case ECDH_X25519:<NEW_LINE>return ForgivingX25519Curve.computeSharedSecret(privateKey, publicKey);<NEW_LINE>case ECDH_X448:<NEW_LINE>return ForgivingX448Curve.computeSharedSecret(priva... | ).getData(), elementLength); |
1,718,413 | public TransitGatewayMulticastDomainAssociation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>TransitGatewayMulticastDomainAssociation transitGatewayMulticastDomainAssociation = new TransitGatewayMulticastDomainAssociation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int... | ().unmarshall(context)); |
399,166 | public Observable<ServiceResponseWithHeaders<Page<CloudJob>, JobListHeaders>> listSinglePageAsync() {<NEW_LINE>if (this.client.batchUrl() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.batchUrl() is required and cannot be null.");<NEW_LINE>}<NEW_LINE>if (this.client.apiVersion() == null) ... | this.client.batchUrl()); |
291,720 | private Animator morphPassword(CharSequence pw, float fromProgress, float toProgress, long duration) {<NEW_LINE>password = pw;<NEW_LINE>updateBounds();<NEW_LINE>characters = new PasswordCharacter[pw.length()];<NEW_LINE>String passStr = pw.toString();<NEW_LINE>for (int i = 0; i < pw.length(); i++) {<NEW_LINE>characters[... | i, paint, maskDiameter, maskCenterY); |
1,064,248 | final DeleteVolumeResult executeDeleteVolume(DeleteVolumeRequest deleteVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVolumeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | endClientExecution(awsRequestMetrics, request, response); |
1,391,538 | protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new ArrayList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("SCHEMA", 0, typeFactory.createSqlType(SqlTypeName.VARCHAR)));<NEW_LINE>columns.add(new Re... | createSqlType(SqlTypeName.VARCHAR))); |
47,904 | protected int createEditor(Composite parent, List<ICommandParameter> parameters, int currentIndex, List<IParameterEditor> editorList, boolean showLabel) {<NEW_LINE>if (parameters != null && currentIndex >= 0 && currentIndex < parameters.size()) {<NEW_LINE>ICommandParameter parameter = parameters.get(currentIndex);<NEW_... | addAndConfigureEditor(parent, editor, editorList); |
80,588 | public void testSlowReqMonitorIntervals() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "-------> Setting slowRequestThreshold to 1 second");<NEW_LINE>server.setServerConfigurationFile("server_slowRequestThreshold1.xml");<NEW_LINE>server.waitForStringInLog("CWWKG0017I", 30000);<NEW_LINE>createRequest(... | " ----> Expected Actual : " + time + " ***** Expected : " + expected); |
379,233 | private synchronized URL[] checkShadedMultiJars() {<NEW_LINE>try {<NEW_LINE>List<Coordinates> coordinates = coorProvider.apply(Utilities.toFile(binary.toURI()));<NEW_LINE>File lrf = EmbedderFactory<MASK><NEW_LINE>List<URL> urls = new ArrayList<URL>();<NEW_LINE>if (coordinates != null) {<NEW_LINE>for (Coordinates coord ... | .getProjectEmbedder().getLocalRepositoryFile(); |
146,090 | private LinkedHashMap<IVariable, IConstant> copyMinusErrors(final LinkedHashMap<IVariable, IConstant> src, final IVariable[] variablesToKeep) {<NEW_LINE>final LinkedHashMap<IVariable, IConstant> dst = new LinkedHashMap<IVariable, IConstant>(variablesToKeep != null ? variablesToKeep.length : src.size());<NEW_LINE>final ... | > e = itr.next(); |
450,492 | public static MethodHandle ofLoaded(Object methodHandle, Object lookup) {<NEW_LINE>if (!JavaType.METHOD_HANDLE.isInstance(methodHandle)) {<NEW_LINE>throw new IllegalArgumentException("Expected method handle object: " + methodHandle);<NEW_LINE>} else if (!JavaType.METHOD_HANDLES_LOOKUP.isInstance(lookup)) {<NEW_LINE>thr... | METHOD_HANDLES_LOOKUP.revealDirect(lookup, methodHandle); |
860,776 | public Message newResponse(final Message parent, final int code, final String fmt, final Object... args) {<NEW_LINE>final RpcRequests.ErrorResponse.Builder eBuilder = RpcRequests.ErrorResponse.newBuilder();<NEW_LINE>eBuilder.setErrorCode(code);<NEW_LINE>if (fmt != null) {<NEW_LINE>eBuilder.setErrorMsg(String.format(fmt... | getDescriptorForType().findFieldByNumber(ERROR_RESPONSE_NUM); |
471,867 | public void calc(ComContext context) {<NEW_LINE>Iterable<Tuple3<Double, Double, Vector>> labledVectors = context.getObj(OptimVariable.trainData);<NEW_LINE>// get iterative coefficient from static memory.<NEW_LINE>Tuple2<DenseVector, Double> state = context.getObj(OptimVariable.currentCoef);<NEW_LINE>int size = state.f0... | labledVectors, coef, grad.f0); |
1,820,400 | private void newPostSetup() {<NEW_LINE>mIsNewPost = true;<NEW_LINE>if (mSite == null) {<NEW_LINE>showErrorAndFinish(R.string.blog_not_found);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!mSite.isVisible()) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create a new post<NEW_LINE>mEditPostRepository.set(() -> {<... | showErrorAndFinish(R.string.error_blog_hidden); |
262,296 | private void loadNode362() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupType_TrustList_Close_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf... | .expanded(), true)); |
1,425,213 | final UpdateAppInstanceResult executeUpdateAppInstance(UpdateAppInstanceRequest updateAppInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAppInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
120,524 | public Float validateAndGetRate(int dayCount, Currency currencyFrom, Currency currencyTo, LocalDate date) throws AxelorException {<NEW_LINE>try {<NEW_LINE>HTTPResponse response = null;<NEW_LINE>if (dayCount < 8) {<NEW_LINE>response = callApiBaseEuru(currencyFrom, currencyTo, date);<NEW_LINE>LOG.trace("Webservice respon... | getRateFromJson(currencyFrom, currencyTo, response); |
1,318,040 | private boolean syncEpisodes(@NonNull Map<Integer, Long> tmdbIdsToShowIds, @NonNull LastActivityMore lastActivity, long currentTime) {<NEW_LINE>if (!TraktCredentials.get(context).hasCredentials()) {<NEW_LINE>// auth was removed<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// download flags<NEW_LINE>// if initial sync, up... | putLong(TraktSettings.KEY_LAST_FULL_EPISODE_SYNC, currentTime); |
311,617 | protected CheckFailedResult checkDirectory(String dirKey) {<NEW_LINE>String dir = AppContext.getProperty(dirKey);<NEW_LINE>if (dir != null) {<NEW_LINE>File dirFile = new File(dir);<NEW_LINE>boolean readable = Files.isReadable(dirFile.toPath());<NEW_LINE>boolean writable = Files.isWritable(dirFile.toPath());<NEW_LINE>bo... | isReadable(dirFile.toPath()); |
1,827,409 | public String addLeg() {<NEW_LINE>// Default is not added<NEW_LINE>int status = NOT_ADDED;<NEW_LINE>if (!body) {<NEW_LINE>// No body, cannot add a leg<NEW_LINE>status = MISSING;<NEW_LINE>} else if (legs < MAX_LEGS) {<NEW_LINE>legs++;<NEW_LINE>status = ADDED;<NEW_LINE>}<NEW_LINE>String message = "";<NEW_LINE>// Create a... | , String.valueOf(legs)); |
1,353,784 | public S3TagList requestRoomS3Tags(Long roomId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'roomId' is set<NEW_LINE>if (roomId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'roomId' when calling request... | HashMap<String, String>(); |
977,594 | public void appendColumns(final int count) {<NEW_LINE>// add the headers<NEW_LINE>final String[] newHeaders = new String[getHeaderCount() + count];<NEW_LINE>System.arraycopy(this.headers, 0, newHeaders, 0, getHeaderCount());<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>newHeaders[i + getHeaderCount()] = "new";<N... | this.data.remove(rowIndex); |
555,214 | private String adaptReplaceText(String text, int breaksToPreserve, boolean isRegionEnd, int regionEdge) {<NEW_LINE>int i = isRegionEnd ? 0 : text.length() - 1;<NEW_LINE>int direction = isRegionEnd ? 1 : -1;<NEW_LINE>int preservedBreaks = 0;<NEW_LINE>for (; i >= 0 && i < text.length(); i += direction) {<NEW_LINE>assert ... | text.substring(i + 1); |
1,841,946 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>mApplication = (TinkApplication) getApplicationContext();<NEW_LINE>mPlaintextView = (EditText) findViewById(R.id.plaintext);<NEW_LINE>mAssociatedDataView = (EditTex... | findViewById(R.id.associated_data); |
1,792,340 | public int compareTo(removeTableProperty_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSec(), other.isSetSec());<NEW_LIN... | this.sec, other.sec); |
911,422 | public RubyString inspect(ThreadContext context) {<NEW_LINE>int off = this.off;<NEW_LINE>int s = (dt.getHourOfDay() * 60 + dt.getMinuteOfHour()) * 60 + dt.getSecondOfMinute() - off;<NEW_LINE>long ns = (dt.getMillisOfSecond() * 1_000_000) + (subMillisNum * 1_000_000) / subMillisDen;<NEW_LINE>// e.g. #<Date: 2018-01-15 (... | .longToByteList(start, 10)); |
230,948 | public static TruffleString toDisplayStringImpl(Object value, boolean allowSideEffects, ToDisplayStringFormat format, int depth, Object parent) {<NEW_LINE>CompilerAsserts.neverPartOfCompilation();<NEW_LINE>if (value == parent) {<NEW_LINE>return Strings.PARENS_THIS;<NEW_LINE>} else if (value == Undefined.instance) {<NEW... | ) value) : (TruffleString) value; |
814,068 | public long prossesUASipRequest(Request sipRequest, SipProvider provider, long transactionId) throws SipParseException {<NEW_LINE>long retTidVal = 0;<NEW_LINE>SIPClientTranaction sipClientTransaction = null;<NEW_LINE>// the only Exception here is an ack sended<NEW_LINE>// in this state , there is not transaction to mat... | key = m_transactionsModel.createTransactionId(sipRequest); |
886,139 | private <E> Object onPreChecks(E entity, PersistenceDelegator delegator) {<NEW_LINE>// pre validation.<NEW_LINE>// check if entity is Null or with Invalid meta data!<NEW_LINE>Object id = null;<NEW_LINE>EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(delegator.getKunderaMetadata(<MASK><NEW_LINE>... | ), entity.getClass()); |
666,382 | final GetMemberResult executeGetMember(GetMemberRequest getMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | endClientExecution(awsRequestMetrics, request, response); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.