idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
117,843 | public void service(ServiceParam serviceParam) {<NEW_LINE>Implementation implementation = new DefaultImplementation();<NEW_LINE>implementation.<MASK><NEW_LINE>if (serviceParam.getInterfaceType() == null) {<NEW_LINE>throw new ServiceRuntimeException(ErrorCode.convert("01-00201"));<NEW_LINE>}<NEW_LINE>Service service = n... | setTarget(serviceParam.getInstance()); |
1,640,496 | private Concrete.ReferenceExpression makeReference(DefCallExpression defCall) {<NEW_LINE>Definition def = defCall.getDefinition();<NEW_LINE>Referable ref = def.getRef();<NEW_LINE>if (!hasFlag(PrettyPrinterFlag.SHOW_LEVELS)) {<NEW_LINE>return cVar(myDefinitionRenamer.renameDefinition(ref), ref);<NEW_LINE>}<NEW_LINE>List... | int pNum = def.getNumberOfPLevelParameters(); |
1,460,371 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<String> toSelect = new HashSet<>();<NEW_LINE>while (toSelect.size() < 3) {<NEW_LINE>toSelect.add(RandomUtil.randomFromCollect... | String cardName = choice.getChoice(); |
1,583,360 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String cloudServiceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LI... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,205,485 | protected CrawlURI peekItem(final WorkQueueFrontier frontier) throws IOException {<NEW_LINE>final BdbMultipleWorkQueues queues = ((<MASK><NEW_LINE>DatabaseEntry key = new DatabaseEntry(origin);<NEW_LINE>CrawlURI curi = null;<NEW_LINE>int tries = 1;<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>curi = queues.get(key);... | BdbFrontier) frontier).getWorkQueues(); |
502,160 | private void customizeComponent(String title) {<NEW_LINE>// NON-NLS<NEW_LINE>setToolTipText(NbBundle.getMessage(DataResultTopComponent.class, "HINT_NodeTableTopComponent"));<NEW_LINE>setTitle(title);<NEW_LINE>setName(title);<NEW_LINE>// NON-NLS<NEW_LINE>getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(Add... | putClientProperty(TopComponent.PROP_DRAGGING_DISABLED, true); |
1,291,651 | public void onPartitionBecomeBootstrapFromOffline(String partitionName) {<NEW_LINE>// check if partition exists<NEW_LINE>ReplicaId <MASK><NEW_LINE>if (replica == null) {<NEW_LINE>// no matter this is an existing replica or new added one, it should be present in storage manager because new<NEW_LINE>// replica is added i... | replica = storeManager.getReplica(partitionName); |
8,904 | private Value emitCompareAndSwap(boolean isLogic, LIRKind accessKind, Value address, Value expectedValue, Value newValue, Value trueValue, Value falseValue) {<NEW_LINE>ValueKind<?> kind = newValue.getValueKind();<NEW_LINE>assert kind.equals(expectedValue.getValueKind());<NEW_LINE>AMD64AddressValue addressValue = asAddr... | arithmeticLIRGen.emitReinterpret(accessKind, aRes); |
1,794,323 | public void enteringNewElementExtension(StartElement theElement, String theUrlAttr, boolean theIsModifier, final String baseServerUrl) {<NEW_LINE>if (myPreResourceState != null && getCurrentElement() instanceof ISupportsUndeclaredExtensions) {<NEW_LINE>ExtensionDt newExtension = new ExtensionDt(theIsModifier);<NEW_LINE... | = new ExtensionState(myPreResourceState, ext); |
152,317 | protected void initServerBootstrap(NettyServerHandler nettyServerHandler) {<NEW_LINE>boolean keepalive = getUrl().getParameter(KEEP_ALIVE_KEY, Boolean.FALSE);<NEW_LINE>bootstrap.group(bossGroup, workerGroup).channel(NettyEventLoopFactory.serverSocketChannelClass()).option(ChannelOption.SO_REUSEADDR, Boolean.TRUE).child... | getUrl(), NettyServer.this); |
643,167 | public void showForward(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>String to = context.param(Common.GOTO);<NEW_LINE>if (StringUtils.isBlank(to)) {<NEW_LINE>to = Latkes.getServePath();<NEW_LINE>}<NEW_LINE>final String referer = Headers.getHeader(request, "referer", ""... | JSONObject user = Sessions.getUser(); |
832,077 | public com.amazonaws.services.cloudcontrolapi.model.ServiceInternalErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloudcontrolapi.model.ServiceInternalErrorException serviceInternalErrorException = new com.amazonaws.services.cloudcontrolapi.model... | int originalDepth = context.getCurrentDepth(); |
770,996 | final ListRootsResult executeListRoots(ListRootsRequest listRootsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRootsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | endClientExecution(awsRequestMetrics, request, response); |
860,148 | protected void lowerJavaWriteNode(JavaWriteNode write) {<NEW_LINE>StructuredGraph graph = write.graph();<NEW_LINE>ValueNode value = implicitStoreConvert(graph, write.getWriteKind(), write.value(), write.isCompressible());<NEW_LINE>WriteNode memoryWrite;<NEW_LINE>if (write.ordersMemoryAccesses()) {<NEW_LINE>memoryWrite ... | , write.getBarrierType())); |
109,655 | private static void clusterUtilizationToSlime(ClusterModel clusterModel, Cursor utilizationObject) {<NEW_LINE>Load idealLoad = clusterModel.idealLoad();<NEW_LINE>Load averageLoad = clusterModel.averageLoad();<NEW_LINE>Load currentLoad = clusterModel.currentLoad();<NEW_LINE>utilizationObject.setDouble("cpu", averageLoad... | "memory", averageLoad.memory()); |
407,332 | public static void updateCurrentTrack(View v, final Activity ctx, final OsmandApplication app) {<NEW_LINE>final OsmandMonitoringPlugin plugin = OsmandPlugin.getActivePlugin(OsmandMonitoringPlugin.class);<NEW_LINE>if (v == null || ctx == null || app == null || plugin == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final... | ).setVisibility(View.VISIBLE); |
56,244 | // Returns true if multipoint_a is disjoint from envelope_b.<NEW_LINE>private static boolean multiPointDisjointEnvelope_(MultiPoint multipoint_a, Envelope envelope_b, double tolerance, ProgressTracker progress_tracker) {<NEW_LINE>Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D();<NEW_LINE>multipoint_a.query... | multipoint_a.getXY(i, pt_a); |
662,067 | public static <T extends ImageBase<T>> void growBorder(T src, ImageBorder<T> border, int borderX0, int borderY0, int borderX1, int borderY1, T dst) {<NEW_LINE>if (src instanceof ImageGray) {<NEW_LINE>if (GrayI8.class.isAssignableFrom(src.getClass())) {<NEW_LINE>ImageMiscOps.growBorder((GrayI8) src, (ImageBorder_S32) bo... | getClass().getSimpleName()); |
1,025,384 | protected void tinkerPatch() {<NEW_LINE>Logger.d("-----------------------Tinker patch begin-----------------------");<NEW_LINE>Logger.d(mConfig.toString());<NEW_LINE>try {<NEW_LINE>// gen patch<NEW_LINE>ApkDecoder decoder = new ApkDecoder(mConfig);<NEW_LINE>decoder.onAllPatchesStart();<NEW_LINE>decoder.patch(mConfig.mO... | d("Tinker patch done, total time cost: %fs", diffTimeFromBegin()); |
90,808 | private void menuItemList(SimpleTreeNode toNode) {<NEW_LINE>int[] path = treeModel.getPath(treeModel.getRoot(), toNode);<NEW_LINE>Treeitem toItem = tree.renderItemByPath(path);<NEW_LINE>tree.setSelectedItem(toItem);<NEW_LINE>Events.sendEvent(tree, new Event(Events.ON_RIGHT_CLICK, tree));<NEW_LINE>Menupopup popup = new ... | (MTreeNode) toNode.getData(); |
852,125 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String methodName = "doGet";<NEW_LINE><MASK><NEW_LINE>responseWriter.println(CLASS_NAME + "." + methodName + ": ENTER");<NEW_LINE>Enumeration<URL> resourceUrls = getClass().getClassLoader().get... | PrintWriter responseWriter = response.getWriter(); |
1,568,668 | public State keyPressed(Widget widget, WidgetKeyEvent event) {<NEW_LINE>if (event.getKeyCode() == KeyEvent.VK_CONTEXT_MENU || ((event.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK && event.getKeyCode() == KeyEvent.VK_F10)) {<NEW_LINE>JPopupMenu popupMenu = provider.getPopupMenu(widget, null);<NEW_LIN... | 5, bounds.y + 5); |
1,544,962 | public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Stage.class, CMMN_ELEMENT_STAGE).namespaceUri(CMMN11_NS).extendsType(PlanFragment.class).instanceProvider(new ModelTypeInstanceProvider<Stage>() {<NEW_LINE><NEW_LINE>public Stage newInstan... | ExitCriterion.class).build(); |
485,003 | public static ProxyCoapResource createReverseProxy(String name, boolean visible, boolean accept, final boolean copyQuery, final URI destination, ClientEndpoints... endpointsList) {<NEW_LINE>String scheme = destination.getScheme();<NEW_LINE>for (ClientEndpoints endpoints : endpointsList) {<NEW_LINE>if (endpoints.getSche... | .getOptions().getUriQueryString(); |
1,071,127 | public static void handle(String sql, ManagerService service, int offset) {<NEW_LINE>String schema = sql.substring(offset).trim();<NEW_LINE>int length = schema.length();<NEW_LINE>if (length > 0) {<NEW_LINE>if (schema.endsWith(";")) {<NEW_LINE>schema = schema.substring(0, schema.length() - 1);<NEW_LINE>}<NEW_LINE>schema... | write(service.getConnection()); |
1,415,191 | public boolean isPyFileInLanguageHome(TruffleFile path) {<NEW_LINE>assert !ImageInfo.inImageBuildtimeCode() : "language home won't be available during image build time";<NEW_LINE>String languageHome = getLanguage().getHome();<NEW_LINE>// The language home may be 'null' if an embedder uses Python. In this case, IO must ... | ) -> "Cannot access file " + path + " because there is no language home."); |
1,377,595 | public final BetweenAndStep16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> between(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8, Field<T9> t9, Field<T10> t10, Field<T11> t11, Field<T12> t12, Field<T13> t13, Field<T14> t14, Field... | , t14, t15, t16)); |
710,349 | protected Map<String, SourceCode> loadSources(Path path) throws IOException {<NEW_LINE>Map<String, SourceCode> map = new HashMap<>();<NEW_LINE>// Will throw IO exception if the file couldn't be opened as an archive<NEW_LINE>try (ZipFile zip = new ZipFile(path.toFile())) {<NEW_LINE>Enumeration<? extends ZipEntry> entrie... | String name = entry.getName(); |
1,624,151 | public static BoundingBox mapWayToBoundingBox(TDWay way) {<NEW_LINE>TDNode[] wayNodes = way.getWayNodes();<NEW_LINE>if (wayNodes.length < 3) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>double lat = LatLongUtils.microdegreesToDegrees(wayNodes[0].getLatitude());<NEW_LINE>double lon = LatLongUtils.microdegr... | lat, lon, lat, lon); |
890,645 | public static void adjustMenuActions(@NonNull Menu menu, int maxToShow, int toolbarWidthPx) {<NEW_LINE>int menuSize = 0;<NEW_LINE>for (int i = 0; i < menu.size(); i++) {<NEW_LINE>if (menu.getItem(i).isVisible()) {<NEW_LINE>menuSize++;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int widthAllowed = toolbarWidthPx - ViewUtil.dpToPx(NA... | || item.getItemId() == ID_NEVER_SHOW_AS_ACTION_2; |
659,119 | public static boolean isSameCostDimension(MAcctSchema as, MTransaction trxFrom, MTransaction trxTo) {<NEW_LINE>if (trxFrom.getM_Product_ID() != trxTo.getM_Product_ID()) {<NEW_LINE>throw new AdempiereException("Same product is needed - " + trxFrom + ", " + trxTo);<NEW_LINE>}<NEW_LINE>MProduct product = MProduct.get(trxF... | int Org_ID_To = locatorTo.getAD_Org_ID(); |
1,765,425 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (offset_ != 0) {<NEW_LINE>output.writeUInt32(1, offset_);<NEW_LINE>}<NEW_LINE>if (length_ != 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!getIdBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.... | output.writeUInt32(2, length_); |
542,522 | private void calcHash(PcodeOp op, int slot, int method) {<NEW_LINE>vnproc = 0;<NEW_LINE>opproc = 0;<NEW_LINE>opedgeproc = 0;<NEW_LINE><MASK><NEW_LINE>Varnode root = (slot < 0) ? op.getOutput() : op.getInput(slot);<NEW_LINE>opedge.add(new ToOpEdge(op, slot));<NEW_LINE>switch(method) {<NEW_LINE>case 4:<NEW_LINE>break;<NE... | markset = new HashSet<>(); |
245,858 | public AssociateAwsAccountWithPartnerAccountResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateAwsAccountWithPartnerAccountResult associateAwsAccountWithPartnerAccountResult = new AssociateAwsAccountWithPartnerAccountResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = c... | int originalDepth = context.getCurrentDepth(); |
118,361 | public int fill(Supplier<E> s, int limit) {<NEW_LINE>if (null == s)<NEW_LINE>throw new IllegalArgumentException("supplier is null");<NEW_LINE>if (limit < 0)<NEW_LINE>throw new IllegalArgumentException("limit is negative:" + limit);<NEW_LINE>if (limit == 0)<NEW_LINE>return 0;<NEW_LINE>final int mask = this.mask;<NEW_LIN... | calcCircularRefElementOffset(pIndex + i, mask); |
414,815 | private void updateColumnSizes() {<NEW_LINE>for (int i = 0; i < getColumnCount(); i++) {<NEW_LINE>final WebFileTableModel model = getFileTableModel();<NEW_LINE>final TableColumn column = getColumnModel().getColumn(i);<NEW_LINE>column.setIdentifier<MASK><NEW_LINE>if (model.getColumnId(i).equals(NUMBER_COLUMN)) {<NEW_LIN... | (model.getColumnId(i)); |
1,302,739 | public static ListDataSourceResponse unmarshall(ListDataSourceResponse listDataSourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataSourceResponse.setCode(_ctx.stringValue("ListDataSourceResponse.code"));<NEW_LINE>listDataSourceResponse.setMessage(_ctx.stringValue("ListDataSourceResponse.message"));<NEW_LINE>li... | ("ListDataSourceResponse.result[" + i + "].gmtCreate")); |
791,827 | private ArchiveResult archive0(@NonNull final ArchiveRequest request) {<NEW_LINE>// t.schoemeberg@metas.de, 03787: using the client/org of the archived PO, if possible<NEW_LINE>final Properties ctxToUse = createContext(request);<NEW_LINE>final IArchiveStorage storage = Services.get(IArchiveStorageFactory.class).getArch... | .getRecord_ID() : -1); |
1,219,074 | private void scanNonCollectableObjectsInternal(long memoryType) throws CorruptDataException {<NEW_LINE>GCHeapRegionIterator regionIterator = GCHeapRegionIterator.from();<NEW_LINE>while (regionIterator.hasNext()) {<NEW_LINE>GCHeapRegionDescriptor region = regionIterator.next();<NEW_LINE>if (new UDATA(region.getTypeFlags... | J9ObjectPointer object = objectIterator.next(); |
850,677 | public void storeWaypointsInPersonalNote(final Geocache cache, final int maxPersonalNotesChars) {<NEW_LINE>final String note = cache.getPersonalNote() == null ? "" : cache.getPersonalNote();<NEW_LINE>// only user modified waypoints<NEW_LINE>final List<Waypoint> userModifiedWaypoints = new ArrayList<>();<NEW_LINE>for (W... | .getVariables(), -1); |
925,759 | public ContactViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>Display display = context.getWindowManager().getDefaultDisplay();<NEW_LINE>DisplayMetrics outMetrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(outMetrics);<NEW_LINE>View v = LayoutInflater.from(parent.getContext())... | holder.clickableArea.setTag(holder); |
5,488 | public static void main(String[] args) throws IOException {<NEW_LINE>ClassicMp4ContainerSource classicMp4ContainerSource = null;<NEW_LINE>try {<NEW_LINE>classicMp4ContainerSource = new ClassicMp4ContainerSource(new URI("http://org.mp4parser.s3.amazonaws.com/examples/Cosmos%20Laundromat%20small%20faststart.mp4").toURL()... | File f = new File("output.mp4"); |
1,498,562 | public Request<GetSMSAttributesRequest> marshall(GetSMSAttributesRequest getSMSAttributesRequest) {<NEW_LINE>if (getSMSAttributesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetSMSAttributesRequest)");<NEW_LINE>}<NEW_LINE>Request<GetSMSAttributesRequest> request = new... | request.addParameter("Version", "2010-03-31"); |
1,177,641 | final InitiateVaultLockResult executeInitiateVaultLock(InitiateVaultLockRequest initiateVaultLockRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(initiateVaultLockRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | invoke(request, responseHandler, executionContext); |
1,843,680 | public void solveVelocityConstraints(final SolverData data) {<NEW_LINE>Vec2 vA = data.velocities[m_indexA].v;<NEW_LINE>float wA = data.velocities[m_indexA].w;<NEW_LINE>Vec2 vB = <MASK><NEW_LINE>float wB = data.velocities[m_indexB].w;<NEW_LINE>// Cdot = dot(u, v + cross(w, r))<NEW_LINE>Vec2 vpA = pool.popVec2();<NEW_LIN... | data.velocities[m_indexB].v; |
1,278,010 | public static SequenceHeader read(ByteBuffer bb) {<NEW_LINE>BitReader _in = BitReader.createBitReader(bb);<NEW_LINE>SequenceHeader sh = new SequenceHeader();<NEW_LINE>sh.horizontal_size = _in.readNBit(12);<NEW_LINE>sh.vertical_size = _in.readNBit(12);<NEW_LINE>sh.<MASK><NEW_LINE>sh.frame_rate_code = _in.readNBit(4);<NE... | aspect_ratio_information = _in.readNBit(4); |
411,189 | public static ListVirtualPhysicalConnectionsResponse unmarshall(ListVirtualPhysicalConnectionsResponse listVirtualPhysicalConnectionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listVirtualPhysicalConnectionsResponse.setRequestId(_ctx.stringValue("ListVirtualPhysicalConnectionsResponse.RequestId"));<NEW_LINE>listVirt... | ("ListVirtualPhysicalConnectionsResponse.VirtualPhysicalConnections[" + i + "].Description")); |
517,060 | public MultiValueMap<String, Connection<?>> findConnectionsToUsers(MultiValueMap<String, String> providerUsers) {<NEW_LINE>if (providerUsers == null || providerUsers.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("Unable to execute find: no providerUsers provided");<NEW_LINE>}<NEW_LINE>StringBuilder providerU... | userIds = providerUsers.get(providerId); |
745,289 | final UpdateAliasResult executeUpdateAlias(UpdateAliasRequest updateAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | endClientExecution(awsRequestMetrics, request, response); |
1,712,168 | private Map.Entry<String, String> resolveSimpleTimerClassMethodTags(ResourceInfo resourceInfo) {<NEW_LINE>Class<?> resourceClass = resourceInfo.getResourceClass();<NEW_LINE>String fullyQualifiedClassName = null;<NEW_LINE>String fullMethodSignature = null;<NEW_LINE>if (resourceClass != null) {<NEW_LINE>fullyQualifiedCla... | , String>(fullyQualifiedClassName, fullMethodSignature); |
1,401,993 | private static JSFunctionData createPromiseRejectFunctionImpl(JSContext context) {<NEW_LINE>class PromiseRejectRootNode extends JavaScriptRootNode implements AsyncHandlerRootNode {<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private JavaScriptNode reasonNode;<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private PropertyGetNode getPromise... | promise, JSPromise.REJECTION_TRACKER_OPERATION_REJECT_AFTER_RESOLVED, reason); |
558,645 | static NettyServerHandler newHandler(ChannelPromise channelUnused, Http2FrameReader frameReader, Http2FrameWriter frameWriter, ServerTransportListener transportListener, List<? extends ServerStreamTracer.Factory> streamTracerFactories, TransportTracer transportTracer, int maxStreams, boolean autoFlowControl, int flowCo... | WeightedFairQueueByteDistributor dist = new WeightedFairQueueByteDistributor(connection); |
626,401 | public Map<String, Object> fetchStructures(Map<String, String> query, Map<String, String> queryOptions, int start, int count, List<String> sort) throws PortalException, SystemException, DotDataException, DotSecurityException {<NEW_LINE>HttpServletRequest req = WebContextFactory.get().getHttpServletRequest();<NEW_LINE>U... | filter.replaceAll("\\?", ""); |
1,453,229 | public static <T> ConsulResponse<List<T>> consulResponseList(final Class<T> responseType, final HTTP.Response response) {<NEW_LINE>List<T> responseObject = null;<NEW_LINE>if (response.code() == 200) {<NEW_LINE>if (!Str.isEmpty(response.body())) {<NEW_LINE>responseObject = fromJsonArray(response.body(), responseType);<N... | headers().get("X-Consul-Lastcontact"); |
14,650 | public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> objs) {<NEW_LINE>objs = super.postProcessAllModels(objs);<NEW_LINE>Map<String, CodegenModel> <MASK><NEW_LINE>for (ModelsMap outer : objs.values()) {<NEW_LINE>for (ModelMap mo : outer.getModels()) {<NEW_LINE>CodegenModel cm = mo.getModel();<NEW_LI... | modelsByClassName = new HashMap<>(); |
1,426,562 | public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) {<NEW_LINE>AutoAnalysisManager <MASK><NEW_LINE>DataTypeManagerService service = mgr.getDataTypeManagerService();<NEW_LINE>// pick the archives to apply<NEW_LINE>List<String> archiveList = DataTypeArchiveUtility.getArchiveList... | mgr = AutoAnalysisManager.getAnalysisManager(program); |
1,427,131 | public static GetMetaTableFullInfoResponse unmarshall(GetMetaTableFullInfoResponse getMetaTableFullInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaTableFullInfoResponse.setRequestId(_ctx.stringValue("GetMetaTableFullInfoResponse.RequestId"));<NEW_LINE>getMetaTableFullInfoResponse.setHttpStatusCode(_ctx.intege... | (_ctx.stringValue("GetMetaTableFullInfoResponse.Data.ClusterId")); |
693,074 | private void _load() {<NEW_LINE>World w;<NEW_LINE>try {<NEW_LINE>FileInputStream fis = new FileInputStream(currTest.getFilename());<NEW_LINE>w = currTest.<MASK><NEW_LINE>fis.close();<NEW_LINE>} catch (FileNotFoundException e) {<NEW_LINE>log.error("File not found error while loading", e);<NEW_LINE>if (errorHandler != nu... | getDeserializer().deserializeWorld(fis); |
1,026,938 | public void invoke(long windowHandle, double x, double y) {<NEW_LINE><MASK><NEW_LINE>deltaY = (int) y - logicalMouseY;<NEW_LINE>mouseX = logicalMouseX = (int) x;<NEW_LINE>mouseY = logicalMouseY = (int) y;<NEW_LINE>if (window.getConfig().hdpiMode == HdpiMode.Pixels) {<NEW_LINE>float xScale = window.getGraphics().getBack... | deltaX = (int) x - logicalMouseX; |
1,099,650 | CohortConfig validateCohortIsSet(String serverName, OMAGServerConfig serverConfig, String cohortName, String methodName) throws OMAGInvalidParameterException {<NEW_LINE>RepositoryServicesConfig repositoryServicesConfig = serverConfig.getRepositoryServicesConfig();<NEW_LINE>if (repositoryServicesConfig != null) {<NEW_LI... | ).getName(), methodName); |
1,263,636 | public Response createTokenResponse(UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx, String scopeParam, boolean code) {<NEW_LINE>AccessToken token = tokenManager.createClientAccessToken(session, realm, client, user, userSession, clientSessionCtx);<NEW_LINE>TokenManager.AccessTokenRes... | , clientSessionCtx).accessToken(token); |
1,315,722 | private static void testCrossPackageOverrides_gradualWithIntermediateDummyClass() {<NEW_LINE>// This is the pattern<NEW_LINE>//<NEW_LINE>// package a package b<NEW_LINE>// class P1 { m() {} }<NEW_LINE>// |<NEW_LINE>// V class P2 extends P1 { m() {} }<N... | callM_a(new P1())); |
330,057 | void write(MethodWriter writer, Globals globals) {<NEW_LINE>writer.writeDebugInfo(location);<NEW_LINE>if (initialize) {<NEW_LINE>writer.push(arguments.size());<NEW_LINE>writer.newArray(MethodWriter.getType(actual.getComponentType()));<NEW_LINE>for (int index = 0; index < arguments.size(); ++index) {<NEW_LINE>AExpressio... | argument = arguments.get(index); |
403,407 | final DeleteReplicationInstanceResult executeDeleteReplicationInstance(DeleteReplicationInstanceRequest deleteReplicationInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReplicationInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,197,386 | private void updateVisibleRange(BarLineChartBase chart, ReadableMap propMap) {<NEW_LINE>if (BridgeUtils.validate(propMap, ReadableType.Map, "x")) {<NEW_LINE>ReadableMap <MASK><NEW_LINE>if (BridgeUtils.validate(x, ReadableType.Number, "min")) {<NEW_LINE>chart.setVisibleXRangeMinimum((float) x.getDouble("min"));<NEW_LINE... | x = propMap.getMap("x"); |
519,057 | public void testContextInfoExactMatchOverrideDefault() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 5s , hung : 10s> <timing - Slow : 120s , hung : 120s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_... | assertTrue("Test did not run long enough (elapsedSeconds)", elapsedSeconds >= 12); |
652,395 | private List<NameValueCountPair> listActivityNamePair(Business business, EffectivePerson effectivePerson, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Task.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(Str... | (wi.getCreatorUnitList())); |
1,097,424 | protected TcpConnectionSupport wrapConnection(TcpConnectionSupport connectionArg) {<NEW_LINE>TcpConnectionSupport connection = connectionArg;<NEW_LINE>try {<NEW_LINE>if (this.interceptorFactoryChain == null) {<NEW_LINE>return connection;<NEW_LINE>}<NEW_LINE>TcpConnectionInterceptorFactory[] interceptorFactories <MASK><... | = this.interceptorFactoryChain.getInterceptorFactories(); |
701,530 | public com.amazonaws.services.ecr.model.LayerPartTooSmallException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ecr.model.LayerPartTooSmallException layerPartTooSmallException = new com.amazonaws.services.ecr.model.LayerPartTooSmallException(null);<NEW_LINE>i... | String currentParentElement = context.getCurrentParentElement(); |
1,277,589 | public static void main(String[] args) throws IOException {<NEW_LINE>String version = args[2];<NEW_LINE>Path repository = new File(args[0]).toPath().resolve("org").resolve("keycloak");<NEW_LINE>Path targetRoot = new File(args[1]).toPath().resolve(version);<NEW_LINE>BufferedReader br = new BufferedReader(new InputStream... | 1 ? artifactName : t[1]; |
1,040,122 | public AssociateAttributeGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateAttributeGroupResult associateAttributeGroupResult = new AssociateAttributeGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | class).unmarshall(context)); |
299,291 | static IntervalsSource analyzeText(CachingTokenFilter stream, int maxGaps, boolean ordered) throws IOException {<NEW_LINE>assert stream != null;<NEW_LINE>TermToBytesRefAttribute termAtt = stream.getAttribute(TermToBytesRefAttribute.class);<NEW_LINE>PositionIncrementAttribute posIncAtt = stream.addAttribute(PositionIncr... | (stream), maxGaps, ordered); |
453,938 | public ListSentimentDetectionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSentimentDetectionJobsResult listSentimentDetectionJobsResult = new ListSentimentDetectionJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte... | class).unmarshall(context)); |
1,324,469 | private static Evaluatee createEvalCtx(@NonNull final ReportContext reportContext) {<NEW_LINE>final ArrayList<Evaluatee> contexts = new ArrayList<>();<NEW_LINE>//<NEW_LINE>// 1: Add process parameters<NEW_LINE>contexts.add(Evaluatees.ofRangeAwareParams(new ProcessParams(reportContext.getProcessInfoParameters())));<NEW_... | (Env.getCtx())); |
285,183 | void runBeforeAsyncJsonPostExts(Map<String, String> header) {<NEW_LINE>if (commandStr == null) {<NEW_LINE>commandStr = JSONObjectUtil.toJsonString(cmd);<NEW_LINE>}<NEW_LINE>if (commandStr == null || commandStr.isEmpty()) {<NEW_LINE>logger.warn(String.format<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LinkedHashMap comma... | ("commandStr is empty, path: %s, header: %s", path, header)); |
1,390,276 | protected void init() {<NEW_LINE>super.init();<NEW_LINE>int bottomCenter = this.width / 2 - 50;<NEW_LINE>int topCenter = this.width / 2 - 76;<NEW_LINE>boolean inWorld = this.minecraft.level != null;<NEW_LINE>this.children.remove(this.shaderPackList);<NEW_LINE>this.children.remove(this.shaderOptionList);<NEW_LINE>this.s... | -> this.dropChangesAndClose())); |
1,628,953 | public void validateIDTokenPayload(JSONObject tokenInfo, TestSettings settings, String testSigAlg) throws Exception {<NEW_LINE>String thisMethod = "validateIDTokenPayload";<NEW_LINE><MASK><NEW_LINE>ArrayList<String> shouldntExistKeys = new ArrayList<String>();<NEW_LINE>// make sure we have all required keys<NEW_LINE>Ar... | msgUtils.printMethodName(thisMethod, "Start of"); |
766,951 | private static NodeInterfacePairsByVlanRange computeNodeInterfacePairsByVlan(@Nonnull Map<String, Configuration> configs, Set<String> hostnames) {<NEW_LINE>NodeInterfacePairsByVlanRange nisByVlan = NodeInterfacePairsByVlanRange.create();<NEW_LINE>for (String hostname : hostnames) {<NEW_LINE>for (Interface i : configs.g... | i.getAccessVlan(), ni); |
1,785,625 | private static String findScript(Driver driver, String locator, ElementFinder.Type type, String findTag) {<NEW_LINE>Map<String, Object> pos = driver.position(locator, true);<NEW_LINE>Number xNum = (<MASK><NEW_LINE>Number yNum = (Number) pos.get("y");<NEW_LINE>Number width = (Number) pos.get("width");<NEW_LINE>Number he... | Number) pos.get("x"); |
31,260 | public void iterate(final Processor<FilePath> iterator) {<NEW_LINE>if (myProject.isDisposed())<NEW_LINE>return;<NEW_LINE>for (VirtualFile root : myAffectedContentRoots) {<NEW_LINE>Set<FilePath> dirsByRoot = myDirtyDirectoriesRecursively.get(root);<NEW_LINE>if (dirsByRoot != null) {<NEW_LINE>for (FilePath dir : dirsByRo... | myVcsManager.iterateVcsRoot(vFile, iterator); |
1,725,361 | private Person updatePerson(Business business, PullResult result, Person person, User user) throws Exception {<NEW_LINE><MASK><NEW_LINE>emc.beginTransaction(Person.class);<NEW_LINE>person.setWeLinkHash(DigestUtils.sha256Hex(XGsonBuilder.toJson(user)));<NEW_LINE>String employee = user.getCorpUserId();<NEW_LINE>if (Strin... | EntityManagerContainer emc = business.entityManagerContainer(); |
396,914 | private void incCounterForStatusCode(int statusCode, Map<String, String> commonTags, Map<String, String> tags) {<NEW_LINE>MetricName metricName = new MetricName("request").tagged(commonTags).tagged(tags);<NEW_LINE>registry.getOrAdd(metricName, MetricRegistry.MetricBuilder.COUNTERS).inc();<NEW_LINE>if (statusCode >= 200... | MetricBuilder.COUNTERS).inc(); |
525,778 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>MageObject sourceObject = game.<MASK><NEW_LINE>if (sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cho... | getObject(source.getSourceId()); |
694,035 | final PurchaseOfferingResult executePurchaseOffering(PurchaseOfferingRequest purchaseOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purchaseOfferingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "PurchaseOffering"); |
1,593,132 | final CreateVariableResult executeCreateVariable(CreateVariableRequest createVariableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVariableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateVaria... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
818,482 | public static CreateKeywordResponse unmarshall(CreateKeywordResponse createKeywordResponse, UnmarshallerContext _ctx) {<NEW_LINE>createKeywordResponse.setRequestId(_ctx.stringValue("CreateKeywordResponse.RequestId"));<NEW_LINE>createKeywordResponse.setSuccessCount<MASK><NEW_LINE>List<String> invalidKeywordList = new Ar... | (_ctx.integerValue("CreateKeywordResponse.SuccessCount")); |
311,745 | public // @RequestParam(value = "name", required = false) String name,<NEW_LINE>List<Service> // @RequestParam(value = "name", required = false) String name,<NEW_LINE>searchServices(// @RequestParam(value = "labels", required = false) Map<String, String> labels<NEW_LINE>@RequestParam Map<String, String> queryMap) {<NEW... | , queryMap.get(paramKey)); |
481,482 | public void emit(PTXCompilationResultBuilder crb, PTXAssembler asm, Variable dest) {<NEW_LINE>PTXKind destElementKind = ((PTXKind) dest.getPlatformKind()).getElementKind();<NEW_LINE>PTXVectorSplit vectorSplitData = new PTXVectorSplit(dest);<NEW_LINE>for (int i = 0; i < vectorSplitData.vectorNames.length; i++) {<NEW_LIN... | getVectorLength()].getPlatformKind(); |
312,446 | public final PartitionDefinitionsContext partitionDefinitions() throws RecognitionException {<NEW_LINE>PartitionDefinitionsContext _localctx = new PartitionDefinitionsContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 96, RULE_partitionDefinitions);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localct... | _localctx).subCount = decimalLiteral(); |
617,689 | /* only called in getDatabase synchronize block */<NEW_LINE>private SQLiteDatabase openOrCreateDatabase() {<NEW_LINE>if (mIsInitializing) {<NEW_LINE>throw new IllegalStateException("getDatabase called recursively");<NEW_LINE>}<NEW_LINE>if (SQLiteLintUtil.isNullOrNil(sOwnDbDirectory)) {<NEW_LINE>throw new IllegalStateEx... | int version = db.getVersion(); |
175,319 | private void shiftUpReplicaVersions() {<NEW_LINE>int partitionId = getPartitionId();<NEW_LINE>int currentReplicaIndex = migrationInfo.getDestinationCurrentReplicaIndex();<NEW_LINE>int lostReplicaIndex = currentReplicaIndex - 1;<NEW_LINE>try {<NEW_LINE>InternalPartitionServiceImpl partitionService = getService();<NEW_LI... | PartitionReplicaVersionManager partitionReplicaVersionManager = partitionService.getPartitionReplicaVersionManager(); |
1,549,681 | protected void doParse(XMLStreamReader reader, XmlContext xmlContext) throws XMLStreamException {<NEW_LINE>NodeHandler nodeHandler = this.topLevelNodeHandler;<NEW_LINE>Deque<NodeHandler> nodeHandlerStack = new ArrayDeque<>();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>int event = reader.next();<NEW_LINE>switch(event)... | nodeHandler.onStart(reader, xmlContext); |
1,592,881 | public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) {<NEW_LINE><MASK><NEW_LINE>if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_DOWN) {<NEW_LINE>int x = (int) event.getX();<NEW_LINE>int y = (int) event.getY();<NEW_LINE>x -= widget.getTotalPaddingLeft();<NEW_LINE>y -= wid... | int action = event.getAction(); |
560,420 | public static String base64Encode(byte[] bytes) {<NEW_LINE>if (bytes == null) {<NEW_LINE>throw new IllegalArgumentException("Input bytes must not be null.");<NEW_LINE>}<NEW_LINE>if (bytes.length >= BASE64_UPPER_BOUND) {<NEW_LINE>throw new IllegalArgumentException("Input bytes length must not exceed " + BASE64_UPPER_BOU... | triple >> 6) & 0x3f); |
1,388,853 | private ElementParser parserForUnknown(FieldDefn fieldDefn) {<NEW_LINE>ValueDef valueDef = fieldDefn.lookahead();<NEW_LINE>if (!valueDef.isArray()) {<NEW_LINE>// For the case null appears before other values.<NEW_LINE>return new NullFieldParser(fieldDefn.tupleParser(), fieldDefn.key());<NEW_LINE>} else if (valueDef.dim... | ), fieldDefn.key()); |
1,841,366 | public static HTTPResponseResult postFile(String address, String fileParamName, File file, String usernamePropertyName, String passwordPropertyName) {<NEW_LINE>DefaultHttpClient httpClient = null;<NEW_LINE>try {<NEW_LINE>HttpPost postMethod = new HttpPost(address);<NEW_LINE>httpClient = getHttpClient(usernamePropertyNa... | guessContentTypeFromName(file.getPath()); |
1,702,854 | protected Class<?> findClass(String name, boolean returnNull) throws ClassNotFoundException {<NEW_LINE>String resourceName = Util.convertClassNameToResourceName(name);<NEW_LINE>final ByteResourceInformation classBytesResourceInformation = shadowedLoader.findClassBytes(name, resourceName);<NEW_LINE>if (classBytesResourc... | ] bytes = classBytesResourceInformation.getBytes(); |
735,013 | public Map<String, Collection<String>> readReplacedFiles() throws IOException {<NEW_LINE>Path replacedPath = registryPath.resolve<MASK><NEW_LINE>Map<String, Collection<String>> result = new HashMap<>();<NEW_LINE>Properties props = new Properties();<NEW_LINE>if (!Files.exists(replacedPath)) {<NEW_LINE>return result;<NEW... | (SystemUtils.fromCommonString(PATH_REPLACED_FILES)); |
669,126 | public Size apply(MethodVisitor methodVisitor, Context implementationContext, MethodDescription instrumentedMethod) {<NEW_LINE>if (instrumentedMethod.isStatic()) {<NEW_LINE>throw new IllegalStateException("Hash code method must not be static: " + instrumentedMethod);<NEW_LINE>} else if (!instrumentedMethod.getReturnTyp... | add(MethodVariableAccess.loadThis()); |
541,435 | private ValidationTaskResult validatePrincipalLogin() {<NEW_LINE>String principal = <MASK><NEW_LINE>String keytab = mConf.getOrDefault(mKeytabProperty, "");<NEW_LINE>if (principal.isEmpty() || keytab.isEmpty()) {<NEW_LINE>mMsg.append(String.format("Failed to find Kerberos principal and keytab. " + "Found %s=%s and %s=%... | mConf.getOrDefault(mPrincipalProperty, ""); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.