idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
700,223 | private void validateIfRevisionMatchesTheCurrentConfigAndUpdateTheMaterialMap(FanInGraphContext context, Pair<StageIdentifier, List<FaninScmMaterial>> stageIdentifierScmPair) {<NEW_LINE>final Set<MaterialConfig> currentScmMaterials = context.pipelineScmDepMap.get(materialConfig);<NEW_LINE>final Set<FaninScmMaterial> sc... | scmMaterialsFingerprint = new HashSet<>(); |
899,899 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); |
1,265,047 | private UserNotificationRequest createNotification(final RequestSalesRepChanged event, final UserId recipientId) {<NEW_LINE>final UserNotificationsConfig <MASK><NEW_LINE>return //<NEW_LINE>UserNotificationRequest.builder().notificationsConfig(notificationsConfig).topic(TOPIC_Requests).// RequestActionTransfer - Request... | notificationsConfig = notificationsService.getUserNotificationsConfig(recipientId); |
1,332,678 | private void startServer(Size resolution, int port) {<NEW_LINE>if (rtspServerCamera1 == null) {<NEW_LINE>Timber.d("Resolution %dx%d", resolution.getWidth(), resolution.getHeight());<NEW_LINE>String viewType = this.view.getClass().getName();<NEW_LINE>if (viewType.contains("AutoFitTextureView")) {<NEW_LINE>rtspServerCame... | AutoFitTextureView) view, this, port); |
206,059 | public List<I_M_InOutLine> sortLines(final I_M_InOut inOut) {<NEW_LINE>final HashMap<Integer, Integer> inoutLineId2orderId = new HashMap<>();<NEW_LINE>final List<I_M_InOutLine> lines = inOutDAO.retrieveLines(inOut);<NEW_LINE>for (int i = 0; i < lines.size(); i++) {<NEW_LINE>final I_M_InOutLine <MASK><NEW_LINE>final int... | iol = lines.get(i); |
915,197 | public synchronized IBinder bind(Intent intent) {<NEW_LINE>// ComponentName doesn't match, abort<NEW_LINE>if (!mName.equals(intent.getComponent()))<NEW_LINE>System.exit(1);<NEW_LINE>if (intent.getBooleanExtra(INTENT_DEBUG_KEY, false)) {<NEW_LINE>// ActivityThread.attach(true, 0) will set this to system_process<NEW_LINE... | mClient = bundle.getBinder(BUNDLE_BINDER_KEY); |
213,570 | // Update frame dimensions and report any changes to |rendererEvents|.<NEW_LINE>private void updateFrameDimensionsAndReportEvents(VideoFrame frame) {<NEW_LINE>synchronized (layoutLock) {<NEW_LINE>if (isRenderingPaused) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isFirstFrameRendered) {<NEW_LINE>isFirstFrameRendered = t... | ), frame.getRotation()); |
725,349 | public Request<AssociateAddressRequest> marshall(AssociateAddressRequest associateAddressRequest) {<NEW_LINE>if (associateAddressRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<AssociateAddressRequest> request = new DefaultRequest<Associa... | request.setHttpMethod(HttpMethodName.POST); |
488,112 | private Statement findService(Model model) {<NEW_LINE>// Try to find by unique pServiceName (max backwards compatibility)<NEW_LINE>// then try to find by rdf:type fuseki:Service.<NEW_LINE>// JENA-1794<NEW_LINE>Statement stmt = getOne(model, null, pServiceName, null);<NEW_LINE>// null means 0 or many, not one.<NEW_LINE>... | , pServiceName, (RDFNode) null); |
299,074 | protected void countSortFromTo(int from, int to, int min, int max) {<NEW_LINE>if (size == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkRangeFromTo(from, to, size);<NEW_LINE>int width = (max - min + 1);<NEW_LINE>int[] counts = new int[width];<NEW_LINE>int[] theElements = elements;<NEW_LINE>for (int i = from; i <= to; ... | int toIndex = fromIndex + c - 1; |
1,533,138 | private String findTheName(JsObject configObject) {<NEW_LINE>String name = null;<NEW_LINE>FileObject fo = configObject.getFileObject();<NEW_LINE>Source <MASK><NEW_LINE>TokenHierarchy<?> th = source.createSnapshot().getTokenHierarchy();<NEW_LINE>if (th == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TokenSequence<?... | source = Source.create(fo); |
747,334 | private View findTarget(View root, float x, float y) {<NEW_LINE>// we consider the "best target" to be the view width the smallest width / height<NEW_LINE>// whose location on screen is within the given touch area.<NEW_LINE>View bestTarget = root;<NEW_LINE>if (root instanceof ViewGroup) {<NEW_LINE>ViewGroup parent = (V... | measurementHelper.getContentRootLocation(child, outRect); |
312,792 | public void apply(ImmutableImage image) {<NEW_LINE>Graphics2D g2 = (Graphics2D) image<MASK><NEW_LINE>setupGraphics(g2);<NEW_LINE>FontMetrics fontMetrics = g2.getFontMetrics();<NEW_LINE>Rectangle2D bounds = fontMetrics.getStringBounds(text, g2);<NEW_LINE>g2.translate(image.width / 2.0, image.height / 2.0);<NEW_LINE>Affi... | .awt().getGraphics(); |
719,675 | public void postInvoke(Request request, Response response) throws IOException, ServletException {<NEW_LINE>HttpRequest hrequest = (HttpRequest) request;<NEW_LINE>HttpResponse hresponse = (HttpResponse) response;<NEW_LINE>HttpServletRequest hreq = (HttpServletRequest) hrequest.getRequest();<NEW_LINE>HttpServletResponse ... | " contentType=" + hresponse.getContentType()); |
595,757 | private void updatePorts(Instance instance) {<NEW_LINE>Object dir = instance.getAttributeValue(StdAttr.FACING);<NEW_LINE>final var select = instance.getAttributeValue(PlexersLibrary.ATTR_SELECT);<NEW_LINE>var n = 1 << select.getWidth();<NEW_LINE>final var ps = new Port[n + 4];<NEW_LINE>if (dir == Direction.NORTH || dir... | Direction.NORTH ? 40 : -40; |
233,118 | public FieldVariable save(final FieldVariable var, final User user) throws DotDataException, DotSecurityException {<NEW_LINE>ContentTypeAPI contentTypeAPI = APILocator.getContentTypeAPI(user);<NEW_LINE>Field field = fieldFactory.byId(var.fieldId());<NEW_LINE>ContentType type = contentTypeAPI.find(field.contentTypeId())... | JSONObject(var.value()); |
1,437,905 | boolean mmapFile(final boolean create) {<NEW_LINE>if (this.buffer != null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final File file = new File(this.path);<NEW_LINE>if (file.exists()) {<NEW_LINE>this.size = (int) file.length();<NEW_LINE>} else {<NEW_LINE>if (!create) {<NEW_LINE>LOG.error("File {} is not exists.", thi... | buffer.limit(this.size); |
140,227 | private void updateFunctionNode(JsMessage message, Node functionNode) throws MalformedException {<NEW_LINE>checkNode(functionNode, Token.FUNCTION);<NEW_LINE>Node nameNode = functionNode.getFirstChild();<NEW_LINE>checkNode(nameNode, Token.NAME);<NEW_LINE><MASK><NEW_LINE>checkNode(argListNode, Token.PARAM_LIST);<NEW_LINE... | Node argListNode = nameNode.getNext(); |
1,804,639 | public void init(IStreamDataExporterSite site) throws DBException {<NEW_LINE>super.init(site);<NEW_LINE>Map<String, Object> properties = site.getProperties();<NEW_LINE>this.delimiter = StreamTransferUtils.getDelimiterString(properties, PROP_DELIMITER);<NEW_LINE>this.rowDelimiter = StreamTransferUtils.getDelimiterString... | quoteChar = quoteStr.charAt(0); |
70,676 | static CommandResult createReply(Packet packet, DebuggerController controller) {<NEW_LINE>PacketStream input = new PacketStream(packet);<NEW_LINE>PacketStream reply = new PacketStream().replyPacket().id(packet.id);<NEW_LINE>long threadId = input.readLong();<NEW_LINE>Object thread = verifyThread(threadId, reply, control... | reply.errorCode(ErrorCodes.THREAD_NOT_SUSPENDED); |
107,879 | public void init(IBatchConfig batchConfig) throws BatchContainerServiceException {<NEW_LINE>LOGGER.entering(CLASSNAME, "init", batchConfig);<NEW_LINE>schema = batchConfig.getDatabaseConfigurationBean().getSchema();<NEW_LINE>jndiName = batchConfig<MASK><NEW_LINE>prefix = batchConfig.getConfigProperties().getProperty(PAY... | .getDatabaseConfigurationBean().getJndiName(); |
40,156 | public PropertiesPanel createPanel(ApplicationSupport.CurrentApplication dataSource) {<NEW_LINE>PropertiesPanel panel = new PropertiesPanel();<NEW_LINE>panel.setLayout(new BorderLayout());<NEW_LINE>JTextArea textArea = new JTextArea(// NOI18N<NEW_LINE>NbBundle.// NOI18N<NEW_LINE>getMessage(// NOI18N<NEW_LINE>GeneralPro... | new Dimension(1, 1)); |
1,683,657 | public static QueryPhoneNoAByTrackNoResponse unmarshall(QueryPhoneNoAByTrackNoResponse queryPhoneNoAByTrackNoResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPhoneNoAByTrackNoResponse.setRequestId(_ctx.stringValue("QueryPhoneNoAByTrackNoResponse.RequestId"));<NEW_LINE>queryPhoneNoAByTrackNoResponse.setCode(_ctx.stri... | ("QueryPhoneNoAByTrackNoResponse.Module[" + i + "].PhoneNoA")); |
1,320,621 | public Request<ListVocabularyFiltersRequest> marshall(ListVocabularyFiltersRequest listVocabularyFiltersRequest) {<NEW_LINE>if (listVocabularyFiltersRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListVocabularyFiltersRequest)");<NEW_LINE>}<NEW_LINE>Request<ListVocabular... | setContent(new StringInputStream(snippet)); |
612,268 | public static Vector readCertificateAuthoritiesExtension(byte[] extensionData) throws IOException {<NEW_LINE>if (extensionData == null) {<NEW_LINE>throw new IllegalArgumentException("'extensionData' cannot be null");<NEW_LINE>}<NEW_LINE>if (extensionData.length < 5) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>ByteArrayInputS... | throw new TlsFatalAlert(AlertDescription.decode_error); |
873,347 | public static void main(String[] args) throws IOException {<NEW_LINE>// TODO Use args for all parameters<NEW_LINE>// Load map.<NEW_LINE>MapDataStore mapData = new MapFile(DEFAULT_MAP_PATH);<NEW_LINE>// Assign tile.<NEW_LINE>final int ty = MercatorProjection.latitudeToTileY(LAT, ZOOM);<NEW_LINE>final int tx = MercatorPr... | ), ZOOM, tx, ty); |
1,140,933 | Command<K, V, String> migrate(String host, int port, int db, long timeout, MigrateArgs<K> migrateArgs) {<NEW_LINE>LettuceAssert.notNull(host, "Host " + MUST_NOT_BE_NULL);<NEW_LINE>LettuceAssert.<MASK><NEW_LINE>LettuceAssert.notNull(migrateArgs, "migrateArgs " + MUST_NOT_BE_NULL);<NEW_LINE>CommandArgs<K, V> args = new C... | notEmpty(host, "Host " + MUST_NOT_BE_EMPTY); |
1,428,815 | private boolean tryParseTimeZoneNumericUTCOffset() {<NEW_LINE>Matcher matcher = createMatch(patternTimeZoneNumericUTCOffset, rest, true);<NEW_LINE>if (matcher.matches()) {<NEW_LINE>offsetSign = group(rest, matcher, 1);<NEW_LINE>offsetHour = group(rest, matcher, 2);<NEW_LINE>offsetMinute = group(rest, matcher, 4);<NEW_L... | : matcher.end(2)); |
1,150,162 | public static void buildEqCondition(List<String> columnNames, RelDataType leftRowType, RelDataType rightRowType, int rightOffset, Map<String, Integer> leftColumnRefMap, Map<String, Integer> rightColumnRefMap, RexBuilder rexBuilder, RexNode[] condition, SqlOperator op) {<NEW_LINE>if (GeneralUtil.isEmpty(columnNames)) {<... | getFieldList().get(primaryPk); |
1,161,079 | private IndexSearchDescriptor buildIndexSearchDescriptorForFulltext(OCommandContext ctx, OIndex index, OAndBlock block, OClass clazz) {<NEW_LINE>List<String> indexFields = index.getDefinition().getFields();<NEW_LINE>OBinaryCondition keyCondition = new OBinaryCondition(-1);<NEW_LINE>OIdentifier key = new OIdentifier("ke... | getSubBlocks().add(condition); |
314,828 | final DeleteLoadBalancerResult executeDeleteLoadBalancer(DeleteLoadBalancerRequest deleteLoadBalancerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLoadBalancerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new DeleteLoadBalancerResultJsonUnmarshaller()); |
1,754,816 | // @Override<NEW_LINE>@Deprecated<NEW_LINE>protected void channelRead0(ChannelHandlerContext ctx, Packet packet) {<NEW_LINE>// super.channelRead0(ctx, packet);<NEW_LINE>try {<NEW_LINE>INetHandler netHandler = ctx.channel().attr(<MASK><NEW_LINE>EntityPlayer player = CoreProxy.proxy.getPlayerFromNetHandler(netHandler);<N... | NetworkRegistry.NET_HANDLER).get(); |
1,413,763 | public void traverse() {<NEW_LINE>final List<AnnotatedInterval> annotatedIntervalList = new ArrayList<>(intervals.size());<NEW_LINE>for (final SimpleInterval interval : intervals) {<NEW_LINE>if (interval.getLengthOnReference() == 0) {<NEW_LINE>throw new UserException.BadInput(String.format("Interval cannot have zero le... | = new ReferenceContext(reference, interval); |
1,448,141 | protected String processActionForSpecialSymbols(String actionStr, int line, RuleBlock currentRule, ActionTransInfo tInfo) {<NEW_LINE>if (actionStr == null || actionStr.length() == 0)<NEW_LINE>return null;<NEW_LINE>// The action trans info tells us (at the moment) whether an<NEW_LINE>// assignment was done to the rule's... | .getTokenObject().getText(); |
1,184,016 | public RowBasedMatrix calulate(Vector other, Binary op) {<NEW_LINE>assert other != null;<NEW_LINE>RBCompIntDoubleMatrix res;<NEW_LINE>if (op.isInplace()) {<NEW_LINE>res = this;<NEW_LINE>} else {<NEW_LINE>res = new RBCompIntDoubleMatrix(matrixId, clock, rows.length, (int) cols, subDim);<NEW_LINE>}<NEW_LINE>if (op.isInpl... | [rowId], other, op); |
1,004,422 | private void sendEmail(DatabaseSession session, Project project, Revision revision) throws UserException {<NEW_LINE>Set<User> <MASK><NEW_LINE>for (User user : users) {<NEW_LINE>String body = null;<NEW_LINE>try {<NEW_LINE>if (MailSystem.isValidEmailAddress(user.getUsername())) {<NEW_LINE>EmailMessage message = getBimSer... | users = getUsers(session, project); |
1,514,863 | public Response doInvoke(Invocation invocation, SwaggerProducerOperation producerOperation) {<NEW_LINE>Response response;<NEW_LINE>try {<NEW_LINE>invocation.onBusinessMethodStart();<NEW_LINE>Object[] args = invocation.toProducerArguments();<NEW_LINE>for (ProducerInvokeExtension producerInvokeExtension : producerOperati... | producerOperation.getProducerInstance(), args); |
860,487 | private static boolean eliminateCatchTemporary(Op03SimpleStatement catchh) {<NEW_LINE>if (catchh.getTargets().size() != 1)<NEW_LINE>return false;<NEW_LINE>Op03SimpleStatement maybeAssign = catchh.getTargets().get(0);<NEW_LINE>CatchStatement catchStatement = (CatchStatement) catchh.getStatement();<NEW_LINE>LValue catchi... | getTargets().get(0); |
1,231,736 | protected boolean checkIsSupported(@NonNull ActionHolder holder) {<NEW_LINE>boolean isNotLegacy = readCharacteristic(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL, -1) != CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY;<NEW_LINE>// Not sure we should check aeMode as well, probably all aeModes support l... | ).get(CaptureRequest.CONTROL_AE_MODE); |
637,382 | public static ListBandwidthackagesResponse unmarshall(ListBandwidthackagesResponse listBandwidthackagesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBandwidthackagesResponse.setRequestId(_ctx.stringValue("ListBandwidthackagesResponse.RequestId"));<NEW_LINE>listBandwidthackagesResponse.setTotalCount(_ctx.integerVal... | ("ListBandwidthackagesResponse.BandwidthPackages[" + i + "].Bandwidth")); |
1,179,185 | public static String[] buildEnvironment(Context currentPackageContext, boolean isFailSafe, String workingDirectory) {<NEW_LINE>TermuxConstants.TERMUX_HOME_DIR.mkdirs();<NEW_LINE>if (workingDirectory == null || workingDirectory.isEmpty())<NEW_LINE>workingDirectory = getDefaultWorkingDirectoryPath();<NEW_LINE>List<String... | + System.getenv("ANDROID_DATA")); |
604,015 | private void fillInvoicingDateByInvoicingMoment(Contract contract) {<NEW_LINE>ContractVersion version = contract.getCurrentContractVersion();<NEW_LINE>if (version.getAutomaticInvoicing()) {<NEW_LINE>switch(version.getInvoicingMomentSelect()) {<NEW_LINE>case ContractVersionRepository.END_INVOICING_MOMENT:<NEW_LINE>contr... | (contract.getCompany())); |
397,561 | public static CodegenExpression codegenGetterWCoerce(EventPropertyGetterSPI getter, EPType getterType, EPType optionalCoercionType, CodegenMethod method, Class generator, CodegenClassScope classScope) {<NEW_LINE>getterType = JavaClassHelper.getBoxedType(getterType);<NEW_LINE>CodegenExpressionNewAnonymousClass anonymous... | (EPTypeClass) getterType, result)); |
870,520 | private RelDataType sqlType(RelDataTypeFactory typeFactory, int dataType, int precision, int scale, String typeString) {<NEW_LINE>// Fall back to ANY if type is unknown<NEW_LINE>final SqlTypeName sqlTypeName = Util.first(SqlTypeName.getNameForJdbcType(dataType), SqlTypeName.ANY);<NEW_LINE>switch(sqlTypeName) {<NEW_LINE... | (SqlTypeName.ANY), true); |
113,784 | private Result buildNewPlan(RelOptCluster cluster, RelOptSchema relOptSchema, BaselineInfo baselineInfo, SqlParameterized sqlParameterized, ExecutionContext executionContext, int currentHashCode) {<NEW_LINE>logger.info("build new plan, sql:" + baselineInfo.getParameterSql());<NEW_LINE>ExecutionPlan planWithContext = Pl... | resultPlanInfo.getId(), resultPlanInfo); |
369,789 | public StaticObject JVM_GetArrayElement(@JavaType(Object.class) StaticObject array, int index, @Inject SubstitutionProfiler profiler) {<NEW_LINE>Meta meta = getMeta();<NEW_LINE>if (StaticObject.isNull(array)) {<NEW_LINE>profiler.profile(7);<NEW_LINE>throw meta.throwNullPointerException();<NEW_LINE>}<NEW_LINE>if (array.... | Array.get(array, index); |
1,760,891 | public void addInstances(InstanceList training) {<NEW_LINE>alphabet = training.getDataAlphabet();<NEW_LINE>numTypes = alphabet.size();<NEW_LINE>betaSum = beta * numTypes;<NEW_LINE>typeTopicCounts = <MASK><NEW_LINE>typeTopicWeights = new double[numTypes][numTopics];<NEW_LINE>totalTopicWeights = new double[numTopics];<NE... | new int[numTypes][numTopics]; |
1,513,892 | public PathDetail deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {<NEW_LINE>JsonNode pathDetail = jp.readValueAsTree();<NEW_LINE>if (pathDetail.size() != 3)<NEW_LINE>throw new JsonParseException(jp, "PathDetail array must have exactly 3 entries but was " + pathDetail.size());<NEW_LINE>JsonNo... | to = pathDetail.get(1); |
1,329,501 | private void showPredefineWaypointAppearanceDialog(@NonNull View container, @NonNull final MapActivity mapActivity) {<NEW_LINE>WptPtEditor waypointEditor = mapActivity.getContextMenu().getWptPtPointEditor();<NEW_LINE>if (waypointEditor != null) {<NEW_LINE>WptPt source = hasPredefinedWaypointAppearance() ? createWaypoin... | waypointEditor.addWaypointTemplate(source, categoryColor); |
189,702 | public void onSuccess(JSONValue result) {<NEW_LINE>JSONArray queries = result.isArray();<NEW_LINE>if (queries.size() == 0) {<NEW_LINE>notifyManager.showError("No saved query with ID " + idString);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>assert queries.size() == 1;<NEW_LINE>JSONObject query = queries.get(0).isObject();<NEW... | token = HistoryToken.fromString(tokenString); |
51,618 | public void processView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic) {<NEW_LINE>// apply to aggregates<NEW_LINE>Object[] groupKeysPerLevel = new Object[processor.getGroupByRollupDesc().getLevels().length];<NEW_LINE>EventBean[] eventsPerStream;<NEW_LINE>if (newData != null) {<NEW_LINE>for (Even... | groupKey = level.computeSubkey(groupKeyComplete); |
536,254 | protected void populateMBeanDescriptor(@Nonnull Descriptor desc, Object managedBean, String beanKey) {<NEW_LINE>Class intf = findJmxInterface(beanKey, AopUtils.getTargetClass(managedBean));<NEW_LINE>ManagedResource mr = this.attributeSource.getManagedResource(intf);<NEW_LINE>if (mr == null) {<NEW_LINE>applyDefaultCurre... | FIELD_PERSIST_LOCATION, mr.getPersistLocation()); |
148,207 | public void serialize(MockSpan mockSpan, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {<NEW_LINE>jsonGenerator.writeStartObject();<NEW_LINE>jsonGenerator.writeStringField("spanId", mockSpan.context().toSpanId());<NEW_LINE>jsonGenerator.writeStringField("traceId", mockSpan.conte... | "parent_spanId", mockSpan.parentId()); |
548,389 | void draw(Graphics g, int dstx1, int dsty1, int dstx2, int dsty2, int srcx1, int srcy1, int srcx2, int srcy2) {<NEW_LINE>if (txt == null && g.getCompositeMode() == CompositeMode.SRC_OVER) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (g instanceof PrinterGraphics) {<NEW_LINE>// We're printing. Copy [txt] into a J2DTexture ... | dstx1, dsty1, dstx2, dsty2); |
143,548 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,634,397 | private void waitIfNeeded() throws Exception {<NEW_LINE>String osName = System.getProperty("os.name");<NEW_LINE>boolean isUnix = !(osName.startsWith("win") || osName.startsWith("Win"));<NEW_LINE>boolean lastConfigLessThanOneSecAgo = (System.currentTimeMillis() - lastConfigUpdate) < 1000;<NEW_LINE>Log.finer(c, "replaceS... | finer(c, "replaceServerConfiguration", "Sleeping for 1 second to work around Unix / JDK limitation fixed in Java 8"); |
1,122,815 | private List<DataMediaPair> doToModel(List<DataMediaPairDO> dataMediaPairDos) {<NEW_LINE>List<Long> dataMediaPairIds = new ArrayList<Long>();<NEW_LINE>for (DataMediaPairDO dataMediaPairDo : dataMediaPairDos) {<NEW_LINE>dataMediaPairIds.add(dataMediaPairDo.getId());<NEW_LINE>}<NEW_LINE>Map<Long, List<ColumnPair>> column... | get(dataMediaPairDo.getId()); |
644,695 | final GenerateChangeSetResult executeGenerateChangeSet(GenerateChangeSetRequest generateChangeSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(generateChangeSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new GenerateChangeSetResultJsonUnmarshaller()); |
1,658,335 | // //////////////Following are transform of input data.<NEW_LINE>private static <IN, O> DataSet<O> mapInputOperation(DataSet<IN> inputData, DataSet<Tuple2<String, Long>> nodeMapping, TransformInputOperation func0, TransformInputOperation func1, TransformInputOperation func2) {<NEW_LINE>int operationNum = 1 + (func1 == ... | func2 == null ? 0 : 1); |
8,248 | static boolean _cutteeCutterEvents(int eventIndex, int eventIndexTemp, EditShape editShape, ArrayList<CutEvent> cutEvents, ArrayList<CutEvent> cutEventsTemp, int ipartCuttee, int ivertexCuttee, int ipartCutter, int ivertexCutter) {<NEW_LINE>int ilastVertexCuttee = editShape.getLastVertex(ipartCuttee);<NEW_LINE>int ilas... | return bEndEnd || bEndStart || bStartEnd || bStartStart; |
379,383 | final GetTableResult executeGetTable(GetTableRequest getTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
267,583 | public final void save(File dest, OpenRocketDocument doc, StorageOptions opts, SavingProgress progress) throws IOException, DecalNotFoundException {<NEW_LINE>// This method is the core operational method. It saves the document into a new (hopefully unique)<NEW_LINE>// file, then if the save is successful, it will copy... | ), s, doc, opts); |
1,628,191 | private double computeRoleScore(String regex, List<Integer> groups) {<NEW_LINE>SortedMap<String, SortedSet<String>> nodeRolesMap = regexToNodeRolesMap(regex, groups, _nodes);<NEW_LINE>// produce a role-level topology and the list of nodes in each edge's source role<NEW_LINE>// that have an edge to some node in the edge... | int numEdges = roleEdges.size(); |
628,810 | public void processPaths() {<NEW_LINE>final Map<String, PathItem> pathMap = openAPI.getPaths();<NEW_LINE>if (pathMap == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String pathStr : pathMap.keySet()) {<NEW_LINE>PathItem pathItem = pathMap.get(pathStr);<NEW_LINE>addParametersToEachOperation(pathItem);<NEW_LINE>if (... | computeRefFormat(pathItem.getRef()); |
444,002 | private Mono<Response<Flux<ByteBuffer>>> moveResourcesWithResponseAsync(String sourceResourceGroupName, ResourcesMoveInfo parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (sourceResourceGroupName == null) {<NEW_LINE>return Mono.error(new... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
393,933 | static SerializableObject readObject(final InputStream inputStream, final Class<?> clazz) throws IOException {<NEW_LINE>try {<NEW_LINE>// Look for the right constructor<NEW_LINE>final Constructor<?> c = clazz.getDeclaredConstructor(InputStream.class);<NEW_LINE>// Invoke it<NEW_LINE>final Object <MASK><NEW_LINE>// check... | object = c.newInstance(inputStream); |
1,725,068 | final ExportCertificateResult executeExportCertificate(ExportCertificateRequest exportCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,380,457 | // doIt<NEW_LINE>private String createFormat(MTable table) throws Exception {<NEW_LINE>log.info("Table Name:" + table.getTableName());<NEW_LINE>MColumn[] cols = table.getColumns(true);<NEW_LINE>String unique = null;<NEW_LINE>boolean fieldname = false;<NEW_LINE>for (MColumn col : cols) {<NEW_LINE>if (col.isIdentifier() ... | ), "1", get_TrxName()); |
1,337,177 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String resourceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
153,704 | public static QueryPushStatByAppResponse unmarshall(QueryPushStatByAppResponse queryPushStatByAppResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPushStatByAppResponse.setRequestId(_ctx.stringValue("QueryPushStatByAppResponse.RequestId"));<NEW_LINE>List<AppPushStat> appPushStats = new ArrayList<AppPushStat>();<NEW_L... | ("QueryPushStatByAppResponse.AppPushStats[" + i + "].SmsReceiveFailedCount")); |
1,426,856 | private DataSet generateDataSet(int batchSize) {<NEW_LINE>int w = (int) originalImage.getWidth();<NEW_LINE>int h = (int) originalImage.getHeight();<NEW_LINE>PixelReader reader = originalImage.getPixelReader();<NEW_LINE>INDArray xy = Nd4j.zeros(batchSize, 2);<NEW_LINE>INDArray out = Nd4j.zeros(batchSize, 3);<NEW_LINE>fo... | j = r.nextInt(h); |
563,428 | public FrameMetric unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FrameMetric frameMetric = new FrameMetric();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ... | String currentParentElement = context.getCurrentParentElement(); |
1,697,989 | private void updateModules() {<NEW_LINE>Set<ModuleContext> moduleContextSet = new HashSet<>();<NEW_LINE>for (Map.Entry<ModuleId, ModuleContext> moduleIdModuleContextEntry : moduleContextMap.entrySet()) {<NEW_LINE>ModuleId moduleId = moduleIdModuleContextEntry.getKey();<NEW_LINE><MASK><NEW_LINE>PackageDescriptor package... | ModuleContext oldModuleContext = moduleIdModuleContextEntry.getValue(); |
1,163,578 | public final <T> void writeObject(final int tag, int tagSize, final T value, final SchemaWriter<T> schemaWriter) throws IOException {<NEW_LINE>final LinkedBuffer lastBuffer;<NEW_LINE>// write the tag<NEW_LINE>if (tagSize == 1 && tail.offset != tail.buffer.length) {<NEW_LINE>lastBuffer = tail;<NEW_LINE>size++;<NEW_LINE>... | int msgSize = size - lastSize - 1; |
1,588,174 | private void gwFieldValueInt64V(MethodWriterContext mwc, FieldWriter fieldWriter, int OBJECT, int i, boolean jsonb) {<NEW_LINE>MethodWriter mw = mwc.mw;<NEW_LINE>String format = fieldWriter.getFormat();<NEW_LINE>String classNameType = mwc.classNameType;<NEW_LINE>int FIELD_VALUE = <MASK><NEW_LINE>int WRITE_DEFAULT_VALUE... | mwc.var(long.class); |
201,491 | protected void buildConfigurationDialog() {<NEW_LINE>configurationDialog = new JDialog(UISupport.getMainFrame());<NEW_LINE>configurationDialog.setTitle(assertion.getConfigurationDialogTitle());<NEW_LINE>configurationDialog.addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void windowO... | , 5, 5, 5)); |
150,767 | public Object prepareModel(T[] nodes) {<NEW_LINE>Map<File, Collection<T>> sortedNodes = new HashMap<File<MASK><NEW_LINE>for (T n : nodes) {<NEW_LINE>File root = n.getFileNode().getRoot();<NEW_LINE>if (root == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Collection<T> repositorySetups = sortedNodes.get(root);<NEW_LINE... | , Collection<T>>(); |
1,054,450 | private void buildItems() {<NEW_LINE>totalPrice = 0;<NEW_LINE>List<LootTrackerItem> items = this.items;<NEW_LINE>if (hideIgnoredItems) {<NEW_LINE>items = items.stream().filter(item -> !item.isIgnored()).collect(Collectors.toList());<NEW_LINE>}<NEW_LINE>boolean isHidden = items.isEmpty();<NEW_LINE>setVisible(!isHidden);... | imageLabel.setHorizontalAlignment(SwingConstants.CENTER); |
1,104,686 | private JPanel separationTab(AxialStage stage) {<NEW_LINE>JPanel panel = new JPanel(new MigLayout("fill"));<NEW_LINE>// Select separation event<NEW_LINE>panel.add(new StyledLabel(trans.get("StageConfig.separation.lbl.title") + " " + CommonStrings.dagger, Style.BOLD), "spanx, wrap rel");<NEW_LINE>StageSeparationConfigur... | get("StageConfig.separation.lbl.seconds")), "wrap unrel"); |
485,141 | public void actionPerformed(ActionEvent e) {<NEW_LINE>Frame f = ProtegeManager.getInstance().getFrame(getWorkspace());<NEW_LINE>int val = JOptionPane.showConfirmDialog(f, "This will create an empty ontology in the current set of\n" + "ontologies. Press OK to continue.", "Create empty ontology.", JOptionPane.OK_CANCEL_... | ontologyID, wizard.getLocationURI()); |
1,521,738 | private MRMA createCounterDoc() {<NEW_LINE>// Is this a counter doc ?<NEW_LINE>if (getRef_RMA_ID() > 0)<NEW_LINE>return null;<NEW_LINE>// Org Must be linked to BPartner<NEW_LINE>MOrg org = MOrg.get(getCtx(), getAD_Org_ID());<NEW_LINE>int counterC_BPartner_ID = org.getLinkedC_BPartner_ID(get_TrxName());<NEW_LINE>if (cou... | fine(counterDT.toString()); |
480,081 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject("adaptive_selection");<NEW_LINE>Set<String> allNodeIds = Sets.union(clientOutgoingConnections.keySet(), nodeComputedStats.keySet());<NEW_LINE>for (String nodeId : allNodeIds) {<NEW_LINE>builder.st... | stats = nodeComputedStats.get(nodeId); |
639,160 | public <X> Arguments16Validator<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, X> apply(Function16<? super R1, ? super R2, ? super R3, ? super R4, ? super R5, ? super R6, ? super R7, ? super R8, ? super R9, ? super R10, ? super R11, ? super R12, ? super R13, ? super R14, ? super R15, ? super R16... | (a16, locale, constraintContext)); |
1,557,140 | private void loadNode191() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_DeleteNodesCount, new QualifiedName(0, "DeleteNodesCount"), new LocalizedText("en", "DeleteNodesCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(... | .expanded(), false)); |
1,178,418 | private static byte[] MFcrypt(byte[] P, byte[] S, int N, int r, int p, int dkLen) {<NEW_LINE>int MFLenBytes = r * 128;<NEW_LINE>byte[] bytes = SingleIterationPBKDF2(P, S, p * MFLenBytes);<NEW_LINE>int[] B = null;<NEW_LINE>try {<NEW_LINE>int BLen = bytes.length >>> 2;<NEW_LINE>B = new int[BLen];<NEW_LINE>Pack.littleEndi... | BOff, N, d, r); |
323,187 | private void checkBigIndel(final List<CigarElement> cigarElements, final GATKRead read, final List<BreakpointEvidence> evidenceList) {<NEW_LINE><MASK><NEW_LINE>for (final CigarElement ele : cigarElements) {<NEW_LINE>final CigarOperator op = ele.getOperator();<NEW_LINE>if (ele.getLength() >= MIN_INDEL_LEN) {<NEW_LINE>if... | int locus = read.getStart(); |
1,450,575 | public long nextZero(final long index) {<NEW_LINE>if (index >= length)<NEW_LINE>return -1;<NEW_LINE>final long[] bits = this.bits;<NEW_LINE>final long words = numWords(length);<NEW_LINE><MASK><NEW_LINE>long maskedFirstWord = bits[from] | (1L << bit(index)) - 1;<NEW_LINE>if (maskedFirstWord != 0xFFFFFFFFFFFFFFFFL) {<NEW... | final int from = word(index); |
1,150,303 | public boolean sendRequest(RestRequest originalRequest, RestRequest darkRequest, RequestContext originalRequestContext, int numRequestDuplicates) {<NEW_LINE>boolean requestSent = false;<NEW_LINE>Callback<RestResponse> callback = new Callback<RestResponse>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(... | .getClass().getSimpleName(); |
1,757,316 | public CompletableFuture<QueryResponse> onQuery(final QueryRequest request) {<NEW_LINE>raft.checkThread();<NEW_LINE>logRequest(request);<NEW_LINE>// If this server has not yet applied entries up to the client's session ID, forward the<NEW_LINE>// query to the leader. This ensures that a follower does not tell the clien... | .operation()), 0); |
277,996 | public com.amazonaws.services.codedeploy.model.GitHubAccountTokenDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.GitHubAccountTokenDoesNotExistException gitHubAccountTokenDoesNotExistException = new com.amazonaws.services.c... | String currentParentElement = context.getCurrentParentElement(); |
1,070,850 | public static Map<String, String> establishComposedTaskProperties(Map<String, String> taskDeploymentProperties, TaskNode taskNode) {<NEW_LINE>Assert.notNull(taskDeploymentProperties, "taskDeploymentProperties must not be null");<NEW_LINE>Assert.notNull(taskNode, "taskNode must not be null");<NEW_LINE>String result = ""... | , subTask, taskDeploymentProperties, "app")); |
486,367 | private void loadNetworkSettings() {<NEW_LINE>Config config = Config.getInstance();<NEW_LINE>cmbSeg.setSelectedItem(config.getMaxSegments() + "");<NEW_LINE>cmbTimeout.setSelectedItem(config.getNetworkTimeout() > 1 ? config.getNetworkTimeout() + "" : "N/A");<NEW_LINE>String val = "Default";<NEW_LINE><MASK><NEW_LINE>if (... | int ival = config.getTcpWindowSize(); |
1,259,804 | final ListLogPatternSetsResult executeListLogPatternSets(ListLogPatternSetsRequest listLogPatternSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLogPatternSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,800,890 | final ListReadinessChecksResult executeListReadinessChecks(ListReadinessChecksRequest listReadinessChecksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReadinessChecksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
1,212,619 | public void register(List<ThreadPoolAdapterCacheConfig> requestParameter) {<NEW_LINE>synchronized (ThreadPoolAdapterService.class) {<NEW_LINE>for (ThreadPoolAdapterCacheConfig each : requestParameter) {<NEW_LINE>String mark = each.getMark();<NEW_LINE>Map<String, Map<String, List<ThreadPoolAdapterState>>> actual = THREA... | get(adapterState.getThreadPoolKey()); |
1,423,020 | public CalciteContextException newValidationError(SqlNode node, Resources.ExInst<SqlValidatorException> e) {<NEW_LINE>assert node != null;<NEW_LINE>CalciteContextException exception = SqlUtil.newContextException(<MASK><NEW_LINE>if (OBJECT_NOT_FOUND.equals(ResourceUtil.key(e)) || OBJECT_NOT_FOUND_WITHIN.equals(ResourceU... | node.getParserPosition(), e); |
1,402,183 | private static Profile profileFromAnnotationComponent(@NullAllowed final AnnotationComponent ac) {<NEW_LINE>if (ac == null) {<NEW_LINE>return Profile.COMPACT1;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final ElementValue ev = ac.getValue();<NEW_LINE>if (!(ev instanceof PrimitiveElementValue)) {<NEW_LINE>return Profile.COMPACT... | (Integer) cpEntry.getValue(); |
98,790 | public void actionPerformed(ActionEvent event) {<NEW_LINE>TestStep testStep = getAssertable().getTestStep();<NEW_LINE>MessageExchange exchange = null;<NEW_LINE>if (testStep instanceof WsdlTestRequestStep) {<NEW_LINE>exchange = new WsdlResponseMessageExchange(((WsdlTestRequestStep) testStep).getTestRequest());<NEW_LINE>... | ) testStep).getTestRequest()); |
1,654,799 | private void proposeNewMethod(char[] token, ReferenceBinding reference) {<NEW_LINE>if (!this.requestor.isIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION)) {<NEW_LINE>int relevance = computeBaseRelevance();<NEW_LINE>relevance += computeRelevanceForResolution();<NEW_LINE>relevance += computeRelevanceForInterestin... | CompletionProposal.POTENTIAL_METHOD_DECLARATION, this.actualCompletionPosition); |
507,806 | public ColumnAnalysis fold(ColumnAnalysis rhs) {<NEW_LINE>if (rhs == null) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (isError() && rhs.isError()) {<NEW_LINE>return errorMessage.equals(rhs.getErrorMessage()) ? this : ColumnAnalysis.error("multiple_errors");<NEW_LINE>} else if (isError()) {<NEW_LINE>return this;<NEW... | .nullToEmptyIfNeeded((String) newMax); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.