idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
14,843
private void updateFieldsFromColor() {<NEW_LINE>int[] hsv = ColorUtils.RGBtoHSV(color);<NEW_LINE>int ch = hsv[0];<NEW_LINE>int cs = hsv[1];<NEW_LINE>int cv = hsv[2];<NEW_LINE>int cr = MathUtils.round(color.r * 255.0f);<NEW_LINE>int cg = MathUtils.round(color.g * 255.0f);<NEW_LINE>int cb = MathUtils.round(color.b * 255....
setValue(hBar.getValue());
855,534
public void execute(BulkRotateParameters parameters) throws TaskException {<NEW_LINE>int currentStep = 0;<NEW_LINE>for (PdfRotationInput input : parameters.getInputSet()) {<NEW_LINE>currentStep++;<NEW_LINE>LOG.debug("Opening {}", input.source);<NEW_LINE>try {<NEW_LINE>documentHandler = input.source.open(documentLoader)...
LOG.debug("Created output on temporary buffer {}", tmpFile);
1,500,532
protected GoExecutor patchExecutor(@NotNull GoExecutor executor) throws ExecutionException {<NEW_LINE>executor.withParameters("test", "-v");<NEW_LINE>executor.withParameterString(myConfiguration.getGoToolParams());<NEW_LINE>switch(myConfiguration.getKind()) {<NEW_LINE>case DIRECTORY:<NEW_LINE>String relativePath = File...
withParameters("-coverprofile=" + myCoverageFilePath, "-covermode=atomic");
339,119
public void run() {<NEW_LINE>try {<NEW_LINE>// Only execute the runnable if the future is not canceled.<NEW_LINE>if (_future.setExecutionThread(Thread.currentThread())) {<NEW_LINE>List<OperationStep> steps = _future<MASK><NEW_LINE>if (!steps.isEmpty() && steps.get(0) instanceof Pending) {<NEW_LINE>((Pending) steps.get(...
.operationProgress().progress();
1,174,264
final ListAssociationsForLicenseConfigurationResult executeListAssociationsForLicenseConfiguration(ListAssociationsForLicenseConfigurationRequest listAssociationsForLicenseConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssociationsForLicenseConfigurationRequest);<NEW_LIN...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,359,514
public static QueryClusterDetailResponse unmarshall(QueryClusterDetailResponse queryClusterDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryClusterDetailResponse.setRequestId(_ctx.stringValue("QueryClusterDetailResponse.RequestId"));<NEW_LINE>queryClusterDetailResponse.setMessage(_ctx.stringValue("QueryCluster...
(_ctx.longValue("QueryClusterDetailResponse.Data.InitCostTime"));
95,411
private void loadNode156() {<NEW_LINE>ServerTypeNode node = new ServerTypeNode(this.context, Identifiers.Server, new QualifiedName(0, "Server"), new LocalizedText("en", "Server"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.valueOf(1));<NEW_LINE>node.addReference(new Reference(Identifiers....
.expanded(), true));
1,176,336
private static GalenPageAction dumpPageActionFrom(String[] args, String originalText) {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("n", "name", true, "Page name");<NEW_LINE>options.addOption("e", "export", true, "Export dir");<NEW_LINE>options.addOption("w", "max-width", true, "Maximal width o...
maxHeight = Integer.parseInt(maxHeightText);
890,125
public void updatedNode(VarNode vn) {<NEW_LINE>Object r = vn.getVariable();<NEW_LINE>if (!(r instanceof Local)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Local receiver = (Local) r;<NEW_LINE>final Context context = vn.context();<NEW_LINE>PointsToSetInternal p2set = vn.getP2Set().getNewSet();<NEW_LINE>if (ofcgb.wantT...
(NewArrayExpr) an.getNewExpr();
317,786
private static void addFragments(Class<?> rasClazz, Object rasptr, final StructureReader structureReader, IVMData vmdata) {<NEW_LINE>try {<NEW_LINE>InputStream in = rasClazz.getResourceAsStream("/fragments/fragments.properties");<NEW_LINE>if (in == null) {<NEW_LINE>Logger logger = <MASK><NEW_LINE>logger.log(FINE, "Fail...
Logger.getLogger(LoggerNames.LOGGER_STRUCTURE_READER);
172,042
private static int readHeaderBuffer(BytesReference headerBuffer) throws IOException {<NEW_LINE>if (headerBuffer.get(0) != 'E' || headerBuffer.get(1) != 'S') {<NEW_LINE>if (appearsToBeHTTPRequest(headerBuffer)) {<NEW_LINE>throw new HttpRequestOnTransportException("This is not an HTTP port");<NEW_LINE>}<NEW_LINE>if (appe...
throw new StreamCorruptedException("received HTTP response on transport port, ensure that transport port (not " + "HTTP port) of a remote node is specified in the configuration");
732,814
private int retrieveInvoiceScheduleId(final I_C_Invoice_Candidate ic) {<NEW_LINE>final IBPartnerDAO bpartnerDAO = Services.get(IBPartnerDAO.class);<NEW_LINE>final InvoiceRule invoiceRule = getInvoiceRule(ic);<NEW_LINE>Check.assume(InvoiceRule.CustomerScheduleAfterDelivery.equals(invoiceRule), "Method is only called if ...
getById(ic.getBill_BPartner_ID());
482,043
public Feed subscribe(User user, String url, String title, FeedCategory category, int position) {<NEW_LINE>final String pubUrl = config<MASK><NEW_LINE>if (StringUtils.isBlank(pubUrl)) {<NEW_LINE>throw new FeedSubscriptionException("Public URL of this CommaFeed instance is not set");<NEW_LINE>}<NEW_LINE>if (url.startsWi...
.getApplicationSettings().getPublicUrl();
767,098
public void marshall(UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateElasticsearchDomainConfigRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LIN...
updateElasticsearchDomainConfigRequest.getDomainName(), DOMAINNAME_BINDING);
1,249,490
public boolean isMinorUpdate() {<NEW_LINE>if (this.dataset.getLatestVersion().isWorkingCopy()) {<NEW_LINE>if (this.dataset.getVersions().size() > 1 && this.dataset.getVersions().get(1) != null) {<NEW_LINE>if (this.dataset.getVersions().get(1).isDeaccessioned()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<...
add(fmdc.getDataFile());
793,414
public void deleteSelections(@NonNull final Set<String> selectionIds) {<NEW_LINE>if (selectionIds.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final SqlViewSelectionQueryBuilder viewQueryBuilder = newSqlViewSelectionQueryBuilder();<NEW_LINE>// Delete selection lines<NEW_LINE>{<NEW_LINE>final SqlAndParams sql = vie...
getSqlParamsArray(), ITrx.TRXNAME_ThreadInherited);
211,330
private void configureAssembleTask(Assemble task, final NativeBinarySpecInternal binary, final LanguageSourceSetInternal sourceSet) {<NEW_LINE>task.setDescription("Assembles the " + sourceSet + " of " + binary);<NEW_LINE>task.getToolChain().set(binary.getToolChain());<NEW_LINE>task.getTargetPlatform().set(binary.getTar...
).get(FileCollectionFactory.class);
225,070
public void updateServerConfiguration(ServerConfiguration serverConfig, RemoteFile file) throws Exception {<NEW_LINE>// write contents to a temporary file<NEW_LINE>RemoteFile newServerFile = LibertyFileManager.createRemoteFile(machine, getServerConfigurationPath() + ".tmp");<NEW_LINE>OutputStream os = newServerFile.ope...
logServerConfiguration(Level.INFO, false);
1,335,572
public PipelineDefinitionS3Location unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PipelineDefinitionS3Location pipelineDefinitionS3Location = new PipelineDefinitionS3Location();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1...
String currentParentElement = context.getCurrentParentElement();
744,241
public void addIntsValue(int[] new_values) {<NEW_LINE>try {<NEW_LINE>this_mon.enter();<NEW_LINE>if (all_values.length < new_values.length) {<NEW_LINE>int[][] new_all_values = new <MASK><NEW_LINE>System.arraycopy(all_values, 0, new_all_values, 0, all_values.length);<NEW_LINE>for (int i = all_values.length; i < new_all_v...
int[new_values.length][];
742,075
public void validateToken() throws IOException {<NEW_LINE>String token = Preferences.get(Login.this.getClass().getName() + "Token", null);<NEW_LINE>if (token == null || !validateToken(token)) {<NEW_LINE>AccessToken accessTok = getAccessToken();<NEW_LINE>if (accessTok != null && accessTok.getRefreshToken() != null) {<NE...
getAccessToken().getToken());
1,281,533
/* (non-Javadoc)<NEW_LINE>* @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite dialogArea = (Composite) super.createDialogArea(parent);<NEW_LINE>if (genericCo...
(2).create());
1,404,293
public static //<NEW_LINE>int loadProgramFromAsset(Context context, String vertexShaderFileName, String fragShaderFileName) {<NEW_LINE>int vertexShader;<NEW_LINE>int fragmentShader;<NEW_LINE>int programObject;<NEW_LINE>int[] linked = new int[1];<NEW_LINE>String vertShaderSrc = null;<NEW_LINE>String fragShaderSrc = null...
Log.e("ESShader", "Error linking program:");
755,270
final ListCrawlersResult executeListCrawlers(ListCrawlersRequest listCrawlersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCrawlersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListCrawlers");
566,518
List<String> checkRelationship(IArchimateRelationship relation) {<NEW_LINE>List<String> messages = new ArrayList<String>();<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>String name = " (" + relation.getId() + ")";<NEW_LINE>// Source missing<NEW_LINE>if (relation.getSource() == null) {<NEW_LINE>String message = Messag...
String message = Messages.ModelChecker_21 + name;
1,283,470
private void showEditPanel() {<NEW_LINE>int selectedRow = librariesTable.getSelectedRow();<NEW_LINE>Library.Version selectedVersion = libraries.get(selectedRow);<NEW_LINE>Library library = libraryInfo.get(selectedVersion.getLibrary().getName());<NEW_LINE>EditPanel editPanel = new EditPanel(library, selectedVersion);<NE...
getDefault().createDialog(descriptor);
1,265,787
JsonNode CollectDiagnostics(Customer c, CollectionLevel callhomeLevel) {<NEW_LINE>ObjectNode payload = Json.newObject();<NEW_LINE>// Build customer details json<NEW_LINE>payload.put("customer_uuid", c.uuid.toString());<NEW_LINE>payload.put("code", c.code);<NEW_LINE>payload.put("email", Users.getAllEmailsForCustomer(c.u...
regions.add(r.name);
1,774,480
boolean isTokenInCachedResultExpired(ProviderAuthenticationResult cachedResult, OidcClientConfig clientConfig) {<NEW_LINE>Hashtable<String, Object> customProperties = cachedResult.getCustomProperties();<NEW_LINE>if (customProperties == null || customProperties.isEmpty()) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>T...
= System.currentTimeMillis() / 1000;
1,354,035
public String readLine() throws IOException {<NEW_LINE>// holds '\n'-free gulps of input<NEW_LINE>StringBuilder s = null;<NEW_LINE>// index of first char<NEW_LINE>int istart;<NEW_LINE>for (; ; ) {<NEW_LINE>// Should we refill the buffer?<NEW_LINE>if (inext >= buflen) {<NEW_LINE>int n;<NEW_LINE>do {<NEW_LINE>n = r.read(...
buf, istart, i - istart);
692,621
private CompletableFuture<SessionDetails> reallyJoin(String realm, List<IAuthenticator> authenticators) {<NEW_LINE>LOGGER.d("Called join() with realm=" + realm);<NEW_LINE>mRealm = realm;<NEW_LINE>mAuthenticators = authenticators;<NEW_LINE>mGoodbyeSent = false;<NEW_LINE>Map<String, Map> roles = new HashMap<>();<NEW_LINE...
, new HashMap<>());
664,179
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>infoLabel = <MASK><NEW_LINE>infoLabel.setFont(infoLabel.getFont().deriveFont((infoLabel.getFont().getStyle() | java.awt.Font.ITALIC)));<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt....
new javax.swing.JLabel();
1,803,567
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>in.defaultReadObject();<NEW_LINE>if (linkType == null) {<NEW_LINE>linkType = JRHyperlinkHelper.getLinkType(HyperlinkTypeEnum.getByValue(hyperlinkType));<NEW_LINE>}<NEW_LINE>if (linkTarget == null) {<NEW_LINE>linkTarget =...
evaluationTimeValue = EvaluationTimeEnum.getByValue(evaluationTime);
968,502
public CorrelationBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>BatchOperator<?> in = checkAndGetFirst(inputs);<NEW_LINE>String[] selectedColNames = this.getParams().get(SELECTED_COLS);<NEW_LINE>if (selectedColNames == null) {<NEW_LINE>selectedColNames = in.getColNames();<NEW_LINE>}<NEW_LINE>// check col type...
= new TypeInformation[selectedColNames.length];
822,602
private static Builder configureStandalone(URI uri) {<NEW_LINE>Builder builder = null;<NEW_LINE>Set<String> allowedSchemes = LettuceSets.unmodifiableSet(URI_SCHEME_REDIS, URI_SCHEME_REDIS_SECURE, URI_SCHEME_REDIS_SOCKET, URI_SCHEME_REDIS_SOCKET_ALT, URI_SCHEME_REDIS_SECURE_ALT, URI_SCHEME_REDIS_TLS_ALT);<NEW_LINE>if (!...
redis(uri.getHost());
963,777
public Void call() throws Exception {<NEW_LINE>final long begin = System.currentTimeMillis();<NEW_LINE>BigdataSailRepositoryConnection conn = null;<NEW_LINE>try {<NEW_LINE>conn = getQueryConnection();<NEW_LINE>// Range count all statements matching that access path.<NEW_LINE>long rangeCount = 0;<NEW_LINE>if (c != null ...
) null).rangeCount(exact);
1,073,834
public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>String[] newArgs = null;<NEW_LINE>if (args.length < 1) {<NEW_LINE>out.println("The time command requires another command to run as an argument.");<NEW_LINE>return;<NEW_LINE>} else if (args.l...
context.execute(commandParser, out);
177,955
private void writeValueTo(BinaryWriter writer, WasmStringPool stringPool, Class<?> type, DataValue target, int index, Object value) {<NEW_LINE>if (type == String.class) {<NEW_LINE>target.setAddress(index, value != null ? stringPool.getStringPointer((String) value) : 0);<NEW_LINE>} else if (type == boolean.class) {<NEW_...
(index, (int) value);
1,337,920
private void generateCallToDefineClass(JClassType type, List<JsNameRef> constructorArgs) {<NEW_LINE>JClassType superClass = type.getSuperClass();<NEW_LINE>JExpression superTypeId = (superClass == null) ? JNullLiteral.INSTANCE : getRuntimeTypeReference(superClass);<NEW_LINE>String jsPrototype = getSuperPrototype(type);<...
(type.getSourceInfo()));
1,448,682
public com.amazonaws.services.lexmodelbuilding.model.BadRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lexmodelbuilding.model.BadRequestException badRequestException = new com.amazonaws.services.lexmodelbuilding.model.BadRequestException(null);...
int originalDepth = context.getCurrentDepth();
1,203,726
public static double estimatePercentageLTE(ServerContext context, String tabletDir, Text prevEndRow, Text endRow, Collection<TabletFile> mapFiles, Text splitRow) throws IOException {<NEW_LINE>Path tmpDir = null;<NEW_LINE>int maxToOpen = context.getConfiguration().getCount(Property.TSERV_TABLET_SPLIT_FINDMIDPOINT_MAXOPE...
= new ArrayList<>(readers);
1,082,846
protected void onPostExecute(Object result) {<NEW_LINE>if (result instanceof StatusLine) {<NEW_LINE>notificationManager.cancel(Util.NOTIFY_UPDATE);<NEW_LINE>StatusLine status = (StatusLine) result;<NEW_LINE>if (status.getStatusCode() == 204) {<NEW_LINE>// No Content<NEW_LINE>String none = mContext.getString(R.string.ti...
0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
1,658,277
public GetOpenIdTokenResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetOpenIdTokenResult getOpenIdTokenResult = new GetOpenIdTokenResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
446,441
public Response variables(SQL sql, SecurityContext securityContext) {<NEW_LINE>try {<NEW_LINE>RequestValidationHandler.validateSQL(sql);<NEW_LINE>PhysicalPlan physicalPlan = serviceProvider.getPlanner().parseSQLToPhysicalPlan(sql.getSql());<NEW_LINE>if (!(physicalPlan instanceof ShowPlan) && !(physicalPlan instanceof Q...
())).build();
398,316
public static ErrorDescription methodInvocation(HintContext ctx) {<NEW_LINE>TreePath p = ctx.getPath();<NEW_LINE>if (p.getLeaf().getKind() != Tree.Kind.METHOD_INVOCATION) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TypeMirror tm = ctx.getInfo().getTrees().getTypeMirror(p);<NEW_LINE>// NOI18N<NEW_LINE>Element el = ctx.g...
getElements().getTypeElement("java.lang.Throwable");
999,061
public static DescribeHaVipsResponse unmarshall(DescribeHaVipsResponse describeHaVipsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeHaVipsResponse.setRequestId(_ctx.stringValue("DescribeHaVipsResponse.RequestId"));<NEW_LINE>describeHaVipsResponse.setPageSize<MASK><NEW_LINE>describeHaVipsResponse.setPageNumber(_...
(_ctx.integerValue("DescribeHaVipsResponse.PageSize"));
1,630,343
public boolean visit(SQLSubqueryTableSource x) {<NEW_LINE>sqlNode = convertToSqlNode(x.getSelect());<NEW_LINE>final String alias = x.getAlias();<NEW_LINE>if (alias != null) {<NEW_LINE>SqlIdentifier aliasIdentifier = new SqlIdentifier(alias, SqlParserPos.ZERO);<NEW_LINE>List<SQLName> columns = x.getColumns();<NEW_LINE>S...
SqlNode[] { sqlNode, aliasIdentifier };
1,084,095
private static String lemmatize(String word, String tag, Morpha lexer, boolean lowercase) {<NEW_LINE>boolean wordHasForbiddenChar = word.indexOf('_') >= 0 || word.indexOf(' ') >= 0 || word.indexOf('\n') >= 0;<NEW_LINE>String quotedWord = word;<NEW_LINE>if (wordHasForbiddenChar) {<NEW_LINE>// choose something unlikely. ...
info("Trying to normalize |" + wordtag + '|');
1,109,862
private void addFileSystemFile(SleuthkitCase skCase, FsContent recycleBinFile, Content parentDir, String fileName, long deletedTime) throws TskCoreException {<NEW_LINE>skCase.addFileSystemFile(recycleBinFile.getDataSourceObjectId(), recycleBinFile.getFileSystemId(), fileName, recycleBinFile.getMetaAddr(), (int) recycle...
), deletedTime, true, parentDir);
1,282,719
public <T extends R> void register(int typeId, ITypeFactory<T> toRegister) {<NEW_LINE>if ((typeId & 0xFFFF0000) != 0) {<NEW_LINE>// $NON-NLS-1$//$NON-NLS-2$<NEW_LINE>throw new IllegalArgumentException("The typeId " + typeId + " does not fit within a short int");<NEW_LINE>}<NEW_LINE>short shortTypeId = (short) typeId;<N...
.getElementClass().getName();
1,303,833
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.vaadin.ui.AbstractComponent#writeDesign(org.jsoup.nodes.Element<NEW_LINE>* , com.vaadin.ui.declarative.DesignContext)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void writeDesign(Element design, DesignContext designContext) {<NEW_LINE>super.writeDesign(desig...
"ContentMode " + getContentMode() + " is not supported by writeDesign");
516,140
protected static // [START iot_send_command]<NEW_LINE>void sendCommand(String deviceId, String projectId, String cloudRegion, String registryName, String data) throws GeneralSecurityException, IOException {<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefault().createScoped(CloudIotScopes.all...
projectId, cloudRegion, registryName, deviceId);
33,121
protected int doWork() {<NEW_LINE>IOUtil.assertFileIsReadable(INPUT);<NEW_LINE>IOUtil.assertFileIsReadable(CLUSTER_FILE);<NEW_LINE>IOUtil.assertFileIsWritable(OUTPUT);<NEW_LINE>final InfiniumEGTFile infiniumEGTFile;<NEW_LINE>try {<NEW_LINE>infiniumEGTFile = new InfiniumEGTFile(CLUSTER_FILE);<NEW_LINE>} catch (IOExcepti...
joiner.add(locusEntry.name);
1,353,729
private static SerdeAndForgeables planBaseNestable(BaseNestableEventType eventType, StatementRawInfo raw, SerdeCompileTimeResolver resolver) {<NEW_LINE>String className;<NEW_LINE>if (eventType instanceof JsonEventType) {<NEW_LINE>String classNameFull = ((JsonEventType) eventType).getDetail().getSerdeClassName();<NEW_LI...
classNameFull.substring(lastDotIndex + 1);
502,816
private void stateChanged() {<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.log(Level.FINE, "Updating the lookup content");<NEW_LINE>Set servers = new HashSet(ServerRegistry.getInstance().getServers());<NEW_LINE>synchronized (LOCK) {<NEW_LINE>for (Iterator<Map.Entry<Server, T>> it = serversMap.entrySet().iterator(); it.hasNext();...
(Server) it.next();
1,079,973
protected void paintComponent(Graphics g) {<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>RenderingHints rh = new RenderingHints(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);<NEW_LINE>g2d.setRenderingHints(rh);<NEW...
0, 0, width, 12);
259,846
public void channelRead(ChannelHandlerContext ctx, Object msg) {<NEW_LINE>if (!(msg instanceof HttpRequest)) {<NEW_LINE>// superclass does not throw<NEW_LINE>ctx.fireChannelRead(msg);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HttpRequestWrapper request = new HttpRequestWrapper((HttpRequest) msg, (InetSocketAddress) ctx.<MAS...
channel().remoteAddress());
217,407
private ListenableFuture<TransportApiResponseMsg> handle(GetResourceRequestMsg requestMsg) {<NEW_LINE>TenantId tenantId = TenantId.fromUUID(new UUID(requestMsg.getTenantIdMSB(), requestMsg.getTenantIdLSB()));<NEW_LINE>ResourceType resourceType = ResourceType.valueOf(requestMsg.getResourceType());<NEW_LINE>String resour...
dataDecodingEncodingService.encode(resource)));
459,407
private static TreeStructComponent internalBuildTreeStructureToSave(UIComponent component) {<NEW_LINE>TreeStructComponent structComp = new TreeStructComponent(component.getClass().getName(), component.getId());<NEW_LINE>// children<NEW_LINE>if (component.getChildCount() > 0) {<NEW_LINE>List<TreeStructComponent> structC...
getChildren().get(i);
516,069
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {<NEW_LINE>checkState();<NEW_LINE>PreparedStatementHolder stmtHolder = null;<NEW_LINE>PreparedStatementKey key = new PreparedStatementKey(sql, getCatalog(), MethodType.Precall_3, resultSetType, resultSetCon...
= new DruidPooledCallableStatement(this, stmtHolder);
1,496,967
private List<String> listApplication(Business business, String applicationFlag) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Application.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<...
Application_.alias), applicationFlag));
737,386
private void registerAccountInternal(@NonNull RegistrationData registrationData, @NonNull VerifyAccountResponse response, @Nullable String pin, @Nullable KbsPinData kbsData) throws IOException {<NEW_LINE>ACI aci = ACI.<MASK><NEW_LINE>PNI pni = PNI.parseOrThrow(response.getPni());<NEW_LINE>boolean hasPin = response.isSt...
parseOrThrow(response.getUuid());
737,723
private static Map<Way, int[]> resortWaysToStopsOrder(List<Way> forwardWays, List<TransportStop> forwardStops) {<NEW_LINE>final Map<Way, int[]> orderWays = new HashMap<<MASK><NEW_LINE>if (forwardWays != null && forwardStops.size() > 0) {<NEW_LINE>// resort ways to stops order<NEW_LINE>for (Way w : forwardWays) {<NEW_LI...
Way, int[]>();
359,987
final ListAssessmentsResult executeListAssessments(ListAssessmentsRequest listAssessmentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssessmentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
73,636
public static ImportRewrite create(CompilationUnit astRoot, boolean restoreExistingImports) {<NEW_LINE>if (astRoot == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw new IllegalArgumentException("AST must not be null");<NEW_LINE>}<NEW_LINE>List existingImport = null;<NEW_LINE>if (restoreExistingImports) {<NEW_LINE>exist...
return new ImportRewrite(astRoot, existingImport);
1,273,740
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ServiceTask.class, BPMN_ELEMENT_SERVICE_TASK).namespaceUri(BPMN20_NS).extendsType(Task.class).instanceProvider(new ModelTypeInstanceProvider<ServiceTask>() {<NEW_LINE><NEW_LINE>public Serv...
namespace(CAMUNDA_NS).build();
393,988
public void validate(SqlValidator validator, SqlValidatorScope scope) {<NEW_LINE>validator.setColumnReferenceExpansion(false);<NEW_LINE>if (GeneralUtil.isNotEmpty(newPartitions)) {<NEW_LINE>List<SqlNode> <MASK><NEW_LINE>partDefs.addAll(newPartitions);<NEW_LINE>int partColCnt = -1;<NEW_LINE>SqlPartitionBy.validatePartit...
partDefs = new ArrayList<>();
1,505,104
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>// We have a menu item to show in action bar.<NEW_LINE>resources = getResources();<NEW_LINE>setHasOptionsMenu(true);<NEW_LINE>syncActionHelper = new SyncActionHelper(getActivity(), this);<NEW_LINE>s...
AstridPreferences.P_UPGRADE_FROM, -1));
144,009
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' w...
localVarContentType, localVarAuthNames, localVarReturnType, false);
444,824
private void countLocalStoresLoadsAndIncrements(int[] localStoreCount, int[] localLoadCount, int[] localIncrementCount, CFG cfg) {<NEW_LINE>for (Iterator<Location> i = cfg.locationIterator(); i.hasNext(); ) {<NEW_LINE>Location location = i.next();<NEW_LINE>if (location.getBasicBlock().isExceptionHandler()) {<NEW_LINE>c...
int local = ins.getIndex();
468,778
private static boolean parse(String value) {<NEW_LINE>String[] lines = value.trim().split("\n");<NEW_LINE>String whitePlayer = "Player 1";<NEW_LINE>String blackPlayer = "Player 2";<NEW_LINE>double komi = 1.5;<NEW_LINE>int handicap = 0;<NEW_LINE>for (String line : lines) {<NEW_LINE>if (line.startsWith("\\[GAMEINFOMAIN="...
fields = line.split(" ");
1,195,753
public static void main(String[] args) {<NEW_LINE>Gateway.<MASK><NEW_LINE>String contractName = "papercontract";<NEW_LINE>// get the name of the contract, in case it is overridden<NEW_LINE>Map<String, String> envvar = System.getenv();<NEW_LINE>if (envvar.containsKey(ENVKEY)) {<NEW_LINE>contractName = envvar.get(ENVKEY)...
Builder builder = Gateway.createBuilder();
801,028
public ImportFirewallDomainsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImportFirewallDomainsResult importFirewallDomainsResult = new ImportFirewallDomainsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
JsonToken token = context.getCurrentToken();
152,675
public void updateBackground(int x0, int y0, int x1, int y1, T frame) {<NEW_LINE>interpolationInput.setImage(frame);<NEW_LINE>final <MASK><NEW_LINE>final float minusLearn = 1.0f - learnRate;<NEW_LINE>transform.setModel(worldToCurrent);<NEW_LINE>for (int y = y0; y < y1; y++) {<NEW_LINE>int indexBG = background.startInde...
int numBands = frame.getNumBands();
938
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean isSynchronized(com.sun.jdi.Method a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExcep...
jpda.jdi.InternalExceptionWrapper(ex);
143,753
public Point findSegment(Point point) {<NEW_LINE>final int sqrStickyDistance <MASK><NEW_LINE>Point bestPoint = null;<NEW_LINE>double bestDistSq = java.lang.Double.MAX_VALUE;<NEW_LINE>if (points.size() < 2) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Point prevPt = points.get(0);<NEW_LINE>for (Point pt : points) {<NEW_L...
= getStickyDistance() * getStickyDistance();
865,979
public static String leftPad(String str, int size, String padStr) {<NEW_LINE>if (str == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (isNullOrEmpty(padStr)) {<NEW_LINE>padStr = " ";<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>int strLen = str.length();<NEW_LINE>int pads = size - strLen;<NEW_LINE>if (pads <= 0) {<NEW_LI...
int padLen = padStr.length();
801,588
public void onStart() {<NEW_LINE>super.onStart();<NEW_LINE>AlertDialog dialog = (AlertDialog) getDialog();<NEW_LINE>// http://stackoverflow.com/a/16972670/1048340<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams...
customButtonStringRes : R.string.cpv_custom);
255,072
public static StatsResults stats(DatasetGraphTDB dsg, Node gn) {<NEW_LINE>NodeTable nt = dsg.getTripleTable().getNodeTupleTable().getNodeTable();<NEW_LINE>StatsCollectorNodeId stats = new StatsCollectorNodeId(nt);<NEW_LINE>if (gn == null) {<NEW_LINE>Iterator<Tuple<NodeId>> iter = dsg.getTripleTable()<MASK><NEW_LINE>for...
.getNodeTupleTable().findAll();
653,077
private CodegenMethod evaluateCodegenRewritten(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField nodeObject = getNodeObject(codegenClassScope);<NEW_LINE>EPType inner = innerForge.getEvaluationType();<NEW_LINE>EPTypeClass evaluationTyp...
declareVar(evaluationType, "result", innerValue);
1,665,455
public void animateTo(final IGeoPoint point, final Double pZoom, final Long pSpeed, final Float pOrientation, final Boolean pClockwise) {<NEW_LINE>// If no layout, delay this call<NEW_LINE>if (!mMapView.isLayoutOccurred()) {<NEW_LINE>mReplayController.animateTo(point, pZoom, pSpeed, pOrientation, pClockwise);<NEW_LINE>...
p.x, p.y);
1,683,221
final ListCertificatesResult executeListCertificates(ListCertificatesRequest listCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
274,290
public Yaml visitMapping(Yaml.Mapping mapping, P p) {<NEW_LINE>Yaml.Mapping m = (Yaml.Mapping) super.visitMapping(mapping, p);<NEW_LINE>boolean changed = false;<NEW_LINE>List<Yaml.Mapping.Entry> <MASK><NEW_LINE>for (Yaml.Mapping.Entry entry : m.getEntries()) {<NEW_LINE>if (entry == scope || (entry.getValue() instanceof...
entries = new ArrayList<>();
1,223,217
private void loadNode855() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditHistoryValueUpdateEventType_OldValues, new QualifiedName(0, "OldValues"), new LocalizedText("en", "OldValues"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL...
.expanded(), true));
151,461
public PbWorld.Builder serializeWorld(World argWorld) {<NEW_LINE>final PbWorld.Builder builder = PbWorld.newBuilder();<NEW_LINE>if (signer != null) {<NEW_LINE>Long tag = signer.getTag(argWorld);<NEW_LINE>if (tag != null) {<NEW_LINE>builder.setTag(tag);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>builder.setGravity(vecToPb(argWorld....
setWarmStarting(argWorld.isWarmStarting());
1,700,423
protected void internalTraverseAttributesByView(View view, Entity entity, EntityAttributeVisitor visitor, Map<Entity, Set<View>> visited, boolean checkLoaded) {<NEW_LINE>Set<View> views = visited.get(entity);<NEW_LINE>if (views == null) {<NEW_LINE><MASK><NEW_LINE>visited.put(entity, views);<NEW_LINE>} else if (views.co...
views = new HashSet<>();
740,295
private void parseIndexHint(MySqlIndexHintImpl hint) {<NEW_LINE>if (lexer.token() == Token.INDEX) {<NEW_LINE>lexer.nextToken();<NEW_LINE>} else {<NEW_LINE>accept(Token.KEY);<NEW_LINE>}<NEW_LINE>if (lexer.token() == Token.FOR) {<NEW_LINE>lexer.nextToken();<NEW_LINE>if (lexer.token() == Token.JOIN) {<NEW_LINE>lexer.nextT...
add(new SQLIdentifierExpr("PRIMARY"));
858,083
public Definition typecheckHeader(Definition typechecked, GlobalInstancePool instancePool, Concrete.Definition definition) {<NEW_LINE>LocalInstancePool localInstancePool = new LocalInstancePool(typechecker);<NEW_LINE>instancePool.setInstancePool(localInstancePool);<NEW_LINE>typechecker.setInstancePool(instancePool);<NE...
new TypecheckingError("Cannot infer the sort of a recursive data type", definition));
671,423
/*<NEW_LINE>* This method calls the filtered stream endpoint and streams Tweets from it<NEW_LINE>* */<NEW_LINE>private static void connectStream(String bearerToken) throws IOException, URISyntaxException {<NEW_LINE>HttpClient httpClient = HttpClients.custom().setDefaultRequestConfig(RequestConfig.custom().setCookieSpec...
String line = reader.readLine();
1,635,245
public ActionRequestValidationException validate() {<NEW_LINE>ActionRequestValidationException validationException = null;<NEW_LINE>if (clusterPrivileges == null) {<NEW_LINE>validationException = addValidationError("clusterPrivileges must not be null", validationException);<NEW_LINE>}<NEW_LINE>if (indexPrivileges == nu...
validationException = addValidationError("indexPrivileges must not be null", validationException);
828,807
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>SystemInformation systemInformation = new SystemInformation();<NEW_LINE>systemInformation.setAppBase(getContainerWrapper().getTomcatContainer().getAppBase().getAbsolutePath());<NEW_LINE>sys...
addObject("collectionPeriod", getCollectionPeriod());
7,913
private void initImpl(String dialogUIID, String dialogTitleUIID, Layout lm) {<NEW_LINE>super.getContentPane().setUIID(dialogUIID);<NEW_LINE>super.getTitleComponent().setText("");<NEW_LINE>super.getTitleComponent().setVisible(false);<NEW_LINE>super.<MASK><NEW_LINE>super.getTitleArea().setUIID("Container");<NEW_LINE>lock...
getTitleArea().setVisible(false);
1,042,684
final PutChannelMembershipPreferencesResult executePutChannelMembershipPreferences(PutChannelMembershipPreferencesRequest putChannelMembershipPreferencesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putChannelMembershipPreferencesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
endClientExecution(awsRequestMetrics, request, response);
1,052,141
final GetTransitGatewayRouteTableAssociationsResult executeGetTransitGatewayRouteTableAssociations(GetTransitGatewayRouteTableAssociationsRequest getTransitGatewayRouteTableAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTransitGatewayRouteTableAssociationsRequest);<NEW_LIN...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
431,438
private static ch.qos.logback.classic.Logger createLogger(String file) {<NEW_LINE>LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();<NEW_LINE>PatternLayoutEncoder ple = new PatternLayoutEncoder();<NEW_LINE>ple.setPattern("%d{yyyy-MM-dd'T'HH:mm:ss.SSS} %msg%n");<NEW_LINE>ple.setContext(lc);<NEW_LINE>p...
Logger) LoggerFactory.getLogger("REQ_LOG");
1,555,815
public void startUntrustedTransction(boolean newTransaction, long inputIndex, BTChipInput[] usedInputList, byte[] redeemScript) throws BTChipException {<NEW_LINE>// Start building a fake transaction with the passed inputs<NEW_LINE>ByteArrayOutputStream data = new ByteArrayOutputStream();<NEW_LINE>BufferUtils.writeBuffe...
write(data, usedInputList.length);
421,294
public void marshall(ScheduledQueryDescription scheduledQueryDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (scheduledQueryDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NE...
scheduledQueryDescription.getArn(), ARN_BINDING);
1,021,619
public boolean doUpdateKeeperActive(String dc, String clusterId, String shardId, KeeperMeta activeKeeper) {<NEW_LINE>if (!valid(activeKeeper)) {<NEW_LINE>logger.info("[updateKeeperActive][keeper information unvalid]{}", activeKeeper);<NEW_LINE>}<NEW_LINE>ShardMeta shardMeta = <MASK><NEW_LINE>if (shardMeta == null) {<NE...
getDirectShardMeta(dc, clusterId, shardId);
1,340,279
private void addStaticFieldsIfPresentAndThenAllVars(@NotNull final XCompositeNode node, @Nullable final BoundVariable thisVar, @NotNull final ElementList<BoundVariable> vars) {<NEW_LINE>if (thisVar == null) {<NEW_LINE>addVars(node, vars);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Object thisVarValue = thisVar.getValue...
.getName(), staticFields));
1,631,018
public static TriggerProfile convertToTriggerProfile(DataConfig dataConfig) {<NEW_LINE>if (!dataConfig.isValid()) {<NEW_LINE>throw new IllegalArgumentException("input dataConfig" + dataConfig + "is invalid please check");<NEW_LINE>}<NEW_LINE>JobProfileDto profileDto = new JobProfileDto();<NEW_LINE>Proxy proxy = getProx...
setVersion(dataConfig.getVersion());
22,035
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " <keyId> <granteePrincipal> <operation> \n\n" <MASK><NEW_LINE>if (args.length != 3) {<NEW_LINE>System.out.println(USAGE);<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>String keyId = args[0];<NEW_LINE>String granteePrincipal =...
+ "Where:\n" + " keyId - the unique identifier for the customer master key (CMK) that the grant applies to. \n\n" + " granteePrincipal - the principal that is given permission to perform the operations that the grant permits. \n\n" + " operation - an operation (for example, Encrypt). \n\n";