idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,607,213
private void createTable(SinkInfo sinkInfo) {<NEW_LINE>LOG.info("begin to create Oracle table for sinkId={}", sinkInfo.getId());<NEW_LINE>List<StreamSinkFieldEntity> fieldList = fieldEntityMapper.selectBySinkId(sinkInfo.getId());<NEW_LINE>if (CollectionUtils.isEmpty(fieldList)) {<NEW_LINE>LOG.warn("no Oracle fields fou...
sinkInfo.getId() + "]");
1,833,302
public void validate() {<NEW_LINE>super.validate();<NEW_LINE>if (attendees() != null) {<NEW_LINE>attendees().forEach(e -> e.validate());<NEW_LINE>}<NEW_LINE>if (body() != null) {<NEW_LINE>body().validate();<NEW_LINE>}<NEW_LINE>if (end() != null) {<NEW_LINE>end().validate();<NEW_LINE>}<NEW_LINE>if (location() != null) {...
e -> e.validate());
109,203
public synchronized void publish(final LogRecord record) {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>if (controller == null) {<NEW_LINE>// ReportGenerator is not available during controller initialization<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ViewController viewController =...
JComponent statusBar = viewController.getStatusBar();
724,391
protected View createView(MetaClass meta) {<NEW_LINE>View view = new View(meta.getJavaClass(), false);<NEW_LINE>for (MetaProperty metaProperty : meta.getProperties()) {<NEW_LINE>if (!managedFields.containsKey(metaProperty.getName()) && !managedEmbeddedProperties.contains(metaProperty.getName())) {<NEW_LINE>continue;<NE...
addProperty(metaProperty.getName());
1,253,316
private SappAddressRollershutterStatus parseSappAddressStatus(String bindingStringAddress) throws BindingConfigParseException {<NEW_LINE>String pnmasId;<NEW_LINE>SappAddressType addressType;<NEW_LINE>int address;<NEW_LINE>String subAddress;<NEW_LINE>int openValue;<NEW_LINE>int closedValue;<NEW_LINE>String[] bindingAddr...
new BindingConfigParseException(errorMessage(bindingStringAddress));
396,530
protected Tuple2<Object, String> predictResultDetail(SlicedSelectedSample selection) throws Exception {<NEW_LINE>Node[] root = treeModel.roots;<NEW_LINE>Row inputBuffer = inputBufferThreadLocal.get();<NEW_LINE>selection.fillRow(inputBuffer);<NEW_LINE>transform(inputBuffer);<NEW_LINE>int len = root.length;<NEW_LINE>Obje...
labelCounter.getDistributions()[0];
828,296
public Object interpret(ExecutionContext context, boolean debug) {<NEW_LINE>Object lhs = getExpr().interpret(context, debug);<NEW_LINE>if (lhs instanceof Reference) {<NEW_LINE>if (((Reference) lhs).isStrictReference()) {<NEW_LINE>if (((Reference) lhs).getBase() instanceof EnvironmentRecord) {<NEW_LINE>if (((Reference) ...
= oldValue.doubleValue() + 1;
1,251,037
private String transDateFormat(String dateStyle, String datePattern) {<NEW_LINE>String split = "-";<NEW_LINE>if (StringUtils.equalsIgnoreCase(datePattern, "date_sub")) {<NEW_LINE>split = "-";<NEW_LINE>} else if (StringUtils.equalsIgnoreCase(datePattern, "date_split")) {<NEW_LINE>split = "/";<NEW_LINE>} else {<NEW_LINE>...
+ "%m" + split + "%d" + " %H:%i:%S";
1,038,052
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("SPACE", 0, typeFactory.createSqlType(SqlTypeName.INTEGER)));<NEW_LINE>columns.add(new Re...
createSqlType(SqlTypeName.VARCHAR)));
808,123
public static DragstrParams of(final int maxPeriod, final int maxRepeats, final double[][] gop, final double[][] gcp, final double[][] api, final String name) {<NEW_LINE>ParamUtils.isPositive(maxPeriod, "max period must be a positive");<NEW_LINE>ParamUtils.isPositive(maxRepeats, "max repeats must be a positive");<NEW_L...
maxRepeats, gop, gcp, api);
1,500,103
protected ServiceCluster doBuild(DeployState deployState, AbstractConfigProducer<?> ancestor, Element spec) {<NEW_LINE>deployState.getDeployLogger().logApplicationPackage(Level.WARNING, "The 'service' element is deprecated and will be removed in Vespa 8, without replacement.");<NEW_LINE>ServiceCluster cluster = new Ser...
> map = service.getChildren();
424,925
public boolean isLoaded(Object entity, String property) {<NEW_LINE>if (entity instanceof KeyValueEntity) {<NEW_LINE>KeyValueEntity keyValue = (KeyValueEntity) entity;<NEW_LINE>return keyValue.getMetaClass() != null && keyValue.getMetaClass().getProperty(property) != null;<NEW_LINE>}<NEW_LINE>MetaClass metaClass = metad...
metaProperty = metaClass.getPropertyNN(property);
1,820,361
public final void unindex(EntityMetadata metadata, Object id, KunderaMetadata kunderaMetadata, Class<?> parentClazz) throws LuceneIndexingException {<NEW_LINE>if (log.isDebugEnabled())<NEW_LINE>log.debug("Unindexing @Entity[{}] for key:{}", metadata.getEntityClazz().getName(), id);<NEW_LINE>String luceneQuery = null;<N...
log.error("Error while instantiating LuceneIndexer, Caused by :.", e);
1,340,888
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create schema\n" + "MySchemaOne\n" + "(\n" + " col1 Wrong\n" + ");\n" + "create schema\n" + "MySchemaTwo\n" + "(\n" + " col1 WrongTwo\n" + ");\n";<NEW_LINE>try {<NEW_LINE>env.getCompiler().compile<MASK><NEW_LINE>fail();<NEW_LINE>} catch (EPCompileExc...
(epl, new CompilerArguments());
1,630,908
public void execute() {<NEW_LINE>validateRoleParameters();<NEW_LINE>Role role = null;<NEW_LINE>if (getRoleId() != null) {<NEW_LINE>Role existingRole = <MASK><NEW_LINE>if (existingRole == null) {<NEW_LINE>throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Invalid role id provided");<NEW_LINE>}<NEW_LINE>CallContext....
roleService.findRole(getRoleId());
768,943
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
invoke(request, responseHandler, executionContext);
446,554
public io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001...
proto.V1beta1Extensions.DeploymentStrategy(this);
1,355,882
public void showPopup(FixData hints) {<NEW_LINE>JTextComponent comp = getComponent();<NEW_LINE>if (comp == null || (hints.isComputed() && hints.getFixes().isEmpty())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (hintIcon != null)<NEW_LINE>hintIcon.setToolTipText(null);<NEW_LINE>// be sure that hint will hide when popup i...
5, r.y + 20);
180,889
public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {<NEW_LINE>TreeNode inputNode = this.getInputNode();<NEW_LINE><MASK><NEW_LINE>LogicalSubQueryPlan logicalSubQueryPlan = new LogicalSubQueryPlan(contextManager);<NEW_LINE>logicalSubQueryPlan.addLogicalVertex(inputVertex);<NEW_LINE>LogicalVer...
LogicalVertex inputVertex = inputNode.getOutputVertex();
445,291
public UpdateContainerServiceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateContainerServiceResult updateContainerServiceResult = new UpdateContainerServiceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
JsonToken token = context.getCurrentToken();
289,450
private static SnapshotShardFailure constructSnapshotShardFailure(Object[] args) {<NEW_LINE>String index = (String) args[0];<NEW_LINE>String indexUuid = (String) args[1];<NEW_LINE>String nodeId = (String) args[2];<NEW_LINE>String reason = (String) args[3];<NEW_LINE>Integer intShardId = (Integer) args[4];<NEW_LINE>Strin...
nodeId, shardId, nonNullReason, restStatus);
1,162,994
public DeploymentConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeploymentConfig deploymentConfig = new DeploymentConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,290,551
public OUpdateExecutionPlan createExecutionPlan(OCommandContext ctx, boolean enableProfiling) {<NEW_LINE>OUpdateExecutionPlan result = new OUpdateExecutionPlan(ctx);<NEW_LINE>handleTarget(result, ctx, this.target, this.whereClause, this.timeout, enableProfiling);<NEW_LINE>if (updateEdge) {<NEW_LINE>result.chain(new Che...
this.returnAfter, returnProjection, enableProfiling);
808,218
private void generateProcessInfo(String trxName) {<NEW_LINE>if (instance == null)<NEW_LINE>generateProcessInstance();<NEW_LINE>// FR [ 244 ]<NEW_LINE>boolean isSelection = selectedRecordsIds.size() > 0;<NEW_LINE>processInfo = new ProcessInfo(title, <MASK><NEW_LINE>processInfo.setAD_PInstance_ID(instance.getAD_PInstance...
processId, tableId, recordId, isManagedTransaction);
798,653
private List<WarnLog> listWarnLog(EntityManagerContainer emc) throws Exception {<NEW_LINE>EntityManager em = <MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<WarnLog> cq = cb.createQuery(WarnLog.class);<NEW_LINE>Root<WarnLog> root = cq.from(WarnLog.class);<NEW_LINE>Calendar cal = Cal...
emc.get(WarnLog.class);
1,738,294
private void applyAxisCenterConstraint(HashMap<String, ConstraintWidget> idsToConstraintWidgets, ConstraintWidget constraintWidget, int index, int from) {<NEW_LINE>index += from;<NEW_LINE>int target = table[index + OFFSET_CENTER_CONSTRAINT];<NEW_LINE>if (target == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String target...
Type.RIGHT, 0, 0);
1,570,672
public void onClick() {<NEW_LINE>if (onClickCustom != null) {<NEW_LINE>try {<NEW_LINE>onClickCustom.run();<NEW_LINE>} catch (Exception e) {<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Context context = cellGroup.thisFragment.getParentActivity();<NEW_LINE>if (context == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>A...
.getColor(Theme.key_windowBackgroundWhiteHintText));
167,379
private void decodeAnnotations(int offset, boolean runtimeVisible) {<NEW_LINE>int numberOfAnnotations = u2At(offset + 6);<NEW_LINE>if (numberOfAnnotations > 0) {<NEW_LINE>int readOffset = offset + 8;<NEW_LINE>AnnotationInfo[] newInfos = null;<NEW_LINE>int newInfoCount = 0;<NEW_LINE>for (int i = 0; i < numberOfAnnotatio...
0, temp, length, newInfoCount);
228,498
private boolean craftRecipe() {<NEW_LINE>// (1) Find the items to craft with and put a copy into a temp crafting grid;<NEW_LINE>// also record what was used to destroy it later<NEW_LINE>InventoryCrafting inv = new InventoryCrafting(new Container() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean canInteractWith(@...
CraftingManager.getRemainingItems(inv, world);
355,738
final ModifyNetworkInterfaceAttributeResult executeModifyNetworkInterfaceAttribute(ModifyNetworkInterfaceAttributeRequest modifyNetworkInterfaceAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyNetworkInterfaceAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
203,095
public final void start(MatchedEventMap beginState) {<NEW_LINE>AgentInstanceContext agentInstanceContext = evalOrNode<MASK><NEW_LINE>agentInstanceContext.getInstrumentationProvider().qPatternOrStart(evalOrNode.factoryNode, beginState);<NEW_LINE>agentInstanceContext.getAuditProvider().patternInstance(true, evalOrNode.fa...
.getContext().getAgentInstanceContext();
449,204
private void mapOnProbes() {<NEW_LINE>ProbeDescriptorLoader pdl = getProbeDescriptorLoader();<NEW_LINE>for (OnProbe op : delegate.onprobes()) {<NEW_LINE>String ns = op.getNamespace();<NEW_LINE>if (debug.isDebug())<NEW_LINE>debug.debug("about to load probe descriptor for " + ns);<NEW_LINE>// load probe descriptor for th...
setTargetMethodOrFieldParameter(op.getTargetMethodOrFieldParameter());
1,810,200
private final static void processStrictRouting(SipServletRequest inRequest, OutgoingSipServletRequest outRequest, String sessionId) throws SipParseException, ServletParseException {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params <MASK><NEW_LINE>c_logger.traceEntry(RecordRouteProxy.class, "p...
= { inRequest, outRequest, sessionId };
192,640
private void decodeStatus(Position position, ByteBuf buf) {<NEW_LINE>int value = buf.readUnsignedByte();<NEW_LINE>position.set(Position.KEY_IGNITION, BitUtil.check(value, 0));<NEW_LINE>position.set(Position.KEY_DOOR, BitUtil.check(value, 6));<NEW_LINE>value = buf.readUnsignedByte();<NEW_LINE>position.set(Position.KEY_C...
Position.KEY_ALARM, Position.ALARM_GPS_ANTENNA_CUT);
1,037,389
final GetLaunchConfigurationResult executeGetLaunchConfiguration(GetLaunchConfigurationRequest getLaunchConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLaunchConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
1,536,700
protected void executeParse(BpmnParse bpmnParse, EndEvent endEvent) {<NEW_LINE>ActivityImpl endEventActivity = createActivityOnCurrentScope(<MASK><NEW_LINE>EventDefinition eventDefinition = null;<NEW_LINE>if (!endEvent.getEventDefinitions().isEmpty()) {<NEW_LINE>eventDefinition = endEvent.getEventDefinitions().get(0);<...
bpmnParse, endEvent, BpmnXMLConstants.ELEMENT_EVENT_END);
1,807,436
private Document indexCollectionObject(EntityMetadata metadata, Object entity, String parentId, Class<?> clazz, boolean isUpdate, Object rowKey, String attributeName, EmbeddableType embeddableAttribute, ElementCollectionCacheManager ecCacheHandler, int lastEmbeddedObjectCount, Object obj, MetamodelImpl metamodel) {<NEW...
ecCacheHandler.getElementCollectionObjectName(rowKey, obj);
15,418
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
1,850,840
private boolean isBetterDistance(MetaMethod currentMethod, MetaMethod methodToStore) {<NEW_LINE>String currentClassName = currentMethod.getDeclaringClass().getName();<NEW_LINE>String toStoreClassName = methodToStore.getDeclaringClass().getName();<NEW_LINE>// In some cases (e.g. #206610) there is the same distance betwe...
.getDeclaringClass().getSuperClassDistance();
329,216
protected void initSchema(SchemaManager schema) {<NEW_LINE>schema.propertyKey("name").asText().ifNotExist().create();<NEW_LINE>schema.propertyKey("age").asInt().ifNotExist().create();<NEW_LINE>schema.propertyKey("lang").asText().ifNotExist().create();<NEW_LINE>schema.propertyKey("date").asText().ifNotExist().create();<...
.ifNotExist().create();
1,601,715
public void handle(final HttpServletRequest request, final HttpServletResponse response, final HandlerContext context) throws Exception {<NEW_LINE>String requestUri = request.getRequestURI();<NEW_LINE>if (this.enabled && isSecured(requestUri, request.getMethod())) {<NEW_LINE>if (authenticationManager == null) {<NEW_LIN...
debug("Failed to authenticate using credentials {}", credentials, e);
987,844
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {<NEW_LINE>Object...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
98,940
public User createNewUser(String id, String firstName, String lastName, String email, String password, String tenantId) {<NEW_LINE>if (StringUtils.isBlank(id) || StringUtils.isBlank(password) || StringUtils.isBlank(firstName)) {<NEW_LINE>throw new BadRequestException("Id, password and first name are required");<NEW_LIN...
userId(id).singleResult();
371,727
public Object apply(TypeSystem t, Record r) {<NEW_LINE>if (r.size() == 1) {<NEW_LINE>Value value = r.get(0);<NEW_LINE>if (value.hasType(t.LIST())) {<NEW_LINE>aggregated.compareAndSet(false, true);<NEW_LINE>return aggregateList(t, value);<NEW_LINE>} else if (value.hasType(t.PATH())) {<NEW_LINE>aggregated.compareAndSet(f...
t.PATH())));
1,296,965
public boolean testAllocation(final I_C_Payment payment) {<NEW_LINE>BigDecimal alloc = paymentDAO.getAllocatedAmt(payment);<NEW_LINE>// metas: tsa: 01955<NEW_LINE>final boolean hasAllocations = alloc != null;<NEW_LINE>if (alloc == null) {<NEW_LINE>alloc = ZERO;<NEW_LINE>}<NEW_LINE>BigDecimal total = payment.getPayAmt()...
total.compareTo(alloc) == 0;
456,723
public Client call123testSpecialTags(Client body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");<NEW_LIN...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,146,732
public Path resolveSourcePath(SourcePath sourcePath) {<NEW_LINE>if (sourcePath instanceof PathSourcePath) {<NEW_LINE>return projectFilesystem.relativize(pathSourcePathResolverAdapter.getAbsolutePath(sourcePath)).getPath();<NEW_LINE>}<NEW_LINE>Preconditions.checkArgument(sourcePath instanceof BuildTargetSourcePath);<NEW...
"The target '%s' does not have an output.", node.getBuildTarget());
1,241,001
private void newFeeder(Part part) {<NEW_LINE>if (keepUnAppliedFeederConfigurationChanges()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (Configuration.get().getParts().size() == 0) {<NEW_LINE>MessageBoxes.errorBox(getTopLevelAncestor(), "Error", "There are currently no parts defined in the system. Please create at least ...
getMachine().addFeeder(feeder);
1,727,707
private static void transform(Node root) throws IOException {<NEW_LINE>Node node = checkNotNull(root);<NEW_LINE>Node newNode;<NEW_LINE>while (true) {<NEW_LINE>newNode = enterNode(node);<NEW_LINE>if (node.equals(root)) {<NEW_LINE>root = newNode;<NEW_LINE>}<NEW_LINE>node = newNode;<NEW_LINE>if (node.childNodeSize() > 0) ...
node = node.childNode(0);
1,623,798
public static <D extends OpenLineage.Dataset> List<D> fromDataSourceV2Relation(DatasetFactory<D> datasetFactory, OpenLineageContext context, DataSourceV2Relation relation, OpenLineage.DatasetFacetsBuilder datasetFacetsBuilder) {<NEW_LINE>if (relation.identifier().isEmpty()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>Identif...
throw new IllegalArgumentException("Couldn't find identifier for dataset in plan " + relation);
130,024
private List<TextEditGroup> addGetterSetterChanges(CompilationUnit root, ASTRewrite rewriter, String lineDelimiter, boolean usingLocalSetter, boolean usingLocalGetter) throws CoreException {<NEW_LINE>List<TextEditGroup> result <MASK><NEW_LINE>AST ast = root.getAST();<NEW_LINE>FieldDeclaration decl = (FieldDeclaration) ...
= new ArrayList<>(2);
60,682
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.filesystem.secureftp.ISFTPConnectionFileManager#init(java.lang.String, int,<NEW_LINE>* org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IPath, java.lang.String, char[], java.lang.String,<NEW_LINE>* java.lang.String, java.lang.String)<NEW_LINE>*/<NEW_LINE>pu...
"SFTP/PUBLICKEY", login, host, port);
1,347,955
public static void initializeJavaCoreOptions() {<NEW_LINE>Hashtable<String, String> javaCoreOptions = JavaCore.getOptions();<NEW_LINE>javaCoreOptions.put(JavaCore.CODEASSIST_VISIBILITY_CHECK, JavaCore.ENABLED);<NEW_LINE>javaCoreOptions.put(JavaCore.COMPILER_RELEASE, JavaCore.ENABLED);<NEW_LINE>javaCoreOptions.<MASK><NE...
putAll(FormatterHandler.getJavaLSDefaultFormatterSettings());
694,348
private static void showNotification(@NotNull Project project) {<NEW_LINE>PropertiesComponent propertiesComponent = PropertiesComponent.getInstance();<NEW_LINE>PropertiesComponent <MASK><NEW_LINE>boolean shownAlready;<NEW_LINE>// noinspection SynchronizationOnLocalVariableOrMethodParameter<NEW_LINE>synchronized (proper...
projectPropertiesComponent = PropertiesComponent.getInstance(project);
1,582,808
void visit(@NonNull final ClassFile cf) {<NEW_LINE>final ConstantPool constantPool = cf.getConstantPool();<NEW_LINE>// 2. Add field usages<NEW_LINE>for (CPFieldInfo field : constantPool.getAllConstants(CPFieldInfo.class)) {<NEW_LINE>ClassName name = ClassFileUtil.getType(constantPool.getClass(field.getClassID()));<NEW_...
(method.getClassID()));
1,168,276
public void performRanking() {<NEW_LINE>// Reset rankings<NEW_LINE>for (FeatureRank rank : getFeatures()) {<NEW_LINE>rank.setImportancePercent(0);<NEW_LINE>rank.setTotalWeight(0);<NEW_LINE>}<NEW_LINE>if (!(getModel() instanceof BasicNetwork)) {<NEW_LINE>throw new EncogError("This algorithm only works for classes of typ...
network = (BasicNetwork) getModel();
26,261
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets .Composite)<NEW_LINE>*/<NEW_LINE>protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite container = (Composite) super.createDialogArea(parent);<NEW_LINE>((GridLayout) container.getLay...
Label(container, SWT.NONE);
1,157,990
private void visitTagEliminateAllocation(Tag tagEliminateAllocation, IParseDictionary parseDictionary) {<NEW_LINE>List<Tag> childrenJVMS = tagEliminateAllocation.getNamedChildren(TAG_JVMS);<NEW_LINE>String typeID = tagEliminateAllocation.getAttributes().get(ATTR_TYPE);<NEW_LINE>String typeOrKlassName = null;<NEW_LINE>i...
ParseUtil.lookupType(typeID, parseDictionary);
170,407
private static int appendVector(Vector vec, Map<Integer, Double> map, int pos) {<NEW_LINE>if (vec instanceof SparseVector) {<NEW_LINE>SparseVector sv = (SparseVector) vec;<NEW_LINE>if (sv.size() <= 0) {<NEW_LINE>throw new RuntimeException("The append sparse vector must have size.");<NEW_LINE>}<NEW_LINE>int[] idx = sv.g...
j], values[j]);
1,733,625
private void discoverPlugins() {<NEW_LINE>// the constructor of Reflection must be called only by one thread, else there is a<NEW_LINE>// risk that the first thread that completes close the Zip files for the others.<NEW_LINE>// scan all .class present in package classpath<NEW_LINE>final ConfigurationBuilder configurati...
addAliasedPlugins(PluginType.OUTPUT, outputs);
492,369
private void truncate(BitmapFontData fontData, GlyphRun run, float targetWidth, String truncate) {<NEW_LINE>int glyphCount = run.glyphs.size;<NEW_LINE>// Determine truncate string size.<NEW_LINE>GlyphRun truncateRun = glyphRunPool.obtain();<NEW_LINE>fontData.getGlyphs(truncateRun, truncate, 0, truncate.length(), null);...
.glyphCount) colors.size -= 2;
77,686
public void addTypeDefinition(@NotNull SDLDefinition<?> definition) {<NEW_LINE>GraphQLCompositeDefinition<?> builder = getCompositeDefinition(definition);<NEW_LINE>if (builder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (builder instanceof GraphQLDirectiveTypeCompositeDefinition) {<NEW_LINE>((GraphQLDirectiveTyp...
(definition, UnionTypeDefinition.class));
1,834,370
public ExpressionPattern subst(ExprSubstitution exprSubst, LevelSubstitution levelSubst, Map<DependentLink, ExpressionPattern> patternSubst) {<NEW_LINE>List<ExpressionPattern> patterns = new ArrayList<>();<NEW_LINE>for (ExpressionPattern pattern : getSubPatterns()) {<NEW_LINE>patterns.add(pattern.subst(exprSubst, level...
(exprSubst, levelSubst), patterns);
591,620
public static void broadcastEvent(final String name, final String data, final boolean authenticated, final boolean anonymous) {<NEW_LINE>if (anonymous == true && authenticated == true) {<NEW_LINE>broadcastEvent(name, data);<NEW_LINE>} else if (anonymous == true) {<NEW_LINE>// account for multiple open tabs/connections ...
checkedSessionIds.put(sessionId, false);
1,044,065
private static void tryAssertionStreamInsertWWidenMap(RegressionEnvironment env, EventRepresentationChoice rep) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String schemaSrc = rep.getAnnotationTextWJsonProvided(MyLocalJsonProvidedSrc.class) + "@name('schema') @public @buseventtype create schema Src a...
{ 123, "abc", 1d });
557,716
InputStream execute(String cmd, Object... args) throws AgentLoadException, IOException {<NEW_LINE>// includes null<NEW_LINE>assert args.length <= 3;<NEW_LINE>// create a pipe using a random name<NEW_LINE>int r = (new Random()).nextInt();<NEW_LINE>String pipename = "\\\\.\\pipe\\javatool" + r;<NEW_LINE>long hPipe = crea...
PipedInputStream is = new PipedInputStream(hPipe);
22,561
public void reduce(Text key, Iterator<Text> values, OutputCollector<Text, Text> output, Reporter reporter) throws IOException {<NEW_LINE>String field = key.toString();<NEW_LINE>reporter.setStatus("starting " + field + " ::host = " + hostName);<NEW_LINE>// concatenate strings<NEW_LINE>if (field.startsWith("s:") || field...
"finished " + field + " ::host = " + hostName);
934,867
public static void main(String[] args) throws Exception {<NEW_LINE>ArgP argp = new ArgP();<NEW_LINE>CliOptions.addCommon(argp);<NEW_LINE>argp.addOption("--use-data-table", "Scan against the raw data table instead of the meta data table.");<NEW_LINE>args = CliOptions.parse(argp, args);<NEW_LINE>if (args == null) {<NEW_L...
.shutdown().joinUninterruptibly();
1,356,625
private void emitSIMD(AArch64MacroAssembler masm, Register srcChunkAddress, Register destChunkAddress, Register length) {<NEW_LINE>Register destLowV = asRegister(vectorTemp1);<NEW_LINE>Register destHighV = asRegister(vectorTemp2);<NEW_LINE>Label simdLoop = new Label();<NEW_LINE>Label done = new Label();<NEW_LINE>try (A...
mov(64, srcChunkAddress, lastChunkAddress);
864,571
public AviatorObject variadicCall(final Map<String, Object> env, final AviatorObject... args) {<NEW_LINE>if (args == null || args.length == 0) {<NEW_LINE>throw new IllegalArgumentException("Missing className for new");<NEW_LINE>}<NEW_LINE>AviatorObject firstArg = args[0];<NEW_LINE>if (firstArg.getAviatorType() != Aviat...
) env).resolveClassSymbol(className);
200,245
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Permanent permanent = game.getPermanent(source.getFirstTarget());<NEW_LINE>if (controller != null && permanent != null) {<NEW_LINE>FilterPermanent filter = new FilterPermanent();<NEW_LINE>if (CardUtil.haveEmptyName(perma...
getPlayer(source.getControllerId());
770,407
public static void main(String... args) throws Exception {<NEW_LINE>ModelMapper modelMapper = new ModelMapper();<NEW_LINE>modelMapper.getConfiguration().setFieldMatchingEnabled(true).setFieldAccessLevel(AccessLevel.PACKAGE_PRIVATE);<NEW_LINE>modelMapper.addMappings(new PropertyMap<Customer, CustomerDTO>() {<NEW_LINE><N...
= new PaymentInfo(2, "Shipping");
1,504,013
public static String createHtmlDocument(Map<String, Object> style, String text, double scale, int width, String head) {<NEW_LINE>StringBuffer css = new StringBuffer();<NEW_LINE>css.append("font-family:" + getString(style, mxConstants.STYLE_FONTFAMILY, mxConstants.DEFAULT_FONTFAMILIES) + ";");<NEW_LINE>css.append("font-...
append("width:" + width + "px;");
174,295
public void outputToFile(String tempVvFile, String proxyReplacement) throws IOException {<NEW_LINE>File file = new File(tempVvFile);<NEW_LINE>FileOutputStream fos = new FileOutputStream(file);<NEW_LINE>fos.write("[virt-viewer]\n".getBytes());<NEW_LINE>fos.write(("tls-port=" + Integer.toString(tlsPort) + "\n").getBytes(...
+ "\n").getBytes());
1,515,547
synchronized private // of the low level objects directly so we'll play safe.<NEW_LINE>DatasetGraphTxn begin$(TxnType txnType, TxnType originalTxnType, String label) {<NEW_LINE>Objects.requireNonNull(txnType);<NEW_LINE>if (// Guard<NEW_LINE>txnType == TxnType.WRITE && activeWriters.get() > 0)<NEW_LINE>throw new TDBTran...
dsg, txnType, originalTxnType, label);
275,292
private boolean tradeAtFortNewYork() {<NEW_LINE>boolean playerAlive = true;<NEW_LINE>savings -= 105.0;<NEW_LINE>System.out.println();<NEW_LINE>minkPrice = ((.2 * Math.random() + 1.05) * (Math.pow(10, 2) + .5)) / Math.pow(10, 2);<NEW_LINE>foxPrice = ((.2 * Math.random() + 1.1) * (Math.pow(10, 2) + .5)) / Math.pow(10, 2)...
System.out.println("AT FORT NEW YORK.");
1,496,657
static void applyOffsetToTileEntity(CompoundTag tileEntity, Point3i offset) {<NEW_LINE>if (tileEntity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Helper.applyIntOffsetIfRootPresent(tileEntity, "x", "y", "z", offset);<NEW_LINE>String id = Helper.stringFromCompound(tileEntity, "id", "");<NEW_LINE>switch(id) {<NEW_LIN...
-> applyOffsetToItem(i, offset));
1,567,184
public static AnomalyAlertingConfigurationPatch toInnerForUpdate(AnomalyAlertConfiguration alertConfiguration) {<NEW_LINE>AnomalyAlertingConfigurationPatch innerAlertConfiguration = new AnomalyAlertingConfigurationPatch();<NEW_LINE>innerAlertConfiguration.setName(alertConfiguration.getName());<NEW_LINE>innerAlertConfig...
rawIds = AnomalyAlertConfigurationHelper.getHookIdsToAlertRaw(alertConfiguration);
168,979
private Config parseConfiguration(String function) {<NEW_LINE>// Looks like this function_name(,$,)<NEW_LINE>int first = function.indexOf('(');<NEW_LINE>int last = function.indexOf(')');<NEW_LINE>int colon = function.indexOf(EXCLUSION_PREFIX);<NEW_LINE>// TODO(johnlenz): Make parsing precondition checks JSErrors report...
replacementParameters.add(Config.REPLACE_ALL_VALUE);
1,111,250
public void execute() throws CoreException {<NEW_LINE>final Logger log = Logger.getLogger(this.getClass().getName());<NEW_LINE>if (log.isLoggable(Level.FINE)) {<NEW_LINE>Map<String, String> attrs = query.getAttributes();<NEW_LINE>// NOI18N<NEW_LINE>log.// NOI18N<NEW_LINE>log(// NOI18N<NEW_LINE>Level.FINE, "executing Si...
taskData.getTaskId(), true);
1,301,437
private void createUniverseSetTlsParamsTask() {<NEW_LINE>SubTaskGroup subTaskGroup = getTaskExecutor().createSubTaskGroup("UniverseSetTlsParams", executor);<NEW_LINE>UniverseSetTlsParams.Params params = new UniverseSetTlsParams.Params();<NEW_LINE>params.universeUUID = taskParams().universeUUID;<NEW_LINE>params.enableNo...
subTaskGroup.setSubTaskGroupType(getTaskSubGroupType());
698,649
public AnalysisResult checkForLeak(@NonNull File heapDumpFile, @NonNull String referenceKey, boolean computeRetainedSize) {<NEW_LINE>long analysisStartNanoTime = System.nanoTime();<NEW_LINE>if (!heapDumpFile.exists()) {<NEW_LINE>Exception exception = new IllegalArgumentException("File does not exist: " + heapDumpFile);...
Snapshot snapshot = parser.parse();
1,504,221
static void applyStoredDisplaySettings(Stage stage, String name) {<NEW_LINE>try {<NEW_LINE>if (PREFERENCES.nodeExists(name)) {<NEW_LINE>Preferences stagePreferences = PREFERENCES.node(name);<NEW_LINE>boolean wasMaximized = stagePreferences.getBoolean(WINDOW_MAXIMIZED, false);<NEW_LINE>if (wasMaximized) {<NEW_LINE>stage...
.getDouble(WINDOW_X_POS, DEFUALT_X));
277,203
final PutFirewallRuleGroupPolicyResult executePutFirewallRuleGroupPolicy(PutFirewallRuleGroupPolicyRequest putFirewallRuleGroupPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putFirewallRuleGroupPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,284,784
public boolean instantiateTo(int value, ICause cause) throws ContradictionException {<NEW_LINE>assert cause != null;<NEW_LINE>boolean done = false;<NEW_LINE>if (!this.contains(value)) {<NEW_LINE>model.getSolver().getEventObserver().instantiateTo(this, value, cause, getLB(), getUB());<NEW_LINE>this.contradiction(cause, ...
notifyPropagators(IntEventType.INSTANTIATE, cause);
119,760
private void updateRowBuffer(@Nullable PreparedStatement insertStatement, Tuple rowBuffer, HashMap<String, Object> updateValues) throws SQLException {<NEW_LINE>for (Map.Entry<String, Object> entry : updateValues.entrySet()) {<NEW_LINE>int columnIndex = findColumn(entry.getKey()) - 1;<NEW_LINE>Object valueObject = entry...
int numKeys = primaryKeys.size();
1,227,467
protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);<NEW_LINE>int order = 1;<NEW_LINE>double sigma = FactoryKernelGaussian.sigmaForRadius(radius, ...
order, sigma, 2 * radius);
1,043,608
public void loadDashboards(TenantId tenantId, CustomerId customerId) throws Exception {<NEW_LINE>Path dashboardsDir = Paths.get(getDataDir(<MASK><NEW_LINE>try (DirectoryStream<Path> dirStream = Files.newDirectoryStream(dashboardsDir, path -> path.toString().endsWith(JSON_EXT))) {<NEW_LINE>dirStream.forEach(path -> {<NE...
), JSON_DIR, DEMO_DIR, DASHBOARDS_DIR);
1,641,821
public Response renderForm(MultivaluedMap<String, String> formData, List<FormMessage> errors) {<NEW_LINE>String executionId = formExecution.getId();<NEW_LINE>processor.getAuthenticationSession().setAuthNote(AuthenticationProcessor.CURRENT_AUTHENTICATION_EXECUTION, executionId);<NEW_LINE>String code = processor.generate...
FormContext result = new FormContextImpl(formActionExecution);
1,200,136
protected JobResponse createJobResponse(Job job, RestUrlBuilder urlBuilder, String[] urlJobSegments) {<NEW_LINE>JobResponse response = new JobResponse();<NEW_LINE>response.setId(job.getId());<NEW_LINE>response.setCorrelationId(job.getCorrelationId());<NEW_LINE>response.setDueDate(job.getDuedate());<NEW_LINE>response.se...
setExecutionId(job.getExecutionId());
780,993
private BigDecimal fetchOpenAmount(final I_C_Payment payment, final boolean creditMemoAdjusted) {<NEW_LINE>BigDecimal InvoiceOpenAmt = ZERO;<NEW_LINE>final int C_Invoice_ID = payment.getC_Invoice_ID();<NEW_LINE>if (C_Invoice_ID > 0) {<NEW_LINE>InvoiceOpenAmt = paymentDAO.getInvoiceOpenAmount(payment, creditMemoAdjusted...
asLocalDate(payment.getDateTrx());
624,902
public void marshall(CreateNetworkRequest createNetworkRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createNetworkRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createNetworkRequest.get...
createNetworkRequest.getTags(), TAGS_BINDING);
1,496,260
public Node beforeDecode(mxCodec dec, Node node, Object into) {<NEW_LINE>if (node instanceof Element) {<NEW_LINE>Element elt = (Element) node;<NEW_LINE>mxGraphModel model = null;<NEW_LINE>if (into instanceof mxGraphModel) {<NEW_LINE>model = (mxGraphModel) into;<NEW_LINE>} else {<NEW_LINE>model = new mxGraphModel();<NEW...
("root").item(0);
1,004,085
public void onTouchEvent(RecyclerView rv, MotionEvent e) {<NEW_LINE>debugLog("onTouchEvent");<NEW_LINE>if ((e.getAction() == MotionEvent.ACTION_UP) || (e.getAction() == MotionEvent.ACTION_CANCEL)) {<NEW_LINE>if ((e.getAction() == MotionEvent.ACTION_UP) && selectedDragItemPos != -1) {<NEW_LINE>int newPos = getNewPostion...
moveInterface.onItemMoved(selectedDragItemPos, newPos);
317,971
private static Constraint<?> createRealConstraint(IntegerConstraint c) {<NEW_LINE>if (c.getLeftOperand() instanceof RealComparison) {<NEW_LINE>RealComparison cmp = (RealComparison) c.getLeftOperand();<NEW_LINE>int value = ((Number) c.getRightOperand().getConcreteValue()).intValue();<NEW_LINE>Comparator op = c.getCompar...
c.getRightOperand() instanceof RealComparison);
247,307
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>if (getArguments() != null && getArguments().containsKey(TomahawkFragment.PREFERENCEID)) {<NEW_LINE>String id = getArguments().getString(TomahawkFragment.PREFERENCEID);<NEW_LINE>mScriptResolver = PipeLine.<MASK><NEW_LINE>}<NEW_LINE>TextView headerTextVi...
get().getResolver(id);
1,137,829
public void write(Modules modules, Path outputFile) throws IOException {<NEW_LINE>try (BufferedWriter writer = Files.newBufferedWriter(outputFile, StandardCharsets.UTF_8, <MASK><NEW_LINE>PrintWriter out = new PrintWriter(writer)) {<NEW_LINE>writeHeaderMessage(out, outputFile);<NEW_LINE>out.println();<NEW_LINE>out.print...
StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE);
547,234
public static String genPemFile(String encryptType) throws BrokerException {<NEW_LINE>try {<NEW_LINE>CryptoKeyPair cryptoKeyPair;<NEW_LINE>if (encryptType.equals("SM_TYPE")) {<NEW_LINE>cryptoKeyPair = (new SM2KeyPair()).generateKeyPair();<NEW_LINE>cryptoKeyPair = cryptoKeyPair.<MASK><NEW_LINE>} else {<NEW_LINE>cryptoKe...
createKeyPair(cryptoKeyPair.getHexPrivateKey());
432,953
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>String name = <MASK><NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("AD_Org_ID"))<NEW_LINE>p_AD_Org_ID = ((BigDecimal) para[i].getParameter()...
para[i].getParameterName();
1,217,499
private void zipUpToDummyRoot(List<NodeZipper<GraphQLSchemaElement>> zippers, List<GraphQLSchemaElement> topSort, Map<NodeZipper<GraphQLSchemaElement>, List<List<Breadcrumb<GraphQLSchemaElement>>>> breadcrumbsByZipper, Map<GraphQLSchemaElement, NodeZipper<GraphQLSchemaElement>> nodeToZipper) {<NEW_LINE>if (zippers.size...
breadcrumbsByZipper.put(newZipper, breadcrumbsForOriginalParent);