idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
993,479
public void testNotSupportedXAOptionA() throws Exception {<NEW_LINE>String deliveryID = "MD_test5a";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTJMSNotSupported", 51);<NEW_LINE>// Add a FVTXAResourceImpl for this delivery.<...
results.getNumberOfMessagesDelivered() == 2);
1,617,934
private void adjustSizeForAbsolute(boolean isHor) {<NEW_LINE>int[] curSizes = isHor ? width : height;<NEW_LINE>Cell absCell = grid.get(null);<NEW_LINE>if (absCell == null || absCell.compWraps.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArrayList<CompWrap> cws = absCell.compWraps;<NEW_LINE>int maxEnd = 0;<NEW_LI...
cw = cws.get(i);
1,558,479
final ModifyVpcEndpointResult executeModifyVpcEndpoint(ModifyVpcEndpointRequest modifyVpcEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyVpcEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
299,637
public int cutOffTree(List<List<Integer>> forest) {<NEW_LINE>if (forest == null || forest.isEmpty() || forest.size() == 0 || forest.get(0).get(0) == 0) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>int m = forest.size();<NEW_LINE>int n = forest.get(0).size();<NEW_LINE>PriorityQueue<Tree> heap = new PriorityQueue<>((a, b) -...
Tree curr = heap.poll();
370,835
private // NOSONAR<NEW_LINE>// NOSONAR<NEW_LINE>void addColumnDateOfLatestHistoricalPrice() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Column column = new Column("10", Messages.ColumnLatestHistoricalDate, SWT.LEFT, 80);<NEW_LINE>column.setMenuLabel(Messages.ColumnLatestHistoricalDate_MenuLabel);<NEW_LINE>column.setGroupLabel(M...
.create(dataProvider::apply));
1,378,987
void draw(Graphics g) {<NEW_LINE>setBbox(point1, point2, 16);<NEW_LINE>setPowerColor(g, true);<NEW_LINE>// draw collector<NEW_LINE>setVoltageColor(g, volts[1]);<NEW_LINE>drawThickLine(g, coll[0], coll[1]);<NEW_LINE>drawThickLine(g, coll2[0], coll2[1]);<NEW_LINE>drawThickLine(g, coll[0], coll2[0]);<NEW_LINE>// draw emit...
(getCurrentIntoNode(0), curcount_b);
637,423
public static void init() {<NEW_LINE>BlockManager blockManager = MinecraftServer.getBlockManager();<NEW_LINE>blockManager.registerBlockPlacementRule(new RedstonePlacementRule());<NEW_LINE>blockManager.registerBlockPlacementRule(new AxisPlacementRule(Block.BONE_BLOCK));<NEW_LINE>blockManager.registerBlockPlacementRule(n...
new WallPlacementRule(Block.COBBLESTONE_WALL));
89,669
static IsNewStrategy basedOn(Neo4jPersistentEntity<?> entityMetaData) {<NEW_LINE>Assert.notNull(entityMetaData, "Entity meta data must not be null.");<NEW_LINE><MASK><NEW_LINE>Class<?> valueType = entityMetaData.getRequiredIdProperty().getType();<NEW_LINE>if (idDescription.isExternallyGeneratedId() && valueType.isPrimi...
IdDescription idDescription = entityMetaData.getIdDescription();
281,721
public org.python.Object index(org.python.Object item, org.python.Object start, org.python.Object end) {<NEW_LINE>if (item == null) {<NEW_LINE>throw new org.python.exceptions.TypeError("index() takes at least 1 argument (0 given)");<NEW_LINE>}<NEW_LINE>long st, en;<NEW_LINE>if (start == null || (((org.python.types.Int)...
this.value).size();
1,345,455
public static void main(String[] args) {<NEW_LINE>// This OAuth 2.0 access scope allows for read-only access to the<NEW_LINE>// authenticated user's account, but not other types of account access.<NEW_LINE>List<String> scopes = Lists.newArrayList(YouTubeScopes.YOUTUBE_READONLY);<NEW_LINE>try {<NEW_LINE>// Authorize the...
0]) : getLiveChatId(youtube);
1,231,860
final AssociateNetworkSettingsResult executeAssociateNetworkSettings(AssociateNetworkSettingsRequest associateNetworkSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateNetworkSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
382,653
private static void migrateAllColumnsToSupportMSSQL(Handle handle, List<Map<String, Object>> returnResults) {<NEW_LINE>for (Map<String, Object> result : returnResults) {<NEW_LINE>String dataType = "nvarchar(255)";<NEW_LINE>var maxLength = result.get("max_length").equals("-1") ? "(max)" : "(" + <MASK><NEW_LINE>if (resul...
result.get("max_length") + ")";
1,271,689
public void handleValue(final String value, final PropertiesParserState state) {<NEW_LINE>DrawHandler drawer = state.getDrawer();<NEW_LINE>StateTypeEnum type = StateTypeEnum.valueOf(value.toUpperCase(Locale.ENGLISH));<NEW_LINE>Dimension s = state.getGridElementSize();<NEW_LINE>// IMPORTANT NOTE: Make sure the element l...
createForEllipse(lowerY, h, w);
536,229
final ListResourceRecordSetsResult executeListResourceRecordSets(ListResourceRecordSetsRequest listResourceRecordSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourceRecordSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
389,264
private Object modifyRecord(Table table, Context ctx) {<NEW_LINE>if (param.getType() != IParam.Colon || param.getSubSize() != 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("modify" + mm.getMessage("function.invalidParam"));<NEW_LINE>}<NEW_LINE>IParam sub1 = param.getSub(1);<NEW_L...
pos, seq, false, option);
123,540
public void read(org.apache.thrift.protocol.TProtocol prot, executeFateOperation_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incomi...
.clientImpl.thrift.ThriftNotActiveServiceException();
1,441,719
public void refreshGrailsCommands() {<NEW_LINE>// NOI18N<NEW_LINE>Callable<Process> // NOI18N<NEW_LINE>callable = // NOI18N<NEW_LINE>ExecutionSupport.getInstance().// NOI18N<NEW_LINE>createSimpleCommand("help", GrailsProjectConfig.forProject(project));<NEW_LINE>final HelpLineProcessor lineProcessor = new HelpLineProces...
.currentThread().interrupt();
698,748
public Object calculate(Context ctx) {<NEW_LINE>IParam param = this.param;<NEW_LINE>int level = 0;<NEW_LINE>if (param != null && param.getType() == IParam.Semicolon) {<NEW_LINE>if (param.getSubSize() != 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("derive" + mm.getMessage("funct...
+ mm.getMessage("function.invalidParam"));
1,129,076
private static // }<NEW_LINE>void generateDelegateMethods(EclipseNode typeNode, List<BindingTuple> methods, DelegateReceiver delegateReceiver) {<NEW_LINE>CompilationUnitDeclaration top = (CompilationUnitDeclaration) typeNode.top().get();<NEW_LINE>List<MethodDeclaration> addedMethods = new ArrayList<MethodDeclaration>()...
.get()).scope);
991,008
// CHECKSTYLE:OFF<NEW_LINE>private void reportOnCacheInformations() {<NEW_LINE>// NOPMD<NEW_LINE>// CHECKSTYLE:ON<NEW_LINE>final List<CacheInformations> cacheInformationsList = javaInformations.getCacheInformationsList();<NEW_LINE>final Map<String, CacheInformations> cacheInfos = new LinkedHashMap<<MASK><NEW_LINE>for (...
>(cacheInformationsList.size());
552,239
public void buildTransportStopRouteRow(@NonNull View view, @NonNull TransportStopRoute transportStopRoute, OnClickListener onClickListener) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OsmandApplication app = mapActivity.getMyApplication...
WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
276,351
private void selectEventType(DBPConnectionEventType eventType) {<NEW_LINE>DBRShellCommand command = eventType == null ? null : eventsCache.get(eventType);<NEW_LINE>commandText.setEnabled(command != null && command.isEnabled());<NEW_LINE>showProcessCheck.setEnabled(command != null && command.isEnabled());<NEW_LINE>waitF...
(command.getWorkingDirectory()));
1,320,607
public AccountRecoverySettingType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AccountRecoverySettingType accountRecoverySettingType = new AccountRecoverySettingType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
1,663,548
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_settings_general);<NEW_LINE>settings = new Settings(getBaseContext());<NEW_LINE>final Toolbar toolbar = findViewById(R.id.settings_general_toolbar);<NEW_LINE>setSupportActionBar(to...
findViewById(R.id.general_image_proxy);
150,677
public void init() throws SQLException {<NEW_LINE>//<NEW_LINE>InformationStorage informationStorage = this.appContext.getInstance(InformationStorage.class);<NEW_LINE>JdbcTemplate jdbcTemplate = null;<NEW_LINE>if (informationStorage != null) {<NEW_LINE>jdbcTemplate = new JdbcTemplate(Objects.requireNonNull(informationSt...
tablePrefix = settings.getString("hasor.dataway.settings.dal_db_table_prefix");
1,060,731
public QueryDataSet executeWithoutValueFilter(AggregationPlan aggregationPlan) throws StorageEngineException, IOException, QueryProcessException {<NEW_LINE>Filter timeFilter = null;<NEW_LINE>if (expression != null) {<NEW_LINE>timeFilter = ((GlobalTimeExpression) expression).getFilter();<NEW_LINE>}<NEW_LINE>// TODO use ...
alignedPathToAggrIndexesMap = MetaUtils.groupAlignedSeriesWithAggregations(pathToAggrIndexesMap);
9,495
private void postSummaryComment(String graphqlUrl, Map<String, String> headers, String projectPath, String pullRequestKey, String summary) throws IOException {<NEW_LINE>String login = getLogin(graphqlUrl, headers);<NEW_LINE>String[] paths = projectPath.split("/", 2);<NEW_LINE>String owner = paths[0];<NEW_LINE>String pr...
> repositoryInputObjectBuilder = graphqlProvider.createInputObject();
1,556,755
private Resource.Builder doCreateResourceBuilder() {<NEW_LINE>if (!disableValidation) {<NEW_LINE>checkForNonPublicMethodIssues();<NEW_LINE>}<NEW_LINE>final Class<?> annotatedResourceClass = ModelHelper.getAnnotatedResourceClass(handlerClass);<NEW_LINE>final Path rPathAnnotation = annotatedResourceClass.getAnnotation(Pa...
methodList, resourceClassParameters, keepEncodedParams, extended);
285,077
public List<? extends CodeGenerator> create(Lookup context) {<NEW_LINE>JTextComponent textComp = context.lookup(JTextComponent.class);<NEW_LINE>ArrayList<CodeGenerator> ret = new ArrayList<>();<NEW_LINE>CGSInfo <MASK><NEW_LINE>if (info.getClassName() != null) {<NEW_LINE>// is the cursor in a class?<NEW_LINE>if (!info.h...
info = CGSInfo.getCGSInfo(textComp);
1,075,726
private void dumpDataTypes(OutputStream debugStream) throws IOException {<NEW_LINE>DataOrganization dataOrganization = program.getCompilerSpec().getDataOrganization();<NEW_LINE>int intSize = dataOrganization.getIntegerSize();<NEW_LINE>int longSize = dataOrganization.getLongSize();<NEW_LINE>StringBuilder buf = new Strin...
toString().getBytes());
999,450
public static NamespaceName compoundName(GroupUseStatementPart groupUseStatementPart, SingleUseStatementPart singleUseStatementPart, boolean baseOffsets) {<NEW_LINE>assert groupUseStatementPart != null;<NEW_LINE>assert singleUseStatementPart != null;<NEW_LINE>assert groupUseStatementPart.getItems().contains(singleUseSt...
), baseNamespaceName.isCurrent());
1,049,626
public void marshall(ChannelBan channelBan, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (channelBan.getMember() != null) {<NEW_LINE>Identity member = channelBan.getMember();<NEW_LINE>jsonWriter.name("Member");<NEW_LINE>IdentityJsonMarshaller.getInstance().marshall(member,...
).marshall(createdBy, jsonWriter);
935,081
public static long toMillis(String rawStr) {<NEW_LINE>if (rawStr == null)<NEW_LINE>throw new NullPointerException("Null argument is not allowed");<NEW_LINE>String str = rawStr.trim() + " ";<NEW_LINE>Matcher matcher = MTI_PATTERN.matcher(str);<NEW_LINE>if (!matcher.matches())<NEW_LINE>throw new IllegalArgumentException(...
("Unknown time unit alias '%s' in '%s'", unitAlias, rawStr));
1,194,749
public void reorderLayerReverse(LayerInterface layer, FrameSet frameSet) {<NEW_LINE>int size = frameSet.size();<NEW_LINE>List<Object[]> frames = new ArrayList<>(size);<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>if (i >= size - i - 1) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>int a = getJdbcTemplate()...
.get(i)) });
1,659,067
private void processBlock(PeerConnection peer, BlockCapsule block) throws P2pException {<NEW_LINE>BlockId blockId = block.getBlockId();<NEW_LINE>if (!tronNetDelegate.containBlock(block.getParentBlockId())) {<NEW_LINE>logger.warn("Get unlink block {} from {}, head is {}.", blockId.getString(), peer.getInetAddress(), tro...
blockId.getString(), headNum);
545,226
public void processSubscriptionStartRequestedDate(final RequestedSubscriptionInternalEvent transition, final InternalCallContext context) {<NEW_LINE>final long dryRunNotificationTime = invoiceConfig.getDryRunNotificationSchedule(context).getMillis();<NEW_LINE>final boolean isInvoiceNotificationEnabled = dryRunNotificat...
processSubscriptionStartRequestedDateWithLock(accountId, transition, context);
702,422
public MergeResult merge(String branch, Sequence<?> commits, Object msg) throws RepoException, ValidationException, EvalException, IOException {<NEW_LINE>ValidationException.checkCondition(!commits.isEmpty(), "At least one commit should be passed to merge");<NEW_LINE>GitRepository withWorktree = this.repo.withWorkTree(...
getActionName(), branch, commits);
229,218
// clears line modification flags except lines which was not stripped because the caret was in the way<NEW_LINE>public void clearLineModificationFlags(@Nonnull Document document) {<NEW_LINE>if (document instanceof DocumentWindow) {<NEW_LINE>document = ((<MASK><NEW_LINE>}<NEW_LINE>if (!(document instanceof DocumentImpl)...
DocumentWindow) document).getDelegate();
1,333,435
public void nettyServerInit() {<NEW_LINE>new Thread(() -> {<NEW_LINE>try {<NEW_LINE>ServerBootstrap serverBootstrap = new ServerBootstrap();<NEW_LINE>// BossGroup the Thread group is responsible for connection events<NEW_LINE>serverBootstrap.group(bossGroup, workGroup).channel(NioServerSocketChannel.class).handler(new ...
ChannelPipeline pipeline = ch.pipeline();
1,180,238
private static void tryAssertionStmt(RegressionEnvironment env, AtomicInteger milestone) {<NEW_LINE>// assert select result type<NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE>assertEquals(String.class, statement.getEventType().getPropertyType("symbol"));<NEW_LINE>assertEquals(Double.class, statement.getEve...
().getPropertyType("myAvedev"));
1,265,395
public void execute() throws UserException {<NEW_LINE>String body = null;<NEW_LINE>try {<NEW_LINE>if (MailSystem.isValidEmailAddress(user.getUsername())) {<NEW_LINE>EmailMessage message = bimServer.getMailSystem().createMessage();<NEW_LINE><MASK><NEW_LINE>InternetAddress addressFrom = new InternetAddress(emailSenderAdd...
String emailSenderAddress = serverSettings.getEmailSenderAddress();
428,973
public static <T> GaussianProcessRegression<T> fit(T[] x, double[] y, T[] t, MercerKernel<T> kernel, double noise, boolean normalize) {<NEW_LINE>if (x.length != y.length) {<NEW_LINE>throw new IllegalArgumentException(String.format("The sizes of X and Y don't match: %d != %d", x.length, y.length));<NEW_LINE>}<NEW_LINE>i...
[i] - mean) / sd;
845,966
protected void parseParams(String k, String v) {<NEW_LINE>k = StringUtils.upperCase(k);<NEW_LINE>switch(k) {<NEW_LINE>case RplConstants.MASTER_HOST:<NEW_LINE>params.put(RplConstants.MASTER_HOST, v);<NEW_LINE>break;<NEW_LINE>case RplConstants.MASTER_PORT:<NEW_LINE>params.put(RplConstants.MASTER_PORT, v);<NEW_LINE>break;...
put(RplConstants.MASTER_PASSWORD, v);
1,569,587
private void createTryCatch(polyglot.ast.Try tryStmt) {<NEW_LINE>// try<NEW_LINE>polyglot.ast.Block tryBlock = tryStmt.tryBlock();<NEW_LINE>// this nop is for the fromStmt of try<NEW_LINE>soot.jimple.Stmt noop1 = soot.jimple.Jimple.v().newNopStmt();<NEW_LINE>body.getUnits().add(noop1);<NEW_LINE>if (tryStack == null) {<...
= new Stack<Try>();
1,554,830
public boolean isTargetInterceptor(HttpServletRequest req) throws WebTrustAssociationException {<NEW_LINE>OpenidClientConfig openidClientConfig = openidClientConfigRef.getService();<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "openidClientConfig:(" + openidClientCon...
String authFilterId = openidClientConfig.getAuthFilterId();
929,861
private void generateListConstructorExpr(BLangListConstructorExpr listConstructorExpr) {<NEW_LINE>// Emit create array instruction<NEW_LINE>BIRVariableDcl tempVarDcl = new BIRVariableDcl(listConstructorExpr.getBType(), this.env.nextLocalVarId(names), VarScope.FUNCTION, VarKind.TEMP);<NEW_LINE>this.env.enclFunc.localVar...
getReferredType(listConstructorExpr.getBType());
528,720
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {<NEW_LINE>super.onLayout(changed, left, top, right, bottom);<NEW_LINE>final float density = getContext().getResources().getDisplayMetrics().density;<NEW_LINE>mDiameter = Math.min(getMeasuredWidth(), getMeasuredHeight());<NEW_LINE>if (mD...
LAYER_TYPE_SOFTWARE, mBgCircle.getPaint());
8,686
public Request<ModifyEventSubscriptionRequest> marshall(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest) {<NEW_LINE>if (modifyEventSubscriptionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyEventSubscriptionRequest> r...
request.addParameter("Version", "2014-10-31");
1,115,888
protected void handleSuccessfulPinEntry(@NonNull String pin) {<NEW_LINE>SignalStore.pinValues().setKeyboardType(getPinEntryKeyboardType());<NEW_LINE>SimpleTask.run(() -> {<NEW_LINE>SignalStore.onboarding().clearAll();<NEW_LINE>Stopwatch stopwatch = new Stopwatch("RegistrationLockRestore");<NEW_LINE>ApplicationDependenc...
StorageAccountRestoreJob(), StorageAccountRestoreJob.LIFESPAN);
562,634
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>@Var<NEW_LINE>int size;<NEW_LINE>@Var<NEW_LINE>int i;<NEW_LINE>int version = in.readInt();<NEW_LINE>name = (String) in.readObject();<NEW_LINE>index = in.readInt();<NEW_LINE>size = in.readInt();<NEW_LINE>if (size != NULL_...
(String) in.readObject();
1,457,024
private Optional<InterfacesAndZones> toInterfacesAndZones(Interface_or_zone_namesContext ctx, FortiosStructureUsage usage, boolean pruneAny) {<NEW_LINE>int line <MASK><NEW_LINE>Map<String, Interface> ifacesMap = _c.getInterfaces();<NEW_LINE>Map<String, Zone> zonesMap = _c.getZones();<NEW_LINE>ImmutableSet.Builder<Strin...
= ctx.start.getLine();
1,261,978
protected void createControls(Composite parent) {<NEW_LINE>createLabel(parent, Messages.InfluenceRelationshipSection_0, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);<NEW_LINE>Text text = <MASK><NEW_LINE>text.setMessage(Messages.InfluenceRelationshipSection_2);<NEW_LINE>fTextStrength = new PropertySectionTex...
createSingleTextControl(parent, SWT.NONE);
238,043
private static IonSequence parseSequence(ContainerContext containerContext, CompareContext compareContext, int end, boolean isFirst, IonSequence ionSequence) {<NEW_LINE>while (containerContext.increaseIndex() < end) {<NEW_LINE>Event event = isFirst ? compareContext.getEventStreamFirst().get(containerContext.getIndex())...
setTypeAnnotationSymbols(event.getAnnotations());
171,560
protected void processChanges(List<? extends OWLOntologyChange> changes) {<NEW_LINE>final List<OWLAnnotationProperty> properties = provider.getAnnotationProperties();<NEW_LINE>for (OWLOntologyChange change : changes) {<NEW_LINE>if (change.isAxiomChange() && change.getAxiom().getAxiomType().equals(AxiomType.ANNOTATION_A...
(OWLAnnotationAssertionAxiom) change.getAxiom();
1,111,820
public void marshall(CreateThesaurusRequest createThesaurusRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createThesaurusRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createThesaurusReq...
createThesaurusRequest.getDescription(), DESCRIPTION_BINDING);
923,836
public Object childEvaluate(Parser parser, VariableResolver resolver, String functionName, List<Object> parameters) throws ParserException {<NEW_LINE>if (!MapTool.getParser().isMacroTrusted())<NEW_LINE>throw new ParserException(I18N.getText("macro.function.general.noPerm", functionName));<NEW_LINE>if (!AppPreferences.g...
.getText("macro.function.general.unknownFunction", functionName));
738,413
public void run(WorkingCopy wcopy) throws Exception {<NEW_LINE>wcopy.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>for (Tree t : wcopy.getCompilationUnit().getTypeDecls()) {<NEW_LINE>if (TreeUtilities.CLASS_TREE_KINDS.contains(t.getKind()) && className.equals(((ClassTree) t).getSimpleName().toString())) {<NEW_LINE>Class...
TreeMaker maker = wcopy.getTreeMaker();
1,212,890
public static void main(String[] args) {<NEW_LINE>final ConfigBuilder configBuilder = new ConfigBuilder();<NEW_LINE>if (args.length > 0) {<NEW_LINE>configBuilder.withMasterUrl(args[0]);<NEW_LINE>logger.info("Using master with URL: {}", args[0]);<NEW_LINE>}<NEW_LINE>try (KubernetesClient client = new KubernetesClientBui...
logger.info("Secret resource successfully deleted: {}", isDeleteSuccessful);
312,387
public JSONObject call(String endpoint, HttpMethod method, Object params, String env) {<NEW_LINE>log.info("begin to call endpoint {}", endpoint);<NEW_LINE>Map<String, Object> headers = new HashMap<>();<NEW_LINE>headers.put("x-auth-app", TeslaAuth.DEFAULT_AUTH_APP);<NEW_LINE>headers.put("x-auth-key", TeslaAuth.DEFAULT_A...
data = jsonObject.getJSONObject("data");
1,484,818
public PigRelBuilder group(GroupOption option, Partitioner partitioner, int parallel, Iterable<? extends GroupKey> groupKeys) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final List<GroupKeyImpl> groupKeyList = ImmutableList.copyOf((Iterable) groupKeys);<NEW_LINE>if (groupKeyList.isEmpty()) {<NEW_LINE>throw new I...
predicates = new ArrayList<>();
1,339,041
public void run() {<NEW_LINE>checkParams();<NEW_LINE>// Check if secondary IP is present, and if so, use that for the gflag value.<NEW_LINE>String masterAddresses = getMasterAddresses(true);<NEW_LINE>boolean isTserverTask = taskParams<MASK><NEW_LINE>HostAndPort hp = getHostPort();<NEW_LINE>Map<String, String> gflags = ...
().serverType == ServerType.TSERVER;
129,419
public void updateTopology(String name, String uploadedLocation, String updateConf) throws TException {<NEW_LINE>try {<NEW_LINE>// update jar and conf first<NEW_LINE>checkTopologyActive(data, name, true);<NEW_LINE>String topologyId;<NEW_LINE>StormClusterState stormClusterState = data.getStormClusterState();<NEW_LINE>to...
setupJar(uploadedLocation, topologyId, true);
375,721
protected RunContentDescriptor launch(@NotNull ExecutionEnvironment env) throws ExecutionException {<NEW_LINE>FileDocumentManager.getInstance().saveAllDocuments();<NEW_LINE>// Set our FlutterLaunchMode up in the ExecutionEnvironment.<NEW_LINE>if (RunMode.fromEnv(env).isProfiling()) {<NEW_LINE>FlutterLaunchMode.addToEnv...
(SdkRunConfig) env.getRunProfile();
393,125
private static void tryAssertionBindObjectArr(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum, SupportSubscriberMultirowObjectArrayBase subscriber) {<NEW_LINE>String stmtText = eventRepresentationEnum.getAnnotationTextWJsonProvided(MyLocalJsonProvidedStringInt.class) + " @name('s0') select ...
().getUnderlyingType()));
407,114
public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = BoofSwingUtil.antialiasing(g);<NEW_LINE>g2.setColor(Color.BLACK);<NEW_LINE>g2.setStroke(new BasicStroke(1));<NEW_LINE>double h = getHeight() - 1;<NEW_LINE>double rangeY = maxY - minY;<NEW_LINE>double mh = h * 0.1;<NEW_LI...
(y - minY) / rangeY);
1,469,366
private void calculateTypeClassParameters(Concrete.ReferableDefinition refDef, Definition def) {<NEW_LINE>List<Definition.TypeClassParameterKind> typeClassParameters = new ArrayList<>();<NEW_LINE>if (def instanceof Constructor) {<NEW_LINE>Constructor constructor = (Constructor) def;<NEW_LINE>List<Definition.TypeClassPa...
() : EmptyDependentLink.getInstance();
658,714
private static JFileChooser createFileChooser(final MyActionListener pActionListener) {<NEW_LINE>// Action listener.<NEW_LINE>final MyActionListener mActionListener = pActionListener;<NEW_LINE>// Create a file chooser.<NEW_LINE>final JFileChooser fc = new JFileChooser();<NEW_LINE>fc.setFileSelectionMode(JFileChooser.DI...
assert pEvent.getSource() instanceof JFileChooser;
1,534,488
public void start() throws LifecycleException {<NEW_LINE>if (!initialized)<NEW_LINE>init();<NEW_LINE>// Validate and update our current component state<NEW_LINE>if (started) {<NEW_LINE>if (log.isLoggable(Level.INFO)) {<NEW_LINE>log.log(Level.INFO, LogFacade.MANAGER_STARTED_INFO);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<...
SEVERE, LogFacade.LOADING_SESSIONS_EXCEPTION, t);
718,293
public void save(OnSaveLogListener listener) {<NEW_LINE>File dir = getLogDir();<NEW_LINE>if (dir == null) {<NEW_LINE>listener.onError("Can't save logs. External storage is not mounted. " + "Check android.permission.WRITE_EXTERNAL_STORAGE permission");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileWriter fileWriter = null;<N...
entry.prettyPrint() + "\n");
1,650,684
public static CompilationUnitDeclaration parse(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, NodeSearcher nodeSearcher, Map settings, int flags) {<NEW_LINE>if (sourceUnit == null) {<NEW_LINE>throw new IllegalStateException();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>boolean statementsRecovery = (flags &...
CompilerOptions compilerOptions = new CompilerOptions(settings);
553,446
private boolean tokenCheckPass(@Nullable String tokenSting) {<NEW_LINE>if (tokenSting == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>switch(tokenSting.length()) {<NEW_LINE>case 16:<NEW_LINE>token = tokenSting.getBytes();<NEW_LINE>return true;<NEW_LINE>case 32:<NEW_LINE>if (!IGNORED_TOKENS.contains(tokenSting)) {...
Utils.hexStringToByteArray(tokenSting)));
1,081,496
protected void findObjectsByMask(@NotNull GenericExecutionContext executionContext, @NotNull JDBCSession session, @NotNull DBSObjectType objectType, @NotNull ObjectsSearchParams params, @NotNull List<DBSObjectReference> references) throws DBException, SQLException {<NEW_LINE>DBSObject parentObject = params.getParentObj...
boolean globalSearch = params.isGlobalSearch();
444,756
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>final GridLayout gridLayout = new GridLayout(1, false);<NEW_LINE>composite.setLayout(gridLayout);<NEW_LINE>final Group container = new <MASK><NEW_LINE>container.setLayout(new GridLa...
Group(composite, SWT.NONE);
558,346
private boolean isVisible(final Projection pProjection) {<NEW_LINE>// projecting the center and a corner of the bounding box to the screen, close to the screen center<NEW_LINE>final BoundingBox boundingBox = getBounds();<NEW_LINE>pProjection.toProjectedPixels(boundingBox.getCenterLatitude(), boundingBox.getCenterLongit...
getProjectedPowerDifference(), true, mVisibilityRectangleCorner);
438,656
public Object compute(Object[] args, ExecutionContext ec) {<NEW_LINE>for (Object arg : args) {<NEW_LINE>if (FunctionUtils.isNull(arg)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Long hour = DataTypes.LongType.convertFrom(args[0]);<NEW_LINE>Long minute = DataTypes.LongType.convertFrom(args[1]);<NEW_LINE>Doub...
div[1] % 1000));
1,279,923
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View rootView = inflater.inflate(R.layout.fragment_post_type_bottom_sheet, container, false);<NEW_LINE>ButterKnife.bind(this, rootView);<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && (getResourc...
) activity).postTypeSelected(TYPE_VIDEO);
433,089
public static DescribeLedgersResponse unmarshall(DescribeLedgersResponse describeLedgersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLedgersResponse.setRequestId(_ctx.stringValue("DescribeLedgersResponse.RequestId"));<NEW_LINE>describeLedgersResponse.setNextToken(_ctx.stringValue("DescribeLedgersResponse.Next...
("DescribeLedgersResponse.Ledgers[" + i + "].ZoneId"));
625,691
public void install(@NotNull final C component) {<NEW_LINE>super.install(component);<NEW_LINE>// Installing ActionMap<NEW_LINE>final UIActionMap actionMap = new UIActionMap();<NEW_LINE>actionMap.put(new Action(component, Action.RESTORE));<NEW_LINE>actionMap.put(new Action(component, Action.CLOSE));<NEW_LINE>actionMap.p...
(component, Action.PREVIOUS_FRAME));
1,606,386
public void parseSelectFields(JoinInfo joinInfo) {<NEW_LINE>String sideTableName = joinInfo.getSideTableName();<NEW_LINE>String nonSideTableName = joinInfo.getNonSideTable();<NEW_LINE>List<String<MASK><NEW_LINE>int sideTableFieldIndex = 0;<NEW_LINE>for (int i = 0; i < outFieldInfoList.size(); i++) {<NEW_LINE>FieldInfo ...
> fields = Lists.newArrayList();
1,589,993
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>Bundle args = Preconditions.checkNotNull(getArguments());<NEW_LINE>photoSize = args.getInt(IMAGE_SIZE_KEY);<NEW_LINE>thumbnail = args.getBoolean(THUMBNAIL_KEY);<NEW_LINE>fullRequest = GlideApp.with(this...
GridLayoutManager(getActivity(), spanCount);
137,807
private boolean addTangents(Grid grid, int rowA, int colA, int rowB, int colB) {<NEW_LINE>EllipseRotated_F64 a = grid.get(rowA, colA);<NEW_LINE>EllipseRotated_F64 b = grid.get(rowB, colB);<NEW_LINE>if (!tangentFinder.process(a, b, A0, A1, A2, A3, B0, B1, B2, B3)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Tangents ta...
countB++].setTo(A3);
1,262,532
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {<NEW_LINE>g.translate(x, y);<NEW_LINE>// NOI18N<NEW_LINE>Color shadowC = UIManager.getColor("controlShadow");<NEW_LINE>// NOI18N<NEW_LINE>Color highlightC = UIManager.getColor("controlLtHighlight");<NEW_LINE>// NOI18N<NEW_LINE>Color <MASK><NE...
middleC = UIManager.getColor("control");
500,455
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(classLoader, className, classfil...
warn("Unsupported method {}", method, e);
374,717
public void collectObjectsFromPoint(PointF point, RotatedTileBox tileBox, List<Object> o, boolean unknownLocation) {<NEW_LINE>if (tileBox.getZoom() >= 3) {<NEW_LINE>TargetPointsHelper tg = getApplication().getTargetPointsHelper();<NEW_LINE>List<TargetPoint> intermediatePoints = tg.getAllPoints();<NEW_LINE>int r = getDe...
), latLon.getLongitude());
953,990
public void testPostCollectionGenericEntityAsEntity(Map<String, String> param, StringBuilder ret) throws Exception {<NEW_LINE>String endpointAddress = getAddress("bookstore/collections3");<NEW_LINE>WebClient wc = WebClient.create(endpointAddress);<NEW_LINE>wc.accept("application/xml");<NEW_LINE>GenericEntity<List<<MASK...
Book>> collectionEntity = createGenericEntity();
708,375
private static void fdctRow(int[] block, int off) {<NEW_LINE>int z0 = block[off + 0] - block[off + 7];<NEW_LINE>int z1 = block[off + 1] - block[off + 6];<NEW_LINE>int z2 = block[off + 2] - block[off + 5];<NEW_LINE>int z3 = block[off + 3] - block[off + 4];<NEW_LINE>int z4 = block[off + 0] + block[off + 7];<NEW_LINE>int ...
= (z4 + z5) * C0;
1,418,894
private static Properties loadClasspathResource(String configFileName) {<NEW_LINE>Properties props = new Properties();<NEW_LINE>try {<NEW_LINE>ClassLoader classLoader = ClassLoaderUtils.getDefaultClassLoader();<NEW_LINE>Set<URL> resources = new LinkedHashSet<>(Collections.list(classLoader.getResources(configFileName)))...
.format("Loading JUnit Platform configuration parameters from classpath resource [%s].", configFileUrl));
1,507,992
public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE><MASK><NEW_LINE>select.setWhereClause(null);<NEW_LINE>String originalQueryString = SQLite3Visitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsString(originalQueryString, errors, state);<NEW_LINE>...
select.setSelectType(SelectType.DISTINCT);
1,639,970
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE><MASK><NEW_LINE>grantNamespacePermission_result result = new grantNamespacePermission_result();<NEW_LINE>if (e instanceof ThriftSecurityException) {<NEW_LINE>result.sec = (ThriftSecurityException...
org.apache.thrift.TSerializable msg;
626,469
protected void encodeFacetColumn(FacesContext context, SubTable table, Column column, String facetName, String styleClass, String text) throws IOException {<NEW_LINE>if (!column.isRendered()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String style = column.getSt...
column.getColspan(), null);
565,066
/*private boolean getField(final PropertyExpression expression, final Expression receiver, ClassNode receiverType, final String name) {<NEW_LINE>boolean safe = expression.isSafe();<NEW_LINE>boolean implicitThis = expression.isImplicitThis();<NEW_LINE><NEW_LINE>if (makeGetField(receiver, receiverType, name, safe, implic...
getOperandStack().push(receiverType);
1,066,498
public void sendArmorUpdate(Player player) {<NEW_LINE>// Ensure that the player is on our pipe<NEW_LINE>if (!isOnPipe(player))<NEW_LINE>return;<NEW_LINE>int armor = 0;<NEW_LINE>for (ItemStack stack : player.getInventory().getArmorContents()) {<NEW_LINE>armor += ArmorType.findById(stack.getTypeId()).getArmorPoints();<NE...
.DOUBLE, (double) armor);
1,295,743
public static TSSASMechConfig decodeIOR(AS_ContextSec context) throws Exception {<NEW_LINE>TSSASMechConfig result = null;<NEW_LINE>if (context.target_supports == 0) {<NEW_LINE>result = new TSSNULLASMechConfig();<NEW_LINE>} else {<NEW_LINE>GSSExportedName name = <MASK><NEW_LINE>if (GSSUPMechOID.value.substring(4).equals...
Util.decodeGSSExportedName(context.target_name);
1,413,124
public JsonError resolveError(Throwable t, Method method, List<JsonNode> arguments) {<NEW_LINE>JsonError error;<NEW_LINE>if (t instanceof InvalidRskAddressException) {<NEW_LINE>error = new JsonError(JsonRpcError.INVALID_PARAMS, "invalid argument 0: hex string has length " + arguments.get(0).asText().replace("0x", "").l...
JsonRpcError.INVALID_PARAMS, "invalid argument 0: json: cannot unmarshal string into value of input", null);
1,095,536
public static byte[] serializeValue(final RetainedMessage retainedMessage) {<NEW_LINE>final byte[] responseTopic = retainedMessage.getResponseTopic() == null ? null : retainedMessage.<MASK><NEW_LINE>final byte[] contentType = retainedMessage.getContentType() == null ? null : retainedMessage.getContentType().getBytes(UT...
getResponseTopic().getBytes(UTF_8);
402,276
public void concat(SegmentHandle target, long offset, String sourceSegment) throws StreamSegmentException {<NEW_LINE>ensureInitializedAndNotClosed();<NEW_LINE>long traceId = LoggerHelpers.traceEnter(log, "concat", target, offset, sourceSegment);<NEW_LINE>target = asWritableHandle(target);<NEW_LINE>// Check for target o...
StorageNotPrimaryException(target.getSegmentName());
8,630
public CurrencyAmount presentValue(OvernightInArrearsCapletFloorletPeriod period, RatesProvider ratesProvider, SabrParametersIborCapletFloorletVolatilities sabrVolatilities) {<NEW_LINE><MASK><NEW_LINE>if (ratesProvider.getValuationDate().isAfter(period.getPaymentDate())) {<NEW_LINE>return CurrencyAmount.of(currency, 0d...
Currency currency = period.getCurrency();
926,679
final ListSchemasResult executeListSchemas(ListSchemasRequest listSchemasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSchemasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListSchemasRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,718,517
void saveWorkToAggregated(int x0, int y0, int dx, int dy, int length, short[] workCostLr) {<NEW_LINE>for (int i = 0, x = x0, y = y0; i < length; i++, x += dx, y += dy) {<NEW_LINE>final int localLengthD = <MASK><NEW_LINE>GrayU16 aggrXD = aggregated.getBand(y);<NEW_LINE>// Lr(i,0)<NEW_LINE>int idxWork = i * lengthD;<NEW_...
helper.localDisparityRangeLeft(x + disparityMin);
209,360
@PostMapping(value = "/dmn-rule/execute-decision/single-result", produces = "application/json")<NEW_LINE>public DmnRuleServiceSingleResponse executeDecisionWithSingleResult(@ApiParam("request") @RequestBody DmnRuleServiceRequest request, HttpServletRequest httpRequest, HttpServletResponse response) {<NEW_LINE>if (reque...
()).variables(inputVariables);