idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
291,180
private WsdlOperation findOperation() throws Exception {<NEW_LINE>// soapVersion = SoapUtils.deduceSoapVersion( requestContentType,<NEW_LINE>// XmlObject.Factory.parse( getRequestContent() ) );<NEW_LINE>soapVersion = SoapUtils.deduceSoapVersion(requestContentType, XmlUtils.createXmlObject(getRequestContent()));<NEW_LIN...
= new ArrayList<WsdlOperation>();
490,424
public static void primaryKeyRange(PartialRow partialRow, Type type, String primaryKey, String value) {<NEW_LINE>switch(type) {<NEW_LINE>case STRING:<NEW_LINE>partialRow.addString(primaryKey, value);<NEW_LINE>break;<NEW_LINE>case FLOAT:<NEW_LINE>partialRow.addFloat(primaryKey, Float.valueOf(value));<NEW_LINE>break;<NEW...
, Timestamp.valueOf(value));
755,324
public static String replaceWildcardCharacters(final String format, final String projectionOwnerName, final ProjectionAttributeState currentPAS) {<NEW_LINE>if (StringUtils.isNullOrEmpty(format)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>final String ordinal = currentPAS.getOrdinal() != null ? currentPAS.getOrdinal().to...
replace(format, "a", projectionOwnerName);
426,319
final DeleteEventResult executeDeleteEvent(DeleteEventRequest deleteEventRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(deleteEventRequest));
1,090,013
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=372012<NEW_LINE>public void missingNonNullByDefaultAnnotation(TypeDeclaration type) {<NEW_LINE>int severity;<NEW_LINE>CompilationUnitDeclaration compUnitDecl = type.getCompilationUnitDeclaration();<NEW_LINE>String[] arguments;<NEW_LINE>if (compUnitDecl.currentPackage == ...
severity = computeSeverity(IProblem.MissingNonNullByDefaultAnnotationOnType);
671,460
protected void evaluateTables(List<SlimAssertion> assertions, Map<String, Object> instructionResults) throws SlimCommunicationException {<NEW_LINE>for (SlimAssertion a : assertions) {<NEW_LINE>final String key = a.getInstruction().getId();<NEW_LINE>final Object returnValue = instructionResults.get(key);<NEW_LINE>// Exc...
getPageToTest().getName());
1,271,248
// may 5.0<NEW_LINE>private static void checkSupportForArtMethod() throws Exception {<NEW_LINE>try {<NEW_LINE>dexMethodIndexField = getField(artMethodClass, "dexMethodIndex");<NEW_LINE>} catch (NoSuchFieldException e) {<NEW_LINE>// may 4.4<NEW_LINE>dexMethodIndexField = getField(artMethodClass, "methodDexIndex");<NEW_L...
dexCache.getClass(), "resolvedMethods");
1,212,297
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(false);<NEW_LINE>final String sessionId = webSocketData.getSessionId();<NEW_LINE>logger.debug("CONSOLE received from session {}", sessionId);<NEW_LINE>Console console = getWebSocket().getConsole(ConsoleMode.JavaScr...
OutputStreamWritable writeable = new OutputStreamWritable(out);
1,529,655
// We have to post Runnables in a loop. Typically there will be very few callbacks. AccessorMethod<NEW_LINE>// seems to be a false positive<NEW_LINE>@SuppressWarnings({ "WeakerAccess", "PMD.AvoidInstantiatingObjectsInLoops", "PMD.AccessorMethodGeneration" })<NEW_LINE>@Synthetic<NEW_LINE>void notifyCallbacksOfResult() {...
resource, isCacheable, key, resourceListener);
171,195
protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {<NEW_LINE>if (value instanceof MapInfo) {<NEW_LINE>MapInfo info = (MapInfo) value;<NEW_LINE>if (!selected && (info == MapInfo.SEPARATOR || info.type == MapInfo.Type.UNREGISTERED)) {<NEW_LINE>setBac...
File(baseDir.getPath());
1,730,105
private void processMessage(ChannelHandlerContext ctx, NettyMessage msg) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>String remoteIp = getRemoteIp(ctx);<NEW_LINE>Object result;<NEW_LINE>try {<NEW_LINE>result = codec.decode(channel, remoteIp, msg.getData());<NEW_LINE>} catch (Exception e) {<NEW_LINE...
", e:" + e.getMessage());
302,320
final ListOrganizationalUnitsForParentResult executeListOrganizationalUnitsForParent(ListOrganizationalUnitsForParentRequest listOrganizationalUnitsForParentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOrganizationalUnitsForParentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,169,331
public String handleRequest(String event, Context context) {<NEW_LINE>PersistCase perCase = new PersistCase();<NEW_LINE>LambdaLogger logger = context.getLogger();<NEW_LINE>String val = event;<NEW_LINE>logger.log("CASE is about to be assigned " + val);<NEW_LINE>// Create very simple logic to assign case to an employee<N...
logger.log("emailEmp IS " + emailEmp);
766,718
public void write(final Path file, final Distribution configuration, final LoginCallback prompt) throws BackgroundException {<NEW_LINE>final Path container = containerService.getContainer(file);<NEW_LINE>try {<NEW_LINE>if (StringUtils.isNotBlank(configuration.getIndexDocument())) {<NEW_LINE>session.getClient().updateCo...
), container.getName());
1,072,269
public static void declaredFields(Class objectClass, Consumer<Field> fieldConsumer) {<NEW_LINE>Class superclass = objectClass.getSuperclass();<NEW_LINE>if (superclass != null && superclass != Object.class) {<NEW_LINE>declaredFields(superclass, fieldConsumer);<NEW_LINE>}<NEW_LINE>Field[] fields = declaredFieldCache.get(...
] declaredFields = objectClass.getDeclaredFields();
1,475,215
public void visit(BLangTupleVariable varNode) {<NEW_LINE>varNode.typeNode = rewrite(varNode.typeNode, env);<NEW_LINE>// case 1:<NEW_LINE>// [string, int] (a, b) = (tuple)<NEW_LINE>//<NEW_LINE>// any[] x = (tuple);<NEW_LINE>// string a = x[0];<NEW_LINE>// int b = x[1];<NEW_LINE>//<NEW_LINE>// case 2:<NEW_LINE>// [[strin...
tuple.symbol, varNode.expr);
1,318,016
private void initUI() {<NEW_LINE>JLabel label = new JLabel(NLS.str("issues_panel.label"));<NEW_LINE>errorLabel = new JLabel(ERROR_ICON);<NEW_LINE>warnLabel = new JLabel(WARN_ICON);<NEW_LINE>String toolTipText = NLS.str("issues_panel.tooltip");<NEW_LINE>errorLabel.setToolTipText(toolTipText);<NEW_LINE>warnLabel.setToolT...
add(Box.createHorizontalGlue());
1,041,429
private static void tryAssertionTimeWinUnique(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>env.advanceTime(1000);<NEW_LINE>sendEvent(env, "E1", 1);<NEW_LINE>env.assertPropsPerRowIteratorAnyOrder("s0", fields, toArr("E1"));<NEW_LINE>env.assertPropsNew("s0", fields, new O...
("E2", "E3", "E5"));
579,373
private static void genericStopMarketOrder(TradeService tradeService) throws Exception {<NEW_LINE>System.out.println("GENERIC STOP MARKET ORDER...\n");<NEW_LINE>StopOrder stopOrder = new StopOrder.Builder(ORDER_TYPE, PAIR).stopPrice(STOP_PRICE).originalAmount(AMOUNT).build();<NEW_LINE>String uuid = tradeService.placeSt...
"Stop price mismatch: " + returnedStopOrder.getStopPrice());
807,871
public boolean checkIfGameIsOver() {<NEW_LINE>if (state.isGameOver()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int remainingPlayers = 0;<NEW_LINE>int numLosers = 0;<NEW_LINE>for (Player player : state.getPlayers().values()) {<NEW_LINE>if (!player.hasLeft()) {<NEW_LINE>remainingPlayers++;<NEW_LINE>}<NEW_LINE>if (play...
" has won gameId: " + this.getId());
1,651,877
public static void main(String[] args) {<NEW_LINE>Exercise29_DenseGraphs exercise29_denseGraphs = new Exercise29_DenseGraphs();<NEW_LINE>EdgeWeightedGraph edgeWeightedGraph = new EdgeWeightedGraph(5);<NEW_LINE>edgeWeightedGraph.addEdge(new Edge(0, 1, 0.42));<NEW_LINE>edgeWeightedGraph.addEdge(new Edge(0, 3, 0.5));<NEW_...
(2, 3, 0.72));
597,421
private static boolean areArraysEquivalent(Object val1, Object val2, boolean shouldCompareCommonProps) {<NEW_LINE>if (val1 instanceof byte[]) {<NEW_LINE>return Arrays.equals((byte[]) val1, (byte[]) val2);<NEW_LINE>} else if (val1 instanceof short[]) {<NEW_LINE>return Arrays.equals((short[]) val1, (short[]) val2);<NEW_L...
, (boolean[]) val2);
1,143,020
private static Codec createCodec(Format format, MediaFormat mediaFormat, boolean isVideo, boolean isDecoder, @Nullable Surface outputSurface) throws TransformationException {<NEW_LINE>@Nullable<NEW_LINE>MediaCodec mediaCodec = null;<NEW_LINE>@Nullable<NEW_LINE>Surface inputSurface = null;<NEW_LINE>try {<NEW_LINE>mediaC...
MediaCodec.createEncoderByType(format.sampleMimeType);
751,179
private static void transformElements(JRElement[] elements, double scaleX, int offsetX, double scaleY, int offsetY) {<NEW_LINE>if (elements != null) {<NEW_LINE>for (int i = 0; i < elements.length; i++) {<NEW_LINE>JRFillElement element = (JRFillElement) elements[i];<NEW_LINE>if (scaleX != -1d) {<NEW_LINE>element.setX((i...
.getWidth() * scaleX));
567,430
public void execute(TSDB tsdb, HttpQuery query) throws IOException {<NEW_LINE>// the uri will be /api/vX/uid/? or /api/uid/?<NEW_LINE>final String[] uri = query.explodeAPIPath();<NEW_LINE>final String endpoint = uri.length > 1 ? uri[1] : "";<NEW_LINE>if (endpoint.toLowerCase().equals("assign")) {<NEW_LINE>this.handleAs...
this.handleUIDMeta(tsdb, query);
876,832
public BitmapFrame process(OpenGlFrame rawFrame) {<NEW_LINE>// Flip whole image in place<NEW_LINE>ReadableDimension size = rawFrame.getSize();<NEW_LINE>int bpp = rawFrame.getBytesPerPixel();<NEW_LINE>int rowSize = size.getWidth() * bpp;<NEW_LINE>if (row == null || row.length < rowSize) {<NEW_LINE>row = new byte[rowSize...
byte[] rowSwap = this.rowSwap;
1,013,647
// //to multiply 2 matrices.2 matrices and corresponding rows and columns are arguments<NEW_LINE>static void multiply(int[][] a, int[][] b, int m1, int n1, int m2, int n2) {<NEW_LINE>// check if no of columns of first matrix is<NEW_LINE>// equal to number of rows of second matrix<NEW_LINE>if (n1 != m2)<NEW_LINE><MASK><...
System.out.println("Multiplication is not possible");
1,167,311
public Object invoke(Object[] args, ObjectMBean mbean) throws ReflectionException, MBeanException {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("invoke {}.{}({}) {}", mbean, _info.getName(), Arrays.asList(args), _info);<NEW_LINE>try {<NEW_LINE>Object target = mbean.getManagedObject();<NEW_LINE>if (_proxied ||...
_method.invoke(target, args);
1,854,413
public final RelExprContext relExpr() throws RecognitionException {<NEW_LINE>RelExprContext _localctx = new RelExprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 20, RULE_relExpr);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>{<NEW_LINE>setState(194);<NEW_LINE>_lo...
_la = _input.LA(1);
1,592,316
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jLabel1 = <MASK><NEW_LINE>setMinimumSize(new java.awt.Dimension(0, 65));<NEW_LINE>setPreferredSize(new java.awt.Dimension(403, 65));<NEW_LINE>jLabel1.setFont(jLabel1.getFont().deri...
new javax.swing.JLabel();
1,666,725
public void updateStatus(ReconcileGroup reconcileGroup) throws AxelorException {<NEW_LINE>List<Reconcile> reconcileList = this.getReconcileList(reconcileGroup);<NEW_LINE>int status = reconcileGroup.getStatusSelect();<NEW_LINE>if (CollectionUtils.isNotEmpty(reconcileList) && isBalanced(reconcileList) && status == Reconc...
reconcileGroup.setStatusSelect(ReconcileGroupRepository.STATUS_UNLETTERED);
341,226
public ListEventsDetectionJobsResult listEventsDetectionJobs(ListEventsDetectionJobsRequest listEventsDetectionJobsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventsDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMet...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
436,615
protected void match() throws Throwable {<NEW_LINE>if (!jo1.queue().isEmpty() && !jo2.queue().isEmpty() && !jo3.queue().isEmpty() && !jo4.queue().isEmpty() && !jo5.queue().isEmpty()) {<NEW_LINE>Notification<T1> n1 = jo1.queue().peek();<NEW_LINE>Notification<T2> n2 = jo2<MASK><NEW_LINE>Notification<T3> n3 = jo3.queue()....
.queue().peek();
1,599,958
public static void main(String[] args) throws IOException {<NEW_LINE>OsmandRegions or = new OsmandRegions();<NEW_LINE>Locale tw = Locale.CHINA;<NEW_LINE>or.setLocale(tw.getLanguage(), null);<NEW_LINE>// or.setLocale(tw.getLanguage(), tw.getCountry());<NEW_LINE>or.prepareFile("/Users/victorshcherb/osmand/repos/resources...
53.8820, 27.5726, "belarus", "minsk");
1,719,682
private static ErrorDescription enumHint(HintContext ctx, String baseName, String targetTypeName, String key, Fix... fixes) {<NEW_LINE>Element type = ctx.getInfo().getTrees().getElement(ctx.getVariables().get("$param"));<NEW_LINE>if (type == null || type.getKind() != ElementKind.ENUM) {<NEW_LINE>return null;<NEW_LINE>}...
getPath(), displayName, fixes);
1,627,217
private boolean checkUnionTypeAssignment(Tree parent, TypeMirror assigned, MethodInvocationTree union, CompilationUnitTree compilationUnit) {<NEW_LINE>TypeElement firstArgTypeElement = Util.getTypeElement(union.getArguments().get(0));<NEW_LINE>if (firstArgTypeElement != null && util().getQualifiedName(firstArgTypeEleme...
report(parent, JSweetProblem.UNION_TYPE_MISMATCH);
628,915
private Date calculateNextTimeout(Date lastExecution, Date timerCreationTime) {<NEW_LINE>// For 'expiration' based timers, return one of the following:<NEW_LINE>// 1 - first expiration if timer has never run<NEW_LINE>// 2 - null for single action timers that have run<NEW_LINE>// 3 - last scheduled time + interval<NEW_L...
lastExecution.getTime() + interval);
1,853,108
public boolean processCC() throws IllegalArgumentException {<NEW_LINE>log.fine(p_mpp.getHostAddress() + " " + p_mpp.getHostPort() + ", Timeout=" + getTimeout() + "; Proxy=" + p_mpp.getProxyAddress() + " " + p_mpp.getProxyPort() + " " + p_mpp.getProxyLogon() + " " + p_mpp.getProxyPassword());<NEW_LINE>//<NEW_LINE>String...
(p_mp.getCreditCardNumber()));
266,923
final ListTranscriptionJobsResult executeListTranscriptionJobs(ListTranscriptionJobsRequest listTranscriptionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTranscriptionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
539,341
private void doxfr() throws IOException, ZoneTransferException {<NEW_LINE>sendQuery();<NEW_LINE>while (state != END) {<NEW_LINE>byte[] in = client.recv();<NEW_LINE>Message response = parseMessage(in);<NEW_LINE>if (response.getHeader().getRcode() == Rcode.NOERROR && verifier != null) {<NEW_LINE>int error = verifier.veri...
+ Rcode.TSIGstring(error));
882,487
private Object generateJSONSchema(Parameter p) {<NEW_LINE>Map<String, Object> pMap = new HashMap<String, Object>();<NEW_LINE>pMap.put("entity_id", p.getId());<NEW_LINE>pMap.put("type", p.getJSONSchemaDataType());<NEW_LINE>pMap.put("title", p.getName());<NEW_LINE>pMap.put(<MASK><NEW_LINE>String remark = p.getRemark();<N...
"description", p.getRemarkWithoutMockjsRule());
1,800,612
public Request<AllocateHostsRequest> marshall(AllocateHostsRequest allocateHostsRequest) {<NEW_LINE>if (allocateHostsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<AllocateHostsRequest> request = new DefaultRequest<AllocateHostsReques...
(allocateHostsRequest.getInstanceType()));
534,184
public void renderByItem(ItemStack stack, TransformType transformType, PoseStack matrixStackIn, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) {<NEW_LINE>float partialTicks = mc().getFrameTime();<NEW_LINE>if (stack.getItem() instanceof IOBJModelCallback) {<NEW_LINE>IOBJModelCallback<ItemStack> ...
bufferIn, visible, combinedLightIn, combinedOverlayIn);
179,011
private void parse(AbstractCompiler compiler) {<NEW_LINE>RecordingReporterProxy reporter = new RecordingReporterProxy(compiler.getDefaultErrorReporter());<NEW_LINE>try {<NEW_LINE>ParserRunner.ParseResult result = ParserRunner.parse(sourceFile, sourceFile.getCode(), compiler.getParserConfig(sourceFile.isExtern() ? Abstr...
, e.getMessage()));
1,630,576
public void attachVoiceClips(MegaTransfer transfer) {<NEW_LINE>logDebug("attachVoiceClips()");<NEW_LINE>// Find the pending message<NEW_LINE>long id = getPendingMessageIdFromAppData(transfer.getAppData());<NEW_LINE>// Update status and nodeHandle on db<NEW_LINE>dbH.updatePendingMessageOnTransferFinish(id, transfer.getN...
pendMsg.setState(PendingMessageSingle.STATE_ATTACHING);
930,649
public void handleStatement(@Nullable final Statement st) {<NEW_LINE>checkNotNull(st);<NEW_LINE>assert st != null;<NEW_LINE>String subjectString;<NEW_LINE>String objectString;<NEW_LINE>if (st.getSubject() instanceof BNode) {<NEW_LINE>subjectString = st.getSubject().stringValue();<NEW_LINE>// it is not mandatory for BNo...
.getObject().stringValue();
505,509
public final void handleRequest(Request request, BufferedContentChannel requestContent, ResponseHandler responseHandler) {<NEW_LINE>log.log(Level.FINE, () -> "In " + this.getClass() + ".handleRequest()");<NEW_LINE>com.yahoo.jdisc.http.HttpRequest jdiscRequest = asHttpRequest(request);<NEW_LINE>HttpRequest httpRequest =...
.creationTime(TimeUnit.MILLISECONDS));
728,949
// ----- interface ContentAnalyzer -----<NEW_LINE>@Override<NEW_LINE>public void analyzeContent(final Indexable indexable) throws FrameworkException {<NEW_LINE>try (final InputStream is = indexable.getInputStream()) {<NEW_LINE>final App app = StructrApp.getInstance(indexable.getSecurityContext());<NEW_LINE>final AutoDe...
is, handler, metadata, context);
717,950
protected void writeAdditionalAttributes(BaseElement element, BpmnModel model, XMLStreamWriter xtw) throws Exception {<NEW_LINE>CallActivity callActivity = (CallActivity) element;<NEW_LINE>if (StringUtils.isNotEmpty(callActivity.getCalledElement())) {<NEW_LINE>xtw.writeAttribute(ATTRIBUTE_CALL_ACTIVITY_CALLEDELEMENT, c...
(callActivity.isInheritVariables()));
835,137
public ApiResponse<MediaItemContents> publicSharesGetPublicMediaShareContentsWithHttpInfo(String id, Integer pageIndex, Integer pageSize, String sortExpression, Boolean includeParent) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == ...
(id.toString()));
907,313
protected AtomicLong readLastLogId() {<NEW_LINE>String filePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + info.currentFileNum);<NEW_LINE>File f = new File(filePath);<NEW_LINE>try (RandomAccessFile file = new RandomAccessFile(filePath, "r")) {<NEW_LINE>if (!f.exists()) {<NEW_LINE>f.createNewFile(...
return new AtomicLong(recover());
984,983
public static Matrix backSub(Matrix U, Matrix y) {<NEW_LINE>if (y.rows() != U.rows())<NEW_LINE>throw new ArithmeticException("Vector and matrix sizes do not agree");<NEW_LINE>Matrix x = new DenseMatrix(U.cols(<MASK><NEW_LINE>double[] x_col_k = new double[y.rows()];<NEW_LINE>final int start = Math.min(U.rows(), U.cols()...
), y.cols());
1,824,294
public CancelSpotFleetRequestsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CancelSpotFleetRequestsResult cancelSpotFleetRequestsResult = new CancelSpotFleetRequestsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>i...
().unmarshall(context));
1,464,796
private void bitrv216(double[] a, int offa) {<NEW_LINE>double x1r, x1i, x2r, x2i, x3r, x3i, x4r, x4i, x5r, x5i, x7r, x7i, x8r, x8i, x10r, x10i, x11r, x11i, x12r, x12i, x13r, x13i, x14r, x14i;<NEW_LINE>x1r = a[offa + 2];<NEW_LINE>x1i = a[offa + 3];<NEW_LINE>x2r = a[offa + 4];<NEW_LINE>x2i = a[offa + 5];<NEW_LINE>x3r = a...
a[offa + 26] = x11r;
747,742
public void keyPressed(KeyEvent e) {<NEW_LINE>Point p = getViewport().getViewLocation();<NEW_LINE>int dy = getFont().getFontData()[0].getHeight();<NEW_LINE>int dx = dy * 3 / 2;<NEW_LINE>boolean mirrored = (e.widget.getStyle() & SWT.MIRRORED) != 0;<NEW_LINE>if (e.keyCode == SWT.ARROW_DOWN) {<NEW_LINE>scrollToY(p.y + dy ...
scrollToX(p.x - dx);
82,336
public static ServiceSpecification generate(Iterable<ServiceInfo> services, Function<TypeSignature, ? extends NamedTypeInfo> namedTypeInfoFactory) {<NEW_LINE>if (Iterables.isEmpty(services)) {<NEW_LINE>return emptyServiceSpecification;<NEW_LINE>}<NEW_LINE>// Collect all named types referred by the services.<NEW_LINE>fi...
), exceptions.values());
1,078,990
private List<RowRecogNFAStateEntry> rankEndStatesMultiPartition(List<RowRecogNFAStateEntry> endStates) {<NEW_LINE>if (endStates.isEmpty()) {<NEW_LINE>return endStates;<NEW_LINE>}<NEW_LINE>if (endStates.size() == 1) {<NEW_LINE>return endStates;<NEW_LINE>}<NEW_LINE>// unpartitioned case -<NEW_LINE>if (factory.getDesc().g...
.add((RowRecogNFAStateEntry) value);
1,623,610
private static Macro parseMacroDefinition(AstNode defineLineAst) {<NEW_LINE>var ast = defineLineAst.getFirstChild();<NEW_LINE>var nameNode = <MASK><NEW_LINE>String macroName = nameNode.getTokenValue();<NEW_LINE>var paramList = ast.getFirstDescendant(CppGrammarImpl.parameterList);<NEW_LINE>List<Token> macroParams = para...
ast.getFirstDescendant(CppGrammarImpl.ppToken);
1,189,066
public static double[][] lsfAnalyzeWavFile(String wavFile, LsfFileHeader params) throws UnsupportedAudioFileException, IOException {<NEW_LINE>AudioInputStream inputAudio = AudioSystem.getAudioInputStream(new File(wavFile));<NEW_LINE>params.samplingRate = (int) inputAudio.getFormat().getSampleRate();<NEW_LINE>int ws = (...
skipsize * params.samplingRate + 0.5);
861,524
private Mono<Response<SimInner>> updateTagsWithResponseAsync(String resourceGroupName, String simName, TagsObject parameters, 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."...
error(new IllegalArgumentException("Parameter simName is required and cannot be null."));
954,167
public View render(RenderedAdaptiveCard renderedCard, Context context, FragmentManager fragmentManager, ViewGroup viewGroup, BaseCardElement baseCardElement, ICardActionHandler cardActionHandler, HostConfig hostConfig, RenderArgs renderArgs) throws Exception {<NEW_LINE>TextBlock textBlock = Util.castTo(baseCardElement,...
renderArgs.getContainerStyle(), renderArgs);
1,152,379
public void decode(byte[] a) {<NEW_LINE>ByteBuffer byteBuffer = ByteBuffer.wrap(a);<NEW_LINE>this.transactionId = byteBuffer.getLong();<NEW_LINE>this.branchId = byteBuffer.getLong();<NEW_LINE>int resourceLen = byteBuffer.getInt();<NEW_LINE>if (resourceLen > 0) {<NEW_LINE>byte[] byResource = new byte[resourceLen];<NEW_L...
int xidLen = byteBuffer.getInt();
1,819,501
public static CreateLiveChannelResult parseCreateLiveChannel(InputStream responseBody) throws ResponseParseException {<NEW_LINE>try {<NEW_LINE>Element root = getXmlRootElement(responseBody);<NEW_LINE>CreateLiveChannelResult result = new CreateLiveChannelResult();<NEW_LINE>List<String> publishUrls = new ArrayList<String...
add(urlElem.getText());
44,871
public ResultResponse toMessage(Object object) {<NEW_LINE>if (object instanceof ResponseMessage) {<NEW_LINE><MASK><NEW_LINE>final byte[] byteMessage = responseMessage.getMessage();<NEW_LINE>final Message<TBase<?, ?>> message = SerializationUtils.deserialize(byteMessage, HeaderTBaseDeserializerFactory.DEFAULT_FACTORY, n...
final ResponseMessage responseMessage = (ResponseMessage) object;
515,788
public void querySourceFeatures(String callbackID, @Nullable Expression filter) {<NEW_LINE>if (mSource == null) {<NEW_LINE>WritableMap payload = new WritableNativeMap();<NEW_LINE><MASK><NEW_LINE>AndroidCallbackEvent event = new AndroidCallbackEvent(this, callbackID, payload);<NEW_LINE>mManager.handleEvent(event);<NEW_L...
payload.putString("error", "source is not yet loaded");
91,277
final UpdateRoutingProfileNameResult executeUpdateRoutingProfileName(UpdateRoutingProfileNameRequest updateRoutingProfileNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRoutingProfileNameRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
466,521
final DeleteFleetsResult executeDeleteFleets(DeleteFleetsRequest deleteFleetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFleetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
DeleteFleetsResult>(new DeleteFleetsResultStaxUnmarshaller());
407,214
public void applyWheelTransform() {<NEW_LINE>if (wheelSpatial == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Quaternion localRotationQuat = wheelSpatial.getLocalRotation();<NEW_LINE>Vector3f localLocation = wheelSpatial.getLocalTranslation();<NEW_LINE>if (!applyLocal && wheelSpatial.getParent() != null) {<NEW_LINE>loc...
).mult(localRotationQuat, localRotationQuat);
127,780
final ListRateBasedRulesResult executeListRateBasedRules(ListRateBasedRulesRequest listRateBasedRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRateBasedRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,382,270
private Field[] createIndexableFields(Rectangle bbox) {<NEW_LINE>Field[<MASK><NEW_LINE>int idx = -1;<NEW_LINE>if (hasStored) {<NEW_LINE>fields[++idx] = new StoredField(field_minX, bbox.getMinX());<NEW_LINE>fields[++idx] = new StoredField(field_minY, bbox.getMinY());<NEW_LINE>fields[++idx] = new StoredField(field_maxX, ...
] fields = new Field[fieldsLen];
475,800
public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>LogicalDal logicalDal = (LogicalDal) logicalPlan;<NEW_LINE>SqlSetDefaultRole sqlNode = (SqlSetDefaultRole) logicalDal.getNativeSqlNode();<NEW_LINE>PolarPrivManager manager = PolarPrivManager.getInstance();<NEW_LINE>List<PolarAccount...
) * roles.size());
1,803,577
final DeleteInvitationsResult executeDeleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInvitationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
339,762
private void showPopup(MouseEvent e) {<NEW_LINE>if (e.isPopupTrigger()) {<NEW_LINE>if (popupMenu == null) {<NEW_LINE>popupMenu = new JPopupMenu();<NEW_LINE>popupMenu.add(copy);<NEW_LINE>popupMenu.add(copyAttr);<NEW_LINE>popupMenu.add(cut);<NEW_LINE>popupMenu.add(paste);<NEW_LINE>popupMenu.add(edit);<NEW_LINE>popupMenu....
new Derive("Derive All", null));
71,819
public Pipe_BC8 readFromNBT(NBTBase base) {<NEW_LINE>NBTTagCompound nbt = (NBTTagCompound) base;<NEW_LINE>PipeBehaviour_BC8 behaviour = this.behaviour.readFromNBT(nbt.getTag("behaviour"));<NEW_LINE>Pipe_BC8 pipe = new Pipe_BC8(holder, behaviour, getWorld());<NEW_LINE>NBTTagList list = nbt.getTagList("listeners", 10);<N...
comp = list.getCompoundTagAt(i);
266,233
public com.amazonaws.services.dax.model.TagNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dax.model.TagNotFoundException tagNotFoundException = new com.amazonaws.services.dax.model.TagNotFoundException(null);<NEW_LINE><MASK><NEW_LINE>String cu...
int originalDepth = context.getCurrentDepth();
778,252
public CachePool createCachePool(String poolName, int cacheSize, int expireSeconds) {<NEW_LINE>final Options options = new Options();<NEW_LINE>options.setAllowMmapReads(true).setAllowMmapWrites(true).setCreateIfMissing(true).setCreateMissingColumnFamilies(true);<NEW_LINE>if (cacheSize > 0) {<NEW_LINE>CompactionOptionsF...
db, options, poolName, cacheSize);
135,072
boolean pendingChanges() {<NEW_LINE>if (ui != null) {<NEW_LINE>assert SwingUtilities.isEventDispatchThread();<NEW_LINE><MASK><NEW_LINE>boolean _lifecycle = Boolean.parseBoolean(readFlag(LIFECYCLE_FLAG, Boolean.TRUE.toString()));<NEW_LINE>if (lifecycle != _lifecycle)<NEW_LINE>return true;<NEW_LINE>boolean alloc = outgoi...
boolean lifecycle = lifecycleCheckbox.isSelected();
743,177
private void cancelTaskExecution(TaskExecution taskExecution, String platformName) {<NEW_LINE>String platformNameToUse;<NEW_LINE>if (StringUtils.hasText(platformName)) {<NEW_LINE>platformNameToUse = platformName;<NEW_LINE>} else {<NEW_LINE>TaskExecution platformTaskExecution = taskExecution;<NEW_LINE>TaskDeployment tas...
getTaskExecution(platformTaskExecution.getParentExecutionId());
430,821
final CreateReplicationJobResult executeCreateReplicationJob(CreateReplicationJobRequest createReplicationJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReplicationJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
1,545,290
public static QueryAuthResponse unmarshall(QueryAuthResponse queryAuthResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAuthResponse.setRequestId(_ctx.stringValue("QueryAuthResponse.RequestId"));<NEW_LINE>queryAuthResponse.setCode<MASK><NEW_LINE>queryAuthResponse.setSuccess(_ctx.booleanValue("QueryAuthResponse.Succes...
(_ctx.integerValue("QueryAuthResponse.Code"));
659,570
public void createGhostSlots(List<GhostSlot> slots) {<NEW_LINE>slots.add(new GhostBackgroundItemSlot(slotItemsFull.getItemStacks(<MASK><NEW_LINE>if (getTe().tank.isEmpty() || !getTe().tank.hasFluid(Fluids.XP_JUICE.getFluid())) {<NEW_LINE>slots.add(new GhostBackgroundItemSlot(slotItemsEmpty.getItemStacks(), getSlotFromI...
), getSlotFromInventory(inFull)));
394,161
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>DeleteRequest deleteRequest = new DeleteRequest(request.param("index"), request.param("type")<MASK><NEW_LINE>deleteRequest.routing(request.param("routing"));<NEW_LINE>deleteRequest.parent(request....
, request.param("id"));
1,807,639
final DescribeUsageReportSubscriptionsResult executeDescribeUsageReportSubscriptions(DescribeUsageReportSubscriptionsRequest describeUsageReportSubscriptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUsageReportSubscriptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
484,000
public StatusReason unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StatusReason statusReason = new StatusReason();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,084,108
public static Object[] buildInjections(PainlessMethod painlessMethod, Map<String, Object> constants) {<NEW_LINE>if (painlessMethod.annotations.containsKey(InjectConstantAnnotation.class) == false) {<NEW_LINE>return new Object[0];<NEW_LINE>}<NEW_LINE>List<String> names = ((InjectConstantAnnotation) painlessMethod.annota...
constant = constants.get(name);
1,501,062
public RequestMappingHandlerAdapter repositoryExporterHandlerAdapter(@Qualifier("defaultMessageConverters") List<HttpMessageConverter<?>> defaultMessageConverters, AlpsJsonHttpMessageConverter alpsJsonHttpMessageConverter, SelfLinkProvider selfLinkProvider, PersistentEntityResourceHandlerMethodArgumentResolver persiste...
advices = new ArrayList<>();
362,218
public void parse(String string) {<NEW_LINE>groupSize = 0;<NEW_LINE>minimumFracLength = 0;<NEW_LINE>fracLength = 0;<NEW_LINE>exponentLength = 0;<NEW_LINE>decimalSeparatorRequired = false;<NEW_LINE>multiplier = 1;<NEW_LINE>this.string = string;<NEW_LINE>index = 0;<NEW_LINE>positivePrefix = parseText(false, false);<NEW_L...
negativePrefix = parseText(false, true);
1,597,196
public final MergeMatchedContext mergeMatched() throws RecognitionException {<NEW_LINE>MergeMatchedContext _localctx = new MergeMatchedContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 46, RULE_mergeMatched);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(787)...
_la = _input.LA(1);
1,156,715
public static OrgInfo toOrgInfo(@NonNull final I_AD_OrgInfo record) {<NEW_LINE>final OrgId parentOrgId = record.getParent_Org_ID() > 0 ? OrgId.ofRepoId(record.getParent_Org_ID()) : null;<NEW_LINE>final UserId supervisorId = InterfaceWrapperHelper.isNull(record, I_AD_OrgInfo.COLUMNNAME_Supervisor_ID) ? null : UserId.ofR...
())).build();
72,962
public void process() {<NEW_LINE>try {<NEW_LINE>final InputStream istream = this.<MASK><NEW_LINE>if (istream == null) {<NEW_LINE>System.out.println("Cannot access data set, make sure the resources are available.");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>final DataSet ds = DataSet.load(istream);<NEW_LINE>// The fo...
getClass().getResourceAsStream("/iris.csv");
220,554
final DeleteDataQualityJobDefinitionResult executeDeleteDataQualityJobDefinition(DeleteDataQualityJobDefinitionRequest deleteDataQualityJobDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDataQualityJobDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
981,477
private StratNode<K> buildStratificationTree(final Queue<K> strats) {<NEW_LINE>final K first = strats.poll();<NEW_LINE>if (first == null) {<NEW_LINE>// we are at a leaf<NEW_LINE>return new StratNode<K>();<NEW_LINE>} else {<NEW_LINE>// we are in the middle of the tree<NEW_LINE>final Collection<Object> states = first.get...
<K>(first, subNodes);
1,545,728
protected static byte[] userCodeToBytes(String userCode) {<NEW_LINE>if (userCode.length() > 8) {<NEW_LINE>throw new IllegalArgumentException("User code too long");<NEW_LINE>}<NEW_LINE>byte[] bytes = new byte[8];<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < digitsNbr; ++i) {<NEW_LINE>if (i < userCode.length()) {<NEW_LIN...
int digitsNbr = 2 * bytes.length;
567,399
// / Driver code<NEW_LINE>public static void main(String[] args) {<NEW_LINE>Scanner infile <MASK><NEW_LINE>int w, n, i;<NEW_LINE>System.out.println("Enter the number of elements: ");<NEW_LINE>n = infile.nextInt();<NEW_LINE>System.out.println("Enter the maximum weight of knapsack: ");<NEW_LINE>w = infile.nextInt();<NEW_...
= new Scanner(System.in);
35,091
final BatchUpdateDevicePositionResult executeBatchUpdateDevicePosition(BatchUpdateDevicePositionRequest batchUpdateDevicePositionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchUpdateDevicePositionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
689,407
CompletableFuture<Void> resetIndexes(SessionId sessionId) {<NEW_LINE>RaftSessionState sessionState = sessions.get(sessionId.id());<NEW_LINE>if (sessionState == null) {<NEW_LINE>return Futures.exceptionalFuture(new IllegalArgumentException("Unknown session: " + sessionId));<NEW_LINE>}<NEW_LINE>CompletableFuture<Void> fu...
error().createException());
1,266,585
private void createViaBranchBasedOnIncomingRequest(ViaHeader viaHeader, TransactionUserWrapper tUser) throws SipParseException, IllegalArgumentException {<NEW_LINE>B2buaHelper helper = getB2buaHelper(false, UAMode.UAC);<NEW_LINE>if (helper == null) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.trac...
traceDebug(this, "createViaBranchBasedOnIncomingRequest", "TransactionUser was null, branch will be created randomly on stack");
1,323,709
protected double computeWeighted(double tl_x, double tl_y, double samplePeriod, SparseImageGradient<T, G> g) {<NEW_LINE>// add 0.5 to c_x and c_y to have it round<NEW_LINE>tl_x += 0.5;<NEW_LINE>tl_y += 0.5;<NEW_LINE>double Dx = 0, Dy = 0;<NEW_LINE>int i = 0;<NEW_LINE>for (int y = 0; y < sampleWidth; y++) {<NEW_LINE>int...
Math.atan2(Dy, Dx);
819,940
public Builder mergeFrom(emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify other) {<NEW_LINE>if (other == emu.grasscutter.net.proto.ClientAbilityChangeNotifyOuterClass.ClientAbilityChangeNotify.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.getEntityId() != 0) {<NEW...
bitField0_ = (bitField0_ & ~0x00000001);
86,571
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ...
MessageFactory factory = MessageFactory.newInstance();