idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,526,223 | public void checkIsConstant() throws ContractValidateException, VMIllegalException {<NEW_LINE>if (dynamicPropertiesStore.getAllowTvmConstantinople() == 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TriggerSmartContract triggerContractFromTransaction = ContractCapsule.getTriggerContractFromTransaction(this.getTrx().getInsta... | .toByteArray()) + " is not in contract store"); |
942,342 | void invoke() {<NEW_LINE>final String definition = streamFunctionProperties.getDefinition();<NEW_LINE>final String[] functionUnits = StringUtils.hasText(definition) ? definition.split(";") : new String[] {};<NEW_LINE>if (functionUnits.length == 0) {<NEW_LINE>resolvableTypeMap.forEach((key, value) -> {<NEW_LINE>Optional... | composedFunctions = functionUnit.split("\\|"); |
1,421,501 | private void init(String userName, char[] password, String server, boolean isUserNameEditable, ImageIcon icon, String errorMessage) {<NEW_LINE>this.server = server;<NEW_LINE>initIcon(icon);<NEW_LINE>if (!isUserNameEditable)<NEW_LINE>this.uinValue = new JLabel();<NEW_LINE>else<NEW_LINE>this.uinValue = new JTextField();<... | putClientProperty("apple.awt.brushMetalLook", Boolean.TRUE); |
1,620,627 | public static void main(String[] args) throws Exception {<NEW_LINE>String country = "", configfile = "", runtimeDataDir = "", licensePlate = "";<NEW_LINE>if (args.length == 4) {<NEW_LINE>country = args[0];<NEW_LINE>configfile = args[1];<NEW_LINE>runtimeDataDir = args[2];<NEW_LINE>licensePlate = args[3];<NEW_LINE>} else... | results = alpr.recognize(imagedata); |
499,048 | final public TregexPattern ChildrenDisj() throws ParseException {<NEW_LINE>TregexPattern child;<NEW_LINE>List<TregexPattern> children = new ArrayList<TregexPattern>();<NEW_LINE>// When we keep track of the known variables to assert that<NEW_LINE>// variables are not redefined, or that links are only set to known<NEW_LI... | knownVariables = Generics.newHashSet(originalKnownVariables); |
824,973 | public static DescribeRDSPerformanceResponse unmarshall(DescribeRDSPerformanceResponse describeRDSPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRDSPerformanceResponse.setRequestId(_ctx.stringValue("DescribeRDSPerformanceResponse.RequestId"));<NEW_LINE>describeRDSPerformanceResponse.setSuccess<MASK><... | (_ctx.booleanValue("DescribeRDSPerformanceResponse.Success")); |
1,846,294 | public ImmutableMap<InOutLineId, I_M_InOut> retrieveInOutByLineIds(@NonNull final Set<InOutLineId> inOutLineIds) {<NEW_LINE>final List<I_M_InOutLine> inOutLines = queryBL.createQueryBuilder(I_M_InOutLine.class).addOnlyActiveRecordsFilter().addInArrayFilter(I_M_InOutLine.COLUMNNAME_M_InOutLine_ID, inOutLineIds).create()... | (inOutLine.getM_InOut_ID())); |
168,144 | public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var <MASK><NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>UUID sid = Sid.randomUUID(options(request));<NEW_LINE>response.... | response = MongoResponse.of(exchange); |
1,082,096 | public void endVisit(MethodDeclaration node) {<NEW_LINE>ExecutableElement element = node.getExecutableElement();<NEW_LINE>if (!ElementUtil.getName(element).equals("compareTo") || node.getBody() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DeclaredType comparableType = typeUtil.findSupertype(ElementUtil.getDeclaringC... | getParameter(0).getVariableElement(); |
1,422,410 | private static Map<String, MetadataFieldMapper.TypeParser> initBuiltInMetadataMappers() {<NEW_LINE>Map<String, MetadataFieldMapper.TypeParser> builtInMetadataMappers;<NEW_LINE>// Use a LinkedHashMap for metadataMappers because iteration order matters<NEW_LINE>builtInMetadataMappers = new LinkedHashMap<>();<NEW_LINE>// ... | , new SourceFieldMapper.TypeParser()); |
1,691,142 | public void destroyVolume(long volumeId) {<NEW_LINE>// mark volume entry in volumes table as destroy state<NEW_LINE>VolumeInfo vol = volFactory.getVolume(volumeId);<NEW_LINE>vol.stateTransit(Volume.Event.DestroyRequested);<NEW_LINE>snapshotMgr.deletePoliciesForVolume(volumeId);<NEW_LINE>annotationDao.removeByEntityType... | stateTransit(Volume.Event.OperationSucceeded); |
1,469,879 | public PCollection<T> expand(PBegin input) {<NEW_LINE>checkArgument(getScanResponseMapperFn() != null, "withScanResponseMapperFn() is required");<NEW_LINE>checkArgument(getScanRequestFn() != null, "withScanRequestFn() is required");<NEW_LINE>ScanRequest scanRequest = getScanRequestFn().apply(null);<NEW_LINE>checkArgume... | new ReadFn<>())); |
320,229 | private CompletableFuture<Void> performCommit(MetadataTransaction txn, boolean lazyWrite, Map<String, TransactionData> txnData, ArrayList<String> modifiedKeys, ArrayList<TransactionData> modifiedValues) {<NEW_LINE>return CompletableFuture.runAsync(() -> {<NEW_LINE>// Step 2 : Check whether transaction is safe to commit... | toAdd.put(key, data); |
963,457 | public static int run(String[] args) {<NEW_LINE>Args parameters = new Args();<NEW_LINE>JCommander jc = JCommander.newBuilder().addObject(parameters).build();<NEW_LINE>jc.parse(args);<NEW_LINE>if (parameters.help) {<NEW_LINE>jc.usage();<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>File dbDirectory = new File(parameters.databa... | int fails = res.size(); |
1,589,962 | public void marshall(TransformJob transformJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (transformJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(transformJob.getTransformJobName(), TRANSFORMJOB... | transformJob.getFailureReason(), FAILUREREASON_BINDING); |
655,912 | public Map.Entry<K, V> next() {<NEW_LINE>Map.Entry<K, ReplicatedRecord<K, V>> entry = this.entry;<NEW_LINE>Object key = entry != null ? entry.getKey() : null;<NEW_LINE>Object value = entry != null && entry.getValue() != null ? entry.getValue<MASK><NEW_LINE>while (entry == null) {<NEW_LINE>entry = findNextEntry();<NEW_L... | ().getValue() : null; |
1,494,018 | public static DescribeDcdnDomainIpaBpsDataResponse unmarshall(DescribeDcdnDomainIpaBpsDataResponse describeDcdnDomainIpaBpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainIpaBpsDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainIpaBpsDataResponse.RequestId"));<NEW_LINE>describeDcdnDomain... | ("DescribeDcdnDomainIpaBpsDataResponse.BpsDataPerInterval[" + i + "].IpaBps")); |
1,313,087 | private static void runEveryDistinctOverNot(RegressionEnvironment env, String expression, AtomicInteger milestone) {<NEW_LINE>env.compileDeploy(expression).addListener("s0");<NEW_LINE>env.milestoneInc(milestone);<NEW_LINE>env.sendEventBean(new SupportBean("A1", 1));<NEW_LINE>env.assertPropsNew("s0", "a.theString".split... | new Object[] { "A4" }); |
163,552 | public <R, V extends Validation<E, R>> V apply(Function5<T1, T2, T3, T4, T5, R> f) {<NEW_LINE>final Validation<E, Function1<T2, Function1<T3, Function1<T4, Function1<T5, R>>>>> apply1 = v1.apply(Validation.success(Functions.curry(f)));<NEW_LINE>final Validation<E, Function1<T3, Function1<T4, Function1<T5, R>>>> apply2 ... | apply3 = v3.apply(apply2); |
1,414,614 | public void accept(final String fieldName, final Object fieldValue) {<NEW_LINE>if (IoTDBIndexes.isIndex(fieldName)) {<NEW_LINE>List<String<MASK><NEW_LINE>List<String> indexValues = request.getIndexValues();<NEW_LINE>// To avoid indexValue be "null" when inserting, replace null to empty string<NEW_LINE>if (indexes.conta... | > indexes = request.getIndexes(); |
1,796,068 | private Mono<Response<Void>> deleteSwiftVirtualNetworkWithResponseAsync(String resourceGroupName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Pa... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
399,213 | public static URLParam parse(Map<String, String> params, String rawParam) {<NEW_LINE>if (CollectionUtils.isNotEmptyMap(params)) {<NEW_LINE>int capacity = (int) (params.size() / .75f) + 1;<NEW_LINE>BitSet keyBit = new BitSet(capacity);<NEW_LINE>Map<Integer, Integer> valueMap = new HashMap<>(capacity);<NEW_LINE>Map<Strin... | = new HashMap<>(capacity); |
1,786,388 | private boolean process(String targetStr, String charStr, String numStr) {<NEW_LINE>double result;<NEW_LINE>double target;<NEW_LINE>try {<NEW_LINE>target = Double.parseDouble(targetStr);<NEW_LINE>if (numStr.startsWith("-")) {<NEW_LINE>result = -Double.parseDouble(numStr.substring(1));<NEW_LINE>} else {<NEW_LINE><MASK><... | result = Double.parseDouble(numStr); |
814,046 | public static DescribeGrantRulesResponse unmarshall(DescribeGrantRulesResponse describeGrantRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGrantRulesResponse.setRequestId(_ctx.stringValue("DescribeGrantRulesResponse.RequestId"));<NEW_LINE>describeGrantRulesResponse.setTotalCount(_ctx.integerValue("Describe... | (_ctx.integerValue("DescribeGrantRulesResponse.PageNumber")); |
1,340,147 | protected void parseJobAcquisition(XMLExtendedStreamReader reader, List<ModelNode> operations, ModelNode parentAddress) throws XMLStreamException {<NEW_LINE>String acquisitionName = null;<NEW_LINE>// Add the 'add' operation for each 'job-acquisition' child<NEW_LINE>ModelNode addJobAcquisitionOp = new ModelNode();<NEW_L... | (reader.getAttributeLocalName(i)); |
63,891 | private void writeHeaders(DataOutputStream os, ProducerOptionalBlobPartConfig.OptionalBlobPartOutputStreams partStreams, boolean isReverseDelta, HollowBlobHeaderWrapper hollowBlobHeaderWrapper) throws IOException {<NEW_LINE>headerWriter.<MASK><NEW_LINE>VarInt.writeVInt(os, hollowBlobHeaderWrapper.header.getSchemas().si... | writeHeader(hollowBlobHeaderWrapper.header, os); |
445,962 | public JRDataSource createDatasource() throws JRException {<NEW_LINE>try {<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>Workbook workbook = (<MASK><NEW_LINE>if (workbook == null) {<NEW_LINE>workbook = (Workbook) getParameterValue(AbstractXlsQueryExecuterFactory.XLS_WORKBOOK, true);<NEW_LINE>}<NEW_LINE>if (workboo... | Workbook) getParameterValue(JRXlsxQueryExecuterFactory.XLSX_WORKBOOK); |
410,206 | void start(ResumeFollowAction.Request request, String clusterNameAlias, IndexMetadata leaderIndexMetadata, IndexMetadata followIndexMetadata, String[] leaderIndexHistoryUUIDs, ActionListener<AcknowledgedResponse> listener) throws IOException {<NEW_LINE>MapperService mapperService = followIndexMetadata != null ? indices... | = new ResponseHandler(numShards, listener); |
568,598 | /*<NEW_LINE>// We cannot convert this into a NoCallResultInstr<NEW_LINE>@Override<NEW_LINE>public Instr discardResult() {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] t... | ), definingModule, args, block); |
219,641 | public ByteQueue build(CompressionManager compressionManager) {<NEW_LINE>if (!compressionManager.isCompressionEnabled()) {<NEW_LINE>return build();<NEW_LINE>}<NEW_LINE>byte[] original = bytes.toArray();<NEW_LINE>byte[] compressed = compressionManager.compressPacket(original);<NEW_LINE>// no compression happened<NEW_LIN... | ) + packetLen.size()]; |
1,310,289 | private static List<String> determineModifiedDisplayKeysSettings(final DomainID domainID, final PwmLocaleBundle bundle, final StoredConfiguration storedConfiguration) {<NEW_LINE>final List<Locale> knownLocales = Collections.unmodifiableList(new AppConfig(storedConfiguration).getKnownLocales());<NEW_LINE>final List<Stri... | ? "" : locale.toString(); |
1,284,605 | private void mergeWith(DoubleExponentialHistogramBuckets other, boolean additive) {<NEW_LINE>if (other.counts.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Find the common scale, and the extended window required to merge the two bucket sets<NEW_LINE>int commonScale = Math.min(this.scale, other.scale);<NEW_LINE>/... | = other.scale - this.scale; |
324,931 | final DescribeParametersResult executeDescribeParameters(DescribeParametersRequest describeParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | (super.beforeMarshalling(describeParametersRequest)); |
1,052,886 | public void onFragmentActivated() {<NEW_LINE>EditPoiData data = getData();<NEW_LINE>if (data == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>basicTagsInitialized = false;<NEW_LINE>Map<String, String> tagValues = data.getTagValues();<NEW_LINE>streetEditText.setText(tagValues.get(OSMTagKey.ADDR_STREET.getValue()));<NEW_L... | .ADDR_HOUSE_NUMBER.getValue())); |
1,746,984 | private String createFolder(Document targetFolder, String displayName) throws FileNotFoundException {<NEW_LINE>Context context = getNonNullContext();<NEW_LINE>String newDirPath = targetFolder.getRemotePath() + displayName + PATH_SEPARATOR;<NEW_LINE>FileDataStorageManager storageManager = targetFolder.getStorageManager(... | TAG, updateParent.toString()); |
1,067,570 | protected void genBitsets(Vector bitsetList, int maxVocabulary, String prefix) {<NEW_LINE>TokenManager tm = grammar.tokenManager;<NEW_LINE>println("");<NEW_LINE>for (int i = 0; i < bitsetList.size(); i++) {<NEW_LINE>BitSet p = (BitSet) bitsetList.elementAt(i);<NEW_LINE>// Ensure that generated BitSet is large enough fo... | escapeChar(j, true) + " "; |
821,489 | static IkePhase1Policy toIkePhase1Policy(IsakmpProfile isakmpProfile, AristaConfiguration oldConfig, Configuration config, Warnings w) {<NEW_LINE>IkePhase1Policy ikePhase1Policy = new IkePhase1Policy(isakmpProfile.getName());<NEW_LINE>ImmutableList.Builder<String> ikePhase1ProposalBuilder = ImmutableList.builder();<NEW... | getKey().toString()); |
948,030 | public void handleNotification(Notification notification) {<NEW_LINE>super.handleNotification(notification);<NEW_LINE>Sandbox sandbox = Sandbox.getInstance();<NEW_LINE>UIStage uiStage = sandbox.getUIStage();<NEW_LINE>switch(notification.getName()) {<NEW_LINE>case Overlap2DMenuBar.CUSTOM_VARIABLES_EDITOR_OPEN:<NEW_LINE>... | > selection = notification.getBody(); |
1,730,659 | public void onMediaClick(Album album, ArrayList<Media> media, int position) {<NEW_LINE>if (!pickMode) {<NEW_LINE>Intent intent = new Intent(getApplicationContext(), SingleMediaActivity.class);<NEW_LINE>intent.putExtra(SingleMediaActivity.EXTRA_ARGS_ALBUM, album);<NEW_LINE>try {<NEW_LINE>intent.setAction(SingleMediaActi... | m = media.get(position); |
122,771 | protected void handleInboundPubRel(MqttPubRel pubRel) throws MqttException {<NEW_LINE>final String methodName = "handleInboundPubRel";<NEW_LINE>if (pubRel.getReasonCodes()[0] > MqttReturnCode.RETURN_CODE_UNSPECIFIED_ERROR) {<NEW_LINE>// @TRACE 667=MqttPubRel was received with an error code: key={0} message={1},<NEW_LIN... | this.send(pubComp, null); |
1,105,235 | private void createMarginFields() {<NEW_LINE>NumericTextField topField = new NumericTextField();<NEW_LINE>NumericTextField rightField = new NumericTextField();<NEW_LINE>NumericTextField bottomField = new NumericTextField();<NEW_LINE>NumericTextField leftField = new NumericTextField();<NEW_LINE>StringConverter<Number> c... | add(bottomField, 1, 1); |
433,124 | public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Process.class, BPMN_ELEMENT_PROCESS).namespaceUri(BPMN20_NS).extendsType(CallableElement.class).instanceProvider(new ModelTypeInstanceProvider<Process>() {<NEW_LINE><NEW_LINE>public Proces... | namespace(CAMUNDA_NS).build(); |
1,149,930 | public boolean apply(Game game, Ability source) {<NEW_LINE>Set<Player> playersThatSearched = new HashSet<>(1);<NEW_LINE>for (UUID opponentId : game.getOpponents(source.getControllerId())) {<NEW_LINE>Player opponent = game.getPlayer(opponentId);<NEW_LINE>if (opponent != null && opponent.chooseUse(Outcome.PutCreatureInPl... | = new TargetCardInLibrary(StaticFilters.FILTER_CARD_CREATURE); |
950,555 | private void recordRequest(SpanRecorder recorder, Object target, Object[] args) {<NEW_LINE>final RpcInvocation invocation = (RpcInvocation) args[0];<NEW_LINE>final RpcContext rpcContext = RpcContext.getContext();<NEW_LINE><MASK><NEW_LINE>// Record rpc name, client address, server address.<NEW_LINE>recorder.recordRpcNam... | final Invoker invoker = (Invoker) target; |
1,404,120 | public GlmEvaluationBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>checkOpSize(2, inputs);<NEW_LINE>BatchOperator<?> model = inputs[0];<NEW_LINE>BatchOperator<?> in = inputs[1];<NEW_LINE>String[] featureColNames = getFeatureCols();<NEW_LINE>String labelColName = getLabelCol();<NEW_LINE>String weightColName = g... | ] summaryColNames = new String[1]; |
215,859 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>Linklist list = new Linklist();<NEW_LINE>boolean flag = true;<NEW_LINE>int valu;<NEW_LINE>int posi = 0;<NEW_LINE>while (flag) {<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("1. Add item to the list at start");<... | System.out.println("2. Add item to the list at last"); |
1,283,387 | protected mxRectangle revalidateState(mxCellState parentState, mxCellState state, double dx, double dy) {<NEW_LINE>mxRectangle dirty = null;<NEW_LINE>if (state != null) {<NEW_LINE>mxGraph graph = graphComponent.getGraph();<NEW_LINE>mxIGraphModel model = graph.getModel();<NEW_LINE>Object cell = state.getCell();<NEW_LINE... | getView().updateLabelBounds(state); |
1,611,088 | private float drawThirdVerticalLineWithWidth(int leftX, int leftY, int w, int h, int steph) {<NEW_LINE>float levelMaxLineWidth = 0;<NEW_LINE>for (int i = 0; i < node4CalcPos.childrenIdx.length; i++) {<NEW_LINE>TreeModelViz.Node4CalcPos tmp = all[node4CalcPos.childrenIdx[i]];<NEW_LINE>int x2 = tmp.gNode.posCenter - left... | .getCounter().getWeightSum(); |
1,108,260 | public void permissionTicketUpdated(String id, String owner, String requester, String resource, String resourceName, String scope, String serverId, Set<String> invalidations) {<NEW_LINE>invalidations.add(id);<NEW_LINE>invalidations.add(StoreFactoryCacheSession.getPermissionTicketByOwner(owner, serverId));<NEW_LINE>inva... | .getPermissionTicketByResource(resource, serverId)); |
1,723,629 | private <T> BindingImpl<T> createImplementedByBinding(Key<T> key, Scoping scoping, ImplementedBy implementedBy, Errors errors) throws ErrorsException {<NEW_LINE>Class<?> rawType = key.getTypeLiteral().getRawType();<NEW_LINE>Class<?> implementationType = implementedBy.value();<NEW_LINE>// Make sure it's not the same typ... | Class<? extends T>) implementationType; |
1,137,988 | public List<Future<?>> insert(String agentId, long captureTime) throws Exception {<NEW_LINE>AgentConfig agentConfig = agentConfigDao.read(agentId);<NEW_LINE>if (agentConfig == null) {<NEW_LINE>// have yet to receive collectInit()<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>List<RollupConfig> rollupConfigs =... | .setInt(i++, adjustedTTL); |
173,238 | public byte[] serialize() {<NEW_LINE>byte[] data = createHeaderDataArray();<NEW_LINE>ByteBuffer bb = ByteBuffer.wrap(data);<NEW_LINE>int version = (this.version << AbstractGTP.GTP_VERSION_SHIFT);<NEW_LINE>byte flags = (byte) (version + (this.protocolType ? 16 : 0) + (this.reserved ? 8 : 0) + (this.extHeaderFlag ? 4 : 0... | bb.put(this.recoveryType); |
1,358,281 | public static void main(String[] args) throws Exception {<NEW_LINE>final ConfigBuilder configBuilder = new ConfigBuilder();<NEW_LINE>configBuilder.withWatchReconnectInterval(500);<NEW_LINE>configBuilder.withWatchReconnectLimit(5);<NEW_LINE>try (KubernetesClient client = new KubernetesClientBuilder().withConfig(configBu... | crdContext = CustomResourceDefinitionContext.fromCrd(prometheousRuleCrd); |
1,822,303 | public okhttp3.Call connectPutNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/nodes/{name}/proxy".replaceAll("\\{" + "name" + "\\}", localVarApiClient.esc... | localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
139,996 | static Map<Contig, List<TransitPairCount>> collectTransitPairCounts(final List<ContigImpl> contigs, final List<Path> readPaths) {<NEW_LINE>final Map<Contig, List<TransitPairCount>> contigTransitsMap = new HashMap<>(3 * contigs.size());<NEW_LINE>for (final Path path : readPaths) {<NEW_LINE>final List<PathPart> parts = p... | = parts.size() - 1; |
1,340,914 | public static Scriptable jsConstructor(final Context cx, final Object[] args, final Function ctorObj, final boolean inNewExpr) {<NEW_LINE>final PointerEvent event = new PointerEvent();<NEW_LINE>if (args.length != 0) {<NEW_LINE>event.setType(Context.<MASK><NEW_LINE>event.setBubbles(false);<NEW_LINE>event.setCancelable(f... | toString(args[0])); |
169,930 | public static ListChangeSetsResponse unmarshall(ListChangeSetsResponse listChangeSetsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listChangeSetsResponse.setRequestId(_ctx.stringValue("ListChangeSetsResponse.RequestId"));<NEW_LINE>listChangeSetsResponse.setPageNumber<MASK><NEW_LINE>listChangeSetsResponse.setPageSize(_... | (_ctx.integerValue("ListChangeSetsResponse.PageNumber")); |
1,158,122 | protected JFreeChart createTimeSeriesChart() throws JRException {<NEW_LINE>String timeAxisLabel = evaluateTextExpression(((JRTimeSeriesPlot) getPlot()).getTimeAxisLabelExpression());<NEW_LINE>String valueAxisLabel = evaluateTextExpression(((JRTimeSeriesPlot) getPlot()).getValueAxisLabelExpression());<NEW_LINE>ChartFact... | configureChart(jfreeChart, getPlot()); |
215,259 | private HttpTokens.Token next(ByteBuffer buffer) {<NEW_LINE><MASK><NEW_LINE>HttpTokens.Token t = HttpTokens.TOKENS[0xff & ch];<NEW_LINE>switch(t.getType()) {<NEW_LINE>case CNTL:<NEW_LINE>throw new IllegalCharacterException(_state, t, buffer);<NEW_LINE>case LF:<NEW_LINE>_cr = false;<NEW_LINE>break;<NEW_LINE>case CR:<NEW... | byte ch = buffer.get(); |
600,840 | protected void initBlockEntity() {<NEW_LINE>if (this.namedTag.contains("TransferCooldown")) {<NEW_LINE>this.transferCooldown = this.namedTag.getInt("TransferCooldown");<NEW_LINE>} else {<NEW_LINE>this.transferCooldown = 8;<NEW_LINE>}<NEW_LINE>this.inventory = new HopperInventory(this);<NEW_LINE>if (!this.namedTag.conta... | ListTag<CompoundTag>("Items")); |
628,827 | public static IFile readProjectRootFile(IProject project) {<NEW_LINE><MASK><NEW_LINE>if (projectPrefs != null) {<NEW_LINE>String rootFileName = projectPrefs.get(IPreferenceConstants.P_PROJECT_ROOT_FILE, IPreferenceConstants.DEFAULT_NOT_SET);<NEW_LINE>if (!IPreferenceConstants.DEFAULT_NOT_SET.equals(rootFileName)) {<NEW... | final IEclipsePreferences projectPrefs = getProjectPreferences(project); |
811,917 | private <T> List<T> retrieveAnyModelForHU(@NonNull final I_M_HU hu, @NonNull final Class<T> clazz) {<NEW_LINE>final IQueryBL queryBL = <MASK><NEW_LINE>final ICompositeQueryFilter<I_M_HU_Assignment> filter = queryBL.createCompositeQueryFilter(I_M_HU_Assignment.class).setJoinOr().addEqualsFilter(I_M_HU_Assignment.COLUMNN... | Services.get(IQueryBL.class); |
854,394 | public static <T extends IServerConduit> boolean connectConduits(@Nonnull T con, @Nonnull EnumFacing faceHit) {<NEW_LINE>BlockPos pos = con.getBundle().getLocation().offset(faceHit);<NEW_LINE>IConduit neighbour = ConduitUtil.getConduit(con.getBundle().getEntity().getWorld(), pos, con.getBaseConduitType());<NEW_LINE>if ... | IServerConduit) neighbour).getNetwork(); |
419,891 | private boolean checkEncryptionAlgorithms(WSSecurityEngineResult result, AlgorithmSuite algorithmPolicy, AssertionInfo ai) {<NEW_LINE>AlgorithmSuiteType algorithmSuiteType = algorithmPolicy.getAlgorithmSuiteType();<NEW_LINE>String transportMethod = (String) result.get(WSSecurityEngineResult.TAG_ENCRYPTED_KEY_TRANSPORT_... | result, algorithmPolicy, ai, false); |
1,837,646 | private void parseLaunchConfigurations() throws IOException, ProjectImporterException {<NEW_LINE>List<LaunchConfiguration> configs = new ArrayList<LaunchConfiguration>();<NEW_LINE>File[] launches = new File(workspace.getDirectory(), ".metadata/.plugins/org.eclipse.debug.core/.launches").listFiles(new // NOI18N<NEW_LINE... | nl = launchConfiguration.getElementsByTagName("stringAttribute"); |
1,217,383 | public void export(List<Meter> meters) {<NEW_LINE>String customDeviceMetricEndpoint = config.uri() + "/api/v1/entity/infrastructure/custom/" + config.deviceId() + "?api-token=" + config.apiToken();<NEW_LINE>for (List<Meter> batch : new MeterPartition(meters, config.batchSize())) {<NEW_LINE>final List<DynatraceCustomMet... | ).forEach(this::putCustomMetric); |
1,117,391 | public FileAssetTemplate persist(FileAssetTemplate object) {<NEW_LINE>try {<NEW_LINE>final Folder templateFolder = createFileAsTemplateFolderIfNeeded();<NEW_LINE>String templateDefinitionFileName = "layout.json";<NEW_LINE>String templateDefinitionFileCode = layoutFile();<NEW_LINE>if (!isDesignTemplate) {<NEW_LINE>templ... | getFileAssetAPI().fromContentlet(templateCodeFileAsset); |
952,928 | public void generateTasks(TeamTask teamTask, Frequency frequency) {<NEW_LINE>List<LocalDate> taskDates = Beans.get(FrequencyService.class).getDates(frequency, teamTask.getTaskDate(), frequency.getEndDate());<NEW_LINE>taskDates.removeIf(date -> date.equals<MASK><NEW_LINE>// limit how many TeamTask will be generated at o... | (teamTask.getTaskDate())); |
1,775,848 | /* write a chunk at (x,z) with length bytes of data to disk */<NEW_LINE>protected void write(int x, int z, byte[] data, int length) throws IOException {<NEW_LINE>int offset = getOffset(x, z);<NEW_LINE>int sectorNumber = offset >> 8;<NEW_LINE>int sectorsAllocated = offset & 0xFF;<NEW_LINE>int sectorsNeeded = (length + C... | seek(file.length()); |
1,544,862 | protected void generate(Project project) {<NEW_LINE>BuildClientMetaData metaData = getClientMetaData();<NEW_LINE>StyledTextOutput textOutput = getRenderer().getTextOutput();<NEW_LINE>render(project, new GraphRenderer(textOutput), true, textOutput);<NEW_LINE>if (project.getChildProjects().isEmpty()) {<NEW_LINE>textOutpu... | (project).get(0); |
1,158,106 | private String classToSourceURL(FileObject fo, OutputWriter logger) {<NEW_LINE>ClassPath cp = ClassPath.getClassPath(fo, ClassPath.EXECUTE);<NEW_LINE>if (cp == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FileObject root = cp.findOwnerRoot(fo);<NEW_LINE>String resourceName = cp.<MASK><NEW_LINE>if (resourceName == ... | getResourceName(fo, '/', false); |
1,838,294 | private void showFolderField(final ConfigurationType type, final DefaultMutableTreeNode node, final String folderName) {<NEW_LINE>myRightPanel.removeAll();<NEW_LINE>JPanel panel = new JPanel(new VerticalFlowLayout(0, 0));<NEW_LINE>final JTextField textField = new JTextField(folderName);<NEW_LINE>textField.getDocument()... | .left(textField, "Folder name")); |
1,702,710 | public void print(ActionRequest request, ActionResponse response) throws AxelorException {<NEW_LINE>EmployeeBonusMgt bonus = Beans.get(EmployeeBonusMgtRepository.class).find(request.getContext().asType(EmployeeBonusMgt<MASK><NEW_LINE>String name = I18n.get("Employee bonus management") + " : " + bonus.getEmployeeBonusT... | .class).getId()); |
633,861 | public static DisableApplicationScalingRuleResponse unmarshall(DisableApplicationScalingRuleResponse disableApplicationScalingRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>disableApplicationScalingRuleResponse.setRequestId(_ctx.stringValue("DisableApplicationScalingRuleResponse.RequestId"));<NEW_LINE>disableApplic... | (_ctx.longValue("DisableApplicationScalingRuleResponse.AppScalingRule.UpdateTime")); |
139,390 | public void processChannelGrant(APCO25Channel apco25Channel, ServiceOptions serviceOptions, IdentifierCollection identifierCollection, Opcode opcode, long timestamp) {<NEW_LINE>if (apco25Channel.isTDMAChannel()) {<NEW_LINE>if (apco25Channel.getTimeslotCount() == 2) {<NEW_LINE>// Data channels may be granted as a phase ... | serviceOptions, identifierCollection, opcode, timestamp); |
1,635,598 | public void act(float delta) {<NEW_LINE>super.act(delta);<NEW_LINE>if (Core.scene.getKeyboardFocus() == null || !(Core.scene.getKeyboardFocus() instanceof TextField) && !Core.input.keyDown(KeyCode.controlLeft)) {<NEW_LINE>float ax = Core.input.axis(Binding.move_x);<NEW_LINE>float ay = Core.<MASK><NEW_LINE>offsetx -= ax... | input.axis(Binding.move_y); |
1,508,286 | default void renderBackground(GuiRenderer renderer, WWidget widget, boolean pressed, boolean mouseOver) {<NEW_LINE>MeteorGuiTheme theme = theme();<NEW_LINE>double s = theme.scale(2);<NEW_LINE>renderer.quad(widget.x + s, widget.y + s, widget.width - s * 2, widget.height - s * 2, theme.backgroundColor.get(pressed, mouseO... | outlineColor.get(pressed, mouseOver); |
899,309 | public List<Map.Entry<String, String>> scan(ClassFile classFile) {<NEW_LINE>List<Map.Entry<String, String>> entries = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>if (resultFilter.test(className) && isPublic(classFile)) {<NEW_LINE>entries.add(entry(className, ""));<NEW_LINE>if (includeFields) {<NEW_LINE>classFile.getFie... | String className = classFile.getName(); |
1,708,869 | final ExportTransitGatewayRoutesResult executeExportTransitGatewayRoutes(ExportTransitGatewayRoutesRequest exportTransitGatewayRoutesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportTransitGatewayRoutesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
987,048 | private AbstractJClass retrieveDecoratedResponseClass(DeclaredType declaredType, TypeElement typeElement, RestHolder holder) {<NEW_LINE>String classTypeBaseName = typeElement.toString();<NEW_LINE>// Looking for basic java.util interfaces to set a default<NEW_LINE>// implementation<NEW_LINE>String decoratedClassName = n... | getEnvironment().getDefinedClass(decoratedFinalClassName); |
1,598,974 | private void statInit() {<NEW_LINE>lDocumentNo.setLabelFor(fDocumentNo);<NEW_LINE>fDocumentNo.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fDocumentNo.addActionListener(this);<NEW_LINE>lDescription.setLabelFor(fDescription);<NEW_LINE>fDescription.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>... | (0, 0, true)); |
189,990 | public ImmutableSet<TableRecordReference> extractRecordRefs(final BPartnerComposite dataItem) {<NEW_LINE>try (final MDCCloseable ignored = TableRecordMDC.putTableRecordReference(I_C_BPartner.Table_Name, dataItem.getBpartner() == null ? null : dataItem.getBpartner().getId())) {<NEW_LINE>final ImmutableSet.Builder<TableR... | , location.getId())); |
441,618 | public void testAuthenticateMethodFL_UnprotectedServlet3() throws Exception {<NEW_LINE>METHODS = "testMethod=authenticate,logout,login,authenticate,logout_once,authenticate";<NEW_LINE>String url = "http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/formlogin/UnprotectedProgrammaticAPIServlet?" + ME... | , response.indexOf("ENDTEST4")); |
765,663 | /* (non-Javadoc)<NEW_LINE>* @see tlc2.tool.liveness.ILiveCheck#checkTrace(tlc2.tool.StateVec)<NEW_LINE>*/<NEW_LINE>public void checkTrace(ITool tool, final Supplier<StateVec> traceSupplier) throws InterruptedException, IOException {<NEW_LINE>final StateVec stateTrace = traceSupplier.get();<NEW_LINE>// Add the first sta... | stateTrace.elementAt(i + 1); |
404,163 | public void onBinaryFrame(byte[] message, boolean finalFragment, int rsv) {<NEW_LINE>FeedMessage feedMessage;<NEW_LINE>List<FeedEntity> feedEntityList;<NEW_LINE>List<TripUpdate> updates = null;<NEW_LINE>boolean fullDataset = true;<NEW_LINE>try {<NEW_LINE>// Decode message<NEW_LINE>feedMessage = FeedMessage.PARSER.parse... | >(feedEntityList.size()); |
1,064,504 | final ListIPSetsResult executeListIPSets(ListIPSetsRequest listIPSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIPSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | endClientExecution(awsRequestMetrics, request, response); |
1,291,376 | public WorksheetTaskWrapper<Void> doAction(String id, WorksheetContext ctx) {<NEW_LINE>ExampleActionTask task = null;<NEW_LINE>switch(id) {<NEW_LINE>case ACTION_BOTH_ID:<NEW_LINE>task = new ExampleActionTask(ExtensionResources.get(ExtensionResources.WORKSHEET_ACTION_BOTH), ctx.getConnectionName(), ctx.<MASK><NEW_LINE>b... | getCallback(), id, false); |
1,466,604 | public GetProvisionedProductOutputsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetProvisionedProductOutputsResult getProvisionedProductOutputsResult = new GetProvisionedProductOutputsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | class).unmarshall(context)); |
1,037,550 | final StartExportLabelsTaskRunResult executeStartExportLabelsTaskRun(StartExportLabelsTaskRunRequest startExportLabelsTaskRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startExportLabelsTaskRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | invoke(request, responseHandler, executionContext); |
176,020 | private void writeAttributesGenerateContent(final ITreeWriter writer, final NodeModel node) {<NEW_LINE>xmlNode = new XMLElement();<NEW_LINE>EncryptionModel encryptionModel = EncryptionModel.getModel(node);<NEW_LINE>mayWriteChildren = true;<NEW_LINE>final Object mode = mode(writer);<NEW_LINE>final boolean isNodeAlreadyW... | mode.equals(Mode.STYLE); |
854,907 | public void gera(NoDeclaracaoVetor vetor, PrintWriter saida, VisitanteASA visitor, int nivelEscopo, boolean podeInicializar) throws ExcecaoVisitaASA {<NEW_LINE>String nome = vetor.getNome();<NEW_LINE>String tipo = Utils.getNomeTipoJava(vetor.getTipoDado());<NEW_LINE>saida.format("%s %s[]", tipo, nome);<NEW_LINE>if (pod... | saida.format(" = new %s[", tipo); |
94,752 | public Node writeDescriptor(Node parent, String nodeName, JMSConnectionFactoryDefinitionDescriptor desc) {<NEW_LINE>Node node = appendChild(parent, nodeName);<NEW_LINE>appendTextChild(node, TagNames.JMS_CONNECTION_FACTORY_DESCRIPTION, desc.getDescription());<NEW_LINE>appendTextChild(node, TagNames.JMS_CONNECTION_FACTOR... | propertyNode.writeDescriptor(node, desc); |
1,743,211 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
54,474 | public static Type toJimpleType(String desc, Optional<String> moduleName) {<NEW_LINE>int idx = desc.lastIndexOf('[');<NEW_LINE>int nrDims = idx + 1;<NEW_LINE>if (nrDims > 0) {<NEW_LINE>if (desc.charAt(0) != '[') {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>desc = desc.substring(idx + 1);<NEW_LINE>}<NEW_LINE>Type baseType;<NEW... | throw new AssertionError("Invalid array descriptor: " + desc); |
1,596,251 | public void onDataReceived(@NonNull final BluetoothDevice device, @NonNull final Data data) {<NEW_LINE>super.onDataReceived(device, data);<NEW_LINE>if (data.size() < 4) {<NEW_LINE>onInvalidDataReceived(device, data);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int offset = 0;<NEW_LINE>final int flags = data.getIntValue(Data.F... | getIntValue(Data.FORMAT_UINT16_LE, offset); |
1,471,834 | public void filter(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {<NEW_LINE>RequestMetricInfo requestMetric = getRequestMetric(requestContext);<NEW_LINE>if (requestMetric != null) {<NEW_LINE>String templatePath = (String) requestContext.getProperty("UrlPathTemplate");<NE... | int statusCode = responseContext.getStatus(); |
1,569,661 | public Disposable loadImages(final View parentView, final Collection<Image> images) {<NEW_LINE>// Start with a fresh disposable because of this method can be called several times if the<NEW_LINE>// enclosing activity is stopped/restarted.<NEW_LINE>final CompositeDisposable disposables = new CompositeDisposable(new Canc... | findViewById(R.id.description); |
1,232,237 | protected void bindImplementationSpecificMetrics(MeterRegistry registry) {<NEW_LINE>StatisticsGateway stats = getStats();<NEW_LINE>Gauge.builder("cache.remoteSize", stats, StatisticsGateway::getRemoteSize).tags(getTagsWithCacheName()).description<MASK><NEW_LINE>FunctionCounter.builder("cache.removals", stats, Statistic... | ("The number of entries held remotely in this cache").register(registry); |
243,062 | protected void popContextData() {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) {<NEW_LINE>logger.entering(CLASS_NAME, "popContextData", this);<NEW_LINE>}<NEW_LINE>// save off this thread's class loader and use the class loader of the thread that launch this threa... | tcs.restoreState(this.contextData); |
498,625 | private void capabilityObject(DesiredCapabilities desiredCapabilities, JSONObject platFormCapabilities, String key) {<NEW_LINE>String appCapability = "app";<NEW_LINE>if (appCapability.equals(key)) {<NEW_LINE>Object values = platFormCapabilities.get(appCapability);<NEW_LINE>List<HostArtifact> hostArtifacts = ArtifactsUp... | toAbsolutePath().toString()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.