idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
622,405 | protected void resetDeleteSubscriptionMessage(MESubscription subscription, boolean isLocalBus) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "resetDeleteSubscriptionMessage", new Object[] { subscription<MASK><NEW_LINE>// Reset the state<NEW_LINE>reset();<NEW_LINE>// Indicate that this is a create message... | , new Boolean(isLocalBus) }); |
354,977 | public // with a NEW transaction branch.<NEW_LINE>void start(PersistentTranId ptid, TransactionParticipant participant) throws XidAlreadyKnownException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "start", new Object[] { "PersistentTranId=" + ptid, "Particip... | exit(this, tc, "start"); |
1,650,174 | final GetCallAnalyticsJobResult executeGetCallAnalyticsJob(GetCallAnalyticsJobRequest getCallAnalyticsJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCallAnalyticsJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
479,974 | public void multiLevelManufOrderOnLoad(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>Long moId = Long.valueOf(request.getContext().get("id").toString());<NEW_LINE>ManufOrder mo = Beans.get(ManufOrderRepository<MASK><NEW_LINE>boolean showOnlyMissingQty = request.getContext().get("_showOnlyMis... | .class).find(moId); |
311,051 | public void initialize(OptionValues options, Iterable<DebugHandlersFactory> factories, HotSpotProviders providers, GraalHotSpotVMConfig config, HotSpotAllocationSnippets.Templates allocationSnippetTemplates) {<NEW_LINE>super.initialize(options, runtime, providers);<NEW_LINE>assert target == providers.getCodeCache().get... | options, factories, providers, config); |
1,267,864 | private Mono<Response<Flux<ByteBuffer>>> refreshWithResponseAsync(String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint(... | getApiVersion(), accept, context); |
1,022,630 | public static XC_MethodHook.Unhook hookMethod(Member hookMethod, XC_MethodHook callback) {<NEW_LINE>if (!(hookMethod instanceof Method) && !(hookMethod instanceof Constructor<?>)) {<NEW_LINE>throw new IllegalArgumentException("Only methods and constructors can be hooked: " + hookMethod.toString());<NEW_LINE>} else if (... | callbacks = sHookedMethodCallbacks.get(hookMethod); |
195,720 | public Optional<String> extractToken(Map<String, List<String>> headers) {<NEW_LINE>List<String> tokenHeaders = headers.getOrDefault(tokenHeader, Collections.emptyList());<NEW_LINE>if (tokenHeaders.isEmpty()) {<NEW_LINE>// I only understand configured header, ignore everything else<NEW_LINE>return Optional.empty();<NEW_... | (headerExtractor.apply(tokenHeader)); |
529,426 | public static void uploadToGamingServices(String caption, Uri imageUri, Bundle params, GraphRequest.Callback callback) throws FileNotFoundException {<NEW_LINE>AccessToken accessToken = AccessToken.getCurrentAccessToken();<NEW_LINE>if (Utility.isFileUri(imageUri) || Utility.isContentUri(imageUri)) {<NEW_LINE>GraphReques... | params, callback).executeAsync(); |
102,159 | private void runDemo(ConfigurableApplicationContext context) {<NEW_LINE>KafkaGateway kafkaGateway = context.getBean(KafkaGateway.class);<NEW_LINE>System.out.println("Sending 10 messages...");<NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>String message = "foo" + i;<NEW_LINE>System.out.println("Send to Kafka: " + mes... | System.out.println(received); |
362,433 | public void handleResponse(final Response response) {<NEW_LINE>String method = response.getMethod();<NEW_LINE>if (method == null || !method.startsWith("Console")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ("Console.messageAdded".equals(method)) {<NEW_LINE>JSONObject msg = ((JSONObject) response.getParams().get("message... | ("count")).intValue(); |
1,258,088 | void analyzeCustomizationString(String statement) {<NEW_LINE>String n = getBracketedName();<NEW_LINE>// NOI18N<NEW_LINE>String stBound = n + "." + TEXT_BOUND;<NEW_LINE>// NOI18N<NEW_LINE>String stConstrained = n + "." + TEXT_CONSTRAINED;<NEW_LINE>// NOI18N<NEW_LINE>String stPropertyEditor = n + "." + TEXT_PROPERTY_EDIT... | peIndex = statement.indexOf(stPropertyEditor); |
1,097,833 | public int andCardinality(ArrayContainer x) {<NEW_LINE>if (this.nbrruns == 0) {<NEW_LINE>return x.cardinality;<NEW_LINE>}<NEW_LINE>int rlepos = 0;<NEW_LINE>int arraypos = 0;<NEW_LINE>int andCardinality = 0;<NEW_LINE>int rleval = (this.getValue(rlepos));<NEW_LINE>int rlelength = (this.getLength(rlepos));<NEW_LINE>while ... | (this.getValue(rlepos)); |
1,554,308 | public okhttp3.Call commitCall(String repository, String branch, CommitCreation commitCreation, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = commitCreation;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/repositories/{repository}/branches/{branch}/com... | String[] localVarAccepts = { "application/json" }; |
839,214 | private Inspector maybeConvertWset(Inspector data) {<NEW_LINE>var <MASK><NEW_LINE>for (int i = 0; i < data.entryCount(); i++) {<NEW_LINE>Inspector obj = data.entry(i);<NEW_LINE>if (obj.type() != Type.OBJECT || obj.fieldCount() != 2) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Inspector item = obj.field("item");<NEW_LIN... | wset = new Value.ObjectValue(); |
638,219 | public void printLocalMean(AutoTypeImage imageIn) {<NEW_LINE>String imageName = imageIn.getSingleBandName();<NEW_LINE><MASK><NEW_LINE>String workType = ("DogArray_" + imageIn.getKernelType()).replace("S32", "I32");<NEW_LINE>out.print("\tpublic static GrayU8 localMean( " + imageName + " input , GrayU8 output ,\n" + "\t\... | String bitwise = imageIn.getBitWise(); |
1,609,926 | @ApiOperation(value = "Create of update a Property", response = Response.class)<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiResponses({ @ApiResponse(code = 201, message = "Property has been created"), @ApiResponse(code = 204, message = "No content, feature ... | getPropertyStore().updateProperty(property); |
263,264 | public com.amazonaws.services.signer.model.BadRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.signer.model.BadRequestException badRequestException = new com.amazonaws.services.signer.model.BadRequestException(null);<NEW_LINE>int originalDepth = ... | String currentParentElement = context.getCurrentParentElement(); |
1,682,949 | final GetStudioComponentResult executeGetStudioComponent(GetStudioComponentRequest getStudioComponentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStudioComponentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.SERVICE_ID, "nimble"); |
610,583 | public static ParaRPr apply(ParaRPr source, ParaRPr destination) {<NEW_LINE>if (!isEmpty(source)) {<NEW_LINE>if (destination == null)<NEW_LINE>destination = Context.getWmlObjectFactory().createParaRPr();<NEW_LINE>destination.setRStyle(apply(source.getRStyle(), destination.getRStyle()));<NEW_LINE>destination.setRFonts(a... | , destination.getOMath())); |
523,704 | private void testGetAllTimersProgrammaticTransactionalCreate(String beanName, String info) throws Exception {<NEW_LINE>TimerTestBean bean = lookupBean(TimerTestBean.class, EJB_MODULE, beanName);<NEW_LINE>TimerTestBean otherbean = lookupBean(TimerTestBean.class, OTHER_EJB_MODULE, beanName);<NEW_LINE>TimerTestBean warbea... | createTimers(5, info + "-rollback"); |
623,468 | public void onTabClose(TabCloseEvent event) {<NEW_LINE>// can't proceed if there is no active editor or display<NEW_LINE>if (activeEditor_ == null)<NEW_LINE>return;<NEW_LINE>if (event.getTabIndex() >= editors_.size())<NEW_LINE>// Seems like this should never happen...?<NEW_LINE>return;<NEW_LINE>final <MASK><NEW_LINE>if... | String activeEditorId = activeEditor_.getId(); |
1,270,619 | public Pair<Double, SGDVector> lossAndGradient(SGDVector truth, SGDVector prediction) {<NEW_LINE>DenseVector labels, densePred;<NEW_LINE>if (truth instanceof SparseVector) {<NEW_LINE>labels = ((SparseVector) truth).densify();<NEW_LINE>} else {<NEW_LINE>labels = (DenseVector) truth;<NEW_LINE>}<NEW_LINE>if (prediction in... | , -(yhat - label)); |
1,751,389 | private void addToChain(InterceptorChain chain, Message m) {<NEW_LINE>Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>) m.get(Message.INTERCEPTOR_PROVIDERS));<NEW_LINE>if (providers != null) {<NEW_LINE>for (InterceptorProvider p : providers) {<NEW_LINE>chain.add(p.getInInterceptors());<NEW_LINE... | ()).getInInterceptors()); |
800,038 | public GetFunctionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetFunctionResult getFunctionResult = new GetFunctionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
1,544,451 | public void mousePressed(MouseEvent e) {<NEW_LINE>e.consume();<NEW_LINE>AbstractButton b = (AbstractButton) e.getComponent();<NEW_LINE>MultiViewModel model = TabsComponent.this.model;<NEW_LINE>if (model != null) {<NEW_LINE>if (TabsComponent.this.splitPane != null) {<NEW_LINE>ButtonModel buttonModel = b.getModel();<NEW_... | b.getModel(), true); |
713,284 | private Item buildNearestNeighbor(String key, Inspector value) {<NEW_LINE>HashMap<Integer, Inspector> children = childMap(value);<NEW_LINE>Preconditions.checkArgument(children.size() == 2, "Expected 2 arguments, got %s.", children.size());<NEW_LINE>String field = children.get(0).asString();<NEW_LINE>String property = c... | (annotation_value.asDouble())); |
1,302,612 | protected void blurObjectIntoView(Graphics2D gView, BufferedImage frame, Nozzle nozzle, Location l) {<NEW_LINE>// Blur according to Z coordinate<NEW_LINE>AffineTransform tx = gView.getTransform();<NEW_LINE>gView.setTransform(new AffineTransform());<NEW_LINE>double distanceMm = Math.abs(l.subtract(getSimulatedLocation()... | % size - size / 2.0 + 0.5; |
1,321,288 | public Description match(ExpressionTree tree, VisitorState state) {<NEW_LINE>MatchResult result = ContainmentMatchers.firstNonNullMatchResult(tree, state);<NEW_LINE>if (result == null) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>Types types = state.getTypes();<NEW_LINE>TypeCompatibilityReport compatibilityReport = ... | .sourceType().toString(); |
409,990 | public void process(T input) {<NEW_LINE>super.initialize(<MASK><NEW_LINE>if (isSaveOriginalReference())<NEW_LINE>throw new IllegalArgumentException("The original reference cannot be saved");<NEW_LINE>if (tempImage == null) {<NEW_LINE>tempImage = (T) input.createNew(input.width, input.height);<NEW_LINE>}<NEW_LINE>for (i... | input.width, input.height); |
769,882 | protected final void writeChunk(ObjectDataOutput out, MapChunkContext context) throws IOException {<NEW_LINE>SerializationService ss = context.getSerializationService();<NEW_LINE>long recordCount = 0;<NEW_LINE>out.writeString(context.getMapName());<NEW_LINE>Iterator<Map.Entry<Data, Record>> entries = context.getIterato... | , context.getExpiryMetadata(dataKey)); |
265,061 | public boolean handle(PluginMessage packet) {<NEW_LINE>if (bungeecordMessageResponder.process(packet)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// We need to specially handle REGISTER and UNREGISTER packets. Later on, we'll write them to<NEW_LINE>// the client.<NEW_LINE>if (PluginMessageUtil.isRegister(packet)) {<NE... | (PluginMessageUtil.getChannels(packet)); |
1,654,029 | private JsMessage addLinkProps(JsMessage msg) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.<MASK><NEW_LINE>// Add Link specific properties to message<NEW_LINE>msg.setGuaranteedCrossBusLinkName(_linkName);<NEW_LINE>msg.setGuaranteedCrossBusSourceBusUUID(_messageProcessor.get... | entry(tc, "addLinkProps", msg); |
660,909 | public static void main(String[] args) {<NEW_LINE>final Properties options = StringUtils.argsToProperties(args, argOptionDefs());<NEW_LINE>if (args.length < 1 || options.containsKey("help")) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Pattern posPattern = options.containsKey("searchPos") ? Pattern.comp... | log.info(usage()); |
574,856 | private ExportResult<CalendarContainerResource> exportCalendars(TokensAndUrlAuthData authData, Optional<PaginationData> pageData) {<NEW_LINE>Calendar.CalendarList.List listRequest;<NEW_LINE>CalendarList listResult;<NEW_LINE>// Get calendar information<NEW_LINE>try {<NEW_LINE>listRequest = getOrCreateCalendarInterface(a... | .startsWith(CALENDAR_TOKEN_PREFIX), "Token is not applicable"); |
1,834,853 | public void process(String command, String[] args, PrintStream out) throws CommandException {<NEW_LINE>if (args.length == 0) {<NEW_LINE>out.println(USAGE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File file = new File(args[0]);<NEW_LINE>if (!file.exists() || !file.isFile()) {<NEW_LINE>out.println("The specified command fil... | "Error reading from command file " + file.getAbsolutePath()); |
424,545 | public static DescribeFabricOrganizationPeersResponse unmarshall(DescribeFabricOrganizationPeersResponse describeFabricOrganizationPeersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricOrganizationPeersResponse.setRequestId(_ctx.stringValue("DescribeFabricOrganizationPeersResponse.RequestId"));<NEW_LINE>des... | ("DescribeFabricOrganizationPeersResponse.Result[" + i + "].IntranetIp")); |
790,716 | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>int topOffset = 0;<NEW_LINE>// TODO - other option is to let the painting of the dark border to the inner component and make this border's insets smaller.<NEW_LINE>if (c instanceof JComponent) {<NEW_LINE>JComponent jc = (JC... | g.translate(x, y); |
1,028,482 | protected List<Versionable> findAllVersions(final String id, final Optional<Integer> maxResults) throws DotDataException, DotStateException {<NEW_LINE>final Identifier identifier = this.iapi.find(id);<NEW_LINE>if (identifier == null) {<NEW_LINE>throw new DotDataException("identifier:" + identifier + " not found");<NEW_... | new ArrayList<Versionable>(1); |
282,621 | static Optional<RegistryAuthenticator> fromAuthenticationMethod(String authenticationMethod, RegistryEndpointRequestProperties registryEndpointRequestProperties, @Nullable String userAgent, FailoverHttpClient httpClient) throws RegistryAuthenticationFailedException {<NEW_LINE>// If the authentication method starts with... | serviceMatcher = servicePattern.matcher(authenticationMethod); |
1,167,578 | public void validateBlocks(Function<Long, Boolean> validator, boolean repair) throws UnavailableException {<NEW_LINE>List<Long> invalidBlocks = new ArrayList<>();<NEW_LINE>try (CloseableIterator<Block> iter = mBlockStore.getCloseableIterator()) {<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>long id = iter.next().getId();... | collect(Collectors.toList()); |
1,123,475 | private static void storeVariable(ProcessingEnvironment processingEnv, Types types, AnnotatedTypeFactory atypeFactory, VariableTree var) {<NEW_LINE>VarSymbol sym = (VarSymbol) TreeUtils.elementFromDeclaration(var);<NEW_LINE>AnnotatedTypeMirror type;<NEW_LINE>if (atypeFactory instanceof GenericAnnotatedTypeFactory) {<NE... | type = atypeFactory.getAnnotatedType(var); |
1,084,940 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null || !controller.chooseUse(Outcome.PutCreatureInPlay, "Put an Angel, Demon, or Dragon creature card from your hand onto the battlefield tapped and attacking?", source, g... | card = game.getCard(cardId); |
776,631 | public boolean apply(Game game, Ability source) {<NEW_LINE>Card evershrikeCard = game.getCard(source.getSourceId());<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null || evershrikeCard == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int xAmount = source.getMana... | getCard(targetAura.getFirstTarget()); |
17,992 | public boolean visit(IResourceProxy proxy) throws CoreException {<NEW_LINE>switch(proxy.getType()) {<NEW_LINE>case IResource.FILE:<NEW_LINE>// GROOVY edit<NEW_LINE>// if (org.eclipse.jdt.internal.core.util.Util.isJavaLikeFileName(proxy.getName())) {<NEW_LINE>// GRECLIPSE-404 must call 'isJavaLikeFile' directly in order... | ((IFile) resource, sourceLocation); |
1,237,422 | final RegisterTypeResult executeRegisterType(RegisterTypeRequest registerTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | endClientExecution(awsRequestMetrics, request, response); |
170,046 | final void showHelp(long address) {<NEW_LINE>System.out.println("c: continue");<NEW_LINE>System.out.println("n: step over");<NEW_LINE>if (emulator.isRunning()) {<NEW_LINE>System.out.println("bt: back trace");<NEW_LINE>}<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("st hex: search stack");<NEW_LINE>System.... | System.out.println("b(address): add temporarily breakpoint, address must start with 0x, can be module offset"); |
1,571,740 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>icon = new javax.swing.JLabel();<NEW_LINE>problemDescription = new javax.swing.JTextPane();<NEW_LINE>showDetails = new java... | ().getColor("TextArea.background")); |
82,960 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Context mContext = getActivity();<NEW_LINE>HashMap<String, String> fonts = FontManager.getFontsMap();<NEW_LINE><MASK><NEW_LINE>mFontNames = new ArrayList<>();<NEW_LINE>for (String path : fonts.keySet()) {<NEW_LINE>mFontPaths.add(path);<NEW_LINE>mFontNam... | mFontPaths = new ArrayList<>(); |
668,674 | public T poll() {<NEW_LINE>if (sourceMode == ASYNC) {<NEW_LINE>long dropped = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>T v = s.poll();<NEW_LINE>try {<NEW_LINE>if (v == null || predicate.test(v)) {<NEW_LINE>if (dropped != 0) {<NEW_LINE>request(dropped);<NEW_LINE>}<NEW_LINE>return v;<NEW_LINE>}<NEW_LINE>Operators.onDiscard(v, t... | onDiscard(v, this.ctx); |
1,392,607 | public BatchPutGeofenceRequestEntry unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchPutGeofenceRequestEntry batchPutGeofenceRequestEntry = new BatchPutGeofenceRequestEntry();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1... | String currentParentElement = context.getCurrentParentElement(); |
210,748 | private JavaRDD<Element> doOperation(final GetJavaRDDOfElements operation, final Context context, final AccumuloStore accumuloStore) throws OperationException {<NEW_LINE>final JavaSparkContext sparkContext = JavaSparkContext.fromSparkContext(SparkContextUtil.getSparkSession(context, accumuloStore.getProperties()).spark... | context.getUser(), operation); |
525,390 | public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstancesResponse.setRequestId(_ctx.stringValue("DescribeInstancesResponse.RequestId"));<NEW_LINE>describeInstancesResponse.setPageNumber(_ctx.integerValue("DescribeInstan... | ("DescribeInstancesResponse.InstanceItems[" + i + "].AppJson")); |
1,041,414 | public void disposal(LocalDate disposalDate, BigDecimal disposalAmount, FixedAsset fixedAsset) throws AxelorException {<NEW_LINE>Map<Integer, List<FixedAssetLine>> fixedAssetLineMap = fixedAsset.getFixedAssetLineList().stream().collect(Collectors.groupingBy(FixedAssetLine::getStatusSelect));<NEW_LINE>List<FixedAssetLin... | size() - 1) : null; |
1,465,819 | public static SessionId fromInboundMessage(Message message) {<NEW_LINE>SessionId sessionId = null;<NEW_LINE>String localTag = message.getToHeader().getTag();<NEW_LINE>String remoteTag = message.getFromHeader().getTag();<NEW_LINE>// old clients might send us requests with no To tag<NEW_LINE>if (null == localTag)<NEW_LIN... | SessionId(callId, localTag, remoteTag); |
1,079,225 | public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE><MASK><NEW_LINE>if (id == android.R.id.home) {<NEW_LINE>onBackPressed();<NEW_LINE>}<NEW_LINE>if (id == R.id.slider) {<NEW_LINE>SettingValues.albumSwipe = true;<NEW_LINE>SettingValues.prefs.edit().putBoolean(SettingValues.PREF_ALBUM_SWIPE, true).apply();<NEW... | int id = item.getItemId(); |
1,301,724 | private void writeEntry(HashtableEntry entry) throws IOException, EOFException, FileManagerException, ClassNotFoundException {<NEW_LINE>long index = getHtindex(<MASK><NEW_LINE>if (index == 0) {<NEW_LINE>// first one in this bucket<NEW_LINE>// write to disk<NEW_LINE>updateEntry(entry);<NEW_LINE>// update index<NEW_LINE>... | entry.index, entry.tableid); |
290,494 | private int retrieveAndIncrementSequenceCurrentNext(@NonNull final DocumentSequenceInfo docSeqInfo) {<NEW_LINE>final String trxName = getTrxName();<NEW_LINE>final List<Object> sqlParams = new ArrayList<>();<NEW_LINE>final String sql;<NEW_LINE>if (isAdempiereSys()) {<NEW_LINE>sql = "UPDATE AD_Sequence SET CurrentNextSys... | add(docSeqInfo.getIncrementNo()); |
32,302 | public void generateSyntheticBodyForSwitchTable(SyntheticMethodBinding methodBinding) {<NEW_LINE>ClassScope scope = ((SourceTypeBinding) methodBinding.declaringClass).scope;<NEW_LINE>initializeMaxLocals(methodBinding);<NEW_LINE>final BranchLabel nullLabel = new BranchLabel(this);<NEW_LINE>FieldBinding syntheticFieldBin... | Opcodes.OPC_getstatic, syntheticFieldBinding, null); |
1,160,500 | public void startContentTagsTable(List<String> columnHeaders) {<NEW_LINE>StringBuilder htmlOutput = new StringBuilder();<NEW_LINE>// NON-NLS<NEW_LINE>htmlOutput.append("<table>\n<thead>\n\t<tr>\n");<NEW_LINE>// Add the specified columns.<NEW_LINE>for (String columnHeader : columnHeaders) {<NEW_LINE>// NON-NLS<NEW_LINE>... | Level.SEVERE, "Failed to write table start: {0}", ex); |
760,573 | public CloseResponseM2P producerCloseClientP2M(CloseRequestP2M request, final String rmtAddress, boolean overtls) throws Exception {<NEW_LINE>final StringBuilder strBuffer = new StringBuilder(512);<NEW_LINE>CloseResponseM2P.Builder builder = CloseResponseM2P.newBuilder();<NEW_LINE>builder.setSuccess(false);<NEW_LINE>Ce... | request.getAuthInfo(), true); |
901,665 | private ResultImplementation<NBGroupInfo> findDependencyUsageGroups(String groupId, String artifactId, String version, ResultImpl<NBGroupInfo> result, List<RepositoryInfo> repos, final boolean skipUnIndexed) {<NEW_LINE>// tempmaps<NEW_LINE>Map<String, NBGroupInfo> groupMap = new <MASK><NEW_LINE>Map<String, NBArtifactIn... | HashMap<String, NBGroupInfo>(); |
1,130,155 | private void generateFunctionJS() throws IOException {<NEW_LINE>// Naturally ordered set of function names<NEW_LINE>TreeSet<String> functionSet = new TreeSet<>();<NEW_LINE>// Extracting ONLY builtIn functions (i.e those already available)<NEW_LINE>List<FunctionHolder> builtInFuncHolderList = this.drillbit.getContext().... | String.join("|", functionSet); |
1,322,303 | public void call(Subscriber<? super List<Chapter>> subscriber) {<NEW_LINE>try {<NEW_LINE>// Mongo mongo = new Mongo();<NEW_LINE>List<Chapter> list = new ArrayList<>();<NEW_LINE>// list.addAll(mongo.QueryComicBase(comic));<NEW_LINE>if (list.isEmpty()) {<NEW_LINE>comic.setUrl(parser.getUrl(comic.getCid()));<NEW_LINE>Requ... | list = parser.parseChapter(html); |
1,655,806 | public static DescribeDomainCcActivityLogResponse unmarshall(DescribeDomainCcActivityLogResponse describeDomainCcActivityLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainCcActivityLogResponse.setRequestId(_ctx.stringValue("DescribeDomainCcActivityLogResponse.RequestId"));<NEW_LINE>describeDomainCcActivit... | ("DescribeDomainCcActivityLogResponse.ActivityLog[" + i + "].TriggerObject")); |
695,380 | public synchronized WebRtcServiceState terminate(@NonNull WebRtcServiceState currentState, @Nullable RemotePeer remotePeer) {<NEW_LINE>Log.i(tag, "terminate():");<NEW_LINE>RemotePeer activePeer = currentState.getCallInfoState().getActivePeer();<NEW_LINE>if (activePeer == null && remotePeer == null) {<NEW_LINE>Log.i(tag... | updatePhoneState(LockManager.PhoneState.PROCESSING); |
745,871 | private boolean placeBlockSimple_old(BlockPos pos) {<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos();<NEW_LINE>Vec3d posVec = Vec3d.ofCenter(pos);<NEW_LINE>for (Direction side : Direction.values()) {<NEW_LINE>BlockPos <MASK><NEW_LINE>// check if neighbor can be right clicked<NEW_LINE>if (!BlockUtils.canBeClicked(ne... | neighbor = pos.offset(side); |
1,557,121 | static RealVector makeValues(PreferenceDomain domain) {<NEW_LINE>if (!domain.hasPrecision()) {<NEW_LINE>throw new IllegalArgumentException("domain is not discrete");<NEW_LINE>}<NEW_LINE>final double min = domain.getMinimum();<NEW_LINE>final double max = domain.getMaximum();<NEW_LINE>final <MASK><NEW_LINE>final double n... | double prec = domain.getPrecision(); |
542,320 | public SpockExecutionContext execute(SpockExecutionContext context, DynamicTestExecutor dynamicTestExecutor) throws Exception {<NEW_LINE>verifyNotSkipped(getNodeInfo());<NEW_LINE>ErrorInfoCollector errorInfoCollector = new ErrorInfoCollector();<NEW_LINE>context = context.withErrorInfoCollector(errorInfoCollector);<NEW_... | > childResults = childExecutor.getResults(); |
1,165,082 | static ActionConfig actionConfigFromStarlark(StarlarkInfo actionConfigStruct) throws EvalException {<NEW_LINE>checkRightProviderType(actionConfigStruct, "action_config");<NEW_LINE>String actionName = getMandatoryFieldFromStarlarkProvider(<MASK><NEW_LINE>if (actionName == null || actionName.isEmpty()) {<NEW_LINE>throw i... | actionConfigStruct, "action_name", String.class); |
60,158 | protected void visitUninterpretedTagStart(Element jspElement) throws JspCoreException {<NEW_LINE>// 245645.1 Start<NEW_LINE>String uri = jspElement.getNamespaceURI();<NEW_LINE>if (uri != null) {<NEW_LINE>if (uri.startsWith("urn:jsptld:")) {<NEW_LINE>uri = uri.substring(uri.indexOf("urn:jsptld:") + 11);<NEW_LINE>} else ... | println("tli for " + uri + " found"); |
371,513 | public static String computeMessageId(JSONObject message, SourceType sourceType) throws Exception {<NEW_LINE>JSONArray location = message.getJSONArray("location_point");<NEW_LINE>if (location == null) {<NEW_LINE>throw new Exception("location_point not found");<NEW_LINE>}<NEW_LINE>String longitude, latitude;<NEW_LINE>tr... | rawLon = location.get(1); |
479,516 | protected void readCityStreets(SearchRequest<Street> resultMatcher, City city, List<String> attributeTagsTable) throws IOException {<NEW_LINE>int x = MapUtils.get31TileNumberX(city.getLocation().getLongitude());<NEW_LINE>int y = MapUtils.get31TileNumberY(city.getLocation().getLatitude());<NEW_LINE>while (true) {<NEW_LI... | oldLimit = codedIS.pushLimit(length); |
1,464,840 | public void listModels() {<NEW_LINE>// BEGIN: com.azure.digitaltwins.core.DigitalTwinsAsyncClient.listModels<NEW_LINE>digitalTwinsAsyncClient.listModels().doOnNext(model -> System.out.println("Retrieved model with Id: " + model.getModelId<MASK><NEW_LINE>// END: com.azure.digitaltwins.core.DigitalTwinsAsyncClient.listMo... | ())).subscribe(); |
501,189 | public void buildFile(final BuildContext context, IProgressMonitor monitor) {<NEW_LINE>if (context == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Ensure a parse happened<NEW_LINE>context.getAST();<NEW_LINE>} catch (CoreException e) {<NEW_LINE>// ignores the parser exception<NEW_LINE>}<NEW_LINE>// Set... | int lineno = parseError.getLineNumber(); |
504,677 | public static long byteStringAs(String str, ByteUnit unit) {<NEW_LINE>String lower = str.toLowerCase().trim();<NEW_LINE>try {<NEW_LINE>Matcher m = Pattern.compile("([0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>Matcher fractionMatcher = Pattern.compile("([0-9]+\\.[0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>if (m.matches(... | NumberFormatException("Invalid suffix: \"" + suffix + "\""); |
83,894 | public void init(ConfiguredRuleClassProvider.Builder builder) {<NEW_LINE>builder.addConfigurationFragment(JavaConfiguration.class);<NEW_LINE>builder.addBuildInfoFactory(new BazelJavaBuildInfoFactory());<NEW_LINE>builder.addRuleDefinition(new BazelJavaRuleClasses.BaseJavaBinaryRule());<NEW_LINE>builder.addRuleDefinition... | (), ProguardSpecProvider.PROVIDER)); |
69,019 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>mAppContext = getApplicationContext();<NEW_LINE>mBackGroundText = findViewById(R.id.connectCameraText);<NEW_LINE>mGLSurfaceView = findViewById(R.id.glSurfaceView);<... | findViewById(R.id.stopRecordFab); |
1,741,752 | private void jaxrpc(String[] args, WsCompile wsCompile, Descriptor desc, ArrayList<String> files) throws Exception {<NEW_LINE>try {<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>debug("---> ARGS = ");<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>logger.fine(args[i] + "; ");<NEW_LINE>}<NEW_LINE>}<N... | (GeneratedFileInfo) generatedFiles.next(); |
536,687 | public void layout() {<NEW_LINE>if (sizeInvalid)<NEW_LINE>computeSize();<NEW_LINE>if (wrap) {<NEW_LINE>layoutWrapped();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean round = this.round;<NEW_LINE>int align = this.align;<NEW_LINE>float space = this.space, padBottom = this.padBottom, fill = this.fill;<NEW_LINE>float rowHei... | = getHeight() - padTop - rowHeight; |
1,456,679 | public EncryptionConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EncryptionConfiguration encryptionConfiguration = new EncryptionConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
1,678,384 | private DependencyManagement parseDependencyManagement(XmlPullParser parser, boolean strict) throws IOException, XmlPullParserException {<NEW_LINE>String tagName = parser.getName();<NEW_LINE>DependencyManagement dependencyManagement = new DependencyManagement();<NEW_LINE>for (int i = parser.getAttributeCount() - 1; i >... | value = parser.getAttributeValue(i); |
844,270 | final BatchGetApplicationsResult executeBatchGetApplications(BatchGetApplicationsRequest batchGetApplicationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetApplicationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
761,574 | protected void writeConfig() {<NEW_LINE>IProgressMonitor monitor = new NullProgressMonitor();<NEW_LINE>TemplateCore template = TemplateEngine.getDefault().getTemplateById("SGXEnclaveConfig");<NEW_LINE>Map<String, String> valueStore = template.getValueStore();<NEW_LINE>valueStore.put("projectName", project.getName());<N... | put("IsvSvn", this.isvSvn); |
1,517,859 | public Request<ReportInstanceStatusRequest> marshall(ReportInstanceStatusRequest reportInstanceStatusRequest) {<NEW_LINE>if (reportInstanceStatusRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ReportInstanceStatusRequest> request = new... | request.addParameter("Action", "ReportInstanceStatus"); |
1,651,864 | private static AttributeInfo loadBody(short attributeNameIndex, ClassFile classFile, DataInputStream dis) throws IOException {<NEW_LINE>// max_stack<NEW_LINE>final <MASK><NEW_LINE>// max_locals<NEW_LINE>final short maxLocals = dis.readShort();<NEW_LINE>// code_length, code<NEW_LINE>final byte[] code = ClassFile.readLen... | short maxStack = dis.readShort(); |
556,931 | public void actionPerformed(@Nonnull GuiButton guiButton) {<NEW_LINE>super.actionPerformed(guiButton);<NEW_LINE>if (guiButton.id == ID_COLOR_BUTTON) {<NEW_LINE>conduit.setExtractionSignalColor(gui.getDir(), DyeColor.fromIndex(colorB.getColorIndex()));<NEW_LINE>PacketHandler.INSTANCE.sendToServer(new PacketExtractMode(c... | , gui.getDir())); |
660,735 | protected void tally(CrawlURI curi, Stage stage) {<NEW_LINE>// Tally per-server, per-host, per-frontier-class running totals<NEW_LINE>CrawlServer server = getServerCache().getServerFor(curi.getUURI());<NEW_LINE>if (server != null) {<NEW_LINE>synchronized (server) {<NEW_LINE>server.getSubstats().tally(curi, stage);<NEW_... | WARNING, "unable to tally host stats for " + curi, e); |
1,806,149 | public boolean isStrobogrammatic(String num) {<NEW_LINE>int i = 0;<NEW_LINE>int j = num.length() - 1;<NEW_LINE>Map<Character, Character> map = new HashMap();<NEW_LINE>map.put('8', '8');<NEW_LINE><MASK><NEW_LINE>map.put('0', '0');<NEW_LINE>if (j == 0) {<NEW_LINE>return map.containsKey(num.charAt(i));<NEW_LINE>}<NEW_LINE... | map.put('1', '1'); |
228,236 | private Object readMark2(int b) throws IOException {<NEW_LINE>switch(b) {<NEW_LINE>case ObjectWriter.STRING:<NEW_LINE>return readString(readInt());<NEW_LINE>case ObjectWriter.DECIMAL:<NEW_LINE>int scale = read2();<NEW_LINE>int len = read2();<NEW_LINE>byte[] buf = new byte[len];<NEW_LINE>readFully(buf, 0, len);<NEW_LINE... | seq.add(readObject()); |
65,741 | protected List<ClassificationResult<BytesRef>> buildListFromTopDocs(TopDocs topDocs) throws IOException {<NEW_LINE>Map<BytesRef, Integer> classCounts = new HashMap<>();<NEW_LINE>// this is a boost based on class ranking positions in topDocs<NEW_LINE>Map<BytesRef, Double> // this is a boost based on class ranking positi... | classBoosts.put(cl, singleBoost); |
1,277,610 | private static <T> T createInstance(Constructor<T> constructor, Object... arguments) throws Exception {<NEW_LINE>if (constructor == null) {<NEW_LINE>throw new IllegalArgumentException("Constructor cannot be null");<NEW_LINE>}<NEW_LINE>constructor.setAccessible(true);<NEW_LINE>T createdObject = null;<NEW_LINE>try {<NEW_... | createdObject = constructor.newInstance(completeArgumentList); |
1,504,374 | public void testSetShortProperty_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFTCP = qcfTCP.createContext();<NEW_LINE>emptyQueue(qcfTCP, queue1);<NEW_LINE>JMSConsumer jmsConsumer = jmsContextQCFTCP.createConsumer(queue1);<NEW_LINE><MASK><NEW_LIN... | JMSProducer jmsProducer = jmsContextQCFTCP.createProducer(); |
1,562,179 | private void enrollNewQuarantineAndRecovery(PartitionState newPartitionState, PartitionState oldPartitionState, long quarantineLatency, long currentTime) {<NEW_LINE>int partitionId = newPartitionState.getPartitionId();<NEW_LINE>Map<TrackerClient, LoadBalancerQuarantine> quarantineMap = newPartitionState.getQuarantineMa... | serverWeight = trackerClient.getPartitionWeight(partitionId); |
685,902 | public Object apply(@Nonnull Context ctx) throws Exception {<NEW_LINE>final String resolvedPath;<NEW_LINE>String filepath = ctx.pathMap().getOrDefault(filekey, "index.html");<NEW_LINE>Asset asset = resolve(filepath);<NEW_LINE>if (asset == null) {<NEW_LINE>if (fallback != null) {<NEW_LINE>asset = resolve(fallback);<NEW_... | cacheParams = cacheControl.apply(resolvedPath); |
1,050,949 | public AnalysisResult execute(File baseDir, ReportOptions data, SettingsFactory settings, Map<String, String> environmentVariables) {<NEW_LINE>if (data.getVerbosity() == VERBOSE) {<NEW_LINE>Log.getLogger().info("Project base directory is " + data.getProjectBase());<NEW_LINE>Log.getLogger().info("-----------------------... | > maybeWriter = data.createHistoryWriter(); |
1,068,193 | private void createObjectsTable(Composite parent) {<NEW_LINE>Composite placeholder = UIUtils.createComposite(parent, 1);<NEW_LINE>placeholder.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>Group tableGroup = UIUtils.createControlGroup(placeholder, UINavigatorMessages.confirm_deleting_multiple_objects_table_g... | 1, node.getNodeType()); |
1,743,430 | public TSStatus appendSchemaTemplate(TSAppendSchemaTemplateReq req) {<NEW_LINE>int size = req.getMeasurementsSize();<NEW_LINE>String[] measurements = new String[size];<NEW_LINE>TSDataType[] dataTypes = new TSDataType[size];<NEW_LINE>TSEncoding[] encodings = new TSEncoding[size];<NEW_LINE>CompressionType[] compressionTy... | ().get(i)]; |
1,832,368 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String workId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Work w... | .toList(Work.job_FIELDNAME)); |
1,501,331 | public Policy findById(ResourceServer resourceServer, String id) {<NEW_LINE>if (id == null)<NEW_LINE>return null;<NEW_LINE>CachedPolicy cached = cache.get(id, CachedPolicy.class);<NEW_LINE>if (cached != null) {<NEW_LINE>logger.tracev("by id cache hit: {0}", cached.getId());<NEW_LINE>}<NEW_LINE>if (cached == null) {<NEW... | = new CachedPolicy(loaded, model); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.