idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
33,488
private NodeList<ModuleMemberDeclarationNode> updateTypeReferences(NodeList<ModuleMemberDeclarationNode> members) throws BindgenException {<NEW_LINE>List<TypeReferenceNode> typeReferences = new LinkedList<>();<NEW_LINE>AbstractMap.SimpleEntry<Integer, ClassDefinitionNode> classDefinitionDetails = retrieveClassDefinitio...
newMemberList = newMemberList.addAll(newTypeReferences);
499,483
private void calculateJarPath(Path jarsDirectory, String platform, Command cmd, boolean join) throws AssemblerProcessingException {<NEW_LINE>try {<NEW_LINE>if (join) {<NEW_LINE>StringBuilder pathBuilder = new StringBuilder();<NEW_LINE>String s = listFilesAndProcess(jarsDirectory.resolve("universal"), files -> files.map...
.forEach(cmd::arg));
1,675,452
public void initialize() {<NEW_LINE>ModuleEnvironment environment = moduleManager.getEnvironment();<NEW_LINE>for (Class<?> type : environment.getTypesAnnotatedWith(RegisterParticleSystemFunction.class)) {<NEW_LINE>RegisterParticleSystemFunction annotation = type.getAnnotation(RegisterParticleSystemFunction.class);<NEW_...
type, GeneratorFunction.class, 0);
618,810
public void onConfigurationChanged(Configuration newConfig) {<NEW_LINE>try {<NEW_LINE>Context context = this.toolbar.getContext();<NEW_LINE>TypedArray typedArray = null;<NEW_LINE>// Fetch the toolbar's theme resource ID.<NEW_LINE>int styleAttributeId = TiRHelper.getResource("attr.toolbarStyle");<NEW_LINE>typedArray = c...
titleAttributeId = TiRHelper.getResource("attr.titleTextAppearance");
952,566
final ListBackupPlanTemplatesResult executeListBackupPlanTemplates(ListBackupPlanTemplatesRequest listBackupPlanTemplatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBackupPlanTemplatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
345,577
private static void openUrl(String location, int customFlags) {<NEW_LINE>try {<NEW_LINE>URL url = null;<NEW_LINE>if (location != null) {<NEW_LINE>url = new URL(location);<NEW_LINE>}<NEW_LINE>if (WebBrowserPreference.getBrowserChoice() == WebBrowserPreference.EXTERNAL) {<NEW_LINE>try {<NEW_LINE>IWorkbenchBrowserSupport ...
| IWorkbenchBrowserSupport.LOCATION_BAR | IWorkbenchBrowserSupport.NAVIGATION_BAR;
537,300
private SelectMastersResult selectMasters(String masterLeader, boolean applySelection) {<NEW_LINE>UniverseDefinitionTaskParams.Cluster primaryCluster = taskParams().getPrimaryCluster();<NEW_LINE>if (primaryCluster != null) {<NEW_LINE>Set<NodeDetails> primaryNodes = taskParams().getNodesInCluster(primaryCluster.uuid);<N...
info("Masters to be added/started: " + result.addedMasters);
189,820
private static void testGraphFromSlides() {<NEW_LINE>int n = 11;<NEW_LINE>int s = n - 1;<NEW_LINE>int t = n - 2;<NEW_LINE>NetworkFlowSolverBase solver;<NEW_LINE>solver = new Dinics(n, s, t);<NEW_LINE>// Source edges<NEW_LINE>solver.addEdge(s, 0, 5);<NEW_LINE>solver.addEdge(s, 1, 10);<NEW_LINE>solver.addEdge(s, 2, 15);<...
addEdge(5, 7, 20);
641,599
public void verifyInstructorRowContent(InstructorAttributes instructor, AccountAttributes account, String expectedManageAccountLink, String expectedHomePageLink) {<NEW_LINE>WebElement instructorRow = getInstructorRow(instructor);<NEW_LINE>String actualCourseId = getInstructorCourseId(instructorRow);<NEW_LINE>String act...
String expectedName = instructor.getName();
78,147
public void deserialize(ByteBuf input) {<NEW_LINE>int featsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (featsFlag > 0) {<NEW_LINE>feats = (IntFloatVector) ByteBufSerdeUtils.deserializeVector(input);<NEW_LINE>}<NEW_LINE>int neighborsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (neighborsFl...
neighbors = ByteBufSerdeUtils.deserializeLongs(input);
421,243
private void validateResourcePolicy(Context context, String name, Date startDate, Date endDate) throws SQLException, AuthorizeException, ParseException {<NEW_LINE>if (getHasStartDate() && Objects.isNull(startDate)) {<NEW_LINE>throw new IllegalStateException("The access condition " + getName() + " requires a start date....
(), getEndDateLimit()));
405,659
final ListIndicesResult executeListIndices(ListIndicesRequest listIndicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIndicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(listIndicesRequest));
630,251
public Document convert(GeoCommand source) {<NEW_LINE>if (source == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List argument = new ArrayList();<NEW_LINE>Shape shape = source.getShape();<NEW_LINE>if (shape instanceof GeoJson) {<NEW_LINE>return GeoJsonToDocumentConverter.INSTANCE.convert((GeoJson) shape);<NEW_LINE...
shape).getCenter()));
54,818
public SnapshotPolicyResponse createSnapshotPolicyResponse(SnapshotPolicy policy) {<NEW_LINE>SnapshotPolicyResponse policyResponse = new SnapshotPolicyResponse();<NEW_LINE>policyResponse.setId(policy.getUuid());<NEW_LINE>Volume vol = ApiDBUtils.findVolumeById(policy.getVolumeId());<NEW_LINE>if (vol != null) {<NEW_LINE>...
setSchedule(policy.getSchedule());
1,514,916
private void doShowThumbs() {<NEW_LINE>if (getShowThumbs()) {<NEW_LINE>String[] text = pane.getText().split("\n");<NEW_LINE>List<Map<String, Object>> images = collectImages(text);<NEW_LINE>List<Map<String, Object>> <MASK><NEW_LINE>if (images.size() > 0 || patterns.size() > 0) {<NEW_LINE>for (Map<String, Object> item : ...
patterns = patternMatcher(images, text);
450,326
public static void main(final String[] arg) throws IOException, JSAPException, NoSuchMethodException {<NEW_LINE>final SimpleJSAP jsap = new SimpleJSAP(BloomFilter.class.getName(), "Creates a Bloom filter reading from standard input a newline-separated list of terms.", new Parameter[] { new FlaggedOption("bufferSize", I...
bufferSize = jsapResult.getInt("bufferSize");
221,256
protected void parseCmdLine(String[] args) {<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>if ("-appDir".equals(args[i])) {<NEW_LINE>_appDir = args[++i];<NEW_LINE>} else if ("-tmpDir".equals(args[i])) {<NEW_LINE>_tmpDir = args[++i];<NEW_LINE>} else if ("-forceCompilation".equals(args[i])) {<N...
++i]).booleanValue();
1,046,289
public void unregisterClient(final Client client, final IAsyncResultHandler<Void> handler) {<NEW_LINE>try {<NEW_LINE>final Client lclient = lookupClient(client.getOrganizationId(), client.getClientId(), client.getVersion());<NEW_LINE>final String id = getClientId(lclient);<NEW_LINE>DeleteRequest deleteRequest = new Del...
delete(deleteRequest, RequestOptions.DEFAULT);
490,025
private static BundleEntryComponent medicationClaim(Person person, BundleEntryComponent personEntry, Bundle bundle, BundleEntryComponent encounterEntry, Claim claim, BundleEntryComponent medicationEntry) {<NEW_LINE>org.hl7.fhir.r4.model.Claim claimResource = new org.hl7.fhir.r4.model.Claim();<NEW_LINE>org.hl7.fhir.r4.m...
setBillablePeriod(encounterResource.getPeriod());
1,030,449
protected DB2TableForeignKey runTask() {<NEW_LINE>EditForeignKeyPage editDialog = new EditForeignKeyPage(DB2Messages.<MASK><NEW_LINE>if (!editDialog.edit()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DBSForeignKeyModifyRule deleteRule = editDialog.getOnDeleteRule();<NEW_LINE>DBSForeignKeyModifyRule updateRule = editDi...
edit_db2_foreign_key_manager_dialog_title, foreignKey, FK_RULES, options);
577,643
private static void fillFirstBlocks(Instance instance, byte[] initialHash) {<NEW_LINE>final byte[] zeroBytes = { 0, 0, 0, 0 };<NEW_LINE>final byte[] oneBytes = { 1, 0, 0, 0 };<NEW_LINE>byte[] initialHashWithZeros = getInitialHashLong(initialHash, zeroBytes);<NEW_LINE>byte[] initialHashWithOnes = getInitialHashLong(init...
Functions.blake2bLong(initialHashWithZeros, ARGON2_BLOCK_SIZE);
1,342,876
public Object pushFile(final String groupName, final String path, final File file, final Map<String, Serializable> extraMeta) throws DotDataException {<NEW_LINE>// 1. generate metadata<NEW_LINE>// 2. see if the sha-256 exists<NEW_LINE>// 2.1 if exists only insert on the reference<NEW_LINE>// 2.2 if does not exists, ins...
fileHash, hashRef, file, connection);
669,700
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>StringBuilder message = new StringBuilder().append(getText(R.string.version)).append(BuildConfig.VERSION_NAME).append(getText(R.string.about_email)).append(getText(R.string.about_github)).append(getText(R.string.about_4pda)).append(getText(R.string.abou...
AlertDialog.Builder(requireActivity());
310,015
public static GetJobResultResponse unmarshall(GetJobResultResponse getJobResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getJobResultResponse.setRequestId(_ctx.stringValue("GetJobResultResponse.RequestId"));<NEW_LINE>getJobResultResponse.setCode(_ctx.stringValue("GetJobResultResponse.Code"));<NEW_LINE>getJobResult...
(_ctx.longValue("GetJobResultResponse.Data.TotalUsedTime"));
391,212
private void parseAndSetServerIpAndPort(ConnectionInfo connectionInfo, Connection connection, String dataSourceName) {<NEW_LINE>URI url = null;<NEW_LINE>String remoteServiceName = "";<NEW_LINE>try {<NEW_LINE>// strip<NEW_LINE>String urlAsString = connection.getMetaData().getURL().substring(5);<NEW_LINE>// "jdbc:"<NEW_L...
parsedServiceName = matcher.group(1);
255,288
public void onClick(View v) {<NEW_LINE>if (v == buttonCancel) {<NEW_LINE>this.cancel();<NEW_LINE>}<NEW_LINE>if (v == buttonNone) {<NEW_LINE>if (editBox.getText() != null && !editBox.getText().toString().equals("")) {<NEW_LINE>mController.typeWords(editBox.getText().toString());<NEW_LINE>if (!multi_line)<NEW_LINE>dismis...
getText().toString());
964,887
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>Uri url = IntentUtils.createBaseUriForRepo(mRepoOwner, mRepoName).build();<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.ref:<NEW_LINE>loadOrShowRefSelection();<NEW_LINE>return true;<NEW_LINE>case R.id.share:<NEW_LINE>IntentUtils.share(this, mRepoO...
bookmarkUrl, getCurrentRef(), true);
510,209
protected void validateSafeToInject(String command, String var, Node n) throws ARQException {<NEW_LINE>// Looks for the known injection attack vectors and throws an error if<NEW_LINE>// any are encountered<NEW_LINE>// A ?var surrounded by " or ' where the variable is a literal is an<NEW_LINE>// attack vector<NEW_LINE>P...
MatchResult posMatch = matcher.toMatchResult();
752,803
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View root = UiUtilities.getInflater(inflater.getContext(), nightMode).inflate(R.layout.fragment_terrain, container, false);<NEW_LINE>showHideTopShadow(root);<NEW_LINE>TextView emptyS...
findViewById(R.id.title_tv);
1,229,909
public LoadData<Data> buildLoadData(@NonNull Model model, int width, int height, @NonNull Options options) {<NEW_LINE>Key sourceKey = null;<NEW_LINE>int size = modelLoaders.size();<NEW_LINE>List<DataFetcher<Data>> fetchers = new ArrayList<>(size);<NEW_LINE>// noinspection ForLoopReplaceableByForEach to improve perf<NEW...
model, width, height, options);
72,114
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('create') create variable int myvar = $X;\n" + "on pattern[every timer:interval(10)] set myvar = myvar + 1;\n";<NEW_LINE>env.advanceTime(0);<NEW_LINE>String idOne = env.deployGetId(env.compile(epl.replace("$X", "10")));<NEW_LINE>String idTwo = en...
assertVariable(env, idOne, 10);
891,987
private void handleHideChildThreads(IThreadContainer channel) {<NEW_LINE>List<ThreadChannel> threads = channel.getThreadChannels();<NEW_LINE>if (threads.isEmpty())<NEW_LINE>return;<NEW_LINE>for (ThreadChannel thread : threads) {<NEW_LINE>GuildImpl guild = (GuildImpl) channel.getGuild();<NEW_LINE>SnowflakeCacheViewImpl<...
= getJDA().getThreadChannelsView();
1,159,712
protected void loadOutline(final OnException onException) {<NEW_LINE>worker.add(new Worker.Task() {<NEW_LINE><NEW_LINE>OutlineItem[] outline = null;<NEW_LINE><NEW_LINE>protected void flattenOutline(Outline[] rawOutline, String indent, Vector<OutlineItem> v) {<NEW_LINE>for (Outline node : rawOutline) {<NEW_LINE>if (node...
, node.uri, loc));
1,173,081
private void userDefineRecognition(final Graph graph, Forest... forests) {<NEW_LINE>if (forests == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int beginOff = graph.terms[0].getOffe();<NEW_LINE>Forest forest = null;<NEW_LINE>for (int i = forests.length - 1; i >= 0; i--) {<NEW_LINE>forest = forests[i];<NEW_LINE>if (fore...
graph.terms[word.offe];
1,770,740
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<NEW_LI...
false, "org.apache.http.HttpHost", "org.apache.http.HttpRequest", "org.apache.http.protocol.HttpContext");
407,929
public void actionPerformed(final ActionEvent arg0) {<NEW_LINE>final Collection<NodeModel> nodes = Controller.getCurrentModeController().getMapController().getSelectedNodes();<NEW_LINE>final int selection = UITools.showConfirmDialog(Controller.getCurrentController().getSelection().getSelected(), getPanel(), TextUtils.g...
JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
623,567
boolean write(final Map<String, Object> map) {<NEW_LINE>if (!mTempFile.exists()) {<NEW_LINE>try {<NEW_LINE>mTempFile.createNewFile();<NEW_LINE>} catch (final IOException e) {<NEW_LINE>prepare();<NEW_LINE>try {<NEW_LINE>mTempFile.createNewFile();<NEW_LINE>} catch (IOException ex) {<NEW_LINE>Log.e(TAG, "Couldn't create t...
TAG, "Couldn't write SharedPreferences file " + mTempFile, e);
996,902
public static void applyOptions(boolean holdConsole, boolean isReport) {<NEW_LINE>int style = Font.PLAIN;<NEW_LINE>if (ConfigOptions.bBold.booleanValue()) {<NEW_LINE>style += Font.BOLD;<NEW_LINE>}<NEW_LINE>if (ConfigOptions.bItalic.booleanValue()) {<NEW_LINE>style += Font.ITALIC;<NEW_LINE>}<NEW_LINE>GC.font = new Font(...
File(Env.getTempPath());
549,320
public void writeRecord(Row element) throws IOException {<NEW_LINE>int numFields = element.getArity();<NEW_LINE>for (int i = 0; i < numFields; i++) {<NEW_LINE>Object v = element.getField(i);<NEW_LINE>if (v != null) {<NEW_LINE>if (i != 0) {<NEW_LINE>this.<MASK><NEW_LINE>}<NEW_LINE>if (quoteStrings) {<NEW_LINE>if (v inst...
wrt.write(this.fieldDelimiter);
665,047
public Object calculate(Context ctx) {<NEW_LINE>if (left == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("\"**\"" <MASK><NEW_LINE>}<NEW_LINE>if (right == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("\"**\"" + mm.getMessage("operato...
+ mm.getMessage("operator.missingLeftOperation"));
883,405
public ConsumerDestination provisionConsumerDestination(String name, String group, ExtendedConsumerProperties<RabbitConsumerProperties> properties) {<NEW_LINE>ConsumerDestination consumerDestination;<NEW_LINE>if (!properties.isMultiplex()) {<NEW_LINE>consumerDestination = <MASK><NEW_LINE>} else {<NEW_LINE>String[] prov...
doProvisionConsumerDestination(name, group, properties);
424,306
private Stream<ProgressInfo> exportJson(String fileName, String source, Object data, Map<String, Object> config) throws Exception {<NEW_LINE>ExportConfig exportConfig = new ExportConfig(config);<NEW_LINE>apocConfig.checkWriteAllowed(exportConfig, fileName);<NEW_LINE>final String format = "json";<NEW_LINE>ProgressReport...
FileManagerFactory.createFileManager(fileName, false);
548,375
public MarriedKeyChain build() {<NEW_LINE>checkNotNull(followingKeys, "followingKeys must be provided");<NEW_LINE>if (threshold == 0)<NEW_LINE>threshold = (followingKeys.size() + 1) / 2 + 1;<NEW_LINE>if (accountPath == null)<NEW_LINE>accountPath = ACCOUNT_ZERO_PATH;<NEW_LINE>MarriedKeyChain chain;<NEW_LINE>if (random !...
), null, outputScriptType, accountPath);
839,187
public static void init() {<NEW_LINE>boolean log = OilGenerator.DEBUG_OILGEN_BASIC;<NEW_LINE>if (BCEnergyConfig.enableOilOceanBiome) {<NEW_LINE>BiomeDictionary.addTypes(BiomeOilOcean.INSTANCE, BiomeDictionary.Type.OCEAN);<NEW_LINE>BCLog.logger.info("[energy.oilgen] Registered the ocean oil biome.");<NEW_LINE>} else {<N...
EVENT_BUS.register(OilGenerator.class);
1,426,795
// rejectIt<NEW_LINE>@Override<NEW_LINE>public String completeIt() {<NEW_LINE>// Re-Check<NEW_LINE>if (!m_justPrepared) {<NEW_LINE>String status = prepareIt();<NEW_LINE>if (!IDocument.STATUS_InProgress.equals(status))<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate...
confirmLine.set_TrxName(get_TrxName());
916,955
private void processAll(String cmd, Event event, HttpServletResponse response) {<NEW_LINE>LOG.info("start to processAll admin task:{}", cmd);<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>try {<NEW_LINE>String beanName = JMX_DOMAIN + DOMAIN_SEPARATOR + JMX_TYPE + PROPERTY_EQUAL + MBEAN_TYPE + PROPERTY_S...
String className = mbean.getClassName();
1,129,724
public CompletableFuture<ExecutionResult> executeAsync(ExecutionInput executionInput) {<NEW_LINE>try {<NEW_LINE>if (logNotSafe.isDebugEnabled()) {<NEW_LINE>logNotSafe.debug("Executing request. operation name: '{}'. query: '{}'. variables '{}'", executionInput.getOperationName(), executionInput.getQuery(<MASK><NEW_LINE>...
), executionInput.getVariables());
339,986
public void draw(Canvas canvas) {<NEW_LINE>Rect bounds = getBounds();<NEW_LINE>// Draw bounding box<NEW_LINE>mPaint.setStyle(Paint.Style.STROKE);<NEW_LINE>mPaint.setStrokeWidth(OUTLINE_STROKE_WIDTH_PX);<NEW_LINE>mPaint.setColor(OUTLINE_COLOR);<NEW_LINE>canvas.drawRect(bounds.left, bounds.top, bounds.right, bounds.botto...
addDebugText(canvas, "scale", mScaleType);
1,105,410
protected void addObjectModifyActions(DBRProgressMonitor monitor, DBCExecutionContext executionContext, List<DBEPersistAction> actionList, ObjectChangeCommand command, Map<String, Object> options) throws DBException {<NEW_LINE>ExasolConsumerGroup group = command.getObject();<NEW_LINE>Map<Object, Object> com = command.g...
(group), modifyPart)));
268,442
public com.amazonaws.services.appconfig.model.InternalServerException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.appconfig.model.InternalServerException internalServerException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurr...
appconfig.model.InternalServerException(null);
230,440
public static boolean interactWithFluidHandler(Player player, InteractionHand hand, IFluidHandler handler) {<NEW_LINE>Mutable<FluidStack> lastNonSimulated = new MutableObject<>();<NEW_LINE>MutableBoolean isInsert = new MutableBoolean();<NEW_LINE>IFluidHandler simulationWrapper = new WrapperFluidHandler(handler) {<NEW_L...
drain(maxDrain, FluidAction.SIMULATE);
1,048,171
public SJavaInfo convertToSObject(JavaInfo input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SJavaInfo result = new SJavaInfo();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LINE>result.setHeapTotal(input.get...
addAll(input.getJavaLibrarypath());
1,248,509
private void appendFilesToXcodeProjGroup(StringBuilder sb, File dir, String serviceGroupVarName, String serviceTargetVarName, File baseDir) {<NEW_LINE>String basePath = baseDir.getAbsolutePath();<NEW_LINE>if (!basePath.endsWith("/")) {<NEW_LINE>basePath += "/";<NEW_LINE>}<NEW_LINE>int basePathLen = basePath.length();<N...
basePathLen)).append("')\n");
1,845,380
public void read(org.apache.thrift.protocol.TProtocol iprot, KeyValues struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apach...
TList _list8 = iprot.readListBegin();
646,983
private boolean parseEdge(ArrayList list) {<NEW_LINE>String id = null;<NEW_LINE>for (int i = 0; i < list.size(); i += 2) {<NEW_LINE>String key = (String) list.get(i);<NEW_LINE>Object value = list.get(i + 1);<NEW_LINE>if ("id".equalsIgnoreCase(key)) {<NEW_LINE>id = value.toString();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>EdgeDr...
) value).doubleValue());
231,311
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "val0,val1,val2,val3,val4,val5,val6".split(",");<NEW_LINE>String eplFragment = "@name('s0') select " + "utildate.roundFloor('msec') as val0," + "utildate.roundFloor('sec') as val1," + "utildate.roundFloor('minutes') as val2," + "utildate.roundFloor...
"2002-05-30T09:00:00.000", "2002-05-30T00:00:00.000", "2002-05-1T00:00:00.000", "2002-01-1T00:00:00.000" };
1,583,509
public void run() {<NEW_LINE>List<?> selection = getSelectedObjects();<NEW_LINE>IDiagramModelObject model = (IDiagramModelObject) getFirstValidSelectedModelObject(selection);<NEW_LINE>if (model == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CustomColorDialog colorDialog = new CustomColorDialog(getWorkbenchPart().getSi...
(createCommand(selection, newColor));
540,171
private String createTemplateVolume(TemplateInfo templateInfo, long storagePoolId) {<NEW_LINE>LOGGER.debug("Creating PowerFlex template volume");<NEW_LINE>StoragePoolVO storagePool = storagePoolDao.findById(storagePoolId);<NEW_LINE>Preconditions.checkArgument(templateInfo != null, "templateInfo cannot be null");<NEW_LI...
usedBytes > capacityBytes ? capacityBytes : usedBytes);
1,095,107
public void onBindViewHolder(ItemHolder itemHolder, int i) {<NEW_LINE>Song localItem = arraylist.get(i);<NEW_LINE>itemHolder.<MASK><NEW_LINE>itemHolder.artist.setText(localItem.artistName);<NEW_LINE>ImageLoader.getInstance().displayImage(TimberUtils.getAlbumArtUri(localItem.albumId).toString(), itemHolder.albumArt, new...
title.setText(localItem.title);
1,330,375
public Create cloneAndLinkReferences(DateTime now) throws InvalidReferencesException {<NEW_LINE>Create clone = clone(this);<NEW_LINE>clone.nameservers = linkHosts(clone.nameserverFullyQualifiedHostNames, now);<NEW_LINE>if (registrantContactId == null) {<NEW_LINE>clone.contacts = linkContacts(clone.foreignKeyedDesignate...
foreignKeyedDesignatedContacts), registrantPlaceholder), now);
1,577,345
private byte[] decodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException {<NEW_LINE>if (this.pLen != -1) {<NEW_LINE>return this.decodeBlockOrRandom(in, inOff, inLen);<NEW_LINE>}<NEW_LINE>byte[] block = engine.processBlock(in, inOff, inLen);<NEW_LINE>boolean incorrectLength = (useStrictLength & (blo...
start = findStart(type, data);
1,442,906
private Method resolveFactoryMethod(BeanDefinition beanDefinition, List<ResolvableType> valueTypes) {<NEW_LINE>if (beanDefinition instanceof RootBeanDefinition) {<NEW_LINE>RootBeanDefinition rootBeanDefinition = (RootBeanDefinition) beanDefinition;<NEW_LINE><MASK><NEW_LINE>if (resolvedFactoryMethod != null) {<NEW_LINE>...
Method resolvedFactoryMethod = rootBeanDefinition.getResolvedFactoryMethod();
1,740,190
final ListChannelsResult executeListChannels(ListChannelsRequest listChannelsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChannelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
invoke(request, responseHandler, executionContext);
83,244
private void removeNic(APIRemoveVmNicFromLoadBalancerMsg msg, final NoErrorCompletion completion) {<NEW_LINE>final APIRemoveVmNicFromLoadBalancerEvent evt = new APIRemoveVmNicFromLoadBalancerEvent(msg.getId());<NEW_LINE>LoadBalancerListenerVO listenerVO = dbf.findByUuid(msg.<MASK><NEW_LINE>LoadBalancerServerGroupVO gro...
getListenerUuid(), LoadBalancerListenerVO.class);
834,799
public void addAll(final Iterator<PartitionChunkEntry<VersionType, ObjectType>> objects) {<NEW_LINE>lock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>final IdentityHashMap<TimelineEntry, Interval> allEntries = new IdentityHashMap<>();<NEW_LINE>while (objects.hasNext()) {<NEW_LINE>PartitionChunkEntry<VersionType, ObjectT...
new PartitionHolder<>(object));
307,966
final AdminUpdateAuthEventFeedbackResult executeAdminUpdateAuthEventFeedback(AdminUpdateAuthEventFeedbackRequest adminUpdateAuthEventFeedbackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminUpdateAuthEventFeedbackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Cognito Identity Provider");
797,005
public int indexOf(Enum<?> header) {<NEW_LINE>if (enumMap != null && enumMap.length == 0) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>validateHeader(header);<NEW_LINE>if (enumMap == null) {<NEW_LINE>NormalizedString[] headers = NormalizedString.toIdentifierGroupArray(context.headers());<NEW_LINE>if (headers == null) {<NE...
constant.ordinal()] = index;
1,701,138
public IterationMode next(final NaviNode node) {<NEW_LINE>final INaviViewNode viewNode = node.getRawNode();<NEW_LINE>if (viewNode instanceof INaviCodeNode) {<NEW_LINE>final INaviCodeNode codeNode = (INaviCodeNode) viewNode;<NEW_LINE>final INaviInstruction instruction = Iterables.getFirst(codeNode.getInstructions(), nul...
(instruction.getAddress()));
551,658
public boolean publishIfFirst(Notification notification) {<NEW_LINE>// node id should never be empty<NEW_LINE>if (notification.getNodeId() == null) {<NEW_LINE>notification.addNode(nodeId.toString());<NEW_LINE>}<NEW_LINE>// also the timestamp should never be empty<NEW_LINE>if (notification.getTimestamp() == null) {<NEW_...
addTimestamp(Tools.nowUTC());
114,045
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String cacheName, String ruleName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
630,188
private void acceptPotentialMethodDeclaration(CompletionProposal proposal) {<NEW_LINE>try {<NEW_LINE>IJavaElement enclosingElement = null;<NEW_LINE>if (response.getContext().isExtended()) {<NEW_LINE>enclosingElement = response.getContext().getEnclosingElement();<NEW_LINE>} else if (unit != null) {<NEW_LINE>// kept for ...
valueOf(proposal.getName());
670,286
public <A extends Allele> GenotypingLikelihoods<A> calculateLikelihoods(final AlleleList<A> genotypingAlleles, final GenotypingData<A> data, final byte[] paddedReference, final int offsetForRefIntoEvent, final DragstrReferenceAnalyzer dragstrs) {<NEW_LINE>Utils.nonNull(genotypingAlleles, "the allele cannot be null");<N...
(likelihoodsCalculator.genotypeLikelihoods(sampleLikelihoods));
1,623,015
private void smartScroll(boolean checkFileEdge) {<NEW_LINE>DiffContentPanel rightPane = master.getEditorPane2();<NEW_LINE>DiffContentPanel leftPane = master.getEditorPane1();<NEW_LINE>int[] map = scrollMap.getScrollMap(rightPane.getEditorPane().getSize().<MASK><NEW_LINE>int rightOffet = rightPane.getScrollPane().getVer...
height, master.getDiffSerial());
1,468,555
protected KeyStoreConfig instantiateElement(XMLEventReader xmlEventReader, StartElement element) throws ParsingException {<NEW_LINE>final KeyStoreConfig <MASK><NEW_LINE>keyStore.setType(StaxParserUtil.getAttributeValueRP(element, KeycloakSamlAdapterV1QNames.ATTR_TYPE));<NEW_LINE>keyStore.setAlias(StaxParserUtil.getAttr...
keyStore = new Key.KeyStoreConfig();
89,278
public static void send(@NotNull final Socket socket, final String host, final int port) throws IOException, SocksException {<NEW_LINE>final <MASK><NEW_LINE>final OutputStream outputStream = socket.getOutputStream();<NEW_LINE>final int lengthOfHost = host.getBytes(UTF_8).length;<NEW_LINE>final byte[] bufferSent = new b...
InputStream inputStream = socket.getInputStream();
1,251,594
public void jpa10_Injection_DPU_EarLibLevel_JTA_JNDI_EJB_SL_CMTS() throws Exception {<NEW_LINE>final String testName = "jpa10_Injection_DPU_EarLibLevel_JTA_JNDI_EJB_SL_CMTS";<NEW_LINE>final String testMethod = "testDefaultPersistenceUnitInjection";<NEW_LINE>final TestExecutionContext testExecCtx = new TestExecutionCont...
> jpaPCInfoMap = testExecCtx.getJpaPCInfoMap();
808,316
private void sendConfiguration() {<NEW_LINE>Map<String, Object> settings = new HashMap<>();<NEW_LINE>Map<String, Object> bootJavaObj = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformation = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformationAutomaticTracking = new HashMap<>();<NEW_LINE>Map<String, Ob...
settings.put("boot-java", bootJavaObj);
1,644,291
private static void deleteExtraStatsFiles(File statsDirectory, int maxStatsFile) {<NEW_LINE>if (maxStatsFile <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>File[] files = statsDirectory.listFiles();<NEW_LINE>// One more stats file will be created for the current run.<NEW_LINE>int allowedStatsFile = maxStat...
logger.error("Error during cleanup of stats file directory", e);
544,204
private static void updatePhi(RealVector phi, int user, int item, double rating, int featureCount, PMFModel userModel, PMFModel itemModel) {<NEW_LINE>for (int k = 0; k < featureCount; k++) {<NEW_LINE>double userWeightShp = userModel.getWeightShpEntry(user, k);<NEW_LINE>double userWeightRte = userModel.getWeightRteEntry...
itemModel.getWeightRteEntry(item, k);
1,014,583
private <MT extends IBaseMetaType> void doMetaAdd(MT theMetaAdd, BaseHasResource theEntity, RequestDetails theRequestDetails, TransactionDetails theTransactionDetails) {<NEW_LINE>IBaseResource oldVersion = toResource(theEntity, false);<NEW_LINE>List<TagDefinition> tags = toTagList(theMetaAdd);<NEW_LINE>for (TagDefiniti...
.getInvocationTiming(Pointcut.STORAGE_PRECOMMIT_RESOURCE_UPDATED));
498,819
protected Control createDialogArea(Composite parent) {<NEW_LINE>// Help<NEW_LINE>PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, HELP_ID);<NEW_LINE>setTitle(Messages.UserPropertiesManagerDialog_1);<NEW_LINE>setMessage(Messages.UserPropertiesManagerDialog_2);<NEW_LINE>Composite composite = (Composite) super.cr...
= new GridLayout(2, false);
139,953
private void saveDividerLocations() {<NEW_LINE>// save panel sizes and divider locations.<NEW_LINE>Rectangle rec = MageFrame.getDesktop().getBounds();<NEW_LINE>String sb = Double.toString(rec.getWidth()) + 'x' + rec.getHeight();<NEW_LINE>PreferencesDialog.saveValue(PreferencesDialog.KEY_MAGE_PANEL_LAST_SIZE, sb);<NEW_L...
.jSplitPane0.getDividerLocation()));
834,758
public MapTileArea computeFromSource(final MapTileArea pSource, final MapTileArea pReuse) {<NEW_LINE>final MapTileArea out = pReuse != <MASK><NEW_LINE>if (pSource.size() == 0) {<NEW_LINE>out.reset();<NEW_LINE>return out;<NEW_LINE>}<NEW_LINE>final int sourceZoom = pSource.getZoom();<NEW_LINE>int destZoom = sourceZoom + ...
null ? pReuse : new MapTileArea();
1,008,094
public ContainerServiceStateDetail unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ContainerServiceStateDetail containerServiceStateDetail = new ContainerServiceStateDetail();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
class).unmarshall(context));
1,813,430
private void analyzeWhereExpr() throws UserException {<NEW_LINE>if (whereExpr == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>whereExpr = analyzer.getExprRewriter().rewrite(whereExpr, analyzer, ExprRewriter.ClauseType.WHERE_CLAUSE);<NEW_LINE>// analyze where slot ref<NEW_LINE>Map<String, SlotDescriptor> dstDescMap = <M...
Maps.newTreeMap(String.CASE_INSENSITIVE_ORDER);
854,480
protected <T> T map(Config config, String path, String name, Class<T> clazz) {<NEW_LINE>T instance = newInstance(config, name, clazz);<NEW_LINE>// Map config property names to bean properties.<NEW_LINE>Map<String, String> propertyNames = new HashMap<>();<NEW_LINE>for (Map.Entry<String, ConfigValue> configProp : config....
path, name, propertyNames, config);
21,735
public void apply(Mapper mapper, EntityModelBuilder modelBuilder) {<NEW_LINE>MapperOptions options = mapper.getOptions();<NEW_LINE>final Entity entity = modelBuilder.getAnnotation(Entity.class);<NEW_LINE>final Embedded embedded = modelBuilder.getAnnotation(Embedded.class);<NEW_LINE>final ExternalEntity externalEntity =...
, options.getDiscriminatorKey()));
1,353,964
public void generateCode(ClassScope classScope, ClassFile enclosingClassFile) {<NEW_LINE>if ((this.bits & ASTNode.HasBeenGenerated) != 0)<NEW_LINE>return;<NEW_LINE>if (this.binding != null) {<NEW_LINE>SyntheticArgumentBinding[] enclosingInstances = ((NestedTypeBinding) <MASK><NEW_LINE>for (int i = 0, slotSize = 0, coun...
this.binding).syntheticEnclosingInstances();
273,023
private Collection<JavaFileObject> listUnder(String packageName, URL packageFolderURL, boolean recursive) {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.logp(Level.FINE, CLASS_NAME + "$WebModuleClassLoaderPackageFinder", "listUnder", "Looking for ...
File(packageFolderURL.getFile());
1,374,699
public Set<FileObject> extend(WebModule webModule) {<NEW_LINE>Project enclosingProject = Util.getEnclosingProjectFromWebModule(webModule);<NEW_LINE>// when there is no enclosing project found empty set is returned<NEW_LINE>if (enclosingProject != null) {<NEW_LINE>Sources <MASK><NEW_LINE>try {<NEW_LINE>SourceGroup[] jav...
sources = ProjectUtils.getSources(enclosingProject);
299,271
private boolean onSave(boolean onSaveEvent) {<NEW_LINE>GridTab currentTab = toolbar.getCurrentPanel().getGridTab();<NEW_LINE><MASK><NEW_LINE>if (currentTab.isSortTab()) {<NEW_LINE>((WSortTab) curTabPanel).saveData();<NEW_LINE>return true;<NEW_LINE>} else {<NEW_LINE>if (onSaveEvent && currentTab.getCommitWarning() != nu...
boolean wasChanged = toolbar.isSaveEnable();
309,522
public void marshall(AssociationDescription associationDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (associationDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>pr...
associationDescription.getName(), NAME_BINDING);
1,327,051
private Map<String, Integer> allocate0(final Map<String, PortMapping> mappings, final Set<Integer> used) {<NEW_LINE>final ImmutableMap.Builder<String, Integer> allocation = ImmutableMap.builder();<NEW_LINE>final Set<Integer> staticExternalPorts = new HashSet<>();<NEW_LINE>for (final Map.Entry<String, PortMapping> entry...
String name = entry.getKey();
1,011,357
private SelectOrSinkPlan toPlan(RelNode rel, List<String> fieldNames, OptimizerContext context, boolean isInfiniteRows) {<NEW_LINE>logger.fine("Before logical opt:\n" + RelOptUtil.toString(rel));<NEW_LINE>LogicalRel logicalRel = optimizeLogical(context, rel);<NEW_LINE>logger.fine("After logical opt:\n" + RelOptUtil.toS...
+ RelOptUtil.toString(physicalRel));
870,240
public final boolean resolveLocalChanges(File[] localChanges) throws GitException {<NEW_LINE>JButton revert = new JButton();<NEW_LINE>// NOI18N<NEW_LINE>Mnemonics.setLocalizedText(revert, NbBundle.getMessage(ResultProcessor.class, "LBL_ResultProcessor.revertButton.text"));<NEW_LINE>// NOI18N<NEW_LINE>revert.setToolTipT...
(ResultProcessor.class, "LBL_ResultProcessor.reviewButton.TTtext"));
1,415,541
public Set<byte[]> zRevRangeByScore(byte[] key, Range range, org.springframework.data.redis.connection.Limit limit) {<NEW_LINE>Assert.notNull(key, "Key must not be null!");<NEW_LINE>Assert.notNull(range, "Range cannot be null for ZREVRANGEBYSCORE.");<NEW_LINE>byte[] min = JedisConverters.boundaryToBytesForZRange(range....
zrevrangeByScore(key, max, min);
778,999
public void calcSnappedPoint(DistanceCalc distCalc) {<NEW_LINE>if (closestEdge == null)<NEW_LINE>throw new IllegalStateException("No closest edge?");<NEW_LINE>if (snappedPoint != null)<NEW_LINE>throw new IllegalStateException("Calculate snapped point only once");<NEW_LINE>PointList fullPL = getClosestEdge().fetchWayGeo...
tmpLat = fullPL.getLat(wayIndex);
1,720,196
public void reset() {<NEW_LINE>final FlutterSdk sdk = FlutterSdk.getFlutterSdk(myProject);<NEW_LINE>final String path = sdk != null ? sdk.getHomePath() : "";<NEW_LINE>// Set this after populating the combo box to display correctly when the Flutter SDK is unset.<NEW_LINE>// (This can happen if the user changed the Dart ...
setSelected(settings.isShowStructuredErrors());
551,045
protected ResolvedType convertToUsage(Type type, Context context) {<NEW_LINE>if (context == null) {<NEW_LINE>throw new NullPointerException("Context should not be null");<NEW_LINE>}<NEW_LINE>if (type.isUnknownType()) {<NEW_LINE>throw new IllegalArgumentException("Inferred lambda parameter type");<NEW_LINE>} else if (ty...
type.asArrayType(), context);
1,172,564
public void render(OutputStream stream) throws IOException {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor root = slime.setObject();<NEW_LINE>Cursor loadBalancerArray = root.setArray("loadBalancers");<NEW_LINE>loadBalancers().forEach(lb -> {<NEW_LINE>Cursor lbObject = loadBalancerArray.addObject();<NEW_LINE>lbObj...
, dnsZone.id()));