idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,188,848 | private void loadWhiteList(Project p, List<String> list, Map<String, Boolean> map) {<NEW_LINE>// prevent circle reference<NEW_LINE>if (p == null || map.get(p.getId() + "") != null) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>map.put(p.<MASK><NEW_LINE>}<NEW_LINE>if (p != null) {<NEW_LINE>for (Module m : p.getModuleLis... | getId() + "", true); |
1,489,698 | private void processClassDataItem(DexHeader header, ClassDefItem item, TaskMonitor monitor, MessageLog log) throws DuplicateNameException, IOException, Exception {<NEW_LINE>if (item.getClassDataOffset() > 0) {<NEW_LINE>ClassDataItem classDataItem = item.getClassDataItem();<NEW_LINE>Address classDataAddress = baseAddres... | .getLength() - 1)); |
1,041,364 | public TransformResources unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TransformResources transformResources = new TransformResources();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get... | String currentParentElement = context.getCurrentParentElement(); |
243,111 | public static GsiMetaBean initTableMeta(GsiMetaManager gsiMetaManager, String schema, String tableName, EnumSet<IndexStatus> statusSet) {<NEW_LINE>final GsiMetaBean result = new GsiMetaBean();<NEW_LINE>final List<String> statuses = statusSet.stream().map(s -> String.valueOf(s.getValue())).collect(Collectors.toList());<... | tableMetaBuilder = mergeTableRecords(allTableRecords, tmpTableIndexMap); |
480,571 | final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
578,644 | private void doAssert(Map<String, String> expected, PlaybackContext context) throws AssertionError {<NEW_LINE>final Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();<NEW_LINE>if (owner == null) {<NEW_LINE>throw new AssertionError("No component focused");<NEW_LINE>}<NEW_LINE>Compon... | = new LinkedHashSet<String>(); |
261,295 | private void updateDomainNetworkRef(Connection conn) {<NEW_LINE>List<PreparedStatement> pstmt2Close = new ArrayList<PreparedStatement>();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>// update subdomain access field for existing domain specific networks<NEW_LINE>pstmt =... | pstmt.setBoolean(1, subdomainAccess); |
513,677 | private long rebuildRelationshipIndex(final String relType) {<NEW_LINE>if (relType == null) {<NEW_LINE>info("Relationship type not set, starting (re-)indexing all relationships");<NEW_LINE>} else {<NEW_LINE>info("Starting (re-)indexing all relationships of type {}", relType);<NEW_LINE>}<NEW_LINE>final long count = bulk... | "Unable to index relationship: {}", t.getMessage()); |
755,596 | private Elements.Builder convertBufferForTransmission() {<NEW_LINE>Elements.Builder bufferedElements = Elements.newBuilder();<NEW_LINE>for (Map.Entry<String, Receiver<?>> entry : outputDataReceivers.entrySet()) {<NEW_LINE>if (entry.getValue().getOutput().size() == 0) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>ByteString ... | .timerFamilyId).setTimers(bytes); |
1,483,895 | final GetRecommendationsResult executeGetRecommendations(GetRecommendationsRequest getRecommendationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecommendationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,640,898 | public void visit(BaseReader br) throws Exception {<NEW_LINE>// FIXME, make as assert here about no class cast exception<NEW_LINE>if (br instanceof BaseReader) {<NEW_LINE>WebModuleReader wRdr = (WebModuleReader) br;<NEW_LINE>_w.<MASK><NEW_LINE>String url = wRdr.getErrorUrl();<NEW_LINE>if ((url != null) && (!"".equals(u... | setContextRoot(wRdr.getContextRoot()); |
807,217 | public UpdateClusterConfigResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateClusterConfigResult updateClusterConfigResult = new UpdateClusterConfigResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | int originalDepth = context.getCurrentDepth(); |
621,040 | public Object extractValue(final InputRow inputRow, final String metricName) {<NEW_LINE>final Object object = inputRow.getRaw(metricName);<NEW_LINE>if (object instanceof String) {<NEW_LINE>// everything is a string during ingestion<NEW_LINE>String objectString = (String) object;<NEW_LINE>// Autodetection of the input f... | setK(MIN_K).build(); |
1,408,944 | private void decryptAllPassword() {<NEW_LINE>new SQLBatch() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void scripts() {<NEW_LINE>for (Field field : encryptedFields) {<NEW_LINE>String className = field<MASK><NEW_LINE>List<String> uuids = sql(String.format("select uuid from %s", className)).list();<NEW_LINE>for (S... | .getDeclaringClass().getSimpleName(); |
1,116,014 | public void addRandomMaskAndReplace(Feature feature, boolean isKeptFirst, boolean isKeptLast) {<NEW_LINE>if (feature == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] masks = new int[maxSeqLen];<NEW_LINE>Arrays.fill(masks, 1);<NEW_LINE>int[<MASK><NEW_LINE>Arrays.fill(replaces, 1);<NEW_LINE>int[] inputIds = feature.... | ] replaces = new int[maxSeqLen]; |
301,454 | public NType resolve(Scope s) throws Exception {<NEW_LINE>NType ft = resolveExpr(func, s);<NEW_LINE>List<NType> argTypes = new ArrayList<NType>();<NEW_LINE>for (NNode a : args) {<NEW_LINE>argTypes.add(resolveExpr(a, s));<NEW_LINE>}<NEW_LINE>resolveList(keywords, s);<NEW_LINE>resolveExpr(starargs, s);<NEW_LINE>resolveEx... | NFuncType at = new NFuncType(to); |
336,527 | public static // XML Bind supports only the first one.<NEW_LINE>Calendar parseDate(String value) {<NEW_LINE>// check for colon in the time offset<NEW_LINE>int timeZoneIndex = value.indexOf("T");<NEW_LINE>if (timeZoneIndex > 0) {<NEW_LINE>int sign = <MASK><NEW_LINE>if (sign < 0) {<NEW_LINE>sign = value.indexOf("-", time... | value.indexOf("+", timeZoneIndex); |
860,460 | private Element loadRemotePolicy(String uri, String defName) {<NEW_LINE>ExtendedURIResolver resolver = new ExtendedURIResolver();<NEW_LINE>InputSource src = null;<NEW_LINE>try {<NEW_LINE>src = resolver.resolve(uri, "classpath:");<NEW_LINE>} catch (ConnectException | SocketTimeoutException e1) {<NEW_LINE>}<NEW_LINE>if (... | reader = StaxUtils.createXMLStreamReader(src); |
459,074 | public void collect(final IGangliaMetricsReporter reporter) {<NEW_LINE>// log.warn(statisticsCollector.getCounters().toString());<NEW_LINE>// Common base path which is NOT included in the generated metric name.<NEW_LINE>final String basePrefix = ICounterSet.pathSeparator + AbstractStatisticsCollector.fullyQualifiedHost... | reporter.setMetric(metricName, value); |
1,842,574 | public TransferResult<CFValue, CFStore> visitMethodInvocation(MethodInvocationNode node, TransferInput<CFValue, CFStore> in) {<NEW_LINE>FormatterAnnotatedTypeFactory atypeFactory = (FormatterAnnotatedTypeFactory) analysis.getTypeFactory();<NEW_LINE>TransferResult<CFValue, CFStore> result = super.visitMethodInvocation(n... | newResultValue, result.getRegularStore()); |
369,445 | public ProcessInstance handleCommand(Logger logger, String host, Command command) {<NEW_LINE>ProcessInstance processInstance = constructProcessInstance(command, host);<NEW_LINE>// cannot construct process instance, return null<NEW_LINE>if (processInstance == null) {<NEW_LINE><MASK><NEW_LINE>moveToErrorCommand(command, ... | logger.error("scan command, command parameter is error: {}", command); |
248,429 | private UserConsentModel toConsentModel(RealmModel realm, UserConsentEntity entity) {<NEW_LINE>if (entity == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StorageId clientStorageId = null;<NEW_LINE>if (entity.getClientId() == null) {<NEW_LINE>clientStorageId = new StorageId(entity.getClientStorageProvider(), entity... | clientStorageId.getId() + " is not available"); |
1,806,295 | public TbQueueRequestTemplate<TbProtoJsQueueMsg<RemoteJsRequest>, TbProtoQueueMsg<RemoteJsResponse>> createRemoteJsRequestTemplate() {<NEW_LINE>TbQueueProducer<TbProtoJsQueueMsg<RemoteJsRequest>> producer = new TbRabbitMqProducerTemplate<>(jsExecutorAdmin, rabbitMqSettings, jsInvokeSettings.getRequestTopic());<NEW_LINE... | , StandardCharsets.UTF_8), builder); |
64,392 | public boolean deserializer(KryoTupleDeserializer deserializer, boolean forceConsume) {<NEW_LINE>// LOG.debug("start Deserializer of task, {}", taskId);<NEW_LINE>boolean isIdling = true;<NEW_LINE>DisruptorQueue <MASK><NEW_LINE>if (!taskStatus.isShutdown()) {<NEW_LINE>if ((deserializeQueue.population() > 0 && exeQueue.p... | exeQueue = innerTaskTransfer.get(taskId); |
1,230,182 | private static Pair<List<TResultBatch>, Status> executeStmt(ConnectContext context, ExecPlan plan) throws Exception {<NEW_LINE>Coordinator coord = new Coordinator(context, plan.getFragments(), plan.getScanNodes(), plan.getDescTbl().toThrift());<NEW_LINE>QeProcessorImpl.INSTANCE.registerQuery(context.getExecutionId(), c... | add(batch.getBatch()); |
91,821 | private static int printSourceNumber(String source, int offset, StringBuffer sb) {<NEW_LINE>double number = 0.0;<NEW_LINE>char type = source.charAt(offset);<NEW_LINE>++offset;<NEW_LINE>if (type == 'S') {<NEW_LINE>if (sb != null) {<NEW_LINE>number = source.charAt(offset);<NEW_LINE>}<NEW_LINE>++offset;<NEW_LINE>} else if... | charAt(offset + 2) << 16; |
1,316,434 | private static void recursivelyAnalyzeSignatureRelatedType(NativeConfigurationRegistry registry, Class<?> clazz, Set<String> added) {<NEW_LINE>for (Field field : clazz.getDeclaredFields()) {<NEW_LINE>Set<Class<?>> fieldSignatureTypes = NativeConfigurationUtils.collectTypesInSignature(field);<NEW_LINE>for (Class<?> fiel... | String name = fieldSignatureType.getName(); |
345,083 | public boolean resolve() {<NEW_LINE>String[] options = { "File(Wsdl)", "Url(Wsdl)", "File(Wadl)", "Url(Wadl)", "Cancel" };<NEW_LINE>int choosed = JOptionPane.showOptionDialog(UISupport.getMainFrame(), "Choose source for new interface from ...", "New interface source", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.<MASK... | QUESTION_MESSAGE, null, options, null); |
753,557 | private final void resize() {<NEW_LINE>final int newTableEntries = nextPrime((int) (tableEntries_ * growthFactor_));<NEW_LINE>final int newCapacityEntries = (int) (newTableEntries * LOAD_FACTOR);<NEW_LINE>final byte[] newKeysArr = new byte[newTableEntries * keySizeBytes_];<NEW_LINE>final long[] newArrOfHllArr = new lon... | (oldIndex + 1) * keySizeBytes_); |
473,612 | public List<Pair<String, String>> export(Node node, ProgressReporter progressReporter) {<NEW_LINE>final String name = (String) node.getProperty(SystemPropertyKeys.name.name());<NEW_LINE>final String query = (String) node.getProperty(SystemPropertyKeys.statement.name());<NEW_LINE>try {<NEW_LINE>final String selector = t... | name()), statement)); |
828,761 | public static ListDevopsProjectsResponse unmarshall(ListDevopsProjectsResponse listDevopsProjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDevopsProjectsResponse.setRequestId(_ctx.stringValue("ListDevopsProjectsResponse.RequestId"));<NEW_LINE>listDevopsProjectsResponse.setErrorMsg(_ctx.stringValue("ListDevopsP... | ("ListDevopsProjectsResponse.Object.Result[" + i + "].OrganizationId")); |
827,829 | private RexNode flattenComparison(RexBuilder rexBuilder, SqlOperator op, List<RexNode> exprs) {<NEW_LINE>final List<Pair<RexNode, String>> flattenedExps = Lists.newArrayList();<NEW_LINE>flattenProjections(this, exprs, null, "", flattenedExps);<NEW_LINE>int n = flattenedExps.size() / 2;<NEW_LINE>boolean negate = false;<... | (i + n).left); |
1,591,557 | public StartBackupJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartBackupJobResult startBackupJobResult = new StartBackupJobResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | int originalDepth = context.getCurrentDepth(); |
476,149 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final I... | , tmpAddress, bt, tmpVal1)); |
1,195,811 | public static <T> ArrayList<VueRouter<T>> buildVueRouter(List<VueRouter<T>> routes) {<NEW_LINE>if (routes == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<VueRouter<T>> topRoutes = new ArrayList<>();<NEW_LINE>routes.forEach(route -> {<NEW_LINE><MASK><NEW_LINE>if (parentId == null || TOP_NODE_ID.equals(parentId... | String parentId = route.getParentId(); |
1,252,844 | private static HandshakeData createDefaultSsl() {<NEW_LINE>try {<NEW_LINE>final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");<NEW_LINE>keyPairGenerator.initialize(2048);<NEW_LINE>final KeyPair keyPair = keyPairGenerator.generateKeyPair();<NEW_LINE>// Generate self signed certificate<NEW_LINE>... | .addProvider(new BouncyCastleProvider()); |
1,457,308 | public static void main(String[] args) {<NEW_LINE>Exercise3 exercise3 = new Exercise3();<NEW_LINE>Digraph digraph = new Digraph(5);<NEW_LINE>digraph.addEdge(0, 1);<NEW_LINE>digraph.addEdge(0, 2);<NEW_LINE>digraph.addEdge(0, 3);<NEW_LINE>digraph.addEdge(1, 2);<NEW_LINE>digraph.addEdge(1, 4);<NEW_LINE>digraph.addEdge(2, ... | copyDigraph.edges() + " Expected: 7"); |
860,609 | private void showImportSuggestion(String[] list, int x, int y) {<NEW_LINE>if (frmImportSuggest != null) {<NEW_LINE>// frmImportSuggest.setVisible(false);<NEW_LINE>// frmImportSuggest = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final JList<String> classList = new JList<>(list);<NEW_LINE>classList.setSelectionMode(ListS... | frmImportSuggest.setBackground(Color.WHITE); |
5,018 | void init() {<NEW_LINE>dbWriterThread = new Thread(() -> {<NEW_LINE>try {<NEW_LINE>while (!Thread.currentThread().isInterrupted()) {<NEW_LINE>synchronized (FastSyncManager.this) {<NEW_LINE>if (dbQueueSizeMonitor >= 0 && dbWriteQueue.size() <= dbQueueSizeMonitor) {<NEW_LINE>FastSyncManager.this.notifyAll();<NEW_LINE>}<N... | "FastSyncDBWriter: commit: dbWriteQueue.size = " + dbWriteQueue.size()); |
1,267,760 | private NarayanaConfiguration createDefaultConfiguration(final String instanceId, final String recoveryId) {<NEW_LINE>NarayanaConfiguration result = new NarayanaConfiguration();<NEW_LINE>result.getEntries().add(createEntry("CoordinatorEnvironmentBean.commitOnePhase", "YES"));<NEW_LINE>result.getEntries().add(createEntr... | (createEntry("RecoveryEnvironmentBean.transactionStatusManagerAddress", "")); |
1,184,719 | public static DescribeRecommendInstanceTypeResponse unmarshall(DescribeRecommendInstanceTypeResponse describeRecommendInstanceTypeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRecommendInstanceTypeResponse.setRequestId(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.RequestId"));<NEW_LINE>List<Recommen... | ("DescribeRecommendInstanceTypeResponse.Data[" + i + "].InstanceType.Cores")); |
1,460,140 | public void preOpExecution(SameDiff sd, At at, SameDiffOp op, OpContext oc) {<NEW_LINE>if (op.getOp().isInPlace()) {<NEW_LINE>// Don't check inplace op<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (op.getOp() instanceof Op) {<NEW_LINE>Op o = (Op) op.getOp();<NEW_LINE>if (oc.getInputArray(0) == null) {<NEW_LINE>// No input o... | INDArray[arr.size()]; |
464,734 | public static void vertical3(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int <MASK><NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data... | k1 = kernel.data[0]; |
1,614,472 | protected Item createRSSItem(final SyndEntry sEntry) {<NEW_LINE>final Item item = super.createRSSItem(sEntry);<NEW_LINE>final List<SyndPerson> authors = sEntry.getAuthors();<NEW_LINE>if (Lists.isNotEmpty(authors)) {<NEW_LINE>final SyndPerson author = authors.get(0);<NEW_LINE>item.setAuthor(author.getEmail());<NEW_LINE>... | comments = sEntry.findRelatedLink("comments"); |
188,668 | public DLedgerEntry appendAsLeader(DLedgerEntry entry) {<NEW_LINE>PreConditions.check(memberState.<MASK><NEW_LINE>PreConditions.check(!isDiskFull, DLedgerResponseCode.DISK_FULL);<NEW_LINE>ByteBuffer dataBuffer = localEntryBuffer.get();<NEW_LINE>ByteBuffer indexBuffer = localIndexBuffer.get();<NEW_LINE>DLedgerEntryCoder... | isLeader(), DLedgerResponseCode.NOT_LEADER); |
514,782 | /*<NEW_LINE>Note that this will remove the properties from the list of attributes as it finds them.<NEW_LINE>*/<NEW_LINE>private void extractHttpHeaders(List<FileAttribute<?>> fileAttributes) {<NEW_LINE>BlobHttpHeaders headers = new BlobHttpHeaders();<NEW_LINE>for (Iterator<FileAttribute<?>> it = fileAttributes.iterato... | value().toString()); |
323,495 | protected Cursor doInBackground(Void... params) {<NEW_LINE>ActivityUtils utils = new ActivityUtils(getActivity());<NEW_LINE>update = utils.refreshActivity();<NEW_LINE>AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);<NEW_LINE>long now = new Date().getTime();<NEW_LINE>long alarm <MASK><NE... | = now + DrawerActivity.settings.activityRefresh; |
947,185 | public void serialize(ByteBuf buf) {<NEW_LINE>super.serialize(buf);<NEW_LINE>IntFloatVectorStorage storage = split.getStorage();<NEW_LINE>if (storage instanceof IntFloatSparseVectorStorage) {<NEW_LINE>buf.writeInt(storage.size());<NEW_LINE>ObjectIterator<Int2FloatMap.Entry> iter = storage.entryIterator();<NEW_LINE>Int2... | writeFloat(entry.getFloatValue()); |
492,755 | public Image generateImage(InputStream input) throws IOException {<NEW_LINE>try {<NEW_LINE>byte[] head = new byte[256];<NEW_LINE>input.read(head);<NEW_LINE>ByteArrayInputStream headByteStream = new ByteArrayInputStream(head);<NEW_LINE>Charset cs = getJavaCoreCodePage(headByteStream);<NEW_LINE>SequenceInputStream stream... | Logger.getLogger(ImageFactory.DTFJ_LOGGER_NAME); |
247,515 | public boolean addItem(String key, String value, String comment) {<NEW_LINE>Element.ItemElem item = getItem(key);<NEW_LINE>if (item != null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// construct the new element<NEW_LINE>item = new Element.ItemElem(null, new Element.KeyElem(null, key), new Element.ValueElem(null, va... | .CommentElem(null, comment)); |
1,699,486 | private static void testEquals() {<NEW_LINE>// equals<NEW_LINE>assertTrue(B.equals(B));<NEW_LINE>assertTrue(B.equals(new Byte((byte) 1)));<NEW_LINE>assertTrue(D.equals(D));<NEW_LINE>assertTrue(D.equals(new Double(1.0)));<NEW_LINE>assertTrue(F.equals(F));<NEW_LINE>assertTrue(F.equals(new Float(1.0f)));<NEW_LINE>assertTr... | (new Integer(1))); |
1,122,627 | private boolean placeTabs(int left, int right, Graphics2D g) {<NEW_LINE>Sketch sketch = editor.getSketch();<NEW_LINE>int x = left;<NEW_LINE>for (int i = 0; i < sketch.getCodeCount(); i++) {<NEW_LINE>SketchCode <MASK><NEW_LINE>Tab tab = tabs[i];<NEW_LINE>int state = (code == sketch.getCurrentCode()) ? SELECTED : UNSELEC... | code = sketch.getCode(i); |
152,240 | protected Transferable createTransferable(JComponent component) {<NEW_LINE>JBIterable<Pair<FilteringTreeStructure.FilteringNode, PsiElement>> pairs = JBIterable.of(myTree.getSelectionPaths()).filterMap(TreeUtil::getLastUserObject).filter(FilteringTreeStructure.FilteringNode.class).filterMap(o -> o.getDelegate() instanc... | ) : null).collect(); |
856,480 | public void marshall(ScanRequest scanRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (scanRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(scanRequest.getTableName(), TABLENAME_BINDING);<NEW... | scanRequest.getConsistentRead(), CONSISTENTREAD_BINDING); |
1,287,192 | public void runTimer(Timer timer) {<NEW_LINE>String serverConfigDir = System.getProperty("server.config.dir");<NEW_LINE>String wlpUserDir = System.getProperty("wlp.user.dir");<NEW_LINE>String serverName = serverConfigDir.substring(wlpUserDir.length() + "servers/".length(), serverConfigDir.length() - 1);<NEW_LINE>String... | x.printStackTrace(System.out); |
1,783,768 | public GraphHopperStorage createStorage(GHDirectory dir, GraphHopper gh) {<NEW_LINE>EncodingManager encodingManager = gh.getEncodingManager();<NEW_LINE>GraphExtension geTurnCosts = null;<NEW_LINE>ArrayList<GraphExtension> graphExtensions = new ArrayList<>();<NEW_LINE>if (encodingManager.needsTurnCostsSupport()) {<NEW_L... | ORSGraphHopper) gh).initCoreLMAlgoFactoryDecorator(); |
150,703 | public RemotingCommand processRequest(Channel channel, RemotingCommand request) throws RemotingCommandException {<NEW_LINE>BizLogSendRequest requestBody = request.getBody();<NEW_LINE>List<BizLog<MASK><NEW_LINE>if (CollectionUtils.isNotEmpty(bizLogs)) {<NEW_LINE>for (BizLog bizLog : bizLogs) {<NEW_LINE>JobLogPo jobLogPo... | > bizLogs = requestBody.getBizLogs(); |
1,637,979 | final DescribeVaultResult executeDescribeVault(DescribeVaultRequest describeVaultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVaultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,224,505 | protected List<JCStatement> createJavaUtilSetMapInitialCapacitySwitchStatements(JavacTreeMaker maker, SingularData data, JavacNode builderType, boolean mapMode, String emptyCollectionMethod, String singletonCollectionMethod, String targetType, JavacNode source, String builderVariable) {<NEW_LINE>List<JCExpression> jceB... | .of(assignStat, breakStat)); |
1,609,960 | public IterableStream<PartitionEvent> receiveFromPartition(String partitionId, int maximumMessageCount, EventPosition startingPosition, Duration maximumWaitTime) {<NEW_LINE>if (Objects.isNull(maximumWaitTime)) {<NEW_LINE>throw LOGGER.logExceptionAsError(new NullPointerException("'maximumWaitTime' cannot be null."));<NE... | logExceptionAsError(new NullPointerException("'partitionId' cannot be null.")); |
1,616,907 | private static // to separate the different tokens.<NEW_LINE>List<TokenizedString> preTokensToDelimitedTokens(List<PreTokenizedString> pretokens) {<NEW_LINE>List<TokenizedString> tokens = new ArrayList<>();<NEW_LINE>int size = pretokens.size();<NEW_LINE>int i = 0;<NEW_LINE>while (i < size) {<NEW_LINE>StringBuilder char... | get(i).getToken(); |
1,627,911 | private void writeInputSummary(StringEscapeUtils.Builder builder) throws IOException {<NEW_LINE>builder.append("<h2>Input</h2>");<NEW_LINE>JadxDecompiler jadx = mainWindow.getWrapper().getDecompiler();<NEW_LINE>builder.append("<h3>Files</h3>");<NEW_LINE>builder.append("<ul>");<NEW_LINE>for (File inputFile : jadx.getArg... | getRoot().getClasses(true); |
322,585 | private boolean createAllocation(int C_Currency_ID, String description, Timestamp dateAcct, BigDecimal Amount, BigDecimal DiscountAmt, BigDecimal WriteOffAmt, BigDecimal OverUnderAmt, int C_BPartner_ID, int C_Payment_ID, int C_Invoice_ID, int AD_Org_ID) {<NEW_LINE>// Process old Allocation<NEW_LINE>if (m_allocation != ... | Amount, DiscountAmt, WriteOffAmt, OverUnderAmt); |
1,741,648 | private RemoteDeduplicateView createMvpView(View view) {<NEW_LINE>final TextView addressText = view.findViewById(R.id.select_key_item_name);<NEW_LINE>return new RemoteDeduplicateView() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void finish() {<NEW_LINE>FragmentActivity activity = getActivity();<NEW_LINE>if (activit... | ).getParcelableExtra(RemoteSecurityTokenOperationActivity.EXTRA_DATA); |
1,826,072 | private static JSFunctionData createResolveElementFunctionImpl(JSContext context) {<NEW_LINE>class PromiseAllResolveElementRootNode extends JavaScriptRootNode implements AsyncHandlerRootNode {<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private JavaScriptNode <MASK><NEW_LINE><NEW_LINE>@Child<NEW_LINE>private PropertyGetNode get... | valueNode = AccessIndexedArgumentNode.create(0); |
199,235 | final CreateTrustResult executeCreateTrust(CreateTrustRequest createTrustRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTrustRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
406,012 | public static boolean performDumbAwareUpdate(boolean isInModalContext, @Nonnull AnAction action, @Nonnull AnActionEvent e, boolean beforeActionPerformed) {<NEW_LINE>final Presentation presentation = e.getPresentation();<NEW_LINE>final Boolean wasEnabledBefore = (Boolean) presentation.getClientProperty(WAS_ENABLED_BEFOR... | isDumbMode(e.getProject()); |
1,267,664 | public void generate(JDialog parent, File circuitFile, TruthTable table, ExpressionListenerStore expressions) throws Exception {<NEW_LINE>ModelAnalyserInfo mai = table.getModelAnalyzerInfo();<NEW_LINE>if (mai == null) {<NEW_LINE>JOptionPane.showMessageDialog(parent, new LineBreaker().toHTML().breakLines(Lang.get("msg_c... | .IDENTITY).create(expressions); |
1,664,777 | final ListConfigurationSetsResult executeListConfigurationSets(ListConfigurationSetsRequest listConfigurationSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConfigurationSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,571,973 | // FIXME: <TODO> Events are still pending<NEW_LINE>@Override<NEW_LINE>public int enqueueWriteBuffer(int deviceIndex, long bufferId, long offset, long bytes, byte[] value, long hostOffset, int[] waitEvents, ProfilerTransfer profilerTransfer) {<NEW_LINE>SPIRVLevelZeroCommandQueue spirvCommandQueue = commandQueues.get(dev... | hostOffset, null, 0, null); |
740,678 | public void onClick(View v) {<NEW_LINE>ViewHolderChatList holder = (ViewHolderChatList) v.getTag();<NEW_LINE>switch(v.getId()) {<NEW_LINE>case R.id.recent_chat_list_three_dots:<NEW_LINE>{<NEW_LINE>int currentPosition = holder.getAdapterPosition();<NEW_LINE>logDebug("Current position: " + currentPosition);<NEW_LINE>Mega... | ) fragment).itemClick(currentPosition); |
463,866 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.aptana.editor.js.parsing.ast.JSTreeWalker#visit(com.aptana.editor.js.parsing.ast.JSBinaryBooleanOperatorNode<NEW_LINE>* )<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visit(JSBinaryBooleanOperatorNode node) {<NEW_LINE>// Wrap the node with a generic expr... | getEndingOffset(), false, true); |
15,726 | public static DescribeAccountsResponse unmarshall(DescribeAccountsResponse describeAccountsResponse, UnmarshallerContext context) {<NEW_LINE>describeAccountsResponse.setRequestId(context.stringValue("DescribeAccountsResponse.RequestId"));<NEW_LINE>describeAccountsResponse.setPageSize(context.integerValue("DescribeAccou... | ("DescribeAccountsResponse.Items[" + i + "].LoginName")); |
509,912 | public void render(EffectContainer e) {<NEW_LINE>if (tex == null)<NEW_LINE>tex = Core.atlas.find(region);<NEW_LINE>float realRotation = (useRotation ? e.rotation : baseRotation);<NEW_LINE>float rawfin = e.fin();<NEW_LINE>float fin = e.fin(interp);<NEW_LINE>float rad = sizeInterp.apply(sizeFrom, sizeTo, rawfin) * 2;<NEW... | : rand.random(l)); |
624,633 | private static void createTable(String tableName, long readCapacityUnits, long writeCapacityUnits, String partitionKeyName, String partitionKeyType, String sortKeyName, String sortKeyType) {<NEW_LINE>try {<NEW_LINE>System.out.println("Creating table " + tableName);<NEW_LINE>List<KeySchemaElement> keySchema = new ArrayL... | sortKeyName).withAttributeType(sortKeyType)); |
1,129,458 | private Object overrride(Set<ShortcutAction> conflictingActions, Collection<ShortcutAction> sameScope) {<NEW_LINE>StringBuffer conflictingActionList = new StringBuffer();<NEW_LINE>for (ShortcutAction sa : conflictingActions) {<NEW_LINE>// NOI18N<NEW_LINE>conflictingActionList.append("<li>'").append(sa.getDisplayName<MA... | ()).append("'</li>"); |
1,240,085 | public void dibStretchBlt(byte[] image, int dx, int dy, int dw, int dh, int sx, int sy, int sw, int sh, long rop) {<NEW_LINE>byte[] record = new byte[26 + (image.length + image.length % 2)];<NEW_LINE>int pos = 0;<NEW_LINE>pos = setUint32(record, pos, record.length / 2);<NEW_LINE>pos = setUint16(record, pos, RECORD_DIB_... | setInt16(record, pos, dy); |
634,056 | private void init(JLabel label, String[] columns, TableSorter sorter) {<NEW_LINE>tableModel = new PropertiesTableModel(columns);<NEW_LINE>tableModel.addTableModelListener(this);<NEW_LINE>if (sorter == null) {<NEW_LINE>sorter = new TableSorter(tableModel);<NEW_LINE>}<NEW_LINE>this.sorter = sorter;<NEW_LINE>table <MASK><... | = new SortedTable(this.sorter); |
1,483,751 | private static OFActionSetVlanPcp decode_set_vlan_priority(String actionToDecode, OFVersion version) {<NEW_LINE>Matcher n = Pattern.compile("((?:0x)?\\d+)").matcher(actionToDecode);<NEW_LINE>if (n.matches()) {<NEW_LINE>if (n.group(1) != null) {<NEW_LINE>try {<NEW_LINE>OFActionSetVlanPcp a = OFFactories.getFactory(versi... | log.debug("Invalid action: '{}'", actionToDecode); |
1,553,504 | synchronized void purgeCache(CachePopulator populator) throws IOException {<NEW_LINE>// Note on implementation<NEW_LINE>// The purge works by scanning the query index and creating a new query cache populated<NEW_LINE>// for each query in the index. When the scan is complete, the old query cache is swapped<NEW_LINE>// ... | .writeLock().lock(); |
1,455,165 | protected void validateRequestParameters(@RequestBody EventInstanceCreateRequest request) {<NEW_LINE>if (request.getEventDefinitionId() == null && request.getEventDefinitionKey() == null) {<NEW_LINE>throw new FlowableIllegalArgumentException("Either eventDefinitionId or eventDefinitionKey is required.");<NEW_LINE>}<NEW... | != null) ? 1 : 0); |
1,512,914 | public static CompLongLongVector mergeSparseLongCompVector(LongIndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>Map<PartitionKey, PartitionGetResult> partKeyToResultMap = mapPartKeyToResult(partResults);<NEW_LINE>List<PartitionKey> partKeys = getSortedPartKeys(param.matrixId, param.getRowId());<NEW... | long dim = meta.getColNum(); |
924,483 | public InstanceStatusEvent unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceStatusEvent instanceStatusEvent = new InstanceStatusEvent();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true)... | int originalDepth = context.getCurrentDepth(); |
1,218,722 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create window MyWindow#length(2) as SupportBean;\n" + "insert into MyWindow select * from SupportBean;\n" + "@public create table varaggNWFAF (total sum(int));\n" + "into table varaggNWFAF se... | 0].get("doublePrimitive")); |
349,438 | final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAdminsRequest listAppInstanceAdminsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAppInstanceAdminsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
108,996 | public TemplateAlias unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TemplateAlias templateAlias = new TemplateAlias();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu... | int originalDepth = context.getCurrentDepth(); |
980,350 | private static void handleLegacy(String name, String className, ConfigurationCommon configuration, Element xmldomElement) {<NEW_LINE>// Class name is required for legacy classes<NEW_LINE>if (className == null) {<NEW_LINE>throw new ConfigurationException("Required class name not supplied for legacy type definition");<NE... | factoryMethod = getOptionalAttribute(xmldomElement, "factory-method"); |
1,104,929 | protected double maintain() {<NEW_LINE>if (!nodeRepository().nodes().isWorking())<NEW_LINE>return 0.0;<NEW_LINE>// Don't need to maintain spare capacity in dynamically provisioned zones; can provision more on demand.<NEW_LINE>if (nodeRepository().zone().getCloud().dynamicProvisioning())<NEW_LINE>return 1.0;<NEW_LINE>No... | set("spareHostCapacity", spareHostCapacity, null); |
721,304 | // Interrupt timed invokeAll while it is waiting for a queue position in order to submit one of the tasks.<NEW_LINE>// All of the tasks that previously started should be canceled when invokeAll returns and finish stopping in a timely manner.<NEW_LINE>@Test<NEW_LINE>public void testInvokeAllTimedInterruptWaitForEnqueue(... | get(TIMEOUT_NS, TimeUnit.NANOSECONDS); |
1,062,098 | private Optional<UsbSerialDeviceInformation> createUsbSerialDeviceInformation(ServiceInfo serviceInfo) {<NEW_LINE>String provider = serviceInfo.getPropertyString(PROPERTY_PROVIDER);<NEW_LINE>String deviceType = serviceInfo.getPropertyString(PROPERTY_DEVICE_TYPE);<NEW_LINE>String gensioStack = serviceInfo.getPropertyStr... | serialNumber = serviceInfo.getPropertyString(PROPERTY_SERIAL_NUMBER); |
551,693 | public static Optional<RDotTxtEntry> parse(String rDotTxtLine) {<NEW_LINE>Matcher matcher = TEXT_SYMBOLS_LINE.matcher(rDotTxtLine);<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>CustomDrawableType customType = CustomDrawableType.NONE;<NEW_LINE>IdType idType = IdType.from(match... | custom = custom.substring(1); |
1,606,791 | public void run(String... args) throws Exception {<NEW_LINE>{<NEW_LINE>System.out.println("refresh index");<NEW_LINE>repository.deleteAll();<NEW_LINE>operations.indexOps(Conference.class).delete();<NEW_LINE>operations.indexOps(Conference.class).create();<NEW_LINE>}<NEW_LINE>{<NEW_LINE>System.out.println("\n--- REPOSITO... | System.out.println("\n--- CUSTOM REPOSITORY ---"); |
92,034 | public static LineSkewResult findLineSkewPoint(Line line, Vec3d start, Vec3d direction) {<NEW_LINE>double ia = 0, ib = 1;<NEW_LINE><MASK><NEW_LINE>double id = 0.5;<NEW_LINE>Vec3d va, vb;<NEW_LINE>Vec3d best = null;<NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>Vec3d a = line.interpolate(ia);<NEW_LINE>Vec3d b = line.... | double da = 0, db = 0; |
915,089 | public static void main(String[] args) {<NEW_LINE>int gamesWon = 0;<NEW_LINE>// Intro text<NEW_LINE>System.out.println("\n\n Bagels");<NEW_LINE>System.out.println("Creative Computing Morristown, New Jersey");<NEW_LINE>System.out.println("\n\n");<NEW_LINE>System.out.print("Would you like the rules (Yes o... | = new Scanner(System.in); |
394,056 | protected StreamingDistribution createStreamingDistribution(final Path container, final Distribution distribution) throws BackgroundException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Create new %s distribution", distribution));<NEW_LINE>}<NEW_LINE>final AmazonCloudFront client = this.cli... | (config)).getStreamingDistribution(); |
1,243,341 | final DescribeGroupResult executeDescribeGroup(DescribeGroupRequest describeGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
87,737 | void initializeAssetBundles() throws WebAppException {<NEW_LINE>// The initial asset bundle consists of the assets bundled with the app<NEW_LINE>AssetBundle initialAssetBundle = new AssetBundle(resourceApi, applicationDirectoryUri);<NEW_LINE>Log.d(LOG_TAG, "Initial bundle loaded " + initialAssetBundle.getVersion());<NE... | String lastDownloadedVersion = configuration.getLastDownloadedVersion(); |
1,374,171 | public void check(UserDetails user) {<NEW_LINE>if (!user.isAccountNonLocked()) {<NEW_LINE>this.logger.debug("Failed to authenticate since user account is locked");<NEW_LINE>throw new LockedException(this.messages.getMessage("AccountStatusUserDetailsChecker.locked", "User account is locked"));<NEW_LINE>}<NEW_LINE>if (!u... | .getMessage("AccountStatusUserDetailsChecker.expired", "User account has expired")); |
1,500,238 | public final <T> Lookup.Result<T> lookup(Lookup.Template<T> template) {<NEW_LINE>beforeLookupResult(template);<NEW_LINE>for (; ; ) {<NEW_LINE>AbstractLookup.ISE toRun = null;<NEW_LINE>AbstractLookup.Storage<MASK><NEW_LINE>try {<NEW_LINE>Lookup.Result<T> prev = t.findResult(template);<NEW_LINE>if (prev != null) {<NEW_LI... | <?> t = enterStorage(); |
182,416 | public void configure(final BufferedImage origLeft, final BufferedImage origRight, StereoParameters param) {<NEW_LINE>this.param = param;<NEW_LINE>// distorted images<NEW_LINE>distLeft = ConvertBufferedImage.convertFromPlanar(origLeft, null, true, GrayF32.class);<NEW_LINE>distRight = ConvertBufferedImage.convertFromPla... | rect1, rect2, rectK, null); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.