idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,395,489 | static MethodDeclaration createSetter(TypeDeclaration parent, boolean deprecate, EclipseNode fieldNode, String name, char[] paramName, char[] booleanFieldToSet, boolean shouldReturnThis, int modifier, EclipseNode sourceNode, List<Annotation> onMethod, List<Annotation> onParam) {<NEW_LINE>ASTNode source = sourceNode.get... | returnType = cloneSelfType(fieldNode, source); |
820,921 | public void removeSynchronizedRoles(OfflinePlayer player) {<NEW_LINE>String userId = DiscordSRV.getPlugin().getAccountLinkManager().getDiscordId(player.getUniqueId());<NEW_LINE>User user = DiscordUtil.getUserById(userId);<NEW_LINE>if (user != null) {<NEW_LINE>Map<Guild, Set<Role>> roles = new HashMap<>();<NEW_LINE>Disc... | ()).add(role); |
744,561 | public static void main(String[] args) {<NEW_LINE>if (args.length < minArgs) {<NEW_LINE>System.out.println(usage.toString());<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>TreebankLangParserParams tlpp = new EnglishTreebankParserParams();<NEW_LINE>DiskTreebank tb = null;<NEW_LINE>String encoding = "UTF-8";<NEW_LINE>Str... | ) puncTypes.getCount(wordType)); |
166,156 | private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException {<NEW_LINE>ObjectInputStream.GetField f = s.readFields();<NEW_LINE>imageObserver = (ImageObserver) f.get("imageObserver", null);<NEW_LINE>description = (String) f.get("description", null);<NEW_LINE>width = f.get("width", -1);<NEW_LI... | f.get("accessibleContext", null); |
32,708 | private static void loadAddOnHelpSet(AddOn addOn) {<NEW_LINE>addOn.getLoadedExtensions().forEach(ExtensionHelp::loadExtensionHelpSet);<NEW_LINE>AddOn.HelpSetData helpSetData = addOn.getHelpSetData();<NEW_LINE>if (helpSetData.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ClassLoader classLoader = addOn.getClassLoade... | + helpSetData.getLocaleToken())); |
263,073 | private void showSeekbarSettingsDialog(Activity activity, final ApplicationMode mode) {<NEW_LINE>if (activity == null || mode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OsmandApplication app = (OsmandApplication) activity.getApplication();<NEW_LINE>final float[] angleValue = new float[] { mode.getStrAngle() ... | getSettings().isLightContentForMode(mode); |
712,052 | public static PDShading createLinearGradient(PdfBoxFastOutputDevice od, AffineTransform transform, FSLinearGradient gradient, Shape bounds) {<NEW_LINE>PDShadingType2 shading = new PDShadingType2(new COSDictionary());<NEW_LINE>shading.setShadingType(PDShading.SHADING_TYPE2);<NEW_LINE>shading.setColorSpace(PDDeviceRGB.IN... | float) rect.getMinY()); |
357,413 | public Node select(Node owner, Direction dir, TraversalContext context) {<NEW_LINE>T cell;<NEW_LINE>if (cells.isEmpty())<NEW_LINE>return null;<NEW_LINE>if (cells.contains(owner)) {<NEW_LINE>cell = (T) owner;<NEW_LINE>} else {<NEW_LINE>cell = findOwnerCell(owner);<NEW_LINE>Node next = context.selectInSubtree(cell, owner... | int cellIndex = cell.getIndex(); |
1,375,435 | private void exportTemplateAccounts(XmlSerializer xmlSerializer, Collection<Account> accountList) throws IOException {<NEW_LINE>for (Account account : accountList) {<NEW_LINE>xmlSerializer.startTag(null, GncXmlHelper.TAG_ACCOUNT);<NEW_LINE>xmlSerializer.attribute(null, GncXmlHelper.ATTR_KEY_VERSION, GncXmlHelper.BOOK_V... | endTag(null, GncXmlHelper.TAG_ACCOUNT); |
1,293,782 | public final void substitute(@Nonnull Element e, boolean caseSensitive, boolean recursively, @Nullable PathMacroFilter filter) {<NEW_LINE>for (Content child : e.getContent()) {<NEW_LINE>if (child instanceof Element) {<NEW_LINE>substitute((Element) child, caseSensitive, recursively, filter);<NEW_LINE>} else if (child in... | String oldText = t.getText(); |
1,117,514 | private void doPreLayoutAnimation(Animator.AnimatorListener listener) {<NEW_LINE>final AnimatorSet animatorSet = new AnimatorSet();<NEW_LINE>ArrayList<Long> deleteIds = new ArrayList<>();<NEW_LINE>int i;<NEW_LINE>for (i = 0; i < mTopMap.size(); i++) {<NEW_LINE>long id = mTopMap.keyAt(i);<NEW_LINE>int newPos = getPositi... | .keyAt(i), view); |
112,254 | private void updateFocus(int new_focus_index, boolean quiet, boolean save, boolean auto_focus) {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "updateFocus(): " + new_focus_index + " current_focus_index: " + current_focus_index);<NEW_LINE>// updates the Focus button, and Focus camera mode<NEW_LINE>if (this.supported_fo... | applicationInterface.setFocusPref(focus_value, is_video); |
435,323 | public Class<?> run() {<NEW_LINE>int packageIndex = name.lastIndexOf('.');<NEW_LINE>if (packageIndex != -1) {<NEW_LINE>String packageName = name.substring(0, packageIndex);<NEW_LINE>PackageDefinitionStrategy.Definition definition = packageDefinitionStrategy.define(ByteArrayClassLoader.this, packageName, name);<NEW_LINE... | ), definition.getSealBase()); |
1,611,992 | final DescribeFleetResult executeDescribeFleet(DescribeFleetRequest describeFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFleetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
494,505 | static void parsed(final HtmlParserResult result, SchedulerEvent event) {<NEW_LINE>try {<NEW_LINE>FileObject file = result.getSnapshot().getSource().getFileObject();<NEW_LINE>if (file == null) {<NEW_LINE>LOGGER.log(LEVEL, "null file, exit");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!file.isValid()) {<NEW_LINE>LOGGER.lo... | result, htmlNode, dobj, caretOffset); |
402,424 | public void readData(BufferedReader in) throws IOException {<NEW_LINE>String line, value;<NEW_LINE>// skip old variables if still present<NEW_LINE>lexOptions.readData(in);<NEW_LINE>line = in.readLine();<NEW_LINE>value = line.substring(line.indexOf(' ') + 1);<NEW_LINE>try {<NEW_LINE>tlpParams = (TreebankLangParserParams... | .indexOf(' ') + 1); |
721,464 | public void apply(@Nullable MasterDetailsComponent configurable, boolean addedOnly) throws ConfigurationException {<NEW_LINE>String[] errorString = new String[1];<NEW_LINE>if (!canApply(errorString, configurable, addedOnly)) {<NEW_LINE>throw new ConfigurationException(errorString[0]);<NEW_LINE>}<NEW_LINE>final Sdk[] al... | LOG.assertTrue(modifiedSdk != null); |
1,642,491 | public static ListConsumedServicesResponse unmarshall(ListConsumedServicesResponse listConsumedServicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listConsumedServicesResponse.setRequestId(_ctx.stringValue("ListConsumedServicesResponse.RequestId"));<NEW_LINE>listConsumedServicesResponse.setMessage(_ctx.stringValue("... | = new ArrayList<String>(); |
596,900 | public static boolean isCopular(NLGElement element) {<NEW_LINE>boolean copular = false;<NEW_LINE>if (element instanceof InflectedWordElement) {<NEW_LINE>copular = // $NON-NLS-1$<NEW_LINE>"be".// $NON-NLS-1$<NEW_LINE>equalsIgnoreCase(((InflectedWordElement) element).getBaseForm());<NEW_LINE>} else if (element instanceof... | PhraseElement) element).getHead(); |
1,022,693 | protected void layoutChildrenStatic(double contentX, double contentY, double contentWidth, double contentHeight) {<NEW_LINE>int lineCount = lines.size();<NEW_LINE>T dayView = getSkinnable();<NEW_LINE>LocalTime startTime = dayView.getStartTime();<NEW_LINE>LocalTime endTime = dayView.getEndTime();<NEW_LINE>boolean showEa... | + dayView.getLocation(time)); |
244,087 | public Object[] valueArrayDeserialize(DataInput2 in, final int size) {<NEW_LINE>Object[] ret = new Object[size];<NEW_LINE>if (size == 0)<NEW_LINE>return ret;<NEW_LINE>int ss = in.unpackInt();<NEW_LINE>Object[] prevKey = new Object[ss];<NEW_LINE>for (int i = 0; i < ss; i++) {<NEW_LINE>prevKey[i] = serializer.deserialize... | int shared = in.unpackInt(); |
1,635,883 | PrepareCore initFromGraph() {<NEW_LINE>ghStorage.freeze();<NEW_LINE>FlagEncoder prepareFlagEncoder = prepareWeighting.getFlagEncoder();<NEW_LINE>final EdgeFilter allFilter = DefaultEdgeFilter.allEdges(prepareFlagEncoder);<NEW_LINE>// filter by vehicle and level number<NEW_LINE>final EdgeFilter accessWithLevelFilter = n... | calcPrioAllExplorer = prepareGraph.createEdgeExplorer(accessWithLevelFilter); |
505,315 | final UpdateQueueStatusResult executeUpdateQueueStatus(UpdateQueueStatusRequest updateQueueStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateQueueStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,076,460 | private static void lazyVsEagerAnalysis() {<NEW_LINE>int n = 5000;<NEW_LINE>List<List<EagerPrimsAdjacencyList.Edge>> g1 = EagerPrimsAdjacencyList.createEmptyGraph(n);<NEW_LINE>List<List<LazyPrimsAdjacencyList.Edge>> g2 = LazyPrimsAdjacencyList.createEmptyGraph(n);<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>for (in... | "Eager: " + (endTime - startTime)); |
138,397 | public Snippet createSnippet(Object projectIdOrPath, String title, String filename, String description, String content, Visibility visibility) throws GitLabApiException {<NEW_LINE>try {<NEW_LINE>GitLabApiForm form = new GitLabApiForm().withParam("title", title, true).withParam("file_name", filename, true).withParam("de... | withParam("visibility", visibility, true); |
1,009,633 | public void onDownloadEmbeddedImagesEvent(DownloadEmbeddedImagesEvent event) {<NEW_LINE>if (event.getStatus().equals(Status.SUCCESS)) {<NEW_LINE>Timber.v("onDownloadEmbeddedImagesEvent %s", event.getStatus());<NEW_LINE>String content = composeMessageViewModel.getMessageDataResult().getContent();<NEW_LINE>String css = A... | getMessageDataResult().getShowRemoteContent()); |
482,282 | public static ListConnectionsResponse unmarshall(ListConnectionsResponse listConnectionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listConnectionsResponse.setRequestId(_ctx.stringValue("ListConnectionsResponse.RequestId"));<NEW_LINE>listConnectionsResponse.setHttpStatusCode(_ctx.integerValue("ListConnectionsRespons... | ("ListConnectionsResponse.Data.Connections[" + i + "].Status")); |
1,046,940 | private void sendInterestArea() {<NEW_LINE>log.info("R_InterestArea_ID=" + m_R_InterestArea_ID);<NEW_LINE>m_ia = MInterestArea.<MASK><NEW_LINE>String unsubscribe = null;<NEW_LINE>if (m_ia.isSelfService()) {<NEW_LINE>unsubscribe = "\n\n---------.----------.----------.----------.----------.----------\n" + Msg.getElement(... | get(getCtx(), m_R_InterestArea_ID); |
629,910 | public Node newNode(Object object) {<NEW_LINE>if (object == null) {<NEW_LINE>return new NullNode();<NEW_LINE>} else if (object instanceof Map) {<NEW_LINE>return new ObjectNode((Map<String, Object>) object, this);<NEW_LINE>} else if (object instanceof Number) {<NEW_LINE>return new NumberNode((Number) object);<NEW_LINE>}... | []) object), this); |
976,470 | public ListDomainsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDomainsResult listDomainsResult = new ListDomainsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
1,603,733 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// Inflate the layout for this fragment<NEW_LINE>View rootView = inflater.inflate(R.layout.fragment_karma_info_bottom_sheet, container, false);<NEW_LINE>postKarma = getArguments().getInt(EXTRA_POST_KARMA, 0);<NE... | (Integer.toString(awarderKarma)); |
1,145,246 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>Filter filter = call.rel(0);<NEW_LINE>MergeSort mergeSort = call.rel(1);<NEW_LINE>LogicalView logicalView = call.rel(2);<NEW_LINE>if (PushFilterRule.doNotPush(filter, logicalView)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (null != mergeSort.fetch || null != mergeSort... | copy(logicalView.getTraitSet()); |
724,579 | void putObject(Object o) {<NEW_LINE>if (depth == 0) {<NEW_LINE>stack[0] = o;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object container = stack[depth - 1];<NEW_LINE>if (container.getClass() == HashMap.class) {<NEW_LINE>if (keyPendingInsert != null) {<NEW_LINE>if (o instanceof ByteBuffer)<NEW_LINE>o = buf2ary((ByteBuffer) o)... | = buf2ary((ByteBuffer) o); |
1,820,992 | public void position(final JSONObject action, JSONObject data, final JSONObject event, final Context context) {<NEW_LINE>if (player != null) {<NEW_LINE>try {<NEW_LINE>int duration = player.getDuration();<NEW_LINE>int position = player.getCurrentPosition();<NEW_LINE>float ratio = position / duration;<NEW_LINE>JSONObject... | " : " + e2.toString()); |
954,046 | // For the serialization format, see BridgeSerializationUtils::serializeReleaseRequestQueue<NEW_LINE>private static List<ReleaseRequestQueue.Entry> deserializeReleaseRequestQueueWithTxHash(RLPList rlpList, NetworkParameters networkParameters) {<NEW_LINE>List<ReleaseRequestQueue.Entry> entries = new ArrayList<>();<NEW_L... | = new Address(networkParameters, addressBytes); |
1,151,680 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create variable ExprDefineLocalService myService = new ExprDefineLocalService();\n" + "create expression doit {v -> myService.calc(v)};\n" + "@name('s0') select doit(theString) as c0 from SupportBean;\n";<NEW_LINE>ExprDefineLocalService.services.clear(... | SupportBean("E10", -1)); |
1,754,711 | public static GsonBuilder createGson() {<NEW_LINE>GsonFireBuilder fireBuilder = new GsonFireBuilder().registerTypeSelector(ThrottlePolicyDTO.class, new TypeSelector() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Class getClassForElement(JsonElement readElement) {<NEW_LINE>Map<String, Class> classByDiscriminatorValue ... | put("ApplicationThrottlePolicy", ApplicationThrottlePolicyDTO.class); |
315,629 | public static void refresh() {<NEW_LINE>LOGGER.info("Ibatis sql map refresh ...");<NEW_LINE>parserState.getSqlIncludes().clear();<NEW_LINE>ReflectionHelper.invoke(parserState.getConfig().getDelegate(), IBatisTransformers.REFRESH_METHOD);<NEW_LINE>for (Resource configLocation : configLocations) {<NEW_LINE>try {<NEW_LINE... | mappingLocation, ex.getCause()); |
942,377 | public static // amplitude triplet<NEW_LINE>FreqIndicesWithAmplitudes refinePeakEstimatesParabola(double[] powSpecdB, int[] freqInds) {<NEW_LINE>double alpha, beta, gamma, p;<NEW_LINE>FreqIndicesWithAmplitudes fiwa = new FreqIndicesWithAmplitudes(freqInds.length);<NEW_LINE>for (int i = 0; i < freqInds.length; i++) {<NE... | = (float) freqInds[i]; |
822,380 | public String startBroker(String brokerStarterClassName, PinotConfiguration brokerConf) throws Exception {<NEW_LINE>LOGGER.info("Trying to start Pinot Broker...");<NEW_LINE>if (!brokerConf.containsKey(CommonConstants.Helix.CONFIG_OF_CLUSTER_NAME)) {<NEW_LINE>brokerConf.setProperty(<MASK><NEW_LINE>}<NEW_LINE>if (!broker... | CommonConstants.Helix.CONFIG_OF_CLUSTER_NAME, _clusterName); |
1,755,503 | public Request<SelectRequest> marshall(SelectRequest selectRequest) {<NEW_LINE>if (selectRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<SelectRequest> request = new DefaultRequest<SelectRequest>(selectRequest, "AmazonSimpleDB");<NEW_LINE... | request.setHttpMethod(HttpMethodName.POST); |
192,390 | private void exportCategories(HttpServletRequest request, HttpServletResponse response, String contextInode, String filter) throws ServletException, IOException {<NEW_LINE>response.setCharacterEncoding("UTF-8");<NEW_LINE>response.setContentType("application/octet-stream");<NEW_LINE>response.setHeader("Content-Dispositi... | error(this, "Error exporting categories", e); |
1,424,830 | public com.amazonaws.services.ecs.model.ClusterContainsTasksException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ecs.model.ClusterContainsTasksException clusterContainsTasksException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.g... | ecs.model.ClusterContainsTasksException(null); |
1,214,391 | private void invokeSetter(Object target, Node node, String argument) {<NEW_LINE>Method method = getMethod(target, "set" + toPropertyName(cleanNodeName(node)), true);<NEW_LINE>if (method == null) {<NEW_LINE>throw new InvalidConfigurationException<MASK><NEW_LINE>}<NEW_LINE>Class<?> arg = method.getParameterTypes()[0];<NE... | ("Invalid element/attribute name in the configuration: " + cleanNodeName(node)); |
1,829,193 | private XContentBuilder toXContentInternal(final XContentBuilder builder, final ToXContent.Params params) throws IOException {<NEW_LINE>builder.startObject(SNAPSHOT);<NEW_LINE>builder.field(<MASK><NEW_LINE>builder.field(UUID, snapshotId.getUUID());<NEW_LINE>assert version != null : "version must always be known when wr... | NAME, snapshotId.getName()); |
1,133,104 | public static DescribeSagPortRouteProtocolListResponse unmarshall(DescribeSagPortRouteProtocolListResponse describeSagPortRouteProtocolListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSagPortRouteProtocolListResponse.setRequestId(_ctx.stringValue("DescribeSagPortRouteProtocolListResponse.RequestId"));<NEW_LIN... | ("DescribeSagPortRouteProtocolListResponse.TaskStates[" + i + "].CreateTime")); |
155,047 | private void updateWindowInsets(Activity targetActivity, Rect outInsets) {<NEW_LINE>outInsets.left = outInsets.top = outInsets.right = outInsets.bottom = 0;<NEW_LINE>if (targetActivity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ViewGroup decorView = (ViewGroup) targetActivity.getWindow().getDecorView();<NEW_LINE>D... | = realDispSize.x - dispSize.x; |
690,952 | private void gatewayLogin() {<NEW_LINE>String aUrl = null;<NEW_LINE>moziotToken = null;<NEW_LINE>if (mozIotIP.getSecure() != null && mozIotIP.getSecure())<NEW_LINE>aUrl = "https://";<NEW_LINE>else<NEW_LINE>aUrl = "http://";<NEW_LINE>headers = new NameValue[2];<NEW_LINE>headers[0] = new NameValue();<NEW_LINE>headers[0].... | log.debug("gateway login URL: {}", aUrl); |
778,578 | public List<OAuthApproval> requestOAuthApprovals(String xSdsDateFormat, String sort, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/user/oauth/approvals";<NEW_LINE>// query params<NEW_LINE>List<Pair> loca... | final String[] localVarContentTypes = {}; |
1,111,282 | public byte[] toByteArray() {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "toByteArray");<NEW_LINE>// Just in case you're wondering, if two threads race to create the<NEW_LINE>// cached arrays, we may end up with two identical arrays, one of which<NEW_LINE>// is cached, while the other thread uses the secon... | & 0xFF00000000000000L) >>> 56); |
1,370,180 | public Object convert(Object src, Class destClass) {<NEW_LINE>if (src instanceof String) {<NEW_LINE>if (Timestamp.class == destClass) {<NEW_LINE>try {<NEW_LINE>return MySQLTimeTypeUtil.bytesToDatetime(((String) src).getBytes(), Types.TIMESTAMP, false);<NEW_LINE>} catch (IllegalArgumentException ignore) {<NEW_LINE>}<NEW... | dateToSql.convert(date, destClass); |
1,747,050 | private <T extends RecordTemplate> void checkRecordTemplate(T prevRec, T currRec) {<NEW_LINE>final Class<?> prevClass = prevRec.getClass();<NEW_LINE>if (prevClass == ResourceSchema.class) {<NEW_LINE>checkResourceSchema((ResourceSchema) prevRec, (ResourceSchema) currRec);<NEW_LINE>} else if (prevClass == CollectionSchem... | ) prevRec, (FinderSchema) currRec); |
753,734 | public List<SourceGroup> keys() {<NEW_LINE>// parse SG<NEW_LINE>// update SG listeners<NEW_LINE>// XXX check if this is necessary<NEW_LINE>final SourceGroup[] sourceGroups = PhpProjectUtils.getSourceGroups(project);<NEW_LINE>final SourceGroup[] groups = new SourceGroup[sourceGroups.length];<NEW_LINE>System.arraycopy(so... | ArrayList<>(groups.length); |
1,428,434 | public OnSuccess unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OnSuccess onSuccess = new OnSuccess();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><... | JsonToken token = context.getCurrentToken(); |
254,378 | public final Small_stmtContext small_stmt() throws RecognitionException {<NEW_LINE>Small_stmtContext _localctx = new Small_stmtContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>setState(593);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case STRING:<NEW_LINE>case LAMBDA:<NE... | enterRule(_localctx, 40, RULE_small_stmt); |
139,482 | private static void runAssertionSingleMaxSimple(RegressionEnvironment env, SupportConditionHandlerFactory.SupportConditionHandler handler) {<NEW_LINE>String[] fields = new String[] { "a", "b" };<NEW_LINE>env.sendEventBean(new SupportBean_A("A1"));<NEW_LINE>env.sendEventBean(new SupportBean_A("A2"));<NEW_LINE>handler.ge... | sendEventBean(new SupportBean_A("A20")); |
1,071,683 | final DeleteCustomRoutingEndpointGroupResult executeDeleteCustomRoutingEndpointGroup(DeleteCustomRoutingEndpointGroupRequest deleteCustomRoutingEndpointGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCustomRoutingEndpointGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,802,741 | public Feature fromStore(DynamoDbFeature item) {<NEW_LINE>Feature feature = new Feature(item.getFeatureUid());<NEW_LINE>feature.setEnable(item.isEnable());<NEW_LINE>feature.setDescription(item.getDescription());<NEW_LINE>feature.setGroup(item.getGroupName());<NEW_LINE><MASK><NEW_LINE>if (Util.hasLength(jsonFlippingStra... | String jsonFlippingStrategy = item.getFlippingStrategy(); |
693,311 | public static void partialReduceDoubleAdd(double[] inputArray, double[] outputArray, int gidx) {<NEW_LINE>int localIdx = OpenCLIntrinsics.get_local_id(0);<NEW_LINE>int <MASK><NEW_LINE>int groupID = OpenCLIntrinsics.get_group_id(0);<NEW_LINE>double[] localArray = (double[]) NewArrayNode.newUninitializedArray(double.clas... | localGroupSize = OpenCLIntrinsics.get_local_size(0); |
1,048,360 | public byte[] toBytes() {<NEW_LINE>ByteBuffer <MASK><NEW_LINE>buf.putShort(MAGIC);<NEW_LINE>byte msgType = (byte) 0x00;<NEW_LINE>if (heartbeat) {<NEW_LINE>msgType = (byte) (msgType | 0x10);<NEW_LINE>}<NEW_LINE>if (gzip) {<NEW_LINE>msgType = (byte) (msgType | 0x08);<NEW_LINE>}<NEW_LINE>if (oneway) {<NEW_LINE>msgType = (... | buf = ByteBuffer.allocate(13); |
1,408,502 | public BillingActionResponse startPurchaseAction(final Activity callingActivity, final int activityResultCode, final IInAppBillingService billingService, final DummySku sku) throws RemoteException {<NEW_LINE>if (callingActivity == null || billingService == null)<NEW_LINE>throw new IllegalArgumentException("activity and... | getId(), "inapp", null); |
963,918 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Portal por... | ), portal.getId()); |
896,812 | public Object evaluate(DeferredObject[] arg0) throws HiveException {<NEW_LINE>Map hiveMap = mapInspector.getMap(arg0[0].get());<NEW_LINE>List keyValues = inspectList(keyListInspector.getList(arg0[1].get()));<NEW_LINE>// / Convert all the keys to standard keys<NEW_LINE>Map stdKeys = stdKeys(hiveMap);<NEW_LINE>Map retVal... | hiveKey, mapInspector.getMapKeyObjectInspector()); |
1,371,617 | final GetLicenseResult executeGetLicense(GetLicenseRequest getLicenseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLicenseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,511,861 | private void testMethodLevelPermitAll(final String baseUri) throws Exception {<NEW_LINE>LOG.entering(clz, "entered testMethodLevelPermitAll");<NEW_LINE>String url = baseUri + "/MethodPermitAll";<NEW_LINE>// create the resource instance to interact with<NEW_LINE>LOG.info("testMethodLevelPermitAll about to invoke the res... | ClientBuilder cb = ClientBuilder.newBuilder(); |
1,055,226 | public com.amazonaws.services.codecommit.model.InvalidParentCommitIdException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.InvalidParentCommitIdException invalidParentCommitIdException = new com.amazonaws.services.codecommit.model.InvalidPare... | int originalDepth = context.getCurrentDepth(); |
1,082,336 | public Request<CreateExportJobRequest> marshall(CreateExportJobRequest createExportJobRequest) {<NEW_LINE>if (createExportJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(CreateExportJobRequest)");<NEW_LINE>}<NEW_LINE>Request<CreateExportJobRequest> request = new Defau... | t.getMessage(), t); |
681,827 | public synchronized void reloadPartitionInfo(Connection conn, String schemaName, String tbName) {<NEW_LINE>if (!StringUtils.isEmpty(tbName)) {<NEW_LINE>tbName = tbName.toLowerCase();<NEW_LINE>}<NEW_LINE>TablePartitionConfig tbPartConf = TablePartitionConfigUtil.getPublicTablePartitionConfig(conn, schemaName, tbName, fa... | ).invalidate(oldTableGrpId, tbName); |
235,591 | public void write(DataOutput out) throws IOException {<NEW_LINE>// Add the type of load secondly<NEW_LINE>Text.writeString(out, jobType.name());<NEW_LINE>out.writeLong(id);<NEW_LINE>out.writeLong(dbId);<NEW_LINE>Text.writeString(out, label);<NEW_LINE>Text.writeString(out, state.name());<NEW_LINE>out.writeLong(timeoutSe... | Text.writeString(out, timezone); |
1,209,869 | public void marshall(LoadBalancerTlsCertificate loadBalancerTlsCertificate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (loadBalancerTlsCertificate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(loadBa... | loadBalancerTlsCertificate.getSubjectAlternativeNames(), SUBJECTALTERNATIVENAMES_BINDING); |
116,442 | final ListHostsResult executeListHosts(ListHostsRequest listHostsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listHostsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,696,049 | public Response listAreas(@Parameter(description = "Limit to root elements", required = false) @QueryParam("rootOnly") @DefaultValue("true") Boolean rootOnly, @Parameter(description = "Limit by parent area token", required = false) @QueryParam("parentAreaToken") String parentAreaToken, @Parameter(description = "Limit b... | = new ArrayList<IArea>(); |
1,274,335 | private void createSecretKeyNodes(DefaultMutableTreeNode parentNode, SecretKey secretKey) {<NEW_LINE>DefaultMutableTreeNode secretKeyNode = new DefaultMutableTreeNode<MASK><NEW_LINE>parentNode.add(secretKeyNode);<NEW_LINE>KeyInfo keyInfo = SecretKeyUtil.getKeyInfo(secretKey);<NEW_LINE>String keyAlg = keyInfo.getAlgorit... | (res.getString("DProperties.properties.SecretKey")); |
1,196,211 | public static void execute(ManagerConnection c, int numLines) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : fields) {<NEW_LINE>buffer = field.write(buffer, c, true);<NEW_LINE>}<NEW_LINE>//... | , c.getCharset())); |
816,942 | private void addConduitCores(List<CollidableComponent> result, IConduit con) {<NEW_LINE>CollidableCache cc = CollidableCache.instance;<NEW_LINE>Class<? extends IConduit> type = con.getCollidableType();<NEW_LINE>Set<CollidableComponent> components = new LinkedHashSet<>();<NEW_LINE>if (con.hasConnections()) {<NEW_LINE>fo... | ), null), con)); |
1,496,034 | protected final void buildModels() {<NEW_LINE>int numListItemsToUse = isFirstBuildForList ? config().initialLoadSizeHint : config().pageSize;<NEW_LINE>if (!list.isEmpty()) {<NEW_LINE>isFirstBuildForList = false;<NEW_LINE>}<NEW_LINE>int numBoundViews = getAdapter()<MASK><NEW_LINE>if (!hasNotifiedInsufficientPageSize && ... | .getBoundViewHolders().size(); |
1,765,450 | public void run() {<NEW_LINE>StyledDocument doc = pane.getStyledDocument();<NEW_LINE>// NOI18N<NEW_LINE>Style hlStyle = doc.addStyle("regularBlue-findtype", defStyle);<NEW_LINE>hlStyle.addAttribute(HyperlinkSupport.TYPE_ATTRIBUTE, new TypeLink());<NEW_LINE>StyleConstants.setForeground(<MASK><NEW_LINE>StyleConstants.set... | hlStyle, UIUtils.getLinkColor()); |
864,988 | public void checkData(final Resilience4JHandle resilience4JHandle) {<NEW_LINE>resilience4JHandle.setTimeoutDurationRate(resilience4JHandle.getTimeoutDurationRate() < 0 ? Constants.TIMEOUT_DURATION_RATE : resilience4JHandle.getTimeoutDurationRate());<NEW_LINE>resilience4JHandle.setLimitRefreshPeriod(resilience4JHandle.g... | PERMITTED_NUMBER_OF_CALLS_IN_HALF_OPEN_STATE : resilience4JHandle.getPermittedNumberOfCallsInHalfOpenState()); |
1,097,946 | private void fillInConnectionProperties(Connection connection, EntityDetail entity, List<Relationship> relationships, String methodName) throws PropertyServerException {<NEW_LINE>this.setUpElementHeader(connection, entity, OpenMetadataAPIMapper.CONNECTION_TYPE_NAME, methodName);<NEW_LINE>InstanceProperties instanceProp... | (this.removeDescription(instanceProperties)); |
489,414 | public void applyDelta(HollowBlobInput in, HollowSchema schema, ArraySegmentRecycler memoryRecycler) throws IOException {<NEW_LINE>if (shards.length > 1)<NEW_LINE>maxOrdinal = VarInt.readVInt(in);<NEW_LINE>for (int i = 0; i < shards.length; i++) {<NEW_LINE>HollowSetTypeDataElements deltaData = new HollowSetTypeDataElem... | nextData.applyDelta(oldData, deltaData); |
1,634,750 | Map<DISPID, Method> createDispIdMap(Class<?> comEventCallbackInterface) {<NEW_LINE>Map<DISPID, Method> map = new HashMap<DISPID, Method>();<NEW_LINE>for (Method meth : comEventCallbackInterface.getMethods()) {<NEW_LINE>ComEventCallback callbackAnnotation = meth.getAnnotation(ComEventCallback.class);<NEW_LINE>ComMethod ... | int dispId = callbackAnnotation.dispid(); |
1,146,747 | public static APIUpdateVolumeEvent __example__() {<NEW_LINE>APIUpdateVolumeEvent event = new APIUpdateVolumeEvent();<NEW_LINE>String volumeUuid = uuid();<NEW_LINE>VolumeInventory vol = new VolumeInventory();<NEW_LINE>vol.setName("test-volume");<NEW_LINE>vol.setCreateDate(new Timestamp(org.zstack.header.message.DocUtils... | vol.setPrimaryStorageUuid(uuid()); |
967,969 | protected void doInit() {<NEW_LINE>try (MemoryWorkspace ws = Nd4j.getWorkspaceManager().scopeOutOfWorkspaces()) {<NEW_LINE>org.deeplearning4j.nn.conf.layers.samediff.SameDiffOutputLayer bl = layerConf();<NEW_LINE>sameDiff = SameDiff.create();<NEW_LINE>// Use SingleThreadArrayHolder so we can use views (also don't nede ... | .outputKey = layerOutput.name(); |
1,642,784 | public void emitInvoke(Invoke x) {<NEW_LINE>LoweredCallTargetNode callTargetNode = (LoweredCallTargetNode) x.callTarget();<NEW_LINE>final Stamp stamp = x.asNode().stamp(NodeView.DEFAULT);<NEW_LINE>LIRKind lirKind = resolveStamp(stamp);<NEW_LINE>AllocatableValue result = Value.ILLEGAL;<NEW_LINE>if (lirKind != LIRKind.Il... | .value(SPIRVKind.OP_TYPE_VOID)); |
1,807,651 | protected void encodeContent(FacesContext context, ContentFlow cf) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String var = cf.getVar();<NEW_LINE>writer.startElement("div", null);<NEW_LINE>writer.writeAttribute("class", "flow", null);<NEW_LINE>if (var == null) {<NEW_LINE>... | writeAttribute("class", "item", null); |
622,015 | void build(SerializableCallGraph scg, DefaultCallGraph cg) {<NEW_LINE>for (SerializableCallGraph.Node serializableNode : scg.nodes) {<NEW_LINE>nodes.add(new DefaultCallGraphNode(cg, serializableNode.method));<NEW_LINE>}<NEW_LINE>for (SerializableCallGraph.CallSite scs : scg.callSites) {<NEW_LINE>DefaultCallSite callSit... | (mapNodes(scs.calledMethods)); |
130,613 | public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<EventReport>> mergedReports = new HashMap<String, List<EventReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<String, EventRep... | .setCreationDate(new Date()); |
1,664,686 | Message toMessage(Consumer consumer, ConsumerRecord<?, ?> record) {<NEW_LINE>Map<String, Object> headersMap = toMap(record.headers());<NEW_LINE>// Leverage spring-kafka to add the headers<NEW_LINE>messagingMessageConverter.commonHeaders(null, consumer, headersMap, record.key(), record.topic(), record.partition(), recor... | Object textPayload = record.value(); |
992,835 | private void printTags(SootField f, String declaration, PrintWriter out) {<NEW_LINE>Type fieldType = f.getType();<NEW_LINE>if (fieldType instanceof DoubleType) {<NEW_LINE>DoubleConstantValueTag t = (DoubleConstantValueTag) f.getTag(DoubleConstantValueTag.NAME);<NEW_LINE>if (t != null) {<NEW_LINE>out.println(" " + de... | .getIntValue()) + "';"); |
1,492,713 | public static QueryLastestVersionInfoResponse unmarshall(QueryLastestVersionInfoResponse queryLastestVersionInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryLastestVersionInfoResponse.setRequestId(_ctx.stringValue("QueryLastestVersionInfoResponse.RequestId"));<NEW_LINE>List<VersionInfo> versionInfos = new ArrayL... | ("QueryLastestVersionInfoResponse.VersionInfos[" + i + "].CreateTime")); |
535,936 | private static void tryAssertion15_16(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "volume", "sum(price)" };<NEW_LINE>ResultAssertTestResu... | 3200, 0, null, null); |
517,840 | protected String createJspId(JspVisitorInputMap inputMap) throws JspCoreException {<NEW_LINE>String jspIdPrefix = ((String) inputMap.get("JspIdConsumerPrefix"));<NEW_LINE>if (jspIdPrefix == null) {<NEW_LINE>JspResources jspFiles = (JspResources) inputMap.get("JspFiles");<NEW_LINE>// PM43852 start - change to use packag... | ) inputMap.get("JspIdConsumerCounter")); |
1,655,576 | public Id projectAddGraphs(Id id, Set<String> graphs) {<NEW_LINE>E.checkArgument(!CollectionUtils.isEmpty(graphs), "Failed to add graphs to project '%s', the graphs " + "parameter can't be empty", id);<NEW_LINE>LockUtil.Locks locks = new LockUtil.Locks(this.graph.name());<NEW_LINE>try {<NEW_LINE>locks.lockWrites(LockUt... | int oldSize = sourceGraphs.size(); |
1,133,104 | public static DescribeSagPortRouteProtocolListResponse unmarshall(DescribeSagPortRouteProtocolListResponse describeSagPortRouteProtocolListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSagPortRouteProtocolListResponse.setRequestId(_ctx.stringValue("DescribeSagPortRouteProtocolListResponse.RequestId"));<NEW_LIN... | ("DescribeSagPortRouteProtocolListResponse.TaskStates[" + i + "].ErrorMessage")); |
1,468,925 | private void prepareGatlingData(Operation operation, Set<Parameter> parameters, String parameterType) {<NEW_LINE>if (parameters.size() > 0) {<NEW_LINE>List<String> parameterNames = new ArrayList<>();<NEW_LINE>List<Object> vendorList = new ArrayList<>();<NEW_LINE>for (Parameter parameter : parameters) {<NEW_LINE>Map<Str... | add(parameter.getName()); |
1,075,280 | protected void addUserDefinedFunction(ActionEvent evt) {<NEW_LINE>MondrianGuiDef.Schema schema = (MondrianGuiDef.Schema) tree.getModel().getRoot();<NEW_LINE>MondrianGuiDef.UserDefinedFunction udf = new MondrianGuiDef.UserDefinedFunction();<NEW_LINE>udf.name = "";<NEW_LINE>udf.name = getNewName(getResourceConverter().ge... | MondrianGuiDef.UserDefinedFunction) temp[_i]; |
178,065 | public boolean handleRequest(ZWaveController zController, SerialMessage lastSentMessage, SerialMessage incomingMessage) {<NEW_LINE>switch(incomingMessage.getMessagePayloadByte(1)) {<NEW_LINE>case REMOVE_NODE_STATUS_LEARN_READY:<NEW_LINE>logger.debug("Remove Node: Learn ready.");<NEW_LINE>zController.notifyEventListener... | incomingMessage.getMessagePayloadByte(2))); |
1,317,419 | private static Map<ArtifactKey, List<String>> toArtifactMapList(String baseConfigKey, Properties properties, Mode mode) {<NEW_LINE>Properties profileProps = new Properties();<NEW_LINE>String profile = BootstrapProfile.getActiveProfile(mode);<NEW_LINE>for (Map.Entry<Object, Object> i : properties.entrySet()) {<NEW_LINE>... | .getValue().toString(); |
1,450,319 | public void onClose(Player who) {<NEW_LINE>ContainerClosePacket containerClosePacket = new ContainerClosePacket();<NEW_LINE>containerClosePacket.<MASK><NEW_LINE>who.dataPacket(containerClosePacket);<NEW_LINE>super.onClose(who);<NEW_LINE>BlockEnderChest chest = who.getViewingEnderChest();<NEW_LINE>if (chest != null && c... | windowId = who.getWindowId(this); |
901,583 | private void initComponents() {<NEW_LINE>labelDescription = new JLabel("<html><body><p>" + Localization.getString("platform.plugin.setupwizard.connection.intro") + "</p></body></html>");<NEW_LINE>// Firmware options<NEW_LINE>firmwareCombo = new JComboBox<>();<NEW_LINE>firmwareCombo.addActionListener(a -> setFirmware())... | = getBackend().getSettings(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.