idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,389,259 | public Request<DescribeAddressesRequest> marshall(DescribeAddressesRequest describeAddressesRequest) {<NEW_LINE>if (describeAddressesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeAddressesRequest> request = new DefaultRequest... | (filterMember.getName())); |
1,472,751 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>final View v = inflater.inflate(R.layout.fingerprint_dialog, container, false);<NEW_LINE>final TextView mFingerprintDescription = (TextView) v.findViewById(R.id.fingerprint_description);<NEW_LINE>mFingerprintDes... | findViewById(R.id.fingerprint_icon); |
972,671 | public com.amazonaws.services.customerprofiles.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.customerprofiles.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.customerprofiles.model.AccessDeniedExceptio... | JsonToken token = context.getCurrentToken(); |
1,736,980 | protected String doIt() throws Exception {<NEW_LINE>final IHostIdentifier host = getHost();<NEW_LINE>addLog("Using host: " + host);<NEW_LINE>final ClientId adClientId = Env.getClientId(getCtx());<NEW_LINE>final OrgId adOrgId = Env.getOrgId(getCtx());<NEW_LINE>addLog("Using AD_Client_ID: " + adClientId);<NEW_LINE>addLog... | getDeviceAccessorsHub(host, adClientId, adOrgId); |
340,477 | public void onEvent(ActivitiEvent event) {<NEW_LINE>if (isValidEvent(event)) {<NEW_LINE>if (event.getProcessInstanceId() == null && processInstanceScope) {<NEW_LINE>throw new ActivitiIllegalArgumentException("Cannot throw process-instance scoped signal, since the dispatched event is not part of an ongoing process insta... | findDeployedProcessDefinitionById(event.getProcessDefinitionId()); |
1,790,480 | protected final void bindValues(SQLiteStatement stmt, LocalRepo entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>stmt.bindLong(1, entity.getId());<NEW_LINE>stmt.bindString(2, entity.getName());<NEW_LINE>String description = entity.getDescription();<NEW_LINE>if (description != null) {<NEW_LINE>stmt.bindString(3, descri... | String language = entity.getLanguage(); |
1,728,596 | private void submitTask(long beId, TRoutineLoadTask tTask) throws LoadException {<NEW_LINE>Backend backend = Catalog.getCurrentSystemInfo().getBackend(beId);<NEW_LINE>if (backend == null) {<NEW_LINE>throw new LoadException("failed to send tasks to backend " + beId + " because not exist");<NEW_LINE>}<NEW_LINE>TNetworkAd... | e.getMessage(), e); |
286,387 | public static void main(String[] args) {<NEW_LINE>Stack_Priority data = new Stack_Priority();<NEW_LINE>System.out.println("Data entering in the stack\n");<NEW_LINE>System.out.println("Pushing data 10 ");<NEW_LINE>data.push(10);<NEW_LINE>System.out.println("Pushing data 20 ");<NEW_LINE>data.push(20);<NEW_LINE>System.out... | System.out.println("Pushing data 70 "); |
943,133 | private static String inferPhrasalCategory(Tree t, boolean retainNER) {<NEW_LINE>String phraseValue = t.value();<NEW_LINE>// Retrieve the part-of-speech assigned to the original multi-word<NEW_LINE>// token<NEW_LINE>String originalPos = phraseValue.substring(phraseValue.lastIndexOf('_') + 1);<NEW_LINE>if (phrasalCatego... | posSequence + " (original POS of MWE: " + originalPos + ")"); |
300,854 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.event.EventIterator eventIterator(com.sun.jdi.event.EventSet a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans... | jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
1,066,619 | private ListenableFuture<Data> compute(DataRequest req, boolean quantized) {<NEW_LINE>return transform(qe.query(format(quantized ? DATA_QUANTIZED_SQL : DATA_SQL, tableName("activity"))), result -> {<NEW_LINE>int rows = result.getNumRows();<NEW_LINE>Data data = new Data(req, quantized, new long[rows], new long[rows], ne... | ], new int[rows]); |
334,076 | private void createErrorCode(org.zstack.core.errorcode.schema.Error error, String path) {<NEW_LINE>for (Error.Code code : error.getCode()) {<NEW_LINE>String codeId = String.format("%s.%s", error.getPrefix(<MASK><NEW_LINE>ErrorCodeInfo info = codes.get(codeId);<NEW_LINE>if (info != null) {<NEW_LINE>throw new CloudRuntim... | ), code.getId()); |
1,142,714 | public CacheConfigHolder cacheConfigMap() {<NEW_LINE>CacheConfigHolder cm = new CacheConfigHolder();<NEW_LINE>cm.addDistMap(DIST_MAP_NAME_SAMPLING, 15);<NEW_LINE>cm.addDistMap(DIST_MAP_NAME_MONITORING, 15);<NEW_LINE><MASK><NEW_LINE>cm.addDistMap(DIST_MAP_NAME_RECENTLY_USED_AGENTS, 1 * DAY);<NEW_LINE>cm.addDistCache(DIS... | cm.addDistMap(DIST_MAP_NAME_AGENT, 10); |
28,387 | public void run(AccountManagerFuture<Bundle> future) {<NEW_LINE>try {<NEW_LINE>Bundle result = future.getResult();<NEW_LINE>// AccountManager needs user to grant permission<NEW_LINE>if (result.containsKey(AccountManager.KEY_INTENT)) {<NEW_LINE>Intent intent = (Intent) result.get(AccountManager.KEY_INTENT);<NEW_LINE>cle... | e("gtasks-auth", "IOException", e); |
1,447,675 | private void handleSuspiciousRefComparison(JavaClass jclass, Method method, MethodGen methodGen, List<WarningWithProperties> refComparisonList, Location location, String lhs, ReferenceType lhsType, ReferenceType rhsType) {<NEW_LINE>XField xf = null;<NEW_LINE>if (lhsType instanceof FinalConstant) {<NEW_LINE>xf = ((Final... | (), sourceLineAnnotation, location)); |
1,559,516 | private BookmarkResult predictQuranListAfterDeletion(List<QuranRow> remove) {<NEW_LINE>if (cachedData != null) {<NEW_LINE>List<QuranRow> placeholder = new ArrayList<>(Math.max(0, cachedData.getRows().size() - remove.size()));<NEW_LINE>List<QuranRow> rows = cachedData.getRows();<NEW_LINE>List<Long> removedTags = new Arr... | row = remove.get(i); |
515,769 | public void emitCode(CompilationResultBuilder crb, AArch64MacroAssembler masm) {<NEW_LINE>Register resultRegister = asRegister(result);<NEW_LINE>Register ptr = asRegister(input);<NEW_LINE>Register base = (isRegister(baseRegister) ? asRegister(baseRegister) : zr);<NEW_LINE>// result = (ptr - base) >> shift<NEW_LINE>if (... | resultRegister, encoding.getShift()); |
322,698 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>OsmandApplication app = requiredMyApplication();<NEW_LINE>plugin = OsmandPlugin.getPlugin(OsmEditingPlugin.class);<NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(app, nightMode);<NEW_LINE>View sendGpxView = themedInflater.inflate(R.layo... | ChipItem item = new ChipItem(title); |
1,805,594 | protected boolean isRemoteConfigValid() {<NEW_LINE>if (!isEnabled(false)) {<NEW_LINE>LOGGER.log(Level.FINE, "REMOTE copying not enabled for project {0}", project.getName());<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (isInvalid()) {<NEW_LINE>LOGGER.log(Level.FINE, "REMOTE copying invalid for project {0}", project.ge... | "REMOTE copying disabled for project {0}. Reason: source root is null", project.getName()); |
1,849,291 | public Node call() {<NEW_LINE>// throws AnyException<NEW_LINE>Node node;<NEW_LINE>Map<String, Object> params = new HashMap<>();<NEW_LINE>String cypher = buildCypher(st.getObject().stringValue(), st.getContext() != null ? st.getContext().stringValue() : null, params);<NEW_LINE>Result result = <MASK><NEW_LINE>if (result.... | txInThread.execute(cypher, params); |
331,571 | private Bitmap drawableToBitmap(Drawable drawable) {<NEW_LINE>if (drawable == null) {<NEW_LINE>return null;<NEW_LINE>} else if (drawable instanceof BitmapDrawable) {<NEW_LINE>return ((<MASK><NEW_LINE>}<NEW_LINE>int intrinsicWidth = drawable.getIntrinsicWidth();<NEW_LINE>int intrinsicHeight = drawable.getIntrinsicHeight... | BitmapDrawable) drawable).getBitmap(); |
1,750,660 | public List<MetricsValues> readLabeledMetricsValues(final MetricsCondition condition, final String valueColumnName, final List<String> labels, final Duration duration) throws IOException {<NEW_LINE>final List<PointOfTime> pointOfTimes = duration.assembleDurationPoints();<NEW_LINE>final List<String> ids = new ArrayList<... | >(pointOfTimes.size()); |
1,504,920 | private void writeSocks4Connect() {<NEW_LINE>HttpDestination destination = (HttpDestination) context.get(HttpClientTransport.HTTP_DESTINATION_CONTEXT_KEY);<NEW_LINE>String host = destination.getHost();<NEW_LINE>short port = (short) destination.getPort();<NEW_LINE>Matcher matcher = IPv4_PATTERN.matcher(host);<NEW_LINE>i... | ).write(this, buffer); |
775,227 | public static void main(String[] args) {<NEW_LINE>// Prepare Event Grid async client<NEW_LINE>EventGridPublisherClient<com.azure.core.models.CloudEvent> egClient = // Event Grid Domain endpoint with CloudEvent Schema<NEW_LINE>new EventGridPublisherClientBuilder().// Event Grid Domain endpoint with CloudEvent Schema<NEW... | withDataContentType("application/json").build(); |
786,123 | private int checkAugmentedHeads() {<NEW_LINE>logger.debug("S#{} checkAugmentedHeads", system.getId());<NEW_LINE>int modifs = 0;<NEW_LINE>final List<Inter> headChords = sig.inters(HeadChordInter.class);<NEW_LINE>for (Inter hc : headChords) {<NEW_LINE>final HeadChordInter chord = (HeadChordInter) hc;<NEW_LINE>// Heads, o... | logger.info("VIP reduced augmentations for {}", entity); |
1,000,962 | protected void parse() {<NEW_LINE>proxyIp = getString(PROXY_IP, "localhost");<NEW_LINE>determineProxyIpAnyLocalAddress();<NEW_LINE>proxyPort = getInt(PROXY_PORT, 8080);<NEW_LINE>reverseProxyIp = getString(REVERSE_PROXY_IP, "localhost");<NEW_LINE>if (reverseProxyIp.equalsIgnoreCase("localhost") || reverseProxyIp.equalsI... | reverseProxyHttpPort = getInt(REVERSE_PROXY_HTTP_PORT, 80); |
662,129 | private static void validateScoresArePositive(Version indexCreatedVersion, Similarity similarity) throws IOException {<NEW_LINE>CollectionStatistics collectionStats = new CollectionStatistics("some_field", 1200, 1100, 3000, 2000);<NEW_LINE>TermStatistics termStats = new TermStatistics(new BytesRef("some_value"), 100, 1... | computeWeight(2f, collectionStats, termStats); |
107,739 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeUInt32(1, wordCount_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeBool(2, passphraseProtection_);<N... | output.writeUInt32(9, u2FCounter_); |
1,057,373 | private void annotateInstruction35c(@Nonnull AnnotatedBytes out, @Nonnull Instruction35c instruction) {<NEW_LINE>List<String> args = Lists.newArrayList();<NEW_LINE>int registerCount = instruction.getRegisterCount();<NEW_LINE>if (registerCount == 1) {<NEW_LINE>args.add(formatRegister(instruction.getRegisterC()));<NEW_LI... | (instruction.getRegisterC())); |
758,014 | public void marshall(CreateBudgetActionRequest createBudgetActionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createBudgetActionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createBud... | createBudgetActionRequest.getActionType(), ACTIONTYPE_BINDING); |
495,447 | private void showQuickStartFocusPoint() {<NEW_LINE>// we are waiting for RecyclerView to populate itself with views and then grab the first one when it's ready<NEW_LINE>mRecycler.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ... | getDimensionPixelOffset(R.dimen.quick_start_focus_point_size); |
64,763 | void evalItem(BasicItem item) {<NEW_LINE>if (items.size() == 0) {<NEW_LINE>item.pos(pos());<NEW_LINE>dim(item.dim());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int x, y;<NEW_LINE>final Dimension newDim = new Dimension();<NEW_LINE>final Dimension bDim = dim();<NEW_LINE>final Dimension iDim = item.dim();<NEW_LINE>if (col) {<N... | .height + iDim.height + spaceAfter; |
1,182,702 | public Void inTransaction(final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory) throws Exception {<NEW_LINE>final TagDefinitionSqlDao tagDefinitionSqlDao = entitySqlDaoWrapperFactory.become(TagDefinitionSqlDao.class);<NEW_LINE>// Make sure the tag definition exists<NEW_LINE>final TagDefinitionModelDao tagDefinit... | definitionId.toString(), context); |
201,198 | /*<NEW_LINE>* Creates shadow table mutation for Oracle.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>Mutation generateShadowTableMutation(Ddl ddl) throws ChangeEventConvertorException, InvalidChangeEventException {<NEW_LINE>// Get shadow information from change event mutation context<NEW_LINE>Mutation.WriteBuilder builder =... | changeEventSCN = new Long(-1); |
520,583 | /* Create an instance for the given class. */<NEW_LINE>static <T> T createInstance(Class<T> declaringClass, Map<Class<?>, IClass> classes, XmlTest xmlTest, IAnnotationFinder finder, ITestObjectFactory objectFactory, boolean create, String errorMsgPrefix) {<NEW_LINE>T result = null;<NEW_LINE>try {<NEW_LINE>Constructor<T... | constructor = findAnnotatedConstructor(finder, declaringClass); |
742,561 | private String forwardJDWP() {<NEW_LINE>int localPort = forwardTcpPort;<NEW_LINE>String resultDesc = "";<NEW_LINE>try {<NEW_LINE>do {<NEW_LINE>ForwardResult rst = device.<MASK><NEW_LINE>if (rst.state == 0) {<NEW_LINE>forwardTcpPort = localPort;<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>if (rst.state == 1) {<NEW_LINE>if (... | forwardJDWP(localPort + "", pid); |
259,662 | protected void appendComponentSlot(XStringBuilder xsb, JsonStringBuilder jsb, SofaTracerSpan span) {<NEW_LINE>Map<String, String> tagWithStr = span.getTagsWithStr();<NEW_LINE>Map<String, Number> tagWithNum = span.getTagsWithNumber();<NEW_LINE>// URL<NEW_LINE>jsb.append(CommonSpanTags.REQUEST_URL, tagWithStr.get(CommonS... | tagWithNum.get(CommonSpanTags.RESP_SIZE); |
1,020,124 | public CrossRegionCopyAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CrossRegionCopyAction crossRegionCopyAction = new CrossRegionCopyAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
490,240 | private List<NameValueCountPair> listCompletedTimeMonthPair(Business business, EffectivePerson effectivePerson, String applicationId) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(WorkCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<S... | wraps = new ArrayList<>(); |
867,718 | public void collectOutreachers() {<NEW_LINE>nodes2check = new ArrayList<>(nodesCreated);<NEW_LINE>nodesCreated = 0;<NEW_LINE>for (OsmNode n : hmap.values()) {<NEW_LINE>addActiveNode(nodes2check, n);<NEW_LINE>}<NEW_LINE>lastVisitID++;<NEW_LINE>baseID = lastVisitID;<NEW_LINE>while (!nodes2check.isEmpty()) {<NEW_LINE>fina... | distance = n.calcDistance(destination); |
983,862 | public void addTestResult() {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "addTestResult", this);<NEW_LINE>MessageEndpointTestResultsImpl testResult = new MessageEndpointTestResultsImpl();<NEW_LINE>if (testResultNumber >= testResults.length) {<NEW_LINE>// Not enough room for test results, increase the size.... | [testResultNumber++] = (testResult); |
1,854,413 | public final RelExprContext relExpr() throws RecognitionException {<NEW_LINE>RelExprContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 20, RULE_relExpr);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>{<NEW_LINE>setState(194);<NEW_LINE>_localctx.shiftExpr = shiftExp... | RelExprContext(_ctx, getState()); |
706,436 | public boolean onScaleBegin(ScaleGestureDetector detector) {<NEW_LINE>if (!allowZoom)<NEW_LINE>return false;<NEW_LINE>final <MASK><NEW_LINE>final RendererWrapper wrapper = (control != null) ? control.renderWrapper : null;<NEW_LINE>final RenderController render = (wrapper != null) ? wrapper.maplyRender.get() : null;<NEW... | MapController control = mapControl.get(); |
992,318 | private static int compareDimsForLimitPushDown(final IntList fields, final List<Boolean> needsReverseList, final List<ColumnType> dimensionTypes, final List<StringComparator> comparators, final ResultRow lhs, final ResultRow rhs) {<NEW_LINE>for (int i = 0; i < fields.size(); i++) {<NEW_LINE>final int fieldNumber = fiel... | ).compare(lhsArr, rhsArr); |
1,052,073 | public void onPacketReceived(byte[] packet) {<NEW_LINE>super.onPacketReceived(packet);<NEW_LINE>logger.trace("onPacketReceived() was called");<NEW_LINE>if (packet[0] == VelbusPacket.STX && packet.length >= 5) {<NEW_LINE>byte command = packet[4];<NEW_LINE>if (command == COMMAND_SENSOR_TEMPERATURE && packet.length >= 6) ... | = (highByteCurrentSensorTemperature & 0x80) == 0x80; |
586,580 | public static SignOutGroupResponse unmarshall(SignOutGroupResponse signOutGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>signOutGroupResponse.setRequestId(_ctx.stringValue("SignOutGroupResponse.RequestId"));<NEW_LINE>signOutGroupResponse.setCode(_ctx.stringValue("SignOutGroupResponse.Code"));<NEW_LINE>signOutGroup... | (_ctx.stringValue("SignOutGroupResponse.Data.UserId")); |
1,773,792 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_auto_applink_demo);<NEW_LINE>TextView coffeeTitleView = (TextView) findViewById(R.id.auto_applink_demo_title);<NEW_LINE>TextView coffeeDescView = (TextView) findViewById(R.id.auto_... | .getText().toString(); |
897,870 | protected OnlineRoutingResponse parseServerResponse(@NonNull JSONObject root, @NonNull OsmandApplication app, boolean leftSideNavigation) throws JSONException {<NEW_LINE>String encodedPoints = root.getString("geometry");<NEW_LINE>List<LatLon> points = GeoPolylineParserUtil.parse(encodedPoints, GeoPolylineParserUtil.PRE... | app, false) + " " + streetName; |
241,861 | final DeleteReportDefinitionResult executeDeleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReportDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | invoke(request, responseHandler, executionContext); |
666,696 | final DeleteCertificateResult executeDeleteCertificate(DeleteCertificateRequest deleteCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
368,666 | public void start(Container container) throws Exception {<NEW_LINE>if (forecastSolarApiKey == null) {<NEW_LINE>LOG.info("No value found for OR_FORECAST_SOLAR_API_KEY, ForecastSolarService won't start");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>forecastSolarTarget = resteasyClient.target("https://api.forecast.solar/" + fore... | "Found includes producer solar asset count = " + electricityProducerSolarAssets.size()); |
1,082,835 | public Object compute(Object[] args, ExecutionContext ec) {<NEW_LINE>if (args.length != 1 && args.length != 2) {<NEW_LINE>throw JsonParserException.wrongParamCount(getFunctionNames()[0]);<NEW_LINE>}<NEW_LINE>// Returns NULL if any argument is NULL<NEW_LINE>for (Object arg : args) {<NEW_LINE>if (arg == null) {<NEW_LINE>... | .StringType, args[0]); |
1,018,812 | private void createInstanceFieldGetterMethod() {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, mInstanceFieldGetterName, mInstanceFieldGetterDescriptor, null, null);<NEW_LINE>mv.visitVarInsn(ALOAD, 0);<NEW_LINE>mv.visitFieldInsn(GETFIELD, slashedname, fInstanceFieldsName, lInstanceStateManager);<NEW_LINE>Label... | GETFIELD, slashedname, fInstanceFieldsName, lInstanceStateManager); |
1,683,373 | public void read(org.apache.thrift.protocol.TProtocol iprot, drop_app_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.a... | skip(iprot, schemeField.type); |
1,048,752 | public void sendVector(ArrayList<Float> vector) {<NEW_LINE>JSONArray vectorArray = new JSONArray();<NEW_LINE>// header<NEW_LINE>vectorArray.put("0xFFFF");<NEW_LINE>// header<NEW_LINE>vectorArray.put("0xFFFF");<NEW_LINE>// 20 being enough space for 2 0xFFFFs and then some!<NEW_LINE>int length = vectorEvent.length() + 20... | + e.GetLength())); |
921,601 | public static void planarToBuffered_U8(Planar<GrayU8> src, BufferedImage dst) {<NEW_LINE>if (src.getNumBands() != 3)<NEW_LINE>throw new IllegalArgumentException("src must have three bands");<NEW_LINE>final int width = dst.getWidth();<NEW_LINE>final int height = dst.getHeight();<NEW_LINE>byte[] band1 = src.getBand(0).da... | << 16 | c2 << 8 | c3; |
1,215,706 | public void createExtensions(ProjectInternal project) {<NEW_LINE>ExtensionContainer container = project.getExtensions();<NEW_LINE>ProviderFactory providerFactory = project.getProviders();<NEW_LINE>try {<NEW_LINE>if (!models.isEmpty()) {<NEW_LINE>ImmutableMap.Builder<String, VersionCatalog> catalogs = ImmutableMap.build... | services.get(DependencyResolutionManagementInternal.class); |
290,945 | private void readComponentProperties(@NotNull final ComponentStyle style, @NotNull final Map<String, Object> componentProperties, @NotNull final HierarchicalStreamReader reader, @NotNull final UnmarshallingContext context, @NotNull final ComponentDescriptor descriptor) {<NEW_LINE>Class<? extends JComponent> componentTy... | String custom = cc.getCanonicalName(); |
1,450,564 | public static String readInputStreamToString(Socket socket) throws IOException {<NEW_LINE>BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(socket.getInputStream()));<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>String line;<NEW_LINE>Integer contentLength = null;<NEW_LINE>while (... | char) bufferedReader.read()); |
1,661,138 | private static void allocateRoutingNodes(Map<String, Map<Integer, String>> shardNodes, Map<String, Map<String, IntIndexedContainer>> locations) {<NEW_LINE>for (Map.Entry<String, Map<String, IntIndexedContainer>> indicesByNodeId : locations.entrySet()) {<NEW_LINE><MASK><NEW_LINE>for (Map.Entry<String, IntIndexedContaine... | String nodeId = indicesByNodeId.getKey(); |
1,699,386 | private void bindBookingDetailHolder(final BookingDetailsHolder holder, final int position) {<NEW_LINE>final ALBookingDetailsModel detailsModel = new ALBookingDetailsModel();<NEW_LINE>detailsModel.setSessionId(model.getSessionId());<NEW_LINE>final ALBookingDetailsModel.ALBookingDetails bookingDetails = detailsModel.get... | toString().trim()); |
1,407,310 | public static FunctionBitPatternInfo fromXml(Element e) {<NEW_LINE>String preBytes = e.getAttributeValue("preBytes");<NEW_LINE>String firstBytes = e.getAttributeValue("firstBytes");<NEW_LINE>String address = e.getAttributeValue("address");<NEW_LINE>List<String> returnBytes = new ArrayList<>();<NEW_LINE>Element returnBy... | (e.getChild("firstInst")); |
1,245,032 | public void delete(List<Contentlet> contentlets, User user, boolean respectFrontendRoles, boolean allVersions) throws DotDataException, DotSecurityException {<NEW_LINE>for (Contentlet con : contentlets) {<NEW_LINE>if (con.getInode().equals("")) {<NEW_LINE>throw new DotContentletStateException(CAN_T_CHANGE_STATE_OF_CHEC... | = new ArrayList<String>(); |
592,151 | public void onEmoticonClick(Object o, int actionType, boolean isDelBtn) {<NEW_LINE>if (isDelBtn) {<NEW_LINE>SimpleCommonUtils.delClick(mChatInput);<NEW_LINE>} else {<NEW_LINE>if (o == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (actionType == Constants.EMOTICON_CLICK_BIGIMAGE) {<NEW_LINE>// if(o instanceof Emoticon... | Editable editable = mChatInput.getText(); |
1,373,294 | private <T extends WrappingArrayTemplate<? extends RecordTemplate>> boolean checkComplexArrayField(RecordDataSchema.Field field, String keyName, T prevArray, T currArray, HashMap<String, Integer> currRemainder, boolean checkRemainder) {<NEW_LINE>assert (field != null);<NEW_LINE>assert (currRemainder != null);<NEW_LINE>... | _infoPath, field.getName()); |
55,098 | public void findTypes(String prefix, ISearchRequestor storage, int type) {<NEW_LINE>CompletionResultRequestor requestor = new CompletionResultRequestor(storage, this.unitToSkip, this.project, this.nameLookup);<NEW_LINE>int <MASK><NEW_LINE>if (index == -1) {<NEW_LINE>this.nameLookup.seekTypes(prefix, null, true, type, r... | index = prefix.lastIndexOf('.'); |
1,751,698 | final CreateEventDestinationResult executeCreateEventDestination(CreateEventDestinationRequest createEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEventDestinationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,678,665 | public void collectAtLocus(final Nucleotide refBase, final ReadPileup pileup, final Locatable locus, final int minBaseQuality) {<NEW_LINE>Utils.nonNull(refBase);<NEW_LINE>Utils.nonNull(pileup);<NEW_LINE>Utils.nonNull(locus);<NEW_LINE>ParamUtils.isPositiveOrZero(minBaseQuality, "Minimum base quality must be zero or high... | (b)).sum(); |
736,036 | public void addPlayer(final User user) throws TooManyPlayersException, IllegalStateException {<NEW_LINE>logger.info(String.format("%s joined game %d.", user.toString(), id));<NEW_LINE>synchronized (players) {<NEW_LINE>if (options.playerLimit >= 3 && players.size() >= options.playerLimit) {<NEW_LINE>throw new TooManyPla... | Player player = new Player(user); |
328,355 | private void userRoleChanged(UserRoleChanged message) {<NEW_LINE>Meeting m = getMeeting(message.meetingId);<NEW_LINE>if (m != null) {<NEW_LINE>User user = m.getUserById(message.userId);<NEW_LINE>if (user != null) {<NEW_LINE>user.setRole(message.role);<NEW_LINE>String sessionToken = getTokenByUserId(user.getInternalUser... | sessions.replace(sessionToken, userSession); |
1,148,684 | private Statistics makeTableStatistics(List<Expression> icebergPredicates, Map<ColumnRefOperator, Column> colRefToColumnMetaMap) {<NEW_LINE>LOG.debug("Begin to make iceberg table statistics!");<NEW_LINE>List<Types.NestedField> columns = icebergTable<MASK><NEW_LINE>IcebergFileStats icebergFileStats = generateIcebergFile... | .schema().columns(); |
173,668 | public ListAccountRolesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAccountRolesResult listAccountRolesResult = new ListAccountRolesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | JsonToken token = context.getCurrentToken(); |
1,674,964 | protected void configureHeaderFooter(SheetInfo.SheetPrintSettings printSettings, Cut yCut) {<NEW_LINE>if (yCut.hasProperty(XlsReportConfiguration.PROPERTY_SHEET_HEADER_LEFT)) {<NEW_LINE>printSettings.setHeaderLeft((String) yCut.getProperty(XlsReportConfiguration.PROPERTY_SHEET_HEADER_LEFT));<NEW_LINE>}<NEW_LINE>if (yCu... | .getProperty(XlsReportConfiguration.PROPERTY_SHEET_HEADER_CENTER)); |
305,350 | public boolean execute(CommandSender sender, String commandLabel, String[] args) {<NEW_LINE>if (!this.testPermission(sender)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (args.length == 0) {<NEW_LINE>sender.sendMessage(new TranslationContainer("commands.generic.usage", this.usageMessage));<NEW_LINE>return false;<NEW... | + msg.toString())); |
654,713 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_city_map);<NEW_LINE>ButterKnife.bind(this);<NEW_LINE>final City mCity = (City) getIntent().getSerializableExtra(EXTRA_MESSAGE_CITY_OBJECT);<NEW_LINE>Objects.requireNonNul... | points = new ArrayList<>(); |
1,005,306 | protected List<SuggestedReplacement> filterSuggestions(List<SuggestedReplacement> suggestions) {<NEW_LINE>suggestions.removeIf(suggestion -> isProhibited(suggestion.getReplacement()));<NEW_LINE>List<SuggestedReplacement> newSuggestions = new ArrayList<>();<NEW_LINE>for (SuggestedReplacement suggestion : suggestions) {<... | setType(SuggestedReplacement.SuggestionType.Curated); |
783,868 | public void modifyTestElement(TestElement sampler) {<NEW_LINE>super.configureTestElement(sampler);<NEW_LINE>SystemSampler systemSampler = (SystemSampler) sampler;<NEW_LINE>systemSampler.setCheckReturnCode(checkReturnCode.isSelected());<NEW_LINE>if (checkReturnCode.isSelected()) {<NEW_LINE>if (!StringUtils.isEmpty(desir... | (desiredReturnCode.getText())); |
762,540 | public boolean process(AudioEvent audioEvent) {<NEW_LINE>float[<MASK><NEW_LINE>assert audioFloatBuffer.length == getInputBufferSize();<NEW_LINE>// Search for the best overlapping position.<NEW_LINE>int offset = seekBestOverlapPosition(audioFloatBuffer, 0);<NEW_LINE>// Mix the samples in the 'inputBuffer' at position of... | ] audioFloatBuffer = audioEvent.getFloatBuffer(); |
1,688,206 | private Statement rewriteMethodCondition(MethodCallExpression condition, Expression message, boolean explicit) {<NEW_LINE>MethodCallExpression rewritten;<NEW_LINE>int lastVariableNum;<NEW_LINE>final Expression converted = convert(condition);<NEW_LINE>rewritten = (MethodCallExpression) unrecord(converted);<NEW_LINE>last... | add(new ConstantExpression(lastVariableNum)); |
1,024,823 | public static GetSubscriptionItemDetailResponse unmarshall(GetSubscriptionItemDetailResponse getSubscriptionItemDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSubscriptionItemDetailResponse.setRequestId(_ctx.stringValue("GetSubscriptionItemDetailResponse.RequestId"));<NEW_LINE>getSubscriptionItemDetailResponse... | ("GetSubscriptionItemDetailResponse.SubscriptionItemDetail.Contacts[" + i + "].ContactId")); |
839,699 | public void initialize() {<NEW_LINE>createNotificationChannels();<NEW_LINE>this.subscriptions.add(this.notifications.onBackpressureBuffer().filter(PushNotificationEnvelope::isErroredPledge).observeOn(Schedulers.newThread())<MASK><NEW_LINE>this.subscriptions.add(this.notifications.onBackpressureBuffer().filter(PushNotif... | .subscribe(this::displayNotificationFromErroredPledge)); |
1,732,752 | public void encode(OutputStream output) throws IOException {<NEW_LINE>TlsUtils.writeUint8(statusType, output);<NEW_LINE>switch(statusType) {<NEW_LINE>case CertificateStatusType.ocsp:<NEW_LINE>{<NEW_LINE>OCSPResponse ocspResponse = (OCSPResponse) response;<NEW_LINE>byte[] derEncoding = ocspResponse.getEncoded(ASN1Encodi... | ((int) totalLength, output); |
297,433 | private static void initDB(String dbPropsFile, String rootPassword, String[] databases, boolean dryRun) {<NEW_LINE>Properties dbProperties = new Properties();<NEW_LINE>try (FileInputStream f_stream = new FileInputStream(new File(dbPropsFile))) {<NEW_LINE>dbProperties.load(f_stream);<NEW_LINE>} catch (IOException e) {<N... | ("CREATE USER IF NOT EXISTS %s@`localhost` identified by '%s'", username, password)); |
841,035 | private String Timestamp2String(java.sql.Timestamp v) {<NEW_LINE>GregorianCalendar cal = new GregorianCalendar();<NEW_LINE>// min<NEW_LINE>int timezone = cal.get(Calendar.ZONE_OFFSET) / 60000;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");... | nanosChar, 0, truncIndex + 1); |
695,293 | public Writer truncateTo(int revision) {<NEW_LINE>PageReference uberPageReference = readUberPageReference();<NEW_LINE>UberPage uberPage = <MASK><NEW_LINE>while (uberPage.getRevisionNumber() != revision) {<NEW_LINE>mResourceFileStorage.remove(uberPageReference.getKey());<NEW_LINE>final Long previousUberPageKey = uberPag... | (UberPage) uberPageReference.getPage(); |
1,213,032 | public static BlobItemProperties populateBlobItemProperties(BlobItemPropertiesInternal blobItemPropertiesInternal) {<NEW_LINE>BlobItemProperties blobItemProperties = new BlobItemProperties();<NEW_LINE>blobItemProperties.setCreationTime(blobItemPropertiesInternal.getCreationTime());<NEW_LINE>blobItemProperties.setLastMo... | setCopyProgress(blobItemPropertiesInternal.getCopyProgress()); |
1,411,143 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.main);<NEW_LINE>TextView descriptionTextView = (TextView) findViewById(R.id.descriptionTextView);<NEW_LINE>descriptionTextView.setText(Html.fromHtml(getString(<MASK><NEW_LINE>Intent intentPlus... | R.string.plugin_description))); |
865,276 | public static int evaluate(UUID playerId, Game game, boolean ignoreTapped) {<NEW_LINE>Player player = game.getPlayer(playerId);<NEW_LINE>Player opponent = game.getPlayer(game.getOpponents(playerId).stream().findFirst().orElse(null));<NEW_LINE>if (opponent == null) {<NEW_LINE>return WIN_SCORE;<NEW_LINE>}<NEW_LINE>if (ga... | .getHand().size(); |
1,015,691 | final AssociateAwsAccountWithPartnerAccountResult executeAssociateAwsAccountWithPartnerAccount(AssociateAwsAccountWithPartnerAccountRequest associateAwsAccountWithPartnerAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateAwsAccountWithPartnerAccountRequest);<NEW_LINE>AWSReque... | (super.beforeMarshalling(associateAwsAccountWithPartnerAccountRequest)); |
1,563,537 | private synchronized void prepareContent() {<NEW_LINE>assert <MASK><NEW_LINE>int rowIndex = table.getSelectedRow();<NEW_LINE>if (rowIndex != -1 && table.getRowCount() > 0 && getSettingsTableModel().getUpdateUnitProvider(rowIndex) != null) {<NEW_LINE>UpdateUnitProvider uup = getSettingsTableModel().getUpdateUnitProvider... | !SwingUtilities.isEventDispatchThread() : "Invoke SettingsTab.prepareContent out of AWT only"; |
422,981 | boolean isCurrentDeployRetirable(String envId, DeployBean currDeployBean) throws Exception {<NEW_LINE>if (currDeployBean == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>DeployState currDeployState = currDeployBean.getState();<NEW_LINE><MASK><NEW_LINE>if (StateMachines.DEPLOY_FINAL_STATES.contains(currDeployState))... | String deployId = currDeployBean.getDeploy_id(); |
1,569,798 | public void readCData(String qname, char[] ch, int start, int length) throws SAXException {<NEW_LINE>// <jvm-options>-client</jvm-options><NEW_LINE>// <jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed</jvm-options><NEW_LINE>if (readJvmConfig) {<NEW_LINE>String option = new String(ch, start, leng... | option.substring(0, splitIndex); |
910,417 | public void initWidgets() {<NEW_LINE>// Description<NEW_LINE>add(theme.label(module.description, getWindowWidth() / 2.0));<NEW_LINE>// Settings<NEW_LINE>if (module.settings.groups.size() > 0) {<NEW_LINE>settingsContainer = add(theme.verticalList()).expandX().widget();<NEW_LINE>settingsContainer.add(theme.settings(modul... | widget = module.getWidget(theme); |
1,606,338 | protected String doInBackground(Uri... params) {<NEW_LINE>try {<NEW_LINE>Timber.v("CopyTask with URI: %s", params[0]);<NEW_LINE>String filename = uriToFilename(params[0]);<NEW_LINE>Timber.v("filename for save is: %s", filename);<NEW_LINE>InputStream inputStream = context.getApplicationContext().getContentResolver().ope... | openFileOutput(filename, Context.MODE_PRIVATE); |
631,514 | static ModuleContext from(Project project, ModuleConfig moduleConfig) {<NEW_LINE>Map<DocumentId, DocumentContext> srcDocContextMap = new HashMap<>();<NEW_LINE>for (DocumentConfig sourceDocConfig : moduleConfig.sourceDocs()) {<NEW_LINE>srcDocContextMap.put(sourceDocConfig.documentId(), DocumentContext.from(sourceDocConf... | , ResourceContext.from(resourceConfig)); |
582,315 | public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>StructureDataType struct = new StructureDataType(getCommandName(), 0);<NEW_LINE>struct.<MASK><NEW_LINE>struct.add(DWORD, "cmdsize", null);<NEW_LINE>if (is32bit) {<NEW_LINE>struct.add(DWORD, "vmaddr", null);<NEW_LINE>struct.add(DWORD, "fi... | add(DWORD, "cmd", null); |
405,675 | public void applyAttachedObject(FaceletContext faceletContext, UIComponent parent) {<NEW_LINE>ClientBehaviorHolder holder = (ClientBehaviorHolder) parent;<NEW_LINE>String eventName = getEventName();<NEW_LINE>if (null == eventName) {<NEW_LINE>eventName = holder.getDefaultEventName();<NEW_LINE>if (null == eventName) {<NE... | .getFacesContext().getApplication(); |
981,861 | private static Thumbnail createThumbnailFromBufferedImage(final BufferedImage source, final Image originalImage, final Integer reqOffsetX, final Integer reqOffsetY, final Integer maxWidth, final Integer maxHeight, final String formatString) {<NEW_LINE>final String imageFormatString = getImageFormatString(originalImage)... | setBytes(baos.toByteArray()); |
267,071 | public <Result, WrappedResult, Data> Result intercept(@NonNull PreparedOperation<Result, WrappedResult, Data> operation, @NonNull Chain chain) {<NEW_LINE>try {<NEW_LINE>final DeleteResolver<T> deleteResolver;<NEW_LINE>if (explicitDeleteResolver != null) {<NEW_LINE>deleteResolver = explicitDeleteResolver;<NEW_LINE>} els... | >) object.getClass()); |
1,405,574 | private Position decodeLbsWifi(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_LBSWIFI, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next()... | , parser.nextInt())); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.