idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
267,819
protected String[] process(final long offset, final String[] firstFour, final String[] secondFour) {<NEW_LINE>final String diff1 = environment.getNextVariableString();<NEW_LINE>final String diff2 = environment.getNextVariableString();<NEW_LINE>final String diff3 = environment.getNextVariableString();<NEW_LINE>final Str...
subOperation, diff3Sat, 8, usignedDoesSat);
263,243
void readOemPermissions(@NonNull XmlPullParser parser) throws IOException, XmlPullParserException {<NEW_LINE>final String packageName = parser.getAttributeValue(null, "package");<NEW_LINE>if (TextUtils.isEmpty(packageName)) {<NEW_LINE>Log.w(TAG, "package is required for <oem-permissions> in " + parser.getPositionDescri...
parser.getAttributeValue(null, "name");
563,820
public void marshall(PutSessionRequest putSessionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (putSessionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(putSessionRequest.getBotName(), B...
putSessionRequest.getAccept(), ACCEPT_BINDING);
678,933
public void calcStats(Stats stats) {<NEW_LINE>stats.clear();<NEW_LINE>stats._num = _dataSize;<NEW_LINE>int totalCount = 0;<NEW_LINE>long sumOfSq = 0;<NEW_LINE>for (int i = 0; i < _staticConfig.getBucketsNum() + 2; ++i) {<NEW_LINE>int count = _histogram[i];<NEW_LINE>totalCount += count;<NEW_LINE>int curValue = _bucketVa...
._sum / stats._num : 0.0;
1,621,524
public static ListPhoneNumbersResponse unmarshall(ListPhoneNumbersResponse listPhoneNumbersResponse, UnmarshallerContext context) {<NEW_LINE>listPhoneNumbersResponse.setRequestId<MASK><NEW_LINE>listPhoneNumbersResponse.setSuccess(context.booleanValue("ListPhoneNumbersResponse.Success"));<NEW_LINE>listPhoneNumbersRespon...
(context.stringValue("ListPhoneNumbersResponse.RequestId"));
815,817
private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>List<Unit> os = business.unit().pick(wi.getUnitList());<NEW_LINE>List<String> unitIds = ListTools.extractField(os, Unit.id_FIELDNAME, String.class, true, true);<NEW_LINE>List<Identity> list = new Array...
), Identity.unit_FIELDNAME, unitIds);
1,808,385
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String dataCollectionEndpointName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgu...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
714,929
public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {<NEW_LINE>if (object == null) {<NEW_LINE>jsonWriter.writeNull();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GeoJsonPolygon polygon = (GeoJsonPolygon) object;<NEW_LINE>if (jsonWriter.isUTF8()) {<NEW_LINE>jsonWriter.writeR...
> coordinates = polygon.getCoordinates();
1,762,075
public String showShortcutsDialog() {<NEW_LINE><MASK><NEW_LINE>d.init(this);<NEW_LINE>final DialogDescriptor descriptor = new DialogDescriptor(d, loc("Add_Shortcut_Dialog"), true, new Object[] { DialogDescriptor.OK_OPTION, DialogDescriptor.CANCEL_OPTION }, DialogDescriptor.OK_OPTION, DialogDescriptor.DEFAULT_ALIGN, nul...
final ShortcutsDialog d = new ShortcutsDialog();
437,241
public YamlDatabaseDiscoveryRuleConfiguration swapToYamlConfiguration(final AlgorithmProvidedDatabaseDiscoveryRuleConfiguration data) {<NEW_LINE>YamlDatabaseDiscoveryRuleConfiguration result = new YamlDatabaseDiscoveryRuleConfiguration();<NEW_LINE>result.setDataSources(data.getDataSources().stream().collect(Collectors....
value.getProps())));
620,823
private void append() {<NEW_LINE>if (maskBuffer.capacity() - bufferPos < 8) {<NEW_LINE>maskBuffer = growBuffer(maskBuffer, maskBufferGrowth());<NEW_LINE>maskBuffer.position(0);<NEW_LINE>}<NEW_LINE>maskBuffer.putLong(bufferPos, mask);<NEW_LINE>bufferPos += bytesPerMask;<NEW_LINE>for (Container container : slice) {<NEW_L...
type == BITMAP ? 3 : 1);
1,473,327
public final PatternInclusionExpressionContext patternInclusionExpression() throws RecognitionException {<NEW_LINE>PatternInclusionExpressionContext _localctx = new PatternInclusionExpressionContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_...
enterRule(_localctx, 220, RULE_patternInclusionExpression);
833,637
private boolean initRocksDB(final StoreEngineOptions opts) {<NEW_LINE>RocksDBOptions rocksOpts = opts.getRocksDBOptions();<NEW_LINE>if (rocksOpts == null) {<NEW_LINE>rocksOpts = new RocksDBOptions();<NEW_LINE>opts.setRocksDBOptions(rocksOpts);<NEW_LINE>}<NEW_LINE>String dbPath = rocksOpts.getDbPath();<NEW_LINE>if (Stri...
LOG.error("Fail to make dir for dbPath {}.", dbPath);
620,838
public static Bitmap rotateImageExif(@NonNull BitmapPool pool, @NonNull Bitmap inBitmap, int exifOrientation) {<NEW_LINE>if (!isExifOrientationRequired(exifOrientation)) {<NEW_LINE>return inBitmap;<NEW_LINE>}<NEW_LINE>final Matrix matrix = new Matrix();<NEW_LINE>initializeMatrixForRotation(exifOrientation, matrix);<NEW...
round(newRect.height());
1,297,910
<T> T evictionOrder(boolean hottest, Function<V, V> transformer, Function<Stream<CacheEntry<K, V>>, T> mappingFunction) {<NEW_LINE>Comparator<Node<K, V>> comparator = Comparator.comparingInt(node -> {<NEW_LINE>K key = node.getKey();<NEW_LINE>return (key == null) ? 0 : frequencySketch().frequency(key);<NEW_LINE>});<NEW_...
accessOrderProtectedDeque().iterator());
1,189,955
private static void addToBranch(MXCIFQuadTreeNodeBranch<Object> branch, double x, double y, double width, double height, Object value, MXCIFQuadTree<Object> tree, boolean unique, String indexName) {<NEW_LINE>QuadrantAppliesEnum quadrant = branch.getBb().getQuadrantApplies(x, y, width, height);<NEW_LINE>if (quadrant == ...
, tree, unique, indexName));
1,316,629
private void traverseToLeaves(final PackageDependenciesNode treeNode, final StringBuffer denyRules, final StringBuffer allowRules) {<NEW_LINE>final Enumeration enumeration = treeNode.breadthFirstEnumeration();<NEW_LINE>while (enumeration.hasMoreElements()) {<NEW_LINE>PsiElement childPsiElement = ((PackageDependenciesNo...
illegalDeps = myIllegalDependencies.get(childPsiElement);
1,673,400
public DataBuffer convertDataEx(DataTypeEx typeSrc, DataBuffer source, DataTypeEx typeDst) {<NEW_LINE>int elementSize = 0;<NEW_LINE>if (typeDst.ordinal() <= 2)<NEW_LINE>elementSize = 1;<NEW_LINE>else if (typeDst.ordinal() <= 5)<NEW_LINE>elementSize = 2;<NEW_LINE>else if (typeDst.ordinal() == 6)<NEW_LINE>elementSize = 4...
source, typeDst.name());
618,152
public static Bundle bundleFromSerializedString(String string) {<NEW_LINE>if (string == null)<NEW_LINE>return new Bundle();<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>fromSerialized(string, result, new SerializedPut<Bundle>() {<NEW_LINE><NEW_LINE>public void put(Bundle object, String key, char type, String value) ...
.replace(SEPARATOR_ESCAPE, SERIALIZATION_SEPARATOR));
975,039
public DdlResult execute(ByteString ddlBlob, GraphDef graphDef, int partitionCount) throws InvalidProtocolBufferException {<NEW_LINE>TypeDefPb typeDefPb = TypeDefPb.parseFrom(ddlBlob);<NEW_LINE>TypeDef <MASK><NEW_LINE>long version = graphDef.getSchemaVersion();<NEW_LINE>String label = typeDef.getLabel();<NEW_LINE>if (!...
typeDef = TypeDef.parseProto(typeDefPb);
912,130
public IPSetReferenceStatement unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IPSetReferenceStatement iPSetReferenceStatement = new IPSetReferenceStatement();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
().unmarshall(context));
1,288,171
public void map(LongWritable key, Text value, OutputCollector<LongWritable, Text> output, Reporter reporter) throws IOException {<NEW_LINE>int slotId = Integer.parseInt(value.toString().trim());<NEW_LINE>generator.fireRandom(slotId);<NEW_LINE>try {<NEW_LINE>DecimalFormat df = new DecimalFormat("00000");<NEW_LINE>String...
fs = workdir.getFileSystem(job);
8,953
private static void fillDocumentsTableArrays() {<NEW_LINE>if (documentsTableID == null) {<NEW_LINE>String sql = "SELECT t.AD_Table_ID, t.TableName " + "FROM AD_Table t, AD_Column c " + "WHERE t.AD_Table_ID=c.AD_Table_ID AND " + "c.ColumnName='Posted' AND " + "IsView='N' " + "ORDER BY t.AD_Table_ID";<NEW_LINE>ArrayList<...
int[tableIDs.size()];
1,517,758
protected void readFromTaskOnInitialize() {<NEW_LINE>Date date;<NEW_LINE>if (model.getValue(Task.DUE_DATE) != 0) {<NEW_LINE>date = new Date(model.getValue(Task.DUE_DATE));<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < 7; i++) daysOfWeek[i].setChecked(i == dayOfWeek);<NEW_LINE>}<NEW_LINE>// read recurrence rule<NEW_LINE>...
int dayOfWeek = date.getDay();
512,791
public Object execute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>final IProject selectedProject = getSelectedProject(event.getApplicationContext());<NEW_LINE>if (selectedProject == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Job job = new Job(Messages.GitProjectView_AttachGitRepo_jobTitle) {<NEW_L...
SubMonitor.convert(monitor, 100);
1,068,419
private void applyNewSplits(String textureRegionName, int[] splits) {<NEW_LINE>// first need to modify original image<NEW_LINE>FileHandle packAtlas = Gdx.files.internal(plugin.getAPI().getProjectPath() + "/assets/orig/pack/pack.atlas");<NEW_LINE>FileHandle imagesDir = Gdx.files.internal(plugin.getAPI().getProjectPath()...
extractImage(atlas, textureRegionName, splits);
73,305
public static String add_str(String a, String b, int n) {<NEW_LINE>a = trim(a, n);<NEW_LINE>b = trim(b, n);<NEW_LINE>String val = "";<NEW_LINE>int i, rem = 0;<NEW_LINE>char[<MASK><NEW_LINE>char[] c2 = b.toCharArray();<NEW_LINE>int[] ans = new int[a.length() + 1];<NEW_LINE>for (i = a.length(); i > 0; i--) {<NEW_LINE>ans...
] c1 = a.toCharArray();
1,409,276
Object repeat(VirtualFrame frame, Object obj, long n, @Cached PyObjectLookupAttr lookupNode, @Cached CallNode callNode, @Cached("createMul()") MulNode mulNode, @Shared("check") @SuppressWarnings("unused") @Cached com.oracle.graal.python.lib.PySequenceCheckNode checkNode, @Cached TransformExceptionToNativeNode transform...
return getContext().getNativeNull();
371,172
/*<NEW_LINE>* Verify if method identifier positions include selection.<NEW_LINE>* If so, create field reference, store it and abort comment parse.<NEW_LINE>* Otherwise return null as we do not need this reference.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected Object createMethodReference(Object receiver, List argum...
[memberPtr] >>> 32);
144,384
public boolean execute(Object object) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) object;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>long fee = calcFee();<NEW_LINE>AccountStore account...
exchangeCapsule.transaction(tokenID, tokenQuant);
401,812
protected void initAgents(MessageLogger logger) {<NEW_LINE>List<MapNode> markers = map.getOsmMap().getMarkers();<NEW_LINE>if (markers.size() < 2) {<NEW_LINE>logger.log("Error: Please set two markers with mouse-left.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>visitedStates.clear();<NEW_LINE>String[] locs = new String[marke...
<DynamicPercept, MoveToAction> agent = null;
228,530
private static ValidatorDefinition loadSingleValidator(ObjectNode node) {<NEW_LINE>node.warnIfAdditionalProperties(VALIDATOR_PROPERTIES);<NEW_LINE>String name = node.expectStringMember("name").getValue();<NEW_LINE>String id = node.getStringMemberOrDefault("id", name);<NEW_LINE>ValidatorDefinition def = new ValidatorDef...
orElse(Node.objectNode());
1,238,729
private static void throwBadAccess(long pointer, long size, Map.Entry<Long, Allocation> fentry, Map.Entry<Long, Allocation> centry) {<NEW_LINE>long now = System.nanoTime();<NEW_LINE>long faddr = fentry == null ? 0 : fentry.getKey();<NEW_LINE>long fsize = fentry == null ? 0 : fentry.getValue().sizeInBytes;<NEW_LINE>long...
= pointer - (faddr + fsize);
1,763,125
public static float computeLodEntropy(Mesh terrainBlock, Buffer lodIndices) {<NEW_LINE>// Bounding box for the terrain block<NEW_LINE>BoundingBox bbox = (BoundingBox) terrainBlock.getBound();<NEW_LINE>// Vertex positions for the block<NEW_LINE>FloatBuffer positions = terrainBlock.getFloatBuffer(Type.Position);<NEW_LINE...
terrainBlock.clearBuffer(Type.Index);
569,387
private Object aliascmd(CommandInput input) {<NEW_LINE>final String[] usage = { "alias - create command alias", "Usage: alias [ALIAS] [COMMANDLINE]", " -? --help Displays command help" };<NEW_LINE>Object out = null;<NEW_LINE>try {<NEW_LINE>Options opt = parseOptions(usage, input.args());<NEW_LIN...
"}", "\\$\\{" + j + "\\}");
1,663,379
public double alpha(HullWhiteOneFactorPiecewiseConstantParameters data, double startExpiry, double endExpiry, double numeraireTime, double bondMaturity) {<NEW_LINE>double factor1 = Math.exp(-data.getMeanReversion() * numeraireTime) - Math.exp(-data.getMeanReversion() * bondMaturity);<NEW_LINE>double numerator = 2 * dat...
= new double[sLen + 1];
1,213,866
public void solveVelocityConstraints(SolverData data) {<NEW_LINE>float mA = m_invMassA, mB = m_invMassB;<NEW_LINE>float iA = m_invIA, iB = m_invIB;<NEW_LINE>Vec2 vA = data.velocities[m_indexA].v;<NEW_LINE>float wA = data.velocities[m_indexA].w;<NEW_LINE>Vec2 vB = data.velocities[m_indexB].v;<NEW_LINE>float wB = <MASK><...
data.velocities[m_indexB].w;
1,587,352
protected static void logLTCSerialReuseInfo(Object affinity, String pmiName, MCWrapper mcWrapperTemp, PoolManager pm) {<NEW_LINE>final <MASK><NEW_LINE>if (isTracingEnabled && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "allocateConnection_Common: HandleCount = " + mcWrapperTemp.getHandleCount());<NEW_LINE>}<NEW_LINE>...
boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
1,061,935
private void init() {<NEW_LINE>// process init<NEW_LINE>// account provider<NEW_LINE>SurenessAccountProvider accountProvider = new DocumentAccountProvider();<NEW_LINE>List<Processor> processorList = new LinkedList<>();<NEW_LINE>NoneProcessor noneProcessor = new NoneProcessor();<NEW_LINE>processorList.add(noneProcessor)...
(), new JwtSubjectSolonCreator());
860,431
final DescribeCostCategoryDefinitionResult executeDescribeCostCategoryDefinition(DescribeCostCategoryDefinitionRequest describeCostCategoryDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCostCategoryDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
invoke(request, responseHandler, executionContext);
529,804
public ListenableFuture<Boolean> displayFailure() {<NEW_LINE>SettableFuture<Boolean> result = new SettableFuture<>();<NEW_LINE>this.keyboardView.setVisibility(View.INVISIBLE);<NEW_LINE>this.<MASK><NEW_LINE>this.failureView.setVisibility(View.GONE);<NEW_LINE>this.lockedView.setVisibility(View.GONE);<NEW_LINE>this.failur...
progressBar.setVisibility(View.GONE);
847,883
private PreviewRouteLineInfo createPreviewRouteLineInfo() {<NEW_LINE>OsmandSettings settings = requireSettings();<NEW_LINE>int colorDay = settings.CUSTOM_ROUTE_COLOR_DAY.getModeValue(appMode);<NEW_LINE>int colorNight = settings.CUSTOM_ROUTE_COLOR_NIGHT.getModeValue(appMode);<NEW_LINE>ColoringType coloringType = setting...
settings.ROUTE_INFO_ATTRIBUTE.getModeValue(appMode);
226,853
Value parse(JsonParser parser, Value value, Context context) throws IOException {<NEW_LINE>JsonToken token;<NEW_LINE>if (parser.currentToken() != START_OBJECT) {<NEW_LINE>token = parser.nextToken();<NEW_LINE>if (token != START_OBJECT) {<NEW_LINE>throwExpectedStartObject(parser, token);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Fi...
fieldParser.assertSupports(parser, currentFieldName);
147,080
public void makeGraph() {<NEW_LINE>Dimension size = graphPanel.getSize();<NEW_LINE>// canvas size<NEW_LINE>int width = (int) size.getWidth();<NEW_LINE>int height = (int) size.getHeight();<NEW_LINE>if (!dynamicGraphSize.isSelected()) {<NEW_LINE>String wstr = graphWidth.getText();<NEW_LINE><MASK><NEW_LINE>if (wstr.length...
String hstr = graphHeight.getText();
594,168
public void updateUserFromContactPersonIfFeasible(@NonNull final ContactPerson contactPerson, @Nullable final String oldContactPersonMail, @Nullable final Language oldContactPersonLanguage) {<NEW_LINE>final UserId userId = contactPerson.getUserId();<NEW_LINE>if (userId == null) {<NEW_LINE>// no user to update the email...
save(updatedUser.build());
1,515,722
private void initSender() throws PwmUnrecoverableException {<NEW_LINE>if (StringUtil.isEmpty(settings.getSenderImplementation())) {<NEW_LINE>final String msg = "telemetry sender implementation not specified";<NEW_LINE>throw new PwmUnrecoverableException(new ErrorInformation(PwmError.ERROR_TELEMETRY_SEND_ERROR, msg));<N...
expandMacros(settings.getSenderSettings());
1,541,330
private void validateSolution(Result bestMatch, ParserRuleContext currentCtx, STNode nextToken) {<NEW_LINE>Solution sol = bestMatch.solution;<NEW_LINE>if (sol == null || sol.action == Action.REMOVE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Special case the `KEEP` of `DOCUMENTATION_STRING` since we are skipping them in...
DOCUMENTATION_STRING, currentCtx.toString());
517,120
public MaryData process(MaryData d) throws Exception {<NEW_LINE>String phoneString = d.getPlainText();<NEW_LINE>MaryData result = new MaryData(getOutputType(), d.getLocale(), true);<NEW_LINE>Document doc = result.getDocument();<NEW_LINE>Element root = doc.getDocumentElement();<NEW_LINE>root.setAttribute("xml:lang", Mar...
String syllablePhonemes = stSyllables.nextToken();
669,714
public boolean onInterceptTouchEvent(MotionEvent ev) {<NEW_LINE>if (!mEnabled)<NEW_LINE>return false;<NEW_LINE>final int action = ev.getAction() & MotionEventCompat.ACTION_MASK;<NEW_LINE>if (action == MotionEvent.ACTION_DOWN && DEBUG)<NEW_LINE>Log.v(TAG, "Received ACTION_DOWN");<NEW_LINE>if (action == MotionEvent.ACTIO...
MotionEvent.ACTION_POINTER_INDEX_MASK : MotionEvent.ACTION_POINTER_INDEX_MASK);
470,780
public void start() {<NEW_LINE>if (LOG_EGL) {<NEW_LINE>Log.w("EglHelper", "start() tid=" + Thread.currentThread().getId());<NEW_LINE>}<NEW_LINE>mEgl = <MASK><NEW_LINE>mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);<NEW_LINE>if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {<NEW_LINE>throw new RuntimeException("egl...
(EGL10) EGLContext.getEGL();
1,821,176
public void insertGroupMessageToLocalStorage(final MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>final String data = CommonUtil.getParam(methodCall, result, "data");<NEW_LINE>final String groupID = CommonUtil.<MASK><NEW_LINE>final String sender = CommonUtil.getParam(methodCall, result, "sender");...
getParam(methodCall, result, "groupID");
968,295
public List<DataObject> execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException {<NEW_LINE>Revision virtualRevision = getRevisionByRoid(roid);<NEW_LINE>IfcModelSet ifcModelSet = new IfcModelSet();<NEW_LINE>PackageMetaData lastPackageMetaData = null;<NEW_LINE>Map<Integer, Long> pidRoid...
concreteRevision.getProject(), concreteRevision);
483,349
public List<String> wordsAbbreviation(List<String> dict) {<NEW_LINE>int len = dict.size();<NEW_LINE>String[] ans = new String[len];<NEW_LINE>int[] prefix = new int[len];<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>prefix[i] = 1;<NEW_LINE>// make abbreviation for each string<NEW_LINE>ans[i] = abbreviate(dict<MASK>...
.get(i), 1);
192,047
private HBox createEntry(Environment environment) {<NEW_LINE>JFXButton renameButton = new JFXButton();<NEW_LINE>renameButton.setGraphic(new FontAwesomeIconView(FontAwesomeIcon.PENCIL, "1.5em"));<NEW_LINE>renameButton.setOnAction(e -> triggerRenameDialog(environment));<NEW_LINE>JFXButton editButton = new JFXButton();<NE...
setSelected(environment.isGlobal());
1,688,233
private <A> Map<SpringAggregate<? super A>, Map<Class<? extends A>, String>> buildAggregateHierarchy(String[] aggregatePrototypes) {<NEW_LINE>Map<SpringAggregate<? super A>, Map<Class<? extends A>, String>> hierarchy = new HashMap<>();<NEW_LINE>for (String prototype : aggregatePrototypes) {<NEW_LINE>Class<A> aggregateT...
subtypes = new HashMap<>();
80,634
final UpdateFindingsResult executeUpdateFindings(UpdateFindingsRequest updateFindingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFindingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateFindi...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,481,931
public Representation represent() {<NEW_LINE>// Modification date (Fri, 17 Apr 2012 10:10:10 GMT) unchanged.<NEW_LINE>Calendar cal = new GregorianCalendar(2012, 4, 17, 10, 10, 10);<NEW_LINE>Representation result = new StringRepresentation("<a href=" + getReference() + ">" + System.currentTimeMillis() + "</a>");<NEW_LIN...
add(CacheDirective.publicInfo());
709,244
private static List<Token> matchArgument(List<Token> tokens, List<Token> arguments) throws MismatchException {<NEW_LINE>var nestingLevel = 0;<NEW_LINE>var tokensConsumed = 0;<NEW_LINE>var noTokens = tokens.size();<NEW_LINE>var firstToken = tokens.get(0);<NEW_LINE>var currToken = firstToken;<NEW_LINE>String curr = currT...
(STRING).build());
848,096
private void createConfigurations(Project project) {<NEW_LINE>ConfigurationContainer configurations = project.getConfigurations();<NEW_LINE>Capability enforcedCapability = new DefaultShadowedCapability(new ProjectDerivedCapability(project), "-derived-enforced-platform");<NEW_LINE>Configuration api = configurations.crea...
Usage.JAVA_RUNTIME, LibraryElements.JAR);
305,289
private String jobPropertiesToJsonString() {<NEW_LINE>Map<String, String> jobProperties = Maps.newHashMap();<NEW_LINE>jobProperties.put("partitions", partitions == null ? STAR_STRING : Joiner.on(",").join(partitions.getPartitionNames()));<NEW_LINE>jobProperties.put("columnToColumnExpr", columnDescs == null ? STAR_STRIN...
STAR_STRING : whereExpr.toSql());
735,617
public void init() {<NEW_LINE>model = new DefaultDiagramModel();<NEW_LINE>model.setMaxConnections(-1);<NEW_LINE>StateMachineConnector connector = new StateMachineConnector();<NEW_LINE>connector.setOrientation(StateMachineConnector.Orientation.ANTICLOCKWISE);<NEW_LINE>connector.setPaintStyle("{stroke:'#7D7463',strokeWid...
new BlankEndPoint(EndPointAnchor.LEFT));
422,607
private static Model modelFromName(String modelName) {<NEW_LINE>try {<NEW_LINE>Class <MASK><NEW_LINE>return (Model) c.getMethod("MODEL").invoke(null);<NEW_LINE>} catch (ClassNotFoundException e) {<NEW_LINE>Log.e(LOG_TAG, "Could not find model \"" + modelName + "\"");<NEW_LINE>return null;<NEW_LINE>} catch (NoSuchMethod...
c = Class.forName(modelName);
1,783,531
private void writeList(IdEObject object, ByteBuffer buffer, PackageMetaData packageMetaData, EStructuralFeature feature) throws BimserverDatabaseException {<NEW_LINE>if (feature.getEType() instanceof EEnum) {<NEW_LINE>// Aggregate relations to enums never occur... at this<NEW_LINE>// moment<NEW_LINE>} else if (feature....
eClass().getEStructuralFeature("List");
738,723
private static void addValue(StringBuilder buf, Object value, boolean addLinks) throws URISyntaxException {<NEW_LINE>// Note: To be bug-compatible with Javadoc from Java 5/6/7, we currently don't escape HTML tags in String-valued annotations.<NEW_LINE>if (value instanceof ITypeBinding) {<NEW_LINE>ITypeBinding typeBindi...
append(variableBinding.getName());
1,091,543
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>if (sources == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>final SecurityContext securityContext = ctx.getSecurityContext();<NEW_LINE>final Configu...
value = inputConverter.convert(value);
119,885
private Column.ColumnType expectUdt(ObjectTypeDefinition definition) throws SkipException {<NEW_LINE>boolean isUdt = DirectiveHelper.getDirective(CqlDirectives.ENTITY, definition).flatMap(d -> DirectiveHelper.getEnumArgument(d, CqlDirectives.ENTITY_TARGET, EntityModel.Target.class, context)).filter(target -> target == ...
getName()).build();
851,601
private void calculate(Map<Double, Object> labelOverrideMap) {<NEW_LINE>// a check if all axis data are the exact same values<NEW_LINE>if (minValue == maxValue) {<NEW_LINE>String label = labelOverrideMap.isEmpty() ? " " : labelOverrideMap.values().iterator().next().toString();<NEW_LINE>tickLabels.add(label);<NEW_LINE>t...
(maxValue - minValue) * tickSpace);
554,729
final PutLoggingConfigurationResult executePutLoggingConfiguration(PutLoggingConfigurationRequest putLoggingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putLoggingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,462,087
public void tagIndirectlyAccessibleMembers() {<NEW_LINE>if (!isPrototype()) {<NEW_LINE>this.prototype.tagIndirectlyAccessibleMembers();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// https://bugs.eclipse.org/bugs/show_bug.cgi?id=328281<NEW_LINE>for (int i = 0, n = this.fields().length; i < n; i += 1) {<NEW_LINE>if (!this.fiel...
i].modifiers |= ExtraCompilerModifiers.AccLocallyUsed;
137,702
public static Map<String, String> waitTillComponentHasRolled(String namespaceName, LabelSelector selector, Map<String, String> snapshot) {<NEW_LINE>String componentName = selector.getMatchLabels().get(Labels.STRIMZI_NAME_LABEL);<NEW_LINE>LOGGER.info("Waiting for component with name: {} rolling update", componentName);<...
PodUtils.podSnapshot(namespaceName, selector);
1,628,315
private void writeSummary() {<NEW_LINE>final File summaryFile = new <MASK><NEW_LINE>try (final PrintWriter writer = new PrintWriter(new FileWriter(summaryFile))) {<NEW_LINE>writer.println("##########################################################################################");<NEW_LINE>writer.println("# STRTableSu...
File(dir, STRTableFile.SUMMARY_FILE_NAME);
158,438
private Map toMap(JSONObject jsonObject) throws JSONException {<NEW_LINE>Map parentBean = new HashMap();<NEW_LINE>Iterator i = jsonObject.keys();<NEW_LINE>while (i.hasNext()) {<NEW_LINE>String key = (String) i.next();<NEW_LINE>Object <MASK><NEW_LINE>if (value instanceof JSONObject) {<NEW_LINE>Map subBean = toMap((JSONO...
value = jsonObject.get(key);
1,046,112
public int size() {<NEW_LINE>// SUM ALL THE COLLECTION SIZES<NEW_LINE>int size = 0;<NEW_LINE>final int totSources = sources.size();<NEW_LINE>for (int i = 0; i < totSources; ++i) {<NEW_LINE>final Object o = sources.get(i);<NEW_LINE>if (o != null)<NEW_LINE>if (o instanceof Collection<?>)<NEW_LINE>size += ((Collection<?>)...
OSizeable) o).size();
1,293,815
private void addBindings() {<NEW_LINE>if (dataModel.getDirection() == OfferDirection.BUY) {<NEW_LINE>volumeDescriptionLabel.bind(createStringBinding(() -> Res.get("createOffer.amountPriceBox.buy.volumeDescription", dataModel.getTradeCurrencyCode().get())<MASK><NEW_LINE>} else {<NEW_LINE>volumeDescriptionLabel.bind(crea...
, dataModel.getTradeCurrencyCode()));
748,817
protected Integer doInBackground(Object... params) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<String> commands = (List<String>) params[0];<NEW_LINE>StringBuilder res = (StringBuilder) params[1];<NEW_LINE>Log.i(TAG, "Executing root commands of" + commands.size());<NEW_LINE>try {<NEW_LINE>if (!hasRoot())<NEW...
.exec().getOut();
375,415
public void error(VirtualConnection vc, TCPWriteRequestContext wrc, IOException ioe) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(this, "SipResolverTcpTransport: error: write error id=" + hashCode());<NEW_LINE>if (_shutdown == true)<NEW_LINE>return;<NEW_LINE>_transportErrorCount++;<NE...
_transportListener.transportFailed(ioe, this);
62,160
final CreateMeetingWithAttendeesResult executeCreateMeetingWithAttendees(CreateMeetingWithAttendeesRequest createMeetingWithAttendeesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createMeetingWithAttendeesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
false), new CreateMeetingWithAttendeesResultJsonUnmarshaller());
458,980
private Map<String, Set<String>> listPortNames(Archive archive) {<NEW_LINE>try (URLClassLoader moduleClassLoader = new BootClassLoaderFactory(archive, parent).createClassLoader()) {<NEW_LINE>Set<String> <MASK><NEW_LINE>Set<String> outboundPorts = new HashSet<>();<NEW_LINE>Map<String, Set<String>> portsMap = new HashMap...
inboundPorts = new HashSet<>();
124,993
private void handleCreateImageRampup(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>final String jsonPayload = HttpRequestUtils.getBody(req);<NEW_LINE>final ImageRampupPlanRequestDTO imageRampupPlanRequest = this.conver...
getUser().getUserId());
428,694
private void loadNode60() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_DefaultApplicationGroup_TrustList_Close, new QualifiedName(0, "Close"), new LocalizedText("en", "Close"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LI...
.expanded(), true));
1,726,373
public ClusterMergeHistory run(Relation<O> relation) {<NEW_LINE>final QueryBuilder<O> qb = new QueryBuilder<>(relation, distance);<NEW_LINE>final DistanceQuery<O> distQ = qb.distanceQuery();<NEW_LINE>final KNNSearcher<DBIDRef> knnQ = qb.kNNByDBID(minPts);<NEW_LINE>// We need array addressing later.<NEW_LINE>final Array...
DataStoreFactory.HINT_STATIC, Double.POSITIVE_INFINITY);
592,646
protected ExecutionEntity createEmbeddedSubProcessHierarchy(SubProcess subProcess, ExecutionEntity defaultParentExecution, Map<String, SubProcess> subProcessesToCreate, Set<String> movingExecutionIds, ProcessInstanceChangeState processInstanceChangeState, CommandContext commandContext) {<NEW_LINE>ProcessEngineConfigura...
getActivityInstanceEntityManager().recordActivityStart(subProcessExecution);
788,643
private static void assertIndexChoice(RegressionEnvironment env, boolean namedWindow, String[] indexes, Object[] preloadedEvents, String datawindow, IndexAssertion[] assertions) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreate = namedWindow ? "@name('create-window') @public create window...
+ "from MyInfra as ssb1 where " + assertion.getWhereClause();
29,426
protected void onDecoraTag(final Tag tag) {<NEW_LINE>String tagName = tag.getName().toString();<NEW_LINE>if (tag.getType() == TagType.SELF_CLOSING) {<NEW_LINE>checkNestedDecoraTags();<NEW_LINE><MASK><NEW_LINE>decoraTagStart = tag.getTagPosition();<NEW_LINE>decoraTagEnd = tag.getTagPosition() + tag.getTagLength();<NEW_L...
decoraTagName = tagName.substring(7);
1,699,524
public void sessionPut(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>boolean createSession = Boolean.parseBoolean(request.getParameter("createSession"));<NEW_LINE>HttpSession session = request.getSession(createSession);<NEW_LINE>if (createSession)<NEW_LINE>System.out.println("Cre...
key = request.getParameter("key");
550,606
final DeleteManagedPrefixListResult executeDeleteManagedPrefixList(DeleteManagedPrefixListRequest deleteManagedPrefixListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteManagedPrefixListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,019,304
private void build() {<NEW_LINE>List<Node> children = new ArrayList<>();<NEW_LINE>VBox row = null;<NEW_LINE>int count = 0;<NEW_LINE>final SourceGridView view = getSkinnable();<NEW_LINE>for (CalendarSource source : view.getCalendarSources()) {<NEW_LINE>for (Calendar calendar : source.getCalendars()) {<NEW_LINE>view.getC...
add(new CalendarItem(calendar));
1,845,111
private List<CSharpMethodHost> buildUpdateMethodHosts(List<CSharpParameterHost> allColumns, List<GenTaskBySqlBuilder> currentTableBuilders) throws Exception {<NEW_LINE>List<CSharpMethodHost> methods = new ArrayList<>();<NEW_LINE>for (GenTaskBySqlBuilder builder : currentTableBuilders) {<NEW_LINE>if (!builder.getCrud_ty...
matcher(method.getSql());
1,841,674
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>builder.addConstructorArgValue(this.expectReply);<NEW_LINE>parseInputChannel(element, parserContext, builder);<NEW_LINE>IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "error-channel...
setValueIfAttributeDefined(builder, element, "error-code");
1,524,987
public JSDynamicObject createPrototype(final JSRealm realm, JSFunctionObject ctor) {<NEW_LINE>JSContext ctx = realm.getContext();<NEW_LINE>Shape protoShape = JSShape.createPrototypeShape(ctx, INSTANCE, realm.getObjectPrototype());<NEW_LINE>JSObject prototype = JSStringObject.create(protoShape, Strings.EMPTY_STRING);<NE...
realm, prototype, StringPrototypeBuiltins.BUILTINS);
1,264,999
private BufferedImage generateColoredIcon(BufferedImage image) {<NEW_LINE>Color color = null;<NEW_LINE>if (model.getColorCode() != null) {<NEW_LINE>String colorString = model.getColorCode();<NEW_LINE>color = decodeColor(colorString);<NEW_LINE>}<NEW_LINE>if (color == null)<NEW_LINE>return image;<NEW_LINE>int width = ima...
= originalPixel == 0xFF000000 ? 0 : 255;
281,087
// creates the rate computation<NEW_LINE>private RateComputation createRateComputation(SchedulePeriod period, int scheduleIndex) {<NEW_LINE>// handle where index value at start date is known<NEW_LINE>LocalDate endDate = period.getEndDate();<NEW_LINE>if (firstIndexValue != null && scheduleIndex == 0) {<NEW_LINE>return c...
(endDate.minus(lag));
1,049,675
public Object evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, final ODocumentSerializer serializer) {<NEW_LINE>OLuceneFullTextIndex index = involvedIndex(iRecord, iCurrentResult, iCondition, iLeft, iRight);<NEW_LINE>i...
iContext.setVariable(MEMORY_INDEX, memoryIndex);
945,633
protected void service(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws ServletException, IOException {<NEW_LINE>PrintWriter responseWriter = servletResponse.getWriter();<NEW_LINE>responseWriter.println(prependType("Entry"));<NEW_LINE>String operation = servletRequest.getParameter(OPERATIO...
int finalCount = servletCount.decrement();
197,140
public void run() {<NEW_LINE>// Get the controller and localBitEndPoint outside the loop since these will not change once a Drillbit and<NEW_LINE>// StatusThread is started<NEW_LINE>final Controller controller = dContext.getController();<NEW_LINE>final DrillbitEndpoint localBitEndPoint = dContext.getEndpoint();<NEW_LIN...
> futures = Lists.newArrayList();
534,417
public IpAddressUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IpAddressUpdate ipAddressUpdate = new IpAddressUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
592,633
public static ListProofChainResponse unmarshall(ListProofChainResponse listProofChainResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProofChainResponse.setRequestId(_ctx.stringValue("ListProofChainResponse.RequestId"));<NEW_LINE>listProofChainResponse.setCode(_ctx.integerValue("ListProofChainResponse.Code"));<NEW_LI...
("ListProofChainResponse.Data.PageData[" + i + "].BizChainCode"));
1,093,233
public void loadSkin() {<NEW_LINE>this.grantOwnershipItem.setIcon(ImageUtils.getScaledRoundedIcon(ImageLoader.getImage(ImageLoader.CHATROOM_MEMBER_OWNER), 16, 16));<NEW_LINE>this.grantAdminItem.setIcon(ImageUtils.getScaledRoundedIcon(ImageLoader.getImage(ImageLoader.CHATROOM_MEMBER_ADMIN), 16, 16));<NEW_LINE>this.grant...
CHATROOM_MEMBER_MODERATOR), 16, 16));
465,818
private Iterable<FoundItemDescriptor<PsiFileSystemItem>> matchQualifiers(MinusculeMatcher qualifierMatcher, Iterable<? extends PsiFileSystemItem> iterable) {<NEW_LINE>List<FoundItemDescriptor<PsiFileSystemItem>> matching = new ArrayList<>();<NEW_LINE>for (PsiFileSystemItem item : iterable) {<NEW_LINE>ProgressManager.ch...
) - 1).getEndOffset();
1,147,393
public FrameDetail mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>FrameDetail frame = new FrameDetail();<NEW_LINE>frame.id = rs.getString("pk_frame");<NEW_LINE>frame.dependCount = rs.getInt("int_depend_count");<NEW_LINE>frame.exitStatus = rs.getInt("int_exit_status");<NEW_LINE>frame.jobId = rs.getStrin...
, rs.getInt("int_gpus"));