idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
117,208
public String build() {<NEW_LINE>// guard against null<NEW_LINE>// NOTE: for convenience, we are not throwing an exception here but we just return ""<NEW_LINE>// because we want to be able to use this method in places where we don't want to check if HU is null or not (e.g. exception messages).<NEW_LINE>if (!isHUSet()) ...
String displayName = displayNameBuilder.toString();
469,389
public CreateUserProfileResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateUserProfileResult createUserProfileResult = new CreateUserProfileResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken...
String currentParentElement = context.getCurrentParentElement();
1,799,988
public AlertSummary generateAlertSummary(String domain, Date date) {<NEW_LINE>AlertSummary alertSummary = new AlertSummary();<NEW_LINE>alertSummary.setDomain(domain);<NEW_LINE>alertSummary.setAlertDate(date);<NEW_LINE>alertSummary.addCategory(generateCategoryByTimeCateDomain(date, AlertType.Business.getName(), domain))...
queryDependencyDomains(topology, date, domain);
619,360
public void postAction(Object action, final Runnable actionPerformedNotifier) {<NEW_LINE>final LineBreakpoint newBreakpoint = LineBreakpoint.create(editorContext.getCurrentURLAsString(), editorContext.getCurrentLineNumber());<NEW_LINE>// Disable the action immediatelly, to prevent multiple action invocations.<NEW_LINE>...
getDefault().notify(itex);
878,577
private HttpResponse doAssessment(List<String> hostNames) {<NEW_LINE>var zone = affectedZone(hostNames);<NEW_LINE>if (zone.isEmpty())<NEW_LINE>return ErrorResponse.notFoundError("Could not infer prod zone from host list: " + hostNames);<NEW_LINE>ChangeManagementAssessor.Assessment assessments = assessor.assessment(hos...
setLong("groupsTotal", assessment.groupsTotal);
1,514,124
public static Toast custom(@NonNull Context context, @NonNull CharSequence message, Drawable icon, @ColorInt int tintColor, @ColorInt int textColor, int duration, boolean withIcon, boolean shouldTint) {<NEW_LINE>final Toast currentToast = Toast.makeText(context, "", duration);<NEW_LINE>final View toastLayout = ((Layout...
toastIcon.setVisibility(View.GONE);
806,142
public void onCompletion() {<NEW_LINE>// make me normal first<NEW_LINE>setStateAndUi(CURRENT_STATE_NORMAL);<NEW_LINE>mSaveChangeViewTIme = 0;<NEW_LINE>mCurrentPosition = 0;<NEW_LINE>if (mTextureViewContainer.getChildCount() > 0) {<NEW_LINE>mTextureViewContainer.removeAllViews();<NEW_LINE>}<NEW_LINE>if (!mIfCurrentIsFul...
getGSYVideoManager().setCurrentVideoHeight(0);
760,729
public static DescribeTemplateResponse unmarshall(DescribeTemplateResponse describeTemplateResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTemplateResponse.setRequestId(_ctx.stringValue("DescribeTemplateResponse.RequestId"));<NEW_LINE>describeTemplateResponse.setId(_ctx.stringValue("DescribeTemplateResponse.Id")...
(_ctx.stringValue("DescribeTemplateResponse.HlsM3u8"));
70,820
void retrieveSupplementalInfo() throws IOException {<NEW_LINE>CharSequence contents = HttpHelper.downloadViaHttp("https://www.googleapis.com/books/v1/volumes?q=isbn:" + isbn, HttpHelper.ContentType.JSON);<NEW_LINE>if (contents.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String title;<NEW_LINE>String pages;<NE...
>(authorsArray.length());
706,919
public static void renderOverlay(RenderGameOverlayEvent.Text event) {<NEW_LINE>Minecraft mc = Minecraft.getMinecraft();<NEW_LINE>IDebuggable debuggable = ClientDebuggables.getDebuggableObject(mc.objectMouseOver);<NEW_LINE>if (debuggable != null) {<NEW_LINE>List<String> <MASK><NEW_LINE>List<String> clientRight = new Arr...
clientLeft = new ArrayList<>();
759,290
public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>String project = commandLine.getValue(Options.PROJECT_OPTION);<NEW_LINE>String file = commandLine.getValue(Options.FILE_OPTION);<NEW_LINE>ICompilationUnit src = JavaUtils.getCompilationUnit(project, file);<NEW_LINE>IJavaElement element = null;<N...
" " + Services.getMessage("check.import");
1,444,542
public void combine(double[] coords, Object[] data, float[] weights, Object[] outData) {<NEW_LINE>// here we do some horrible things to blend the colors<NEW_LINE>float r = 0, g = 0, b = 0, a = 0;<NEW_LINE>for (int i = 0; i < data.length; ++i) {<NEW_LINE>int c = ((TessVertex) data[i]).c;<NEW_LINE>a += weights[i] * ((c >...
, v = 0, f = 0;
319,248
public InputFileLocation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputFileLocation inputFileLocation = new InputFileLocation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
1,671,832
// Must already have started a transaction<NEW_LINE>protected void writeDown(Trace trace, long snap, TraceThread thread, int frame) {<NEW_LINE>if (space.isUniqueSpace()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>byte[] data = new byte[4096];<NEW_LINE>ByteBuffer buf = ByteBuffer.wrap(data);<NEW_LINE>TraceMemorySpace mem = ...
.lowerBoundType() == BoundType.CLOSED;
886,569
final DeleteIPSetResult executeDeleteIPSet(DeleteIPSetRequest deleteIPSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIPSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
1,422,192
public boolean isCompleteRequest(ByteBuffer buffer) {<NEW_LINE>DataInputStream inputStream = new <MASK><NEW_LINE>try {<NEW_LINE>int dataSize = inputStream.readInt();<NEW_LINE>if (logger.isTraceEnabled())<NEW_LINE>logger.trace("In isCompleteRequest, dataSize: " + dataSize + ", buffer position: " + buffer.position());<NE...
DataInputStream(new ByteBufferBackedInputStream(buffer));
1,517,679
private static boolean createAndStartContainer(String name, String image, String cmd, Map<String, String> env, List<String> linkHosts, Map<Integer, Integer> mapPorts, Map<String, String> volumes, List<String> opts) {<NEW_LINE>if (containerExists(name)) {<NEW_LINE>killAndRemoveContainer(name);<NEW_LINE>}<NEW_LINE>List<S...
.add("--link " + host));
669,427
public <A, B> double dependence(NumberArrayAdapter<?, A> adapter1, A data1, NumberArrayAdapter<?, B> adapter2, B data2) {<NEW_LINE>final int len = Utils.size(adapter1, data1, adapter2, data2);<NEW_LINE>// Get attribute value range:<NEW_LINE>final double off1, scale1, off2, scale2;<NEW_LINE>{<NEW_LINE>double mi = adapte...
= (x - off1) * scale1;
63,936
protected void addMenuItems(Menu menu, Activity activity) {<NEW_LINE>boolean isTablet = AstridPreferences.useTabletLayout(activity);<NEW_LINE>TaskListActivity tla = null;<NEW_LINE>if (activity instanceof TaskListActivity) {<NEW_LINE>tla = (TaskListActivity) activity;<NEW_LINE>tla.getMainMenuPopover().clear();<NEW_LINE>...
= getActivity().getPackageManager();
236,786
protected static com.haulmont.cuba.gui.components.Component findChildComponent(Collection<com.haulmont.cuba.gui.components.Component> components, Component vaadinSource, Component target) {<NEW_LINE>Component targetComponent = getDirectChildComponent(target, vaadinSource);<NEW_LINE>for (com.haulmont.cuba.gui.components...
((ComponentContainer) component, target);
117,589
// Converts an object to a byte array, using enhancements when possible to reduce size<NEW_LINE>// reveals customer data<NEW_LINE>@Trivial<NEW_LINE>public byte[] serialize(Object value) throws IOException {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>BuiltinSerializationInfo<?> info = ...
lookupByClass(value.getClass());
178,469
private static void processImages(String[] files, DetectPolygonBinaryGrayRefine<GrayU8> detector, ListDisplayPanel panel) {<NEW_LINE>for (String fileName : files) {<NEW_LINE>BufferedImage image = UtilImageIO.loadImageNotNull(UtilIO.pathExample(fileName));<NEW_LINE>GrayU8 input = ConvertBufferedImage.convertFromSingle(i...
Graphics2D g2 = image.createGraphics();
777,534
private void recalculateCenter() {<NEW_LINE>double massSum = 0.0;<NEW_LINE>Vector3f locationSum = new Vector3f();<NEW_LINE>Vector3f velocitySum = new Vector3f();<NEW_LINE>Vector3f tmpVector = new Vector3f();<NEW_LINE>List<PhysicsLink> links = listLinks(PhysicsLink.class);<NEW_LINE>for (PhysicsLink link : links) {<NEW_L...
locationSum.mult(invMass, centerLocation);
852,919
public String evalInstance(Model model, String signal) throws ClassNotFoundException, AxelorException {<NEW_LINE>model = EntityHelper.getEntity(model);<NEW_LINE>String helpText = null;<NEW_LINE>if (model.getProcessInstanceId() == null) {<NEW_LINE>checkSubProcess(model);<NEW_LINE>}<NEW_LINE>if (model.getProcessInstanceI...
findByInstnaceId(model.getProcessInstanceId());
664,242
public void onClick(DialogInterface dialog, int which) {<NEW_LINE>// reset<NEW_LINE>mTotalLoopClosures = 0;<NEW_LINE>int index = STATUS_TEXTS_POSE_INDEX;<NEW_LINE>mMapNodes = 0;<NEW_LINE>mStatusTexts[index++] = getString(R.string.nodes) + 0;<NEW_LINE>mStatusTexts[index++] = getString(R.string.words) + 0;<NEW_LINE>mStat...
R.string.pref_default_db_in_memory)));
602,775
private void initFeatureProcessorManager() throws MaryConfigurationException {<NEW_LINE>FeatureProcessorManager featMgr = null;<NEW_LINE>// Any feature processor manager settings in the config file?<NEW_LINE>String keyVoiceFeatMgr = "voice." + getName() + ".featuremanager";<NEW_LINE>String featMgrClass = MaryProperties...
fpmClass.getConstructor(Voice.class);
531,296
public void mapPartition(Iterable<T> values, Collector<Tuple3<Integer, Integer, double[]>> out) throws Exception {<NEW_LINE>ComContext context = new ComContext(sessionId, getIterationRuntimeContext());<NEW_LINE>int taskId = getRuntimeContext().getIndexOfThisSubtask();<NEW_LINE>int numOfSubTasks = getRuntimeContext().ge...
localRowCnt(i, numOfSubTasks, pieces);
393,685
// "proportionSum" can't be zero<NEW_LINE>@SuppressWarnings("squid:S3518")<NEW_LINE>private void loadUDFProps(Properties properties) {<NEW_LINE>String initialByteArrayLengthForMemoryControl = properties.getProperty("udf_initial_byte_array_length_for_memory_control");<NEW_LINE>if (initialByteArrayLengthForMemoryControl ...
RuntimeException("Each subsection of configuration item udf_reader_transformer_collector_memory_proportion" + " should be an integer, which is " + readerTransformerCollectorMemoryProportion);
261,895
private GridFieldVO createVO(MBrowseField field, boolean isTo, int windowNo) {<NEW_LINE>// Create Field<NEW_LINE>GridFieldVO voBase = GridFieldVO.createStdField(field.getCtx(), windowNo, 0, 0, 0, false, false, false);<NEW_LINE>String uniqueName = field.getAD_View_Column().getColumnName() + (isTo ? "_To" : "");<NEW_LINE...
.ValueMax = field.getValueMax();
161,801
private void showHelp(Object command) {<NEW_LINE>System.out.println();<NEW_LINE>System.out.println(options.getString("action-desc." + command));<NEW_LINE>System.out.println();<NEW_LINE>System.out.println(options.getString("use.options"));<NEW_LINE>System.out.println();<NEW_LINE>for (String option : actionHelper.options...
options.getString("option-desc." + option);
421,911
private static void processToIonStream(ProcessContext processContext, CommandArgs args) throws IOException {<NEW_LINE>List<Event<MASK><NEW_LINE>int count = 0;<NEW_LINE>while (count != events.size()) {<NEW_LINE>// update eventIndex<NEW_LINE>Event event = events.get(count);<NEW_LINE>processContext.setEventIndex(processCo...
> events = processContext.getEventStream();
1,307,117
// Convert the list to XML to pass back to the view.<NEW_LINE>private Document toXml(List<Post> itemsList) {<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder();<NEW_LINE>Document doc = builder.newDocument();<NEW_...
(post.getDate()));
206,410
private void deleteManifestFileNodes() throws InterruptedException {<NEW_LINE>if (deleteOption == DeleteOptions.DELETE_OUTPUT || deleteOption == DeleteOptions.DELETE_INPUT_AND_OUTPUT) {<NEW_LINE>boolean allINodesDeleted = true;<NEW_LINE>Iterator<ManifestFileLock> iterator = manifestFileLocks.iterator();<NEW_LINE>while ...
, caseNodeData.getDisplayName()));
531,666
public synchronized void start() {<NEW_LINE>String id = getID();<NEW_LINE>if (id != null) {<NEW_LINE>log.info("Starting Speed Layer {}", id);<NEW_LINE>}<NEW_LINE>streamingContext = buildStreamingContext();<NEW_LINE>log.info("Creating message stream from topic");<NEW_LINE>JavaInputDStream<ConsumerRecord<K, M>> kafkaDStr...
(modelManager, updateBroker, updateTopic));
1,117,386
@Authenticate(AccessType.UPDATE)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Reload a segment", notes = "Reload a segment")<NEW_LINE>public SuccessResponse reloadSegment(@ApiParam(value = "Name of the table", required = true) @PathParam("tableName") String tableName, @ApiParam(value =...
? TableType.REALTIME : TableType.OFFLINE;
1,657,842
private static InputStream inputStreamFromJar(URL resourceUrl) throws URISyntaxException, IOException {<NEW_LINE>// Jar URLs look like this: jar:file:/path/to/file.jar!/entry/within/jar<NEW_LINE>// So take apart the URL to open the jar /path/to/file.jar and read the entry<NEW_LINE>// entry/within/jar from it.<NEW_LINE>...
in = jar.getInputStream(entry);
768,740
public void start() {<NEW_LINE>try {<NEW_LINE>LOG.info("start to SdkProxyChannelManager:{}", this.proxyClusterId);<NEW_LINE>SdkSenderClientHandler clientHandler = new SdkSenderClientHandler(this);<NEW_LINE>this.sender = new TcpChannelGroup(proxyClusterId, context.getMaxThreads(), new LengthFieldBasedFrameDecoder(SdkSin...
this.workers.add(worker);
1,175,693
final DescribeWorldResult executeDescribeWorld(DescribeWorldRequest describeWorldRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeWorldRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
469,228
@ApiOperation(value = "Deletes the specified API key", code = 204)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 404, message = "The API key could not be found") })<NEW_LINE>@PermissionRequired(Permissions.Constants.ACCESS_MANAGEMENT)<NEW_LINE>public Response d...
entity("The API key could not be found.").build();
1,488,357
public void treeCollapsed(TreeExpansionEvent event) {<NEW_LINE>assert SwingUtilities.isEventDispatchThread();<NEW_LINE>log("treeCollapsed", event);<NEW_LINE>// FixedHeightLayoutCache tests if the event is null.<NEW_LINE>// Don't know how it could be, but there's probably a reason...<NEW_LINE>if (event != null) {<NEW_LI...
TreePath path = event.getPath();
1,076,091
private void meetingStarted(MeetingStarted message) {<NEW_LINE>Meeting m = getMeeting(message.meetingId);<NEW_LINE>if (m != null) {<NEW_LINE>if (m.getStartTime() == 0) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>m.setStartTime(now);<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE>logData...
"meetingId", m.getInternalId());
1,340,500
private void initTopSectionContextMenu(ContextMenu contextMenu, boolean hasRanges) {<NEW_LINE>MenuItem setDestinationItem = createMenuItem(DefaultI18nContext.getInstance().i18n("Set destination"), MaterialDesignIcon.AIRPLANE_LANDING);<NEW_LINE>setDestinationItem.setOnAction(e -> eventStudio().broadcast(requestDestinati...
!e.isSingleSelection()));
1,197,764
public Multimap<Node, Split> computeAssignments(List<Split> splits, List<RemoteTask> existingTasks) {<NEW_LINE>Multimap<Node, Split> assignment = HashMultimap.create();<NEW_LINE>NodeAssignmentStats assignmentStats = new NodeAssignmentStats(nodeTaskMap, workerNodes, existingTasks);<NEW_LINE>ResettableRandomizedIterator<...
> nodeIterator = new ResettableRandomizedIterator(candidateNodes);
55,136
protected List<Sentence> sentences(Properties props, Annotator tokenizer) {<NEW_LINE>if (sentences == null) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (sentences == null) {<NEW_LINE>Annotator ssplit = props == EMPTY_PROPS ? defaultSSplit : getOrCreate(STANFORD_SSPLIT, props, () -> backend.wordToSentences(props)).get(...
.TextAnnotation.class), defaultProps);
1,292,368
public Request<ModifyInstanceEventStartTimeRequest> marshall(ModifyInstanceEventStartTimeRequest modifyInstanceEventStartTimeRequest) {<NEW_LINE>if (modifyInstanceEventStartTimeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyInstanc...
request.addParameter("Action", "ModifyInstanceEventStartTime");
173,267
private static List<List<String>> cacheTracingInfo(ResultSet resultSet, List<Integer> maxSizeList) throws Exception {<NEW_LINE>List<List<String>> lists = new ArrayList<>(2);<NEW_LINE>lists.add(0, new ArrayList<>());<NEW_LINE>lists.add(1, new ArrayList<>());<NEW_LINE>String ACTIVITY_STR = "Activity";<NEW_LINE>String ELA...
0, activity.length());
1,818,513
public static Set<ShardId> selectShrinkShards(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards) {<NEW_LINE>if (shardId >= numTargetShards) {<NEW_LINE>throw new IllegalArgumentException("the number of target shards (" + numTargetShards + ") must be greater than the shard id: " + shardId);<NEW_LINE>}<N...
sourceIndexMetadata.getNumberOfShards(), numTargetShards);
1,774,101
final DescribeParametersResult executeDescribeParameters(DescribeParametersRequest describeParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(describeParametersRequest));
1,492,969
void decode(ByteBuf payload) {<NEW_LINE>while (payload.isReadable()) {<NEW_LINE><MASK><NEW_LINE>switch(tokenType) {<NEW_LINE>case LOGINACK:<NEW_LINE>payload.skipBytes(payload.readUnsignedShortLE());<NEW_LINE>handleLoginAck();<NEW_LINE>break;<NEW_LINE>case COLMETADATA:<NEW_LINE>handleColumnMetadata(payload);<NEW_LINE>br...
short tokenType = payload.readUnsignedByte();
1,103,581
public JSONObject updatePluginSetting(final String pluginId, final String setting) {<NEW_LINE>final JSONObject ret = new JSONObject();<NEW_LINE>final Map<String, String> langs = langPropsService.getAll(Latkes.getLocale());<NEW_LINE>final List<AbstractPlugin> plugins = pluginManager.getPlugins();<NEW_LINE>for (final Abs...
Level.ERROR, "Set plugin status error", e);
120,358
public void buttonFavoritePressed() {<NEW_LINE>Object object = getObject();<NEW_LINE>if (object instanceof FavouritePoint) {<NEW_LINE>FavoritePointEditor favoritePointEditor = getFavoritePointEditor();<NEW_LINE>if (favoritePointEditor != null) {<NEW_LINE>favoritePointEditor.edit((FavouritePoint) object);<NEW_LINE>}<NEW...
long timestamp = System.currentTimeMillis();
1,658,553
public CreateTaskSetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateTaskSetResult createTaskSetResult = new CreateTaskSetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
802,898
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(game.getActivePlayerId());<NEW_LINE>Permanent permanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (player == null || permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ManaCosts<ManaCost> ...
new FixedTarget(permanent, game));
1,352,266
/*<NEW_LINE>* call-seq:<NEW_LINE>* MessageClass.encode(msg, options = {}) => bytes<NEW_LINE>*<NEW_LINE>* Encodes the given message object to its serialized form in protocol buffers<NEW_LINE>* wire format.<NEW_LINE>* @param options [Hash] options for the encoder<NEW_LINE>* recursion_limit: set to maximum encoding d...
.runtime.newSymbol("recursion_limit"));
454,991
private void processSubgroups(Scope parentScope, MyPredicate predicate, Collection<? extends Group> subgroups) {<NEW_LINE>int size = predicate.instanceProvider.getInstances().size();<NEW_LINE>for (Group subgroup : subgroups) {<NEW_LINE>LocatedReferable groupRef = subgroup.getReferable();<NEW_LINE>if (groupRef.getKind()...
predicate, subgroup.getDynamicSubgroups());
1,810,511
boolean show() {<NEW_LINE>// NOI18N<NEW_LINE>okButton = new JButton(NbBundle.getMessage(MergeRevision.class, "LBL_MergeRevision.OKButton.text"));<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(okButton, okButton.getText());<NEW_LINE>dd = new // NOI18N<NEW_LINE>DialogDescriptor(// NOI18N<NEW_LINE>panel, // NOI18N<N...
(evt.getNewValue()));
1,536,642
public Observable<ServiceResponseWithHeaders<Page<CloudJobSchedule>, JobScheduleListHeaders>> listNextSinglePageAsync(final String nextPageLink, final JobScheduleListNextOptions jobScheduleListNextOptions) {<NEW_LINE>if (nextPageLink == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter nextPageLink is requ...
, result.response()));
783,245
public boolean onClickAddressContextMenuItem(final MenuItem item, final Address address, final String label) {<NEW_LINE>int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.wallet_addresses_context_edit) {<NEW_LINE>viewModel.showEditAddressBookEntryDialog.setValue(new Event<>(address));<NEW_LINE>return true;<NEW_...
, address.toString()));
1,199,857
protected void load(String fileName) throws IOException, MaryConfigurationException {<NEW_LINE>super.load(fileName);<NEW_LINE>// Now make sense of the processing header<NEW_LINE>Properties props = new Properties();<NEW_LINE>ByteArrayInputStream bais = new ByteArrayInputStream(procHdr.getString().getBytes("latin1"));<NE...
(props.getProperty("hnm.maxVoicedFreq"));
853,006
public void execute(String shardingNode, Set<String> tables) {<NEW_LINE>StringBuilder sbSql = new StringBuilder();<NEW_LINE>for (String table : tables) {<NEW_LINE>sbSql.append(SQL_SHOW_CREATE_TABLE.replace("{0}", table));<NEW_LINE>}<NEW_LINE>ShardingNode dn = DbleServer.getInstance().getConfig().getShardingNodes().get(...
.getDbGroup().getWriteDbInstance();
1,175,949
public void thresholdBlock(int blockX0, int blockY0, GrayF32 input, GrayF32 stats, GrayU8 output) {<NEW_LINE>int x0 = blockX0 * blockWidth;<NEW_LINE>int y0 = blockY0 * blockHeight;<NEW_LINE>int x1 = blockX0 == stats.width - 1 ? input.width <MASK><NEW_LINE>int y1 = blockY0 == stats.height - 1 ? input.height : (blockY0 +...
: (blockX0 + 1) * blockWidth;
1,245,778
public static void vertical11(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip, int divisor) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NE...
(dataSrc[indexSrc]) * k1;
36,977
public void mv(Transpose trans, float alpha, float[] x, float beta, float[] y) {<NEW_LINE>if (uplo != null) {<NEW_LINE>if (diag != null) {<NEW_LINE>if (alpha == 1.0 && beta == 0.0f && x == y) {<NEW_LINE>BLAS.engine.trmv(layout(), uplo, trans, diag, m, A, ld, y, 1);<NEW_LINE>} else {<NEW_LINE>BLAS.engine.gemv(layout(), ...
1, beta, y, 1);
1,590,674
public com.amazonaws.services.cognitoidp.model.DuplicateProviderException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitoidp.model.DuplicateProviderException duplicateProviderException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = cont...
cognitoidp.model.DuplicateProviderException(null);
1,343,501
private // TODO(ruibm): Add cache health information to the SuperConsole.<NEW_LINE>void backgroundThreadCallForHealthCheck() {<NEW_LINE>LOG.verbose("Starting pings. %s", toString());<NEW_LINE>List<ListenableFuture<LoadBalancerPingEvent.PerServerPingData>> futures = new ArrayList<>();<NEW_LINE>for (URI serverUri : serve...
LOG.warn(ex, "Some pings failed");
1,349,966
protected void updateControl(ValidationInfo validationInfo) {<NEW_LINE>if (lastValidationInfo == validationInfo) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (validationInfo == null) {<NEW_LINE>lastValidationInfo = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean changed = lastValidationInfo == null || validationInfo.va...
String curTooltip = mainControl.getToolTipText();
251,111
public static double price(double forward, double strike, double timeToExpiry, double lognormalVol, boolean isCall) {<NEW_LINE>ArgChecker.isTrue(forward >= 0d, "negative/NaN forward; have {}", forward);<NEW_LINE>ArgChecker.isTrue(strike >= 0d, "negative/NaN strike; have {}", strike);<NEW_LINE>ArgChecker.isTrue(timeToEx...
boolean bFwd = (forward > LARGE);
268,960
public void onSensorChanged(SensorEvent sensorEvent) {<NEW_LINE>int currentType = sensorEvent.sensor.getType();<NEW_LINE>if (currentType != this.sensorType) {<NEW_LINE>// not for the current Sensor<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double tempMs = (double) System.currentTimeMillis();<NEW_LINE>if (tempMs - lastReadin...
("pitch", orientation[1]);
1,238,191
public PublicKeyConfig unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PublicKeyConfig publicKeyConfig = new PublicKeyConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += ...
().unmarshall(context));
127,656
static String decode(String requestTarget, Charset charset) {<NEW_LINE>Uri3986 uri = new Uri3986(requestTarget);<NEW_LINE>StringBuilder sb = new StringBuilder(uri.uri.length());<NEW_LINE>if (uri.scheme != null) {<NEW_LINE>sb.append(uri.scheme).append(':');<NEW_LINE>}<NEW_LINE>if (uri.host != null) {<NEW_LINE>// The aut...
charset)).append('@');
514,725
private List<CToolchain.Builder> createMipsToolchains() {<NEW_LINE>ImmutableList.Builder<CToolchain.Builder<MASK><NEW_LINE>// The gcc-4.8 mips toolchain doesn't have dwp or gcov-tool.<NEW_LINE>toolchainsListBuilder.add(createMipsToolchain("4.8", CppConfiguration.Tool.DWP, CppConfiguration.Tool.GCOVTOOL));<NEW_LINE>// T...
> toolchainsListBuilder = ImmutableList.builder();
1,807,367
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>dontCopyCB = new javax.swing.JCheckBox();<NEW_LINE>jLblTreeView = new javax.swing.JLabel();<NEW_LINE>setLayout(new java.awt...
= java.awt.GridBagConstraints.HORIZONTAL;
1,735,468
private Mono<PagedResponse<RegistrationInner>> listByResourceGroupSinglePageAsync(String resourceGroup, 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_LIN...
error(new IllegalArgumentException("Parameter resourceGroup is required and cannot be null."));
786,947
private View addItemWithIconTitleSubtitle(@NonNull CharSequence title, @Nullable CharSequence subtitle, int resIdIcon) {<NEW_LINE>listItem = mLayoutInflater.inflate(R.layout.item_icon_title_subtitle, mListContainer, false);<NEW_LINE>// Item title<NEW_LINE>itemTitle = listItem.findViewById(R.id.item_title);<NEW_LINE>ite...
findViewById(R.id.item_open);
416,898
public Object decode(Channel channel, ChannelBuffer input) throws IOException {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>int index = input.readerIndex();<NEW_LINE>Object ret = codec.decode(channel, input);<NEW_LINE>int size = input.readerIndex() - index;<NEW_LINE>long elapsed = System.currentTimeM...
, String.valueOf(elapsed));
215,086
public void addHorizontal(String typeCast, boolean divide) {<NEW_LINE>String typeOutput = imageOut.getSingleBandName();<NEW_LINE>String dataOutput = imageOut.getDataType();<NEW_LINE>String divideHeader = divide ? ", int divisor" : "";<NEW_LINE>String strTotal = divide ? "((total+halfDivisor)/divisor)" : "total";<NEW_LI...
String divideHalf = divide ? "\t\tfinal int halfDivisor = divisor/2;\n" : "";
1,353,949
static void showFrame() throws IOException {<NEW_LINE>final String application = System.getProperty("javamelody.application");<NEW_LINE>final String url = System.getProperty("javamelody.url");<NEW_LINE>final String range = System.getProperty("javamelody.range");<NEW_LINE>if (application == null || url == null || range ...
final MainFrame frame = new MainFrame();
165,534
public CpuStateSnapshot currentCpuStateSnapshot() {<NEW_LINE>CpuStateSnapshot snapshot = new CpuStateSnapshot();<NEW_LINE>try {<NEW_LINE>if (!isSupported()) {<NEW_LINE>throw new IOException("PowerProfile not supported");<NEW_LINE>}<NEW_LINE>synchronized (this) {<NEW_LINE>if (!isSupported()) {<NEW_LINE>throw new IOExcep...
(mPowerProfile.getClusterByCpuNum(i));
1,844,166
public static String run(String inputJson) throws InvalidInputException, IOException {<NEW_LINE>InputManager inputManager;<NEW_LINE>ConfigManager outputManager;<NEW_LINE>ObjectMapper objectMapper = new ObjectMapper();<NEW_LINE>objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);<NEW_LINE>inputManage...
silentRules.forEach(AbstractRule::hideOutput);
1,324,467
public Observable<ServiceResponseWithHeaders<Page<CloudJob>, JobListFromJobScheduleHeaders>> listFromJobScheduleNextWithServiceResponseAsync(final String nextPageLink) {<NEW_LINE>return listFromJobScheduleNextSinglePageAsync(nextPageLink).concatMap(new Func1<ServiceResponseWithHeaders<Page<CloudJob>, JobListFromJobSche...
.body().nextPageLink();
1,630,922
private void appendRandomFloat(StringBuilder buffer, CodegenOperation op, CodegenVariable var) {<NEW_LINE>if (!appendRandomEnum(buffer, op, var)) {<NEW_LINE>// NOTE: use double to hold float values, to avoid numeric overflow.<NEW_LINE>double min = var == null || var.minimum == null ? -Float.MAX_VALUE : Float.parseFloat...
Float.parseFloat(var.maximum);
724,833
public BindingFunction transform(BindingFunction bindFunction) {<NEW_LINE>if (bindFunction instanceof RuleBasedBindingFunction) {<NEW_LINE>RuleBasedBindingFunction rbf = (RuleBasedBindingFunction) bindFunction;<NEW_LINE>ListMultimap<ContextMatcher, BindRule> bindings = rbf.getRules();<NEW_LINE>ListMultimap<ContextMatch...
> newBindings = ArrayListMultimap.create();
784,625
public void processSvg(DefDescriptor<ModuleDef> descriptor, Builder builder, Map<DefDescriptor<?>, Source<?>> sourceMap, Map<DefDescriptor<?>, Definition> defMap) throws QuickFixException {<NEW_LINE>DefDescriptor<SVGDef> svgDesc = new DefDescriptorImpl<>(DefDescriptor.MARKUP_PREFIX, descriptor.getNamespace(), descripto...
().getSystemId()));
187,256
protected static int unsignedOneSidedGallopingIntersect2by2(final CharBuffer smallSet, final int smallLength, final CharBuffer largeSet, final int largeLength, final char[] buffer) {<NEW_LINE>if (0 == smallLength) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int k1 = 0;<NEW_LINE>int k2 = 0;<NEW_LINE>int pos = 0;<NEW_LINE>c...
s2 = smallSet.get(k2);
151,386
public void analyze() throws AnalysisException {<NEW_LINE>// do not analyze ALL cast<NEW_LINE>if (type == Type.ALL) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// cast was asked for in the query, check for validity of cast<NEW_LINE>Type childType = getChild(0).getType();<NEW_LINE>// this cast may result in loss of precision...
" from " + childType + " to " + type);
1,455,466
public int compareTo(chop_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE>if (lastCom...
), other.isSetExtent());
1,043,605
protected ExtendedIterator<Triple> graphBaseFind(String _gName, TripleMatch tm) {<NEW_LINE>StringBuilder sb = new StringBuilder("sparql ");<NEW_LINE>Node nS, nP, nO;<NEW_LINE>checkOpen();<NEW_LINE>appendSparqlPrefixes(sb);<NEW_LINE>if (readFromAllGraphs && _gName == null)<NEW_LINE>sb.append(" select * where { ");<NEW_L...
(ps, col++, nS);
1,056,713
public final void onRenderForeground(PoseStack matrix, int mouseX, int mouseY, int zOffset, int totalOffset) {<NEW_LINE>if (visible) {<NEW_LINE>matrix.translate(0, 0, zOffset);<NEW_LINE>// update the max total offset to prevent clashing of future overlays<NEW_LINE>GuiMekanism.maxZOffset = Math.max(totalOffset, GuiMekan...
, mouseX, mouseY, 0));
1,691,493
private void fillNotificationCount(final String userId, final Map<String, Object> dataModel) {<NEW_LINE>final int unreadCommentedNotificationCnt = notificationQueryService.getUnreadNotificationCountByType(userId, Notification.DATA_TYPE_C_COMMENTED);<NEW_LINE>dataModel.put(Common.UNREAD_COMMENTED_NOTIFICATION_CNT, unrea...
getUnreadNotificationCountByType(userId, Notification.DATA_TYPE_C_REPLY);
1,583,743
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("USAGE: FeatureExtractorFactory <language> [--parses] <datasetFile> [<feature1> <feature2> ...]");<NEW_LINE><MASK><NEW_LINE>System.out.println("Output to System.out");<NEW_LINE>System.exit(0);<NEW_LINE>...
System.out.println("<language> can be one of: en_US, ja_JP, zh_CH, zh_TW");
1,032,054
protected void ensureKnown(Address min, Address max) {<NEW_LINE>if (minAddress == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>min = cmax(min, minAddress);<NEW_LINE>max = cmin(max, maxAddress);<NEW_LINE>if (known.contains(min, max)) {<NEW_LINE>// hits++;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// misses++;<NEW_LINE>Addres...
known.add(min, maxAddress);
501,744
public void handleCommand(final Namespace ns, final Manager m, final OutputWriter outputWriter) throws CommandException {<NEW_LINE>final var groupId = CommandUtil.getGroupId(ns.getString("group-id"));<NEW_LINE>var groupAdmins = CommandUtil.getSingleRecipientIdentifiers(ns.getList("admin"), m.getSelfNumber());<NEW_LINE>...
logger.debug("Deleting group {}", groupId);
107,566
public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>if (event.getPlayerId().equals(getControllerId())) {<NEW_LINE>// activated ability<NEW_LINE>if (event.getType() == GameEvent.EventType.ACTIVATED_ABILITY) {<NEW_LINE>StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getSourc...
) + UnboundFlourishing.needPrefix, spell);
454,927
public static <T extends ImageBase<T>> void abs(T input, T output) {<NEW_LINE>if (input instanceof ImageGray) {<NEW_LINE>if (GrayS8.class == input.getClass()) {<NEW_LINE>PixelMath.abs((GrayS8<MASK><NEW_LINE>} else if (GrayS16.class == input.getClass()) {<NEW_LINE>PixelMath.abs((GrayS16) input, (GrayS16) output);<NEW_LI...
) input, (GrayS8) output);
367,383
public static ClientMessage encodeRequest(com.hazelcast.cp.internal.RaftGroupId groupId, java.lang.String name, long sessionId, long threadId, java.util.UUID invocationUid) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(true);<NEW_LINE>clientMessage.setOper...
.content, PARTITION_ID_FIELD_OFFSET, -1);
1,747,847
private <T> Observable<T> stream(Type returnType, Class<?> returnClass, String method, Object... args) {<NEW_LINE>String invocationId;<NEW_LINE>InvocationRequest irq;<NEW_LINE>this.state.lock();<NEW_LINE>try {<NEW_LINE>if (this.state.getHubConnectionState() != HubConnectionState.CONNECTED) {<NEW_LINE>throw new RuntimeE...
method, args, invocationId, true);
1,341,402
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#find(java.lang.Class,<NEW_LINE>* java.lang.Object)<NEW_LINE>*/<NEW_LINE>public Object find(Class entityClass, Object key) {<NEW_LINE>EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityCl...
builder.append(SparkQueryConstants.EQUALS);
1,638,629
private void updateClassification() {<NEW_LINE>// for (var viewer : qupath.getViewers()) {<NEW_LINE>// var imageData = viewer.getImageData();<NEW_LINE>// if (imageData == null) {<NEW_LINE>// selectedOverlay.set(null);<NEW_LINE>// viewer.resetCustomPixelLayerOverlay();<NEW_LINE>// }<NEW_LINE>// }<NEW_LINE>var channel = ...
var previousOverlay = selectedOverlay.get();
13,642
private void createRfQPriceChangeEvent(final IContextAware context, final I_PMM_Product pmmProduct, final SyncRfQPriceChangeEvent syncPriceChangeEvent) {<NEW_LINE>logger.debug("Creating event from {} ({})", syncPriceChangeEvent, pmmProduct);<NEW_LINE>final I_PMM_RfQResponse_ChangeEvent event = InterfaceWrapperHelper.ne...
valueOf(event.getPMM_RfQResponse_ChangeEvent_ID());
269,325
final DescribeAssociationExecutionsResult executeDescribeAssociationExecutions(DescribeAssociationExecutionsRequest describeAssociationExecutionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAssociationExecutionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
false), new DescribeAssociationExecutionsResultJsonUnmarshaller());