Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
2,100 | boolean (DifferentiateContext context, Difference.Change<JvmClass, JvmClass.Diff> classChange, Utils future, Utils present) { JvmClass changedClass = classChange.getPast(); Difference.Specifier<JvmField, JvmField.Diff> fieldsDiff = classChange.getDiff().fields(); if (!processAddedFields(context, changedClass, fieldsDif... | processFieldChanges |
2,101 | boolean (DifferentiateContext context, JvmClass changedClass, Iterable<JvmField> added, Utils future, Utils present) { if (Iterators.isEmpty(added)) { return true; } debug("Processing added fields"); if (changedClass.getFlags().isEnum()) { debug("Constants added to enum, affecting class usages " + changedClass.getName(... | processAddedFields |
2,102 | boolean (DifferentiateContext context, JvmClass changedClass, Iterable<JvmField> removed, Utils future, Utils present) { if (Iterators.isEmpty(removed)) { return true; } debug("Processing removed fields:"); for (JvmField removedField : removed) { debug("Field: ", removedField.getName()); if (!context.getParams().isProc... | processRemovedFields |
2,103 | boolean (DifferentiateContext context, JvmClass changedClass, Iterable<Difference.Change<JvmField, JvmField.Diff>> changed, Utils future, Utils present) { if (Iterators.isEmpty(changed)) { return true; } debug("Processing changed fields:"); for (Difference.Change<JvmField, JvmField.Diff> change : changed) { JvmField ch... | processChangedFields |
2,104 | boolean (DifferentiateContext context, Difference.Specifier<JvmModule, JvmModule.Diff> modulesDiff, Utils future, Utils present) { if (modulesDiff.unchanged()) { return true; } for (JvmModule addedModule : modulesDiff.added()) { // after module has been added, the whole target should be rebuilt // because necessary 're... | processModules |
2,105 | void (DifferentiateContext context, JvmNodeReferenceID clsId, ProtoMember member, Iterable<JvmNodeReferenceID> propagated) { affectMemberUsages(context, clsId, member, propagated, null); } | affectMemberUsages |
2,106 | void (DifferentiateContext context, JvmNodeReferenceID clsId, ProtoMember member, Iterable<JvmNodeReferenceID> propagated, @Nullable Predicate<Node<?, ?>> constraint) { affectUsages( context, member instanceof JvmMethod? "method" : member instanceof JvmField? "field" : "member", Iterators.flat(Iterators.asIterable(clsI... | affectMemberUsages |
2,107 | void (DifferentiateContext context, JvmNodeReferenceID clsId, Iterable<JvmNodeReferenceID> propagated) { affectUsages( context, "static member on-demand import usage", Iterators.flat(Iterators.asIterable(clsId), propagated), id -> new ImportStaticOnDemandUsage(id), null ); } | affectStaticMemberOnDemandUsages |
2,108 | void (DifferentiateContext context, JvmNodeReferenceID clsId, String memberName, Iterable<JvmNodeReferenceID> propagated) { affectUsages( context, "static member import", Iterators.flat(Iterators.asIterable(clsId), propagated), id -> new ImportStaticMemberUsage(id.getNodeName(), memberName), null ); } | affectStaticMemberImportUsages |
2,109 | void (DifferentiateContext context, String usageKind, Iterable<JvmNodeReferenceID> usageOwners, Function<? super JvmNodeReferenceID, ? extends Usage> usageFactory, @Nullable Predicate<Node<?, ?>> constraint) { for (JvmNodeReferenceID id : usageOwners) { if (constraint != null) { context.affectUsage(usageFactory.apply(i... | affectUsages |
2,110 | void (DifferentiateContext context, Utils utils, ReferenceID fromClass, boolean affectUsages) { debug("Affecting subclasses of class: ", fromClass, "; with usages affection: ", affectUsages); for (ReferenceID cl : utils.withAllSubclasses(fromClass)) { affectNodeSources(context, cl, "Affecting source file: "); if (affec... | affectSubclasses |
2,111 | void (DifferentiateContext context, Utils utils, ReferenceID fromClass) { for (ReferenceID id : utils.withAllSubclasses(fromClass)) { if (utils.isLambdaTarget(id)) { String clsName = utils.getNodeName(id); if (clsName != null) { debug("The interface could be not a SAM interface anymore or lambda target method name has ... | affectLambdaInstantiations |
2,112 | boolean (DifferentiateContext context, JvmNodeReferenceID owner, Proto proto, Utils utils) { if (proto.isPublic()) { debug("Public access, switching to a non-incremental mode"); return false; } if (proto.isProtected()) { debug("Protected access, softening non-incremental decision: adding all relevant subclasses for a r... | affectOnNonIncrementalChange |
2,113 | void (DifferentiateContext context, ReferenceID clsId, String affectReason) { affectNodeSources(context, clsId, affectReason, false); } | affectNodeSources |
2,114 | void (DifferentiateContext context, ReferenceID clsId, String affectReason, boolean forceAffect) { Set<NodeSource> deletedSources = context.getDelta().getDeletedSources(); Predicate<? super NodeSource> affectionFilter = context.getParams().affectionFilter(); for (NodeSource source : Iterators.filter(context.getGraph().... | affectNodeSources |
2,115 | void (DifferentiateContext context, Utils utils, JvmModule mod) { debug("Affecting module ", mod.getName()); for (NodeSource source : Iterators.filter(utils.getNodeSources(mod.getReferenceID()), context.getParams().affectionFilter()::test)) { context.affectNodeSource(source); debug("Affected source ", source.getPath())... | affectModule |
2,116 | void (DifferentiateContext context, Utils utils, JvmModule fromModule, boolean checkTransitive, @Nullable Predicate<Node<?, ?>> constraint) { Iterable<JvmModule> dependent = !checkTransitive? Collections.emptyList() : Iterators.recurseDepth( fromModule, mod -> Iterators.filter(Iterators.flat(Iterators.map(context.getGr... | affectDependentModules |
2,117 | void (String message, Object... details) { if (LOG.isDebugEnabled()) { StringBuilder msg = new StringBuilder(message); for (Object detail : details) { msg.append(detail); } debug(msg.toString()); } } | debug |
2,118 | void (String message) { LOG.debug(message); } | debug |
2,119 | String () { return getElementOwner().getNodeName(); } | getModuleName |
2,120 | boolean () { return "<init>".equals(getName()); } | isConstructor |
2,121 | MethodUsage (JvmNodeReferenceID owner) { return new MethodUsage(owner, getName(), getDescriptor()); } | createUsage |
2,122 | Iterable<ParamAnnotation> () { return myParamAnnotations; } | getParamAnnotations |
2,123 | Iterable<TypeRepr> () { return myArgTypes; } | getArgTypes |
2,124 | boolean (JvmMethod other) { return getName().equals(other.getName()) && Iterators.equals(myArgTypes, other.myArgTypes); } | isSameByJavaRules |
2,125 | boolean (DiffCapable<?, ?> other) { if (!(other instanceof JvmMethod)) { return false; } JvmMethod that = (JvmMethod)other; return Objects.equals(getType(), that.getType()) && isSameByJavaRules(that); } | isSame |
2,126 | int () { return 31 * (31 * Iterators.hashCode(myArgTypes) + getType().hashCode()) + getName().hashCode(); } | diffHashCode |
2,127 | boolean (Object obj) { return obj instanceof JvmMethod && isSame((JvmMethod)obj); } | equals |
2,128 | int () { return diffHashCode(); } | hashCode |
2,129 | boolean () { return super.unchanged() && paramAnnotations().unchanged() && exceptions().unchanged(); } | unchanged |
2,130 | String () { final StringBuilder buf = new StringBuilder(); buf.append("("); for (TypeRepr t : myArgTypes) { buf.append(t.getDescriptor()); } buf.append(")"); buf.append(getType().getDescriptor()); return buf.toString(); } | getDescriptor |
2,131 | Iterable<String> () { return myUsedArgNames; } | getUsedArgNames |
2,132 | Iterable<ElemType> () { return myTargets; } | getTargets |
2,133 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final AnnotationUsage that = (AnnotationUsage)o; if (!myClassType.equals(that.myClassType)) { return false; } if (!myUsedArgNames.equals(that.myUsedArgNames)) { return false; } if (!myTargets.equals(that.... | equals |
2,134 | int () { int result = myClassType.hashCode(); result = 31 * result + myUsedArgNames.hashCode(); result = 31 * result + myTargets.hashCode(); return result; } | hashCode |
2,135 | boolean (Node<?, ?> node) { return !(node instanceof JvmClass) || !myPackageName.equals(((JvmClass)node).getPackageName()); } | test |
2,136 | boolean (JvmField other) { return isStatic() == other.isStatic() && isSynthetic() == other.isSynthetic() && isFinal() == other.isFinal() && Objects.equals(getType(), other.getType()); } | isSameKind |
2,137 | boolean () { return getFlags().isAllSet(INLINABLE_FIELD_FLAGS); } | isInlinable |
2,138 | FieldUsage (JvmNodeReferenceID owner) { return new FieldUsage(owner, getName(), getType().getDescriptor()); } | createUsage |
2,139 | FieldAssignUsage (String owner) { return new FieldAssignUsage(owner, getName(), getType().getDescriptor()); } | createAssignUsage |
2,140 | boolean (DiffCapable<?, ?> other) { return other instanceof JvmField && getName().equals(((JvmField)other).getName()); } | isSame |
2,141 | int () { return getName().hashCode(); } | diffHashCode |
2,142 | int () { return 31 * diffHashCode() + getType().hashCode(); } | hashCode |
2,143 | boolean (Object obj) { if (!(obj instanceof JvmField)) { return false; } JvmField other = (JvmField)obj; return isSame(other) && Objects.equals(getType(), other.getType()); } | equals |
2,144 | void (DataOutput out, Object v) { } | save |
2,145 | Object (DataInput in) { return null; } | load |
2,146 | JvmProtoMemberValueExternalizer (@Nullable Class<?> dataType) { if (dataType != null) { if (dataType.isArray()) { return ARRAY; } for (JvmProtoMemberValueExternalizer ext : values()) { if (ext.dataType != null && ext.dataType.isAssignableFrom(dataType)) { return ext; } } } return NONE; } | find |
2,147 | T () { return past; } | getPast |
2,148 | T () { return now; } | getNow |
2,149 | D () { return diff; } | getDiff |
2,150 | Iterable<V> () { return Iterators.map(diff.added(), adapter -> adapter.getValue()); } | added |
2,151 | Iterable<V> () { return Iterators.map(diff.removed(), adapter -> adapter.getValue()); } | removed |
2,152 | boolean () { return true; } | unchanged |
2,153 | Iterable<T> () { return now; } | added |
2,154 | boolean () { return false; } | unchanged |
2,155 | Iterable<T> () { return past; } | removed |
2,156 | boolean () { return false; } | unchanged |
2,157 | Iterable<T> () { return added; } | added |
2,158 | Iterable<T> () { return removed; } | removed |
2,159 | T () { return value; } | getValue |
2,160 | boolean (DiffCapable<?, ?> other) { return other instanceof Adapter && value.equals(((Adapter<?>)other).getValue()); } | isSame |
2,161 | int () { return value.hashCode(); } | diffHashCode |
2,162 | Difference (Adapter past) { return () -> value.equals(past.getValue()); } | difference |
2,163 | boolean () { return calculateAffected; } | isCalculateAffected |
2,164 | boolean () { return processConstantsIncrementally; } | isProcessConstantsIncrementally |
2,165 | DifferentiateParameters () { return this; } | get |
2,166 | DifferentiateParametersBuilder () { return new DifferentiateParametersBuilder(); } | create |
2,167 | DifferentiateParameters () { return create().get(); } | withDefaultSettings |
2,168 | DifferentiateParametersBuilder (boolean value) { calculateAffected = value; return this; } | calculateAffected |
2,169 | DifferentiateParametersBuilder (boolean value) { processConstantsIncrementally = value; return this; } | processConstantsIncrementally |
2,170 | DifferentiateParametersBuilder (Predicate<? super NodeSource> filter) { myAffectionFilter = filter; return this; } | withAffectionFilter |
2,171 | DifferentiateParametersBuilder (Predicate<? super NodeSource> filter) { myCurrentChunkFilter = filter; return this; } | withChunkStructureFilter |
2,172 | boolean (K key) { return myDelegate.containsKey(key); } | containsKey |
2,173 | void (K key, @NotNull V value) { myCache.invalidate(key); myDelegate.put(key, value); } | put |
2,174 | void (K key) { myCache.invalidate(key); myDelegate.remove(key); } | remove |
2,175 | Iterable<K> () { return myDelegate.getKeys(); } | getKeys |
2,176 | String () { return myName; } | getName |
2,177 | Iterable<ReferenceID> () { return myMap.getKeys(); } | getKeys |
2,178 | Iterable<ReferenceID> (@NotNull ReferenceID id) { return myMap.get(id); } | getDependencies |
2,179 | void (@NotNull Node<?, ?> node) { ReferenceID nodeID = node.getReferenceID(); for (ReferenceID referentId : getIndexedDependencies(node)) { myMap.appendValue(referentId, nodeID); } } | indexNode |
2,180 | void (Iterable<Node<?, ?>> deletedNodes, Iterable<Node<?, ?>> updatedNodes, BackDependencyIndex deltaIndex) { Map<ReferenceID, Set<ReferenceID>> depsToRemove = new HashMap<>(); for (var node : deletedNodes) { cleanupDependencies(node, depsToRemove); // corner case, relevant to situations when keys in this index are act... | integrate |
2,181 | void (Node<?, ?> node, Map<ReferenceID, Set<ReferenceID>> depsToRemove) { ReferenceID nodeID = node.getReferenceID(); for (ReferenceID referentId : getIndexedDependencies(node)) { Set<ReferenceID> deps = depsToRemove.get(referentId); if (deps == null) { depsToRemove.put(referentId, deps = new HashSet<>()); } deps.add(n... | cleanupDependencies |
2,182 | DataOutput (DataOutput out) { return new GraphDataOutput(out); } | wrap |
2,183 | DataOutput (DataOutput out, StringEnumerator enumerator) { return new GraphDataOutput(out) { @Override public void writeUTF(@NotNull String s) throws IOException { writeInt(enumerator.toNumber(s)); } }; } | wrap |
2,184 | MapletFactory (String rootDirPath) { return new PersistentMapletFactory(rootDirPath); } | createPersistentContainerFactory |
2,185 | int (@Nullable T o) { return hashCodeImpl.apply(o); } | hashCode |
2,186 | boolean (@Nullable T a, @Nullable T b) { return equalsImpl.apply(a, b); } | equals |
2,187 | void () { Throwable ex = null; for (Closeable container : Iterators.flat(myMultiMaplets, myMaplets)) { try { container.close(); } catch (Throwable e) { if (ex == null) { ex = e; } } } myMultiMaplets.clear(); myMaplets.clear(); if (ex instanceof IOException) { throw new BuildDataCorruptedException((IOException)ex); } el... | close |
2,188 | Path (final String name) { final File file = new File(myRootDirPath, name); FileUtil.createIfDoesntExist(file); return file.toPath(); } | getMapFile |
2,189 | boolean (T val1, T val2) { return val1.equals(val2); } | isEqual |
2,190 | int (T value) { return value.hashCode(); } | getHashCode |
2,191 | boolean (K key) { return myMap.containsKey(key); } | containsKey |
2,192 | Iterable<V> (K key) { C col = myMap.get(key); return col != null? col : Collections.emptySet(); } | get |
2,193 | void (K key, @NotNull Iterable<? extends V> values) { //noinspection unchecked myMap.put(key, ensureCollection(values)); } | put |
2,194 | C (Iterable<? extends V> seq) { if (myEmptyCollection instanceof Set && seq instanceof Set) { return (C)seq; } if (myEmptyCollection instanceof List && seq instanceof List) { return (C)seq; } return Iterators.collect(seq, myCollectionFactory.get()); } | ensureCollection |
2,195 | void (K key) { myMap.remove(key); } | remove |
2,196 | void (K key, V value) { C values = myMap.get(key); if (values == null) { myMap.put(key, values = myCollectionFactory.get()); } values.add(value); } | appendValue |
2,197 | void (K key, V value) { C values = myMap.get(key); if (values != null) { values.remove(value); } } | removeValue |
2,198 | Iterable<K> () { return myMap.keySet(); } | getKeys |
2,199 | void () { myMap.clear(); } | close |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.