idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
184,958 | private Metric collectGauge(String dropwizardName, Gauge gauge) {<NEW_LINE>String metricName = DropWizardUtils.generateFullMetricName(dropwizardName, "gauge");<NEW_LINE>String metricDescription = <MASK><NEW_LINE>// Figure out which gauge instance and call the right method to get value<NEW_LINE>Type type;<NEW_LINE>Value... | DropWizardUtils.generateFullMetricDescription(dropwizardName, gauge); |
1,120,526 | public static Node[] extractNodes(Node node, String xpath, String[][] nsArray) throws SAXException, IOException, XPathException {<NEW_LINE>Map<String, String> nsMap = new HashMap<>();<NEW_LINE>for (int i = 0; i < nsArray.length; i++) {<NEW_LINE>nsMap.put(nsArray[i][0], nsArray[i][1]);<NEW_LINE>}<NEW_LINE>Node[] nodes =... | , Collections.unmodifiableMap(nsMap)); |
1,742,677 | public static Action buildAction(Library library, HashMap hashMap) {<NEW_LINE>Name actionType = (Name) hashMap.get(Action.ACTION_TYPE_KEY);<NEW_LINE>if (actionType != null) {<NEW_LINE>if (actionType.equals(Action.ACTION_TYPE_GOTO)) {<NEW_LINE>return new GoToAction(library, hashMap);<NEW_LINE>} else if (actionType.equal... | return new JavaScriptAction(library, hashMap); |
942,387 | private void doSelect(ServerSocketChannel server, final Selector selectorToSelect) throws IOException {<NEW_LINE>while (isActive()) {<NEW_LINE>int soTimeout = getSoTimeout();<NEW_LINE>int selectionCount;<NEW_LINE>try {<NEW_LINE>long timeout = Math.max(soTimeout, 0);<NEW_LINE>if (getDelayedReads().size() > 0 && (timeout... | selectionCount = selectorToSelect.select(timeout); |
1,620,471 | public static void addCreatedTorrent(TOTorrent torrent) {<NEW_LINE>synchronized (created_torrents) {<NEW_LINE>try {<NEW_LINE>byte[] hash = torrent.getHash();<NEW_LINE>HashWrapper hw = new HashWrapper(hash);<NEW_LINE>boolean dirty = false;<NEW_LINE>long check = COConfigurationManager.getLongParameter("my.created.torrent... | add(t.getHashWrapper()); |
723,453 | public void run() {<NEW_LINE>controller<MASK><NEW_LINE>try {<NEW_LINE>DrawableDB drawableDB = controller.getDrawablesDatabase();<NEW_LINE>if (drawableDB.getDataSourceDbBuildStatus(dataSourceObjId) == DrawableDB.DrawableDbBuildStatusEnum.IN_PROGRESS) {<NEW_LINE>// If at least one file in CaseDB has mime type, then set t... | .getGroupManager().resetCurrentPathGroup(); |
1,065,676 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create window Win#keepall as (key string, value int);\n" + "@public create window WinSB#lastevent as SupportBean;\n" + "insert into WinSB select * from SupportBean;\n";<NEW_LINE>env.compileDe... | compileExecute(env, path, delete); |
1,002,153 | private TypeUpdateResult updateTypeChecked(TypeUpdateInfo updateInfo, InsnArg arg, ArgType candidateType) {<NEW_LINE>if (candidateType == null) {<NEW_LINE>throw new JadxRuntimeException("Null type update for arg: " + arg);<NEW_LINE>}<NEW_LINE>ArgType currentType = arg.getType();<NEW_LINE>if (Objects.equals(currentType,... | "Type rejected for {}: candidate: '{}' has unknown type var: '{}'", arg, candidateType, unknownTypeVar); |
1,748,206 | private File extractWar(File war) throws IOException {<NEW_LINE>Path tmpDir = Files.createTempDirectory("webapp");<NEW_LINE>JarFile jf = new JarFile(war);<NEW_LINE>for (Enumeration<JarEntry> en = jf.entries(); en.hasMoreElements(); ) {<NEW_LINE>JarEntry e = en.nextElement();<NEW_LINE>long mod_time = e.getTime();<NEW_LI... | ), ep, StandardCopyOption.REPLACE_EXISTING); |
29,283 | private void parseTags() {<NEW_LINE>int position = 0;<NEW_LINE>final int currentStartPosition = this.startPosition;<NEW_LINE>final int currentLinePtr = this.linePtr;<NEW_LINE>if (currentLinePtr >= 0) {<NEW_LINE>position = this.lineEnds[currentLinePtr] + 1;<NEW_LINE>}<NEW_LINE>while (ScannerHelper.isWhitespace(this.sour... | ], 0, this.withoutUnicodePtr); |
276,863 | private synchronized void ensureToken(boolean forceReload) throws IOException, DaemonException {<NEW_LINE>// Make sure we have a valid token or we're regenerating it<NEW_LINE>if (authtoken == null || forceReload) {<NEW_LINE>// Make a request to /gui/token.html<NEW_LINE>// See https://github.com/bittorrent/webui/wiki/To... | "<.*?>", "").trim(); |
908,265 | public void configure(Binder binder) {<NEW_LINE>binder.bind(TypeManager.class).toInstance(typeManager);<NEW_LINE>configBinder(binder).bindConfig(FileMergeCacheConfig.class);<NEW_LINE>configBinder(binder).bindConfig(CacheConfig.class);<NEW_LINE>binder.bind(CacheStats.class).in(Scopes.SINGLETON);<NEW_LINE>binder.bind(Cac... | ).in(Scopes.SINGLETON); |
1,350,910 | public Response handleWebSocket(final IHTTPSession session) {<NEW_LINE>Map<String, String> headers = session.getHeaders();<NEW_LINE>if (isWebsocketRequested(session)) {<NEW_LINE>if (!NanoWSD.HEADER_WEBSOCKET_VERSION_VALUE.equalsIgnoreCase(headers.get(NanoWSD.HEADER_WEBSOCKET_VERSION))) {<NEW_LINE>return Response.newFix... | .get(NanoWSD.HEADER_WEBSOCKET_VERSION)); |
1,219,624 | public CoreMap toEntityMention(JsonObject json) {<NEW_LINE>CoreMap mention = new ArrayCoreMap();<NEW_LINE>mention.set(CoreAnnotations.TokenBeginAnnotation.class, json.getInt("docTokenBegin"));<NEW_LINE>mention.set(CoreAnnotations.TokenEndAnnotation.class, json.getInt("docTokenEnd"));<NEW_LINE>mention.set(CoreAnnotation... | .getString("entitylink", null)); |
1,057,436 | protected // May be called if couplingType indicates LOOSE or TIGHT or is UNSET<NEW_LINE>boolean matchBranchCoupling(int couplingType1, int couplingType2, ManagedConnectionFactory managedConnectionFactory) {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>boolean matched = true;<NEW_LI... | WSManagedConnectionFactory) managedConnectionFactory).getDefaultBranchCoupling(); |
1,303,497 | static final // Used as helper to create byte arrays as well as loading Memory for direct compact sketches<NEW_LINE>Memory loadCompactMemory(final long[] compactHashArr, final short seedHash, final int curCount, final long thetaLong, final WritableMemory dstMem, final byte flags, final int preLongs) {<NEW_LINE>assert (... | (int) dstMem.getCapacity(); |
832,687 | private void saveBPartnerContact(@NonNull final BPartnerContactSaveRequest request) {<NEW_LINE>final BPartnerContact bpartnerContact = request.getContact();<NEW_LINE>final BPartnerContactId bpContactId = bpartnerContact.getId();<NEW_LINE>final OrgId orgId = request.getOrgId();<NEW_LINE>final BPartnerId bpartnerId = req... | .getInvoiceEmailEnabled() ? ISINVOICEEMAILENABLED_Yes : ISINVOICEEMAILENABLED_No; |
194,620 | public UpdateResponseHeadersPolicyResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateResponseHeadersPolicyResult updateResponseHeadersPolicyResult = new UpdateResponseHeadersPolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth... | XMLEvent xmlEvent = context.nextEvent(); |
131,690 | protected void _viewContentlets(final RenderRequest req, final User user) throws Exception {<NEW_LINE>// GIT-2816<NEW_LINE><MASK><NEW_LINE>final HttpServletRequest request = reqImpl.getHttpServletRequest();<NEW_LINE>final ContentletAPI conAPI = APILocator.getContentletAPI();<NEW_LINE>final List<String> tempBinaryImageI... | final RenderRequestImpl reqImpl = (RenderRequestImpl) req; |
610,634 | protected void initLayout() {<NEW_LINE>ThemeConstants theme = App.getInstance().getThemeConstants();<NEW_LINE>VerticalLayout root = new VerticalLayout();<NEW_LINE>root.setWidthUndefined();<NEW_LINE>root.setSpacing(true);<NEW_LINE>root.setMargin(false);<NEW_LINE>setContent(root);<NEW_LINE>messages = <MASK><NEW_LINE>name... | AppBeans.get(Messages.class); |
1,602,482 | public Map<String, Object> authorizeResourceTree(User loginUser, Integer userId) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>List<Resource> resourceList;<NEW_LINE>if (isAdmin(loginUser)) {<NEW_LINE>// admin gets all resources except userId<NEW_LINE>resourceList = resourcesMapper.queryResourceExcep... | .getId(), -1); |
1,782,806 | public boolean addOrChangeWaypoint(final Waypoint waypoint, final boolean saveToDatabase) {<NEW_LINE>waypoint.setGeocode(geocode);<NEW_LINE>if (waypoint.getId() < 0) {<NEW_LINE>// this is a new waypoint<NEW_LINE>if (StringUtils.isBlank(waypoint.getPrefix())) {<NEW_LINE>assignUniquePrefix(waypoint);<NEW_LINE>}<NEW_LINE>... | oldWaypoint = waypoints.remove(index); |
22,007 | private void generateScriptsForDynamicHyperlinks(StringBuilder script) {<NEW_LINE>// Start if<NEW_LINE>// if the current entry is "word/_rels/document.xml.rels", key used will<NEW_LINE>// be "word/document.xml").<NEW_LINE>String registryKey = HyperlinkUtils.getHyperlinkRegistryKey(HyperlinkUtils.getEntryNameWithoutRels... | formatAsSimpleField(true, ITEM_INFO, "Target"); |
75,631 | private boolean sweepBlue_() {<NEW_LINE>int y_end_point_handle_blue = m_sorted_end_indices_blue.get(--m_sweep_index_blue);<NEW_LINE>int envelope_handle_blue = y_end_point_handle_blue >> 1;<NEW_LINE>if (isBottom_(y_end_point_handle_blue)) {<NEW_LINE>if (m_queued_list_blue != -1 && m_queued_indices_blue.get(envelope_hand... | .size(), -1); |
1,147,784 | public static GetMetaTablePartitionResponse unmarshall(GetMetaTablePartitionResponse getMetaTablePartitionResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaTablePartitionResponse.setRequestId<MASK><NEW_LINE>getMetaTablePartitionResponse.setHttpStatusCode(_ctx.integerValue("GetMetaTablePartitionResponse.HttpStatusCo... | (_ctx.stringValue("GetMetaTablePartitionResponse.RequestId")); |
797,202 | private void runTest(String testMethod, PrintWriter pw, HttpServletRequest req, HttpServletResponse resp) {<NEW_LINE>try {<NEW_LINE>ClientBuilder cb = ClientBuilder.newBuilder();<NEW_LINE><MASK><NEW_LINE>cb.property("com.ibm.ws.jaxrs.client.receive.timeout", "120000");<NEW_LINE>cb.register(JaxbContextResolver.class);<N... | cb.property("com.ibm.ws.jaxrs.client.connection.timeout", "120000"); |
405,396 | public static void serialize(final LocalDateTime value, final JsonWriter sw) {<NEW_LINE>final <MASK><NEW_LINE>if (year < 0) {<NEW_LINE>throw new SerializationException("Negative dates are not supported.");<NEW_LINE>} else if (year > 9999) {<NEW_LINE>sw.writeByte(JsonWriter.QUOTE);<NEW_LINE>sw.writeAscii(value.toString(... | int year = value.getYear(); |
114,591 | public CramerShoupCiphertext encryptBlock(BigInteger input) {<NEW_LINE>CramerShoupCiphertext result = null;<NEW_LINE>if (!key.isPrivate() && this.forEncryption && key instanceof CramerShoupPublicKeyParameters) {<NEW_LINE>CramerShoupPublicKeyParameters pk = (CramerShoupPublicKeyParameters) key;<NEW_LINE>BigInteger p = p... | g1.modPow(r, p); |
1,146,719 | public static void main(String[] args) throws UnknownFunctionException, UnparsableExpressionException, InvalidCustomFunctionException {<NEW_LINE>// Test 1<NEW_LINE>// ======<NEW_LINE>Calculable calc1 = new ExpressionBuilder("x * y - 2").withVariableNames("x", "y").build();<NEW_LINE>calc1.setVariable(new Variable("x", 1... | calculate().toString()); |
1,759,536 | final ListBulkDeploymentsResult executeListBulkDeployments(ListBulkDeploymentsRequest listBulkDeploymentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBulkDeploymentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(listBulkDeploymentsRequest)); |
468,748 | private void processNewDelete(ScanResults results, StoreKey key, IndexValue deleteValue, IndexValue originalPutValue, IndexValue previousValue) {<NEW_LINE>long operationTimeInMs = deleteValue.getOperationTimeInMs();<NEW_LINE>if (operationTimeInMs == Utils.Infinite_Time) {<NEW_LINE>operationTimeInMs = index.getIndexSegm... | originalPutValue.getExpiresAtMs(), ADD); |
439,451 | public void visualizePerpendicular(Graphics2D g2, double scale, ChessboardCornerClusterFinder<GrayF32> clusterFinder) {<NEW_LINE>g2.setFont(regular);<NEW_LINE>BasicStroke thin = new BasicStroke(2);<NEW_LINE>BasicStroke thick = new BasicStroke(4);<NEW_LINE>// g2.setStroke(new BasicStroke(1));<NEW_LINE>// List<Vertex> ve... | lineInfo = lines.get(i); |
892,740 | public void scanClass(InputStream bits) throws IOException {<NEW_LINE>DataInputStream dstream = new DataInputStream(new BufferedInputStream(bits));<NEW_LINE>ClassFile cf = null;<NEW_LINE>try {<NEW_LINE>cf = new ClassFile(dstream);<NEW_LINE>String className = cf.getName();<NEW_LINE>List<String> annotations = new ArrayLi... | .getAttribute(AnnotationsAttribute.visibleTag)); |
426,088 | public ListDataIngestionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDataIngestionJobsResult listDataIngestionJobsResult = new ListDataIngestionJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE... | )).unmarshall(context)); |
29,143 | private SyncProduct createSyncProductNoCache(@NonNull final I_PMM_Product pmmProduct) {<NEW_LINE>final String product_uuid = SyncUUIDs.toUUIDString(pmmProduct);<NEW_LINE>final I_M_Product product = productBL.getById(ProductId.ofRepoId(pmmProduct.getM_Product_ID()));<NEW_LINE>String productName = pmmProduct.getProductNa... | newBuilder().setPMM_Product(pmmProduct); |
476,209 | public boolean doneClick() {<NEW_LINE>if (emojiKeyboard.isShowing()) {<NEW_LINE>emojiKeyboard.setVisibility(false);<NEW_LINE>TypedArray a = getTheme().obtainStyledAttributes(new int[] { R.attr.emoji_button });<NEW_LINE>int resource = <MASK><NEW_LINE>a.recycle();<NEW_LINE>emojiButton.setImageResource(resource);<NEW_LINE... | a.getResourceId(0, 0); |
711,614 | public DeclarationLocation findDeclaration(ParserResult info, int caretOffset) {<NEW_LINE><MASK><NEW_LINE>TokenSequence<? extends JsTokenId> ts = LexUtilities.getJsTokenSequence(snapshot, caretOffset);<NEW_LINE>Token<? extends JsTokenId> pathToken = getModeluPath(ts, caretOffset);<NEW_LINE>if (pathToken != null) {<NEW_... | Snapshot snapshot = info.getSnapshot(); |
1,743,622 | public double dissimilarity(List<DataPoint> a, List<DataPoint> b) {<NEW_LINE>if (a.size() == 1 && b.size() == 1)<NEW_LINE>return dm.dist(a.get(0).getNumericalValues(), b.get(0).getNumericalValues());<NEW_LINE>List<DataPoint> CI;<NEW_LINE>List<DataPoint> CJ;<NEW_LINE>List<DataPoint> CK;<NEW_LINE>if (a.size() > 1) {<NEW_... | a.subList(0, 1); |
1,344,923 | protected void addPathMatcher(CodegenOperation codegenOperation) {<NEW_LINE>LinkedList<String> allPaths = new LinkedList<>(Arrays.asList(codegenOperation.path.split("/")));<NEW_LINE>allPaths.removeIf(""::equals);<NEW_LINE>LinkedList<TextOrMatcher> pathMatchers = new LinkedList<>();<NEW_LINE>for (String path : allPaths)... | matcher = pathTypeToMatcher.get("String"); |
743,254 | public void fit(ArrayList<double[]> init, double[] data, double[] cResidual, int ifIntercept) {<NEW_LINE>double[] <MASK><NEW_LINE>double[] maCoef = init.get(1);<NEW_LINE>double intercept = init.get(2)[0];<NEW_LINE>double variance = init.get(3)[0];<NEW_LINE>this.p = arCoef.length;<NEW_LINE>this.q = maCoef.length;<NEW_LI... | arCoef = init.get(0); |
1,273,288 | protected void map(K k, V v, IndexableObject current) throws IOException {<NEW_LINE>if (ControlKeys._optype.name().equalsIgnoreCase(k.toString())) {<NEW_LINE>current.optype(v.toString());<NEW_LINE>} else if (ControlKeys._index.name().equalsIgnoreCase(k.toString())) {<NEW_LINE>current.index(v.toString());<NEW_LINE>} els... | ), v.toString()); |
936,777 | private String foldHeaderValue(String input) {<NEW_LINE>int inputLength = input.length();<NEW_LINE>int endOfFirstLine = MAX_LINE_LENGTH - FIRST_LINE_EXTRA_LENGTH;<NEW_LINE>if (inputLength <= endOfFirstLine) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>int extraLines = (inputLength - endOfFirstLine - 1) / (MAX_LINE_LENG... | StringBuilder headerValue = new StringBuilder(builderSize); |
1,683,772 | public static VipInventory valueOf(VipVO vo) {<NEW_LINE>VipInventory inv = new VipInventory();<NEW_LINE>inv.setName(vo.getName());<NEW_LINE>inv.setDescription(vo.getDescription());<NEW_LINE>inv.setCreateDate(vo.getCreateDate());<NEW_LINE>inv.setGateway(vo.getGateway());<NEW_LINE>inv.setIp(vo.getIp());<NEW_LINE>inv.setI... | setLastOpDate(vo.getLastOpDate()); |
1,259,975 | public static void vertical11(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k... | .startIndex + y * dst.stride; |
1,019,710 | public boolean initOnce() throws Exception {<NEW_LINE>Method m = load("com/tencent/mobileqq/activity/aio/BaseBubbleBuilder").getMethod("onClick", View.class);<NEW_LINE>HookUtils.hookBeforeIfEnabled(this, m, 49, param -> {<NEW_LINE>Context ctx = Reflex.getInstanceObjectOrNull(param.thisObject, "a", Context.class);<NEW_L... | param.thisObject, Context.class); |
1,710,961 | private static void doCreateSuperForwarder(final ClassNode targetNode, final MethodNode forwarderMethod, final ClassNode[] interfacesToGenerateForwarderFor, final Map<String, ClassNode> genericsSpec) {<NEW_LINE>Parameter[] parameters = forwarderMethod.getParameters();<NEW_LINE>Parameter[] superForwarderParams = new Par... | final ClassNode current = interfacesToGenerateForwarderFor[i]; |
1,414,266 | private Object toDate(final Class<?> type, final long value) {<NEW_LINE>// java.util.Date<NEW_LINE>if (type.equals(Date.class)) {<NEW_LINE>return new Date(value);<NEW_LINE>}<NEW_LINE>// java.sql.Date<NEW_LINE>if (type.equals(java.sql.Date.class)) {<NEW_LINE>return new java.sql.Date(value);<NEW_LINE>}<NEW_LINE>// java.s... | this.toString(type) + "'"; |
1,675,121 | public static void main(String[] args) throws TwitterException {<NEW_LINE>TwitterStream twitterStream = new TwitterStreamFactory().getInstance().addListener(new StatusListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onStatus(Status status) {<NEW_LINE>System.out.println("@" + status.getUser().getScreenName... | out.println("Got track limitation notice:" + numberOfLimitedStatuses); |
244,086 | public static QueryTaskInfoHistoryResponse unmarshall(QueryTaskInfoHistoryResponse queryTaskInfoHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTaskInfoHistoryResponse.setRequestId(_ctx.stringValue("QueryTaskInfoHistoryResponse.RequestId"));<NEW_LINE>queryTaskInfoHistoryResponse.setPageSize(_ctx.integerValue... | (_ctx.integerValue("QueryTaskInfoHistoryResponse.PrePageCursor.TaskStatusCode")); |
217,905 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "<b>Check</b> multiple feature toggles", response = Boolean.class)<NEW_LINE>@ApiResponses({ @ApiResponse(code = 200, message = "Map of feature / flipped"), @ApiResponse(code = 400, message = "Invalid para... | , formParams.getFirst(key)); |
1,610,638 | public static void partialReduceFloatAddCarrierValue(float[] inputArray, float[] outputArray, int gidx, float value) {<NEW_LINE>float[] localArray = (float[]) NewArrayNode.newUninitializedArray(float.class, LOCAL_WORK_GROUP_SIZE);<NEW_LINE>int localIdx = OpenCLIntrinsics.get_local_id(0);<NEW_LINE>int <MASK><NEW_LINE>in... | localGroupSize = OpenCLIntrinsics.get_local_size(0); |
1,746,039 | public void rebuildQueue() {<NEW_LINE>numFluidBlocksFound = 0;<NEW_LINE>pumpLayerQueues.clear();<NEW_LINE>int x = pos.getX();<NEW_LINE>int y = aimY;<NEW_LINE>int z = pos.getZ();<NEW_LINE>BlockPos pos = new BlockPos(x, y, z);<NEW_LINE>Fluid pumpingFluid = BlockUtil.getFluid(BlockUtil.getBlockState(worldObj<MASK><NEW_LIN... | , pos).getBlock()); |
610,619 | private void updateNic(VmUpdateNicOnHypervisorMsg msg, NoErrorCompletion completion) {<NEW_LINE>checkStateAndStatus();<NEW_LINE>final VmUpdateNicOnHypervisorReply reply = new VmUpdateNicOnHypervisorReply();<NEW_LINE>List<VmNicVO> nics = Q.New(VmNicVO.class).eq(VmNicVO_.vmInstanceUuid, msg.getVmInstanceUuid()).list();<N... | setVmInstanceUuid(msg.getVmInstanceUuid()); |
1,819,267 | // 2019-10-22T23:41:21.852+0000: 21.912: [GC (GCLocker Initiated GC) 2019-10-22T23:41:21.853+0000: 21.912: [DefNew2019-10-22T23:41:21.914+0000: 21.974: [SoftReference, 0 refs, 0.0000842 secs]2019-10-22T23:41:21.914+0000: 21.974: [WeakReference, 76 refs, 0.0000513 secs]2019-10-22T23:41:21.914+0000: 21.974: [FinalReferen... | .add(extractCPUSummary(line)); |
1,842,996 | protected void initView() {<NEW_LINE>LayoutInflater.from(mContext).inflate(R.layout.trtccalling_audiocall_activity_call_main, this);<NEW_LINE>mImageMute = (ImageView) findViewById(R.id.img_mute);<NEW_LINE>mLayoutMute = (LinearLayout) findViewById(R.id.ll_mute);<NEW_LINE>mImageHangup = (ImageView) findViewById(R.id.img_... | findViewById(R.id.ll_handsfree); |
33,926 | final ListPackageVersionAssetsResult executeListPackageVersionAssets(ListPackageVersionAssetsRequest listPackageVersionAssetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPackageVersionAssetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,100,587 | public void marshall(ActivityTaskScheduledEventAttributes activityTaskScheduledEventAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (activityTaskScheduledEventAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot... | activityTaskScheduledEventAttributes.getTaskList(), TASKLIST_BINDING); |
62,830 | public Identity postInstanceRefreshRequest(String domain, String service, InstanceRefreshRequest req) {<NEW_LINE>WebTarget target = base.path("/instance/{domain}/{service}/refresh").resolveTemplate("domain", domain).resolveTemplate("service", service);<NEW_LINE>Invocation.Builder invocationBuilder = target.request("app... | .entity(req, "application/json")); |
1,376,958 | public void exportHTMLData(ExportDataDumper eDD, int depth) {<NEW_LINE>// NOI18N<NEW_LINE>StringBuffer result = new StringBuffer("<tr><td class=\"method\"><pre class=\"method\">.");<NEW_LINE>for (int i = 0; i < depth; i++) {<NEW_LINE>// NOI18N<NEW_LINE>result.append(".");<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>result.a... | exportHTMLData(eDD, depth + 1); |
154,177 | protected void writeSnapshot(Snapshot snapshot, boolean duration, BufferedWriter writer) throws IOException {<NEW_LINE>writeWithIndent("min = " + getSnapshotValueString(snapshot.getMin(), duration), writer);<NEW_LINE>writeWithIndent("max = " + getSnapshotValueString(snapshot.getMax(), duration), writer);<NEW_LINE>write... | (), duration), writer); |
28,753 | private void rebuildCodeTemplates() {<NEW_LINE>Collection<? extends CodeTemplateSettings> allCts = ctslr.allInstances();<NEW_LINE>CodeTemplateSettings cts = allCts.isEmpty() ? null : allCts.iterator().next();<NEW_LINE>Map<String, CodeTemplate> map = new HashMap<String, CodeTemplate>();<NEW_LINE>List<CodeTemplate> templ... | > ctds = cts.getCodeTemplateDescriptions(); |
1,236,208 | private void createSettingsMenu() {<NEW_LINE>List<DropDownItem> settingsItems = Lists.newArrayList();<NEW_LINE>if (Ode.getUserAutoloadProject()) {<NEW_LINE>settingsItems.add(new DropDownItem(WIDGET_NAME_AUTOLOAD, MESSAGES.disableAutoload(), new DisableAutoloadAction()));<NEW_LINE>} else {<NEW_LINE>settingsItems.add(new... | ), new SetFontRegularAction())); |
1,034,553 | public static String encodeRealNumberRange(float number, int maxDigitsLeft, int maxDigitsRight, int offsetValue) {<NEW_LINE>int shiftMultiplier = (int) Math.pow(10, maxDigitsRight);<NEW_LINE>long shiftedNumber = (long) Math.round((double) number * shiftMultiplier);<NEW_LINE>long shiftedOffset = offsetValue * shiftMulti... | int numBeforeDecimal = longString.length(); |
1,079,197 | protected void addConfiguration(Map<String, Object> out) {<NEW_LINE>super.addConfiguration(out);<NEW_LINE>out.put("Empty value", emptyValue);<NEW_LINE>out.put("Unescaped quote handling", unescapedQuoteHandling);<NEW_LINE>out.put("Escape unquoted values", escapeUnquotedValues);<NEW_LINE>out.put("Keep escape sequences", ... | , Arrays.toString(delimitersForDetection)); |
1,733,195 | protected void initialize() {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>log.info("Initialize web platform...");<NEW_LINE>// Register BC security provider<NEW_LINE>SecurityProviderUtils.registerSecurityProvider();<NEW_LINE>// Register properties adapter<NEW_LINE>this.workspace = new CBWorkspace(this... | this.queryManager.registerMetaListener(qmLogWriter); |
1,750,160 | public void endVisit(JNewArray x, Context ctx) {<NEW_LINE>JArrayType type = x.getArrayType();<NEW_LINE>List<JExpression> initializers = x.getInitializers();<NEW_LINE>if (initializers != null) {<NEW_LINE>JsonArray initializerArray = getInitializerArray(x);<NEW_LINE>if (program.isUntypedArrayType(type)) {<NEW_LINE>ctx.re... | (createArrayFromInitializers(x, type)); |
734,596 | synchronized private Wo executeCommand(String ctl, String nodeName, int nodePort) throws Exception {<NEW_LINE>Wo wo = new Wo();<NEW_LINE>// wo.setNode(nodeName);<NEW_LINE>wo.setStatus("success");<NEW_LINE>try (Socket socket = new Socket(nodeName, nodePort)) {<NEW_LINE>socket.setKeepAlive(true);<NEW_LINE>socket.setSoTim... | format(new Date())); |
188,203 | public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify) throws AttributeNotFoundException {<NEW_LINE>// Wrap fault handler if a wildcard path pattern is present<NEW_LINE><MASK><NEW_LINE>String pathPart = pPathParts.isEmpty() ? null : pPathParts.pop();<NEW_... | ValueFaultHandler faultHandler = pConverter.getValueFaultHandler(); |
852,768 | final GetInsightsResult executeGetInsights(GetInsightsRequest getInsightsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInsightsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | (super.beforeMarshalling(getInsightsRequest)); |
1,158,295 | private CacheEntry cacheLocked(ComponentName componentName, ResolveInfo info, HashMap<Object, CharSequence> labelCache) {<NEW_LINE>CacheEntry entry = mCache.get(componentName);<NEW_LINE>if (entry == null) {<NEW_LINE>entry = new CacheEntry();<NEW_LINE>mCache.put(componentName, entry);<NEW_LINE>ComponentName key = Util.g... | get(key).toString(); |
178,342 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new LinearLayoutManager(requireContext()... | drawable.list_divider_h), true)); |
516,562 | public static GetCustomFieldsByTemplateIdResponse unmarshall(GetCustomFieldsByTemplateIdResponse getCustomFieldsByTemplateIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCustomFieldsByTemplateIdResponse.setRequestId(_ctx.stringValue("GetCustomFieldsByTemplateIdResponse.RequestId"));<NEW_LINE>getCustomFieldsByTempla... | ("GetCustomFieldsByTemplateIdResponse.Data[" + i + "].MaxLength")); |
1,571,330 | public boolean hasNext() {<NEW_LINE>// make the consuming thread wait for results util elements have been<NEW_LINE>// added OR the producer has no more results (finished == true)<NEW_LINE>final long yieldStart = System.currentTimeMillis();<NEW_LINE>while (!added.get() || (!finished.get() && queue.isEmpty())) {<NEW_LINE... | "finished: {}", finished.get()); |
713,393 | private Position decodeLocation2(DeviceSession deviceSession, ByteBuf buf, int type) {<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.setDeviceId(deviceSession.getDeviceId());<NEW_LINE>Jt600ProtocolDecoder.decodeBinaryLocation(buf, position);<NEW_LINE>position.setValid(type != MSG_LOCAT... | int product = buf.readUnsignedByte(); |
603,649 | public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>final JsonNode node = p.readValueAsTree();<NEW_LINE>if (node.isObject()) {<NEW_LINE>if (node.has(TOKEN_DATE)) {<NEW_LINE>return Instant.parse(node.get<MASK><NEW_LINE>}<NEW_LINE>if (node.has(TOKEN_ENUM)) {<NEW_LINE>return ... | (TOKEN_DATE).textValue()); |
980,575 | public KMeansTrainBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>BatchOperator<<MASK><NEW_LINE>final int maxIter = this.getMaxIter();<NEW_LINE>final double tol = this.getEpsilon();<NEW_LINE>final String vectorColName = this.getVectorCol();<NEW_LINE>final DistanceType distanceType = getDistanceType();<NEW_LINE>... | ?> in = checkAndGetFirst(inputs); |
1,814,932 | private void doCompact() {<NEW_LINE>Collection<DocumentReference> refs = collectReferencesWithoutMergers();<NEW_LINE>Collection<DocumentReference> openDocs = new HashSet<>();<NEW_LINE>for (DocumentReference each : refs) {<NEW_LINE>VirtualFile file = each.getFile();<NEW_LINE>if (file == null) {<NEW_LINE><MASK><NEW_LINE>... | Document document = each.getDocument(); |
1,465,960 | public static ListCallDetailRecordsResponse unmarshall(ListCallDetailRecordsResponse listCallDetailRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCallDetailRecordsResponse.setRequestId(_ctx.stringValue("ListCallDetailRecordsResponse.RequestId"));<NEW_LINE>listCallDetailRecordsResponse.setCode(_ctx.stringValu... | ("ListCallDetailRecordsResponse.Data.List[" + i + "].ReleaseInitiator")); |
443,283 | public final void layout(N rootNode) {<NEW_LINE>if (rootNode == null)<NEW_LINE>return;<NEW_LINE>Collection<N> allNodes = scene.getNodes();<NEW_LINE>ArrayList<N> nodesToResolve = new ArrayList<N>(allNodes);<NEW_LINE>HashSet<N> loadedSet = new HashSet<N>();<NEW_LINE>Node root = new Node(rootNode, loadedSet);<NEW_LINE>nod... | root.resolveVertically(originX, originY); |
1,105,998 | private PactDslRequestWithPath createPactDslRequestWithPath(Contract contract, PactDslResponse pactDslResponse) {<NEW_LINE>PactDslRequestWithPath pactDslRequest = getPactDslRequest(contract, getPactDslWithStateFunction(pactDslResponse), getPactDslRequestWithPathBiFunction(pactDslResponse));<NEW_LINE>Request request = c... | (request.getBodyMatchers())); |
1,711,166 | private static SampleEntry toSampleEntry(CodecMeta se) {<NEW_LINE>Rational pasp = null;<NEW_LINE>SampleEntry vse;<NEW_LINE>if ("avc1".equals(se.getFourcc())) {<NEW_LINE>vse = H264Utils.createMOVSampleEntryFromBytes(se.getCodecPrivate().duplicate());<NEW_LINE>pasp = ((<MASK><NEW_LINE>} else if (se instanceof VideoCodecM... | VideoCodecMeta) se).getPasp(); |
848,712 | public boolean rawInvocation(Request request, Response response) throws Exception {<NEW_LINE>// Mark an evolution as resolved<NEW_LINE>if (Play.mode.isDev() && request.method.equals("POST") && request.url.matches("^/@evolutions/force/[a-zA-Z0-9]+/[0-9]+$")) {<NEW_LINE>int index = request.url.lastIndexOf("/@evolutions/f... | super.rawInvocation(request, response); |
1,409,426 | private void renderEntity(OWLEntity entity) {<NEW_LINE>ShortFormProvider sfp = renderingContext.getShortFormProvider();<NEW_LINE>String rendering = sfp.getShortForm(entity);<NEW_LINE><MASK><NEW_LINE>builder.append(rendering);<NEW_LINE>int renderingEnd = builder.mark();<NEW_LINE>Style style = new Style(ForegroundAttribu... | int renderingStart = builder.mark(); |
518,614 | public static Table run(StreamExecutionEnvironment streamEnv, TableEnvironment tableEnv, StatementSet statementSet, ExecutionMode mode, Table input, TFConfig tfConfig, TableSchema outSchema) throws IOException {<NEW_LINE>final boolean hasScript = hasScript(tfConfig);<NEW_LINE>Preconditions.checkArgument(hasScript || mo... | workerAndChief.getRight(), tableEnv); |
1,600,605 | public final void load() {<NEW_LINE>ResourceLoaderContext loadHistory = new ResourceLoaderContext();<NEW_LINE>try (InputStreamReader reader = loadHistory.startLoading(jsonGuiDefinition)) {<NEW_LINE>JsonObject obj = new Gson().fromJson(reader, JsonObject.class);<NEW_LINE>JsonGuiInfo info = new JsonGuiInfo(obj, context, ... | "custom." + parent, IContainingElement.class); |
503,067 | private static Object resolveParameter(ParameterContext parameterContext, Executable executable, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) {<NEW_LINE>try {<NEW_LINE>// @formatter:off<NEW_LINE>List<ParameterResolver> matchingResolvers = extensionRegistry.stream(ParameterResolver.class).filt... | ).collect(toList()); |
1,191,924 | public synchronized Trace build() {<NEW_LINE>final Map<Long, ShallowTrace> traceMap = new HashMap<>();<NEW_LINE>final Set<TraceRelationship> relationships = new HashSet<>();<NEW_LINE>for (ShallowTraceBuilder builder : _traceBuilders) {<NEW_LINE>traceMap.put(builder.getNativeId(), builder.build());<NEW_LINE>}<NEW_LINE>f... | ._to, Relationship.POTENTIAL_PARENT_OF)); |
1,632,931 | final SetStackPolicyResult executeSetStackPolicy(SetStackPolicyRequest setStackPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setStackPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
869,429 | public void paint(@NotNull final Graphics2D g2d, @NotNull final Rectangle bounds, @NotNull final C c, @NotNull final D d, @NotNull final Shape shape) {<NEW_LINE>final float <MASK><NEW_LINE>if (opacity > 0) {<NEW_LINE>final List<GradientColor> colors = getColors(c, d);<NEW_LINE>if (colors != null) {<NEW_LINE>final Compo... | opacity = getOpacity(c, d); |
213,361 | public void start(Stage stage) throws Exception {<NEW_LINE>JFXListView<Label> list = new JFXListView<>();<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>list.getItems().add(new Label(ITEM + i));<NEW_LINE>}<NEW_LINE>list.getStyleClass().add("mylistview");<NEW_LINE>ListView<String> javaList = new ListView<>();<NEW_LINE>... | 600, 600, Color.WHITE); |
1,841,553 | private void saveDefaultRole() throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>List<String> roles = ListTools.toList(OrganizationDefinition.SystemManager, OrganizationDefinition.SecurityManager, OrganizationDefinition.AuditManager);<NEW_LINE>ro... | id)).where(p); |
119,931 | private Map<SqlNode, RexNode> convertPartition(SqlNode sqlPartitionBy) {<NEW_LINE>Map<SqlNode, RexNode> partRexInfoCtx = new HashMap<>();<NEW_LINE>if (sqlPartitionBy != null) {<NEW_LINE>final SqlValidatorScope <MASK><NEW_LINE>final Blackboard bb = createBlackboard(partitionScope, null, false);<NEW_LINE>for (SqlNode sql... | partitionScope = validator.getPartitionByScope(sqlPartitionBy); |
1,567,667 | public void uploadPanelDidEnd_returnCode_contextInfo(final NSOpenPanel sheet, final int returncode, final ID contextInfo) {<NEW_LINE>sheet.orderOut(contextInfo);<NEW_LINE>if (returncode == SheetCallback.DEFAULT_OPTION) {<NEW_LINE>final Path destination = new UploadTargetFinder(workdir).find(this.getSelectedPath());<NEW... | uploads = new ArrayList<>(); |
1,327,215 | public void enterFileNameWithRoot() throws IOException {<NEW_LINE>ViewInteraction radioButton = onView(allOf(withId(R.id.radioNewFile), withText("Select new file"), withParent(withId(R.id.radioGroup)), isDisplayed()));<NEW_LINE>radioButton.perform(click());<NEW_LINE>ViewInteraction checkBox = onView(allOf(withId(R.id.c... | button.perform(click()); |
1,720,724 | public static ObjectWriter createMonetaryAmountWriter() {<NEW_LINE>if (CLASS_MONETARY == null) {<NEW_LINE>CLASS_MONETARY = TypeUtils.loadClass("javax.money.Monetary");<NEW_LINE>}<NEW_LINE>if (CLASS_MONETARY_AMOUNT == null) {<NEW_LINE>CLASS_MONETARY_AMOUNT = TypeUtils.loadClass("javax.money.MonetaryAmount");<NEW_LINE>}<... | METHOD_MONETARY_AMOUNT_GET_NUMBER = CLASS_MONETARY_AMOUNT.getMethod("getNumber"); |
963,699 | public void run() {<NEW_LINE>try {<NEW_LINE>MainView mainView = RhodesActivity<MASK><NEW_LINE>MainView v = null;<NEW_LINE>SimpleMainView smv = null;<NEW_LINE>if (mainView instanceof SimpleMainView) {<NEW_LINE>smv = (SimpleMainView) mainView;<NEW_LINE>}<NEW_LINE>switch(type) {<NEW_LINE>case NOBAR_TYPE:<NEW_LINE>if (smv ... | .safeGetInstance().getMainView(); |
823,247 | public void onClick(final View v) {<NEW_LINE>MyPopupMenu p = new MyPopupMenu(v.getContext(), v);<NEW_LINE>p.getMenu().add(R.string.one_page).setIcon(R.drawable.glyphicons_two_page_one).setOnMenuItemClickListener(new OnMenuItemClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean onMenuItemClick(MenuIte... | setImageResource(R.drawable.glyphicons_page_split); |
918,553 | public FleetLaunchTemplateConfigRequest unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>FleetLaunchTemplateConfigRequest fleetLaunchTemplateConfigRequest = new FleetLaunchTemplateConfigRequest();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1... | new ArrayList<FleetLaunchTemplateOverridesRequest>()); |
42,695 | public void start() {<NEW_LINE>String scanIntervalStr = this.getConfigManager().getFeatureConfiguration(this.feature, "scan.interval");<NEW_LINE>int scanInterval = (StringHelper.isEmpty(scanIntervalStr)) ? 30000 : Integer.parseInt(scanIntervalStr);<NEW_LINE>String networkDetectIntervalStr = this.getConfigManager().getF... | OSProcessScanner("OSProcessScanner", this.feature); |
129,496 | private void paintMultiLineToolTip(Graphics2D g) {<NEW_LINE>String[] texts = tooltip.label.split(System.lineSeparator());<NEW_LINE>List<TextLayout> list = new ArrayList<>();<NEW_LINE>TextLayout textLayout = null;<NEW_LINE>Rectangle2D bounds = null;<NEW_LINE>double backgroundHeight = MARGIN;<NEW_LINE>double backgroundWi... | setColor(styler.getChartFontColor()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.